dvitomp fix from Akira
[mplib] / src / texk / web2c / mpdir / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61.
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=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="mp.w"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 build
830 build_cpu
831 build_vendor
832 build_os
833 host
834 host_cpu
835 host_vendor
836 host_os
837 CC
838 CFLAGS
839 LDFLAGS
840 CPPFLAGS
841 ac_ct_CC
842 EXEEXT
843 OBJEXT
844 DEPDIR
845 am__include
846 am__quote
847 AMDEP_TRUE
848 AMDEP_FALSE
849 AMDEPBACKSLASH
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 SED
854 GREP
855 EGREP
856 LN_S
857 ECHO
858 AR
859 RANLIB
860 CPP
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 WITH_LUA_TRUE
873 WITH_LUA_FALSE
874 LIB@&t@OBJS
875 LTLIBOBJS'
876 ac_subst_files=''
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CPP
886 CXX
887 CXXFLAGS
888 CCC
889 CXXCPP
890 F77
891 FFLAGS'
892
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944   # If the previous option needs an argument, assign it.
945   if test -n "$ac_prev"; then
946     eval $ac_prev=\$ac_option
947     ac_prev=
948     continue
949   fi
950
951   case $ac_option in
952   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953   *)    ac_optarg=yes ;;
954   esac
955
956   # Accept the important Cygnus configure options, so we can diagnose typos.
957
958   case $ac_dashdash$ac_option in
959   --)
960     ac_dashdash=yes ;;
961
962   -bindir | --bindir | --bindi | --bind | --bin | --bi)
963     ac_prev=bindir ;;
964   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965     bindir=$ac_optarg ;;
966
967   -build | --build | --buil | --bui | --bu)
968     ac_prev=build_alias ;;
969   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970     build_alias=$ac_optarg ;;
971
972   -cache-file | --cache-file | --cache-fil | --cache-fi \
973   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974     ac_prev=cache_file ;;
975   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977     cache_file=$ac_optarg ;;
978
979   --config-cache | -C)
980     cache_file=config.cache ;;
981
982   -datadir | --datadir | --datadi | --datad)
983     ac_prev=datadir ;;
984   -datadir=* | --datadir=* | --datadi=* | --datad=*)
985     datadir=$ac_optarg ;;
986
987   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988   | --dataroo | --dataro | --datar)
989     ac_prev=datarootdir ;;
990   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992     datarootdir=$ac_optarg ;;
993
994   -disable-* | --disable-*)
995     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999    { (exit 1); exit 1; }; }
1000     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001     eval enable_$ac_feature=no ;;
1002
1003   -docdir | --docdir | --docdi | --doc | --do)
1004     ac_prev=docdir ;;
1005   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006     docdir=$ac_optarg ;;
1007
1008   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009     ac_prev=dvidir ;;
1010   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011     dvidir=$ac_optarg ;;
1012
1013   -enable-* | --enable-*)
1014     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020     eval enable_$ac_feature=\$ac_optarg ;;
1021
1022   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024   | --exec | --exe | --ex)
1025     ac_prev=exec_prefix ;;
1026   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028   | --exec=* | --exe=* | --ex=*)
1029     exec_prefix=$ac_optarg ;;
1030
1031   -gas | --gas | --ga | --g)
1032     # Obsolete; use --with-gas.
1033     with_gas=yes ;;
1034
1035   -help | --help | --hel | --he | -h)
1036     ac_init_help=long ;;
1037   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038     ac_init_help=recursive ;;
1039   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040     ac_init_help=short ;;
1041
1042   -host | --host | --hos | --ho)
1043     ac_prev=host_alias ;;
1044   -host=* | --host=* | --hos=* | --ho=*)
1045     host_alias=$ac_optarg ;;
1046
1047   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048     ac_prev=htmldir ;;
1049   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050   | --ht=*)
1051     htmldir=$ac_optarg ;;
1052
1053   -includedir | --includedir | --includedi | --included | --include \
1054   | --includ | --inclu | --incl | --inc)
1055     ac_prev=includedir ;;
1056   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057   | --includ=* | --inclu=* | --incl=* | --inc=*)
1058     includedir=$ac_optarg ;;
1059
1060   -infodir | --infodir | --infodi | --infod | --info | --inf)
1061     ac_prev=infodir ;;
1062   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063     infodir=$ac_optarg ;;
1064
1065   -libdir | --libdir | --libdi | --libd)
1066     ac_prev=libdir ;;
1067   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068     libdir=$ac_optarg ;;
1069
1070   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071   | --libexe | --libex | --libe)
1072     ac_prev=libexecdir ;;
1073   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074   | --libexe=* | --libex=* | --libe=*)
1075     libexecdir=$ac_optarg ;;
1076
1077   -localedir | --localedir | --localedi | --localed | --locale)
1078     ac_prev=localedir ;;
1079   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080     localedir=$ac_optarg ;;
1081
1082   -localstatedir | --localstatedir | --localstatedi | --localstated \
1083   | --localstate | --localstat | --localsta | --localst | --locals)
1084     ac_prev=localstatedir ;;
1085   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087     localstatedir=$ac_optarg ;;
1088
1089   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090     ac_prev=mandir ;;
1091   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092     mandir=$ac_optarg ;;
1093
1094   -nfp | --nfp | --nf)
1095     # Obsolete; use --without-fp.
1096     with_fp=no ;;
1097
1098   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099   | --no-cr | --no-c | -n)
1100     no_create=yes ;;
1101
1102   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104     no_recursion=yes ;;
1105
1106   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108   | --oldin | --oldi | --old | --ol | --o)
1109     ac_prev=oldincludedir ;;
1110   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113     oldincludedir=$ac_optarg ;;
1114
1115   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116     ac_prev=prefix ;;
1117   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118     prefix=$ac_optarg ;;
1119
1120   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121   | --program-pre | --program-pr | --program-p)
1122     ac_prev=program_prefix ;;
1123   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125     program_prefix=$ac_optarg ;;
1126
1127   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128   | --program-suf | --program-su | --program-s)
1129     ac_prev=program_suffix ;;
1130   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132     program_suffix=$ac_optarg ;;
1133
1134   -program-transform-name | --program-transform-name \
1135   | --program-transform-nam | --program-transform-na \
1136   | --program-transform-n | --program-transform- \
1137   | --program-transform | --program-transfor \
1138   | --program-transfo | --program-transf \
1139   | --program-trans | --program-tran \
1140   | --progr-tra | --program-tr | --program-t)
1141     ac_prev=program_transform_name ;;
1142   -program-transform-name=* | --program-transform-name=* \
1143   | --program-transform-nam=* | --program-transform-na=* \
1144   | --program-transform-n=* | --program-transform-=* \
1145   | --program-transform=* | --program-transfor=* \
1146   | --program-transfo=* | --program-transf=* \
1147   | --program-trans=* | --program-tran=* \
1148   | --progr-tra=* | --program-tr=* | --program-t=*)
1149     program_transform_name=$ac_optarg ;;
1150
1151   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152     ac_prev=pdfdir ;;
1153   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154     pdfdir=$ac_optarg ;;
1155
1156   -psdir | --psdir | --psdi | --psd | --ps)
1157     ac_prev=psdir ;;
1158   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159     psdir=$ac_optarg ;;
1160
1161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162   | -silent | --silent | --silen | --sile | --sil)
1163     silent=yes ;;
1164
1165   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166     ac_prev=sbindir ;;
1167   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168   | --sbi=* | --sb=*)
1169     sbindir=$ac_optarg ;;
1170
1171   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173   | --sharedst | --shareds | --shared | --share | --shar \
1174   | --sha | --sh)
1175     ac_prev=sharedstatedir ;;
1176   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179   | --sha=* | --sh=*)
1180     sharedstatedir=$ac_optarg ;;
1181
1182   -site | --site | --sit)
1183     ac_prev=site ;;
1184   -site=* | --site=* | --sit=*)
1185     site=$ac_optarg ;;
1186
1187   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188     ac_prev=srcdir ;;
1189   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190     srcdir=$ac_optarg ;;
1191
1192   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193   | --syscon | --sysco | --sysc | --sys | --sy)
1194     ac_prev=sysconfdir ;;
1195   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197     sysconfdir=$ac_optarg ;;
1198
1199   -target | --target | --targe | --targ | --tar | --ta | --t)
1200     ac_prev=target_alias ;;
1201   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202     target_alias=$ac_optarg ;;
1203
1204   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205     verbose=yes ;;
1206
1207   -version | --version | --versio | --versi | --vers | -V)
1208     ac_init_version=: ;;
1209
1210   -with-* | --with-*)
1211     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212     # Reject names that are not valid shell variable names.
1213     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214       { echo "$as_me: error: invalid package name: $ac_package" >&2
1215    { (exit 1); exit 1; }; }
1216     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217     eval with_$ac_package=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       { echo "$as_me: error: invalid package name: $ac_package" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226     eval with_$ac_package=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) { echo "$as_me: error: unrecognized option: $ac_option
1247 Try \`$0 --help' for more information." >&2
1248    { (exit 1); exit 1; }; }
1249     ;;
1250
1251   *=*)
1252     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256    { (exit 1); exit 1; }; }
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   { echo "$as_me: error: missing argument to $ac_option" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276
1277 # Be sure to have absolute directory names.
1278 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279                 datadir sysconfdir sharedstatedir localstatedir includedir \
1280                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281                 libdir localedir mandir
1282 do
1283   eval ac_val=\$$ac_var
1284   case $ac_val in
1285     [\\/$]* | ?:[\\/]* )  continue;;
1286     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287   esac
1288   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289    { (exit 1); exit 1; }; }
1290 done
1291
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301   if test "x$build_alias" = x; then
1302     cross_compiling=maybe
1303     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304     If a cross compiler is detected then cross compile mode will be used." >&2
1305   elif test "x$build_alias" != "x$host_alias"; then
1306     cross_compiling=yes
1307   fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319   { echo "$as_me: error: Working directory cannot be determined" >&2
1320    { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322   { echo "$as_me: error: pwd does not report name of working directory" >&2
1323    { (exit 1); exit 1; }; }
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328   ac_srcdir_defaulted=yes
1329   # Try the directory containing this script, then the parent directory.
1330   ac_confdir=`$as_dirname -- "$0" ||
1331 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332          X"$0" : 'X\(//\)[^/]' \| \
1333          X"$0" : 'X\(//\)$' \| \
1334          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 echo X"$0" |
1336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\/\)[^/].*/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\/\)$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\).*/{
1349             s//\1/
1350             q
1351           }
1352           s/.*/./; q'`
1353   srcdir=$ac_confdir
1354   if test ! -r "$srcdir/$ac_unique_file"; then
1355     srcdir=..
1356   fi
1357 else
1358   ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363    { (exit 1); exit 1; }; }
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368    { (exit 1); exit 1; }; }
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR           user executables [EPREFIX/bin]
1429   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR       program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR           object code libraries [EPREFIX/lib]
1435   --includedir=DIR       C header files [PREFIX/include]
1436   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR          info documentation [DATAROOTDIR/info]
1440   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR           man documentation [DATAROOTDIR/man]
1442   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1443   --htmldir=DIR          html documentation [DOCDIR]
1444   --dvidir=DIR           dvi documentation [DOCDIR]
1445   --pdfdir=DIR           pdf documentation [DOCDIR]
1446   --psdir=DIR            ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1470   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1471   --enable-fast-install@<:@=PKGS@:>@ 
1472                           optimize for fast installation @<:@default=yes@:>@
1473   --disable-dependency-tracking  speeds up one-time build
1474   --enable-dependency-tracking   do not reject slow dependency extractors
1475   --disable-libtool-lock  avoid locking (might break parallel builds)
1476   --enable-lua            build lua module (default is no)
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1482   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1483                           both@:>@
1484   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   LIBS        libraries to pass to the linker, e.g. -l<library>
1492   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493               you have headers in a nonstandard directory <include dir>
1494   CPP         C preprocessor
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CXXCPP      C++ preprocessor
1498   F77         Fortran 77 compiler command
1499   FFLAGS      Fortran 77 compiler flags
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 configure
1565 generated by GNU Autoconf 2.61
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by $as_me, which was
1579 generated by GNU Autoconf 2.61.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 @%:@@%:@ --------- @%:@@%:@
1588 @%:@@%:@ Platform. @%:@@%:@
1589 @%:@@%:@ --------- @%:@@%:@
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 @%:@@%:@ ----------- @%:@@%:@
1625 @%:@@%:@ Core tests. @%:@@%:@
1626 @%:@@%:@ ----------- @%:@@%:@
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 @%:@@%:@ ---------------- @%:@@%:@
1691 @%:@@%:@ Cache variables. @%:@@%:@
1692 @%:@@%:@ ---------------- @%:@@%:@
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 @%:@@%:@ ----------------- @%:@@%:@
1728 @%:@@%:@ Output variables. @%:@@%:@
1729 @%:@@%:@ ----------------- @%:@@%:@
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 @%:@@%:@ ------------------- @%:@@%:@
1745 @%:@@%:@ File substitutions. @%:@@%:@
1746 @%:@@%:@ ------------------- @%:@@%:@
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 @%:@@%:@ ----------- @%:@@%:@
1763 @%:@@%:@ confdefs.h. @%:@@%:@
1764 @%:@@%:@ ----------- @%:@@%:@
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923 am__api_version='1.10'
1924
1925 ac_aux_dir=
1926 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1927   if test -f "$ac_dir/install-sh"; then
1928     ac_aux_dir=$ac_dir
1929     ac_install_sh="$ac_aux_dir/install-sh -c"
1930     break
1931   elif test -f "$ac_dir/install.sh"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/install.sh -c"
1934     break
1935   elif test -f "$ac_dir/shtool"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/shtool install -c"
1938     break
1939   fi
1940 done
1941 if test -z "$ac_aux_dir"; then
1942   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1943 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1944    { (exit 1); exit 1; }; }
1945 fi
1946
1947 # These three variables are undocumented and unsupported,
1948 # and are intended to be withdrawn in a future Autoconf release.
1949 # They can cause serious problems if a builder's source tree is in a directory
1950 # whose full name contains unusual characters.
1951 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
1955
1956 # Find a good install program.  We prefer a C program (faster),
1957 # so one script is as good as another.  But avoid the broken or
1958 # incompatible versions:
1959 # SysV /etc/install, /usr/sbin/install
1960 # SunOS /usr/etc/install
1961 # IRIX /sbin/install
1962 # AIX /bin/install
1963 # AmigaOS /C/install, which installs bootblocks on floppy discs
1964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967 # OS/2's system install, which has a completely different semantic
1968 # ./install, which can be erroneously created by make from ./install.sh.
1969 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1971 if test -z "$INSTALL"; then
1972 if test "${ac_cv_path_install+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   # Account for people who put trailing slashes in PATH elements.
1981 case $as_dir/ in
1982   ./ | .// | /cC/* | \
1983   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1985   /usr/ucb/* ) ;;
1986   *)
1987     # OSF1 and SCO ODT 3.0 have their own names for install.
1988     # Don't use installbsd from OSF since it installs stuff as root
1989     # by default.
1990     for ac_prog in ginstall scoinst install; do
1991       for ac_exec_ext in '' $ac_executable_extensions; do
1992         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1993           if test $ac_prog = install &&
1994             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995             # AIX install.  It has an incompatible calling convention.
1996             :
1997           elif test $ac_prog = install &&
1998             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999             # program-specific install script used by HP pwplus--don't use.
2000             :
2001           else
2002             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2003             break 3
2004           fi
2005         fi
2006       done
2007     done
2008     ;;
2009 esac
2010 done
2011 IFS=$as_save_IFS
2012
2013
2014 fi
2015   if test "${ac_cv_path_install+set}" = set; then
2016     INSTALL=$ac_cv_path_install
2017   else
2018     # As a last resort, use the slow shell script.  Don't cache a
2019     # value for INSTALL within a source directory, because that will
2020     # break other packages using the cache if that directory is
2021     # removed, or if the value is a relative name.
2022     INSTALL=$ac_install_sh
2023   fi
2024 fi
2025 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2026 echo "${ECHO_T}$INSTALL" >&6; }
2027
2028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2029 # It thinks the first close brace ends the variable substitution.
2030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2031
2032 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2033
2034 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2035
2036 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2037 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2038 # Just in case
2039 sleep 1
2040 echo timestamp > conftest.file
2041 # Do `set' in a subshell so we don't clobber the current shell's
2042 # arguments.  Must try -L first in case configure is actually a
2043 # symlink; some systems play weird games with the mod time of symlinks
2044 # (eg FreeBSD returns the mod time of the symlink's containing
2045 # directory).
2046 if (
2047    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2048    if test "$*" = "X"; then
2049       # -L didn't work.
2050       set X `ls -t $srcdir/configure conftest.file`
2051    fi
2052    rm -f conftest.file
2053    if test "$*" != "X $srcdir/configure conftest.file" \
2054       && test "$*" != "X conftest.file $srcdir/configure"; then
2055
2056       # If neither matched, then we have a broken ls.  This can happen
2057       # if, for instance, CONFIG_SHELL is bash and it inherits a
2058       # broken ls alias from the environment.  This has actually
2059       # happened.  Such a system could not be considered "sane".
2060       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2061 alias in your environment" >&5
2062 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2063 alias in your environment" >&2;}
2064    { (exit 1); exit 1; }; }
2065    fi
2066
2067    test "$2" = conftest.file
2068    )
2069 then
2070    # Ok.
2071    :
2072 else
2073    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2074 Check your system clock" >&5
2075 echo "$as_me: error: newly created file is older than distributed files!
2076 Check your system clock" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079 { echo "$as_me:$LINENO: result: yes" >&5
2080 echo "${ECHO_T}yes" >&6; }
2081 test "$program_prefix" != NONE &&
2082   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2083 # Use a double $ so make ignores it.
2084 test "$program_suffix" != NONE &&
2085   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2086 # Double any \ or $.  echo might interpret backslashes.
2087 # By default was `s,x,x', remove it if useless.
2088 cat <<\_ACEOF >conftest.sed
2089 s/[\\$]/&&/g;s/;s,x,x,$//
2090 _ACEOF
2091 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2092 rm -f conftest.sed
2093
2094 # expand $ac_aux_dir to an absolute path
2095 am_aux_dir=`cd $ac_aux_dir && pwd`
2096
2097 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2098 # Use eval to expand $SHELL
2099 if eval "$MISSING --run true"; then
2100   am_missing_run="$MISSING --run "
2101 else
2102   am_missing_run=
2103   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2104 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2105 fi
2106
2107 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2108 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2109 if test -z "$MKDIR_P"; then
2110   if test "${ac_cv_path_mkdir+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2115 do
2116   IFS=$as_save_IFS
2117   test -z "$as_dir" && as_dir=.
2118   for ac_prog in mkdir gmkdir; do
2119          for ac_exec_ext in '' $ac_executable_extensions; do
2120            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2121            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2122              'mkdir (GNU coreutils) '* | \
2123              'mkdir (coreutils) '* | \
2124              'mkdir (fileutils) '4.1*)
2125                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2126                break 3;;
2127            esac
2128          done
2129        done
2130 done
2131 IFS=$as_save_IFS
2132
2133 fi
2134
2135   if test "${ac_cv_path_mkdir+set}" = set; then
2136     MKDIR_P="$ac_cv_path_mkdir -p"
2137   else
2138     # As a last resort, use the slow shell script.  Don't cache a
2139     # value for MKDIR_P within a source directory, because that will
2140     # break other packages using the cache if that directory is
2141     # removed, or if the value is a relative name.
2142     test -d ./--version && rmdir ./--version
2143     MKDIR_P="$ac_install_sh -d"
2144   fi
2145 fi
2146 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2147 echo "${ECHO_T}$MKDIR_P" >&6; }
2148
2149 mkdir_p="$MKDIR_P"
2150 case $mkdir_p in
2151   [\\/$]* | ?:[\\/]*) ;;
2152   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2153 esac
2154
2155 for ac_prog in gawk mawk nawk awk
2156 do
2157   # Extract the first word of "$ac_prog", so it can be a program name with args.
2158 set dummy $ac_prog; ac_word=$2
2159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161 if test "${ac_cv_prog_AWK+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   if test -n "$AWK"; then
2165   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170   IFS=$as_save_IFS
2171   test -z "$as_dir" && as_dir=.
2172   for ac_exec_ext in '' $ac_executable_extensions; do
2173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174     ac_cv_prog_AWK="$ac_prog"
2175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176     break 2
2177   fi
2178 done
2179 done
2180 IFS=$as_save_IFS
2181
2182 fi
2183 fi
2184 AWK=$ac_cv_prog_AWK
2185 if test -n "$AWK"; then
2186   { echo "$as_me:$LINENO: result: $AWK" >&5
2187 echo "${ECHO_T}$AWK" >&6; }
2188 else
2189   { echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6; }
2191 fi
2192
2193
2194   test -n "$AWK" && break
2195 done
2196
2197 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2198 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2199 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   cat >conftest.make <<\_ACEOF
2204 SHELL = /bin/sh
2205 all:
2206         @echo '@@@%%%=$(MAKE)=@@@%%%'
2207 _ACEOF
2208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2210   *@@@%%%=?*=@@@%%%*)
2211     eval ac_cv_prog_make_${ac_make}_set=yes;;
2212   *)
2213     eval ac_cv_prog_make_${ac_make}_set=no;;
2214 esac
2215 rm -f conftest.make
2216 fi
2217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2218   { echo "$as_me:$LINENO: result: yes" >&5
2219 echo "${ECHO_T}yes" >&6; }
2220   SET_MAKE=
2221 else
2222   { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224   SET_MAKE="MAKE=${MAKE-make}"
2225 fi
2226
2227 rm -rf .tst 2>/dev/null
2228 mkdir .tst 2>/dev/null
2229 if test -d .tst; then
2230   am__leading_dot=.
2231 else
2232   am__leading_dot=_
2233 fi
2234 rmdir .tst 2>/dev/null
2235
2236 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2237   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2238   # is not polluted with repeated "-I."
2239   am__isrc=' -I$(srcdir)'
2240   # test to see if srcdir already configured
2241   if test -f $srcdir/config.status; then
2242     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2243 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2244    { (exit 1); exit 1; }; }
2245   fi
2246 fi
2247
2248 # test whether we have cygpath
2249 if test -z "$CYGPATH_W"; then
2250   if (cygpath --version) >/dev/null 2>/dev/null; then
2251     CYGPATH_W='cygpath -w'
2252   else
2253     CYGPATH_W=echo
2254   fi
2255 fi
2256
2257
2258 # Define the identity of the package.
2259  PACKAGE=libmplib
2260  VERSION=1.0.9
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 @%:@define PACKAGE "$PACKAGE"
2265 _ACEOF
2266
2267  
2268 cat >>confdefs.h <<_ACEOF
2269 @%:@define VERSION "$VERSION"
2270 _ACEOF
2271
2272 # Some tools Automake needs.
2273
2274 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2275
2276
2277 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2278
2279
2280 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2281
2282
2283 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2284
2285
2286 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2287
2288 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2289
2290 # Installed binaries are usually stripped using `strip' when the user
2291 # run `make install-strip'.  However `strip' might not be the right
2292 # tool to use in cross-compilation environments, therefore Automake
2293 # will honor the `STRIP' environment variable to overrule this program.
2294 if test "$cross_compiling" != no; then
2295   if test -n "$ac_tool_prefix"; then
2296   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}strip; ac_word=$2
2298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300 if test "${ac_cv_prog_STRIP+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   if test -n "$STRIP"; then
2304   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
2310   test -z "$as_dir" && as_dir=.
2311   for ac_exec_ext in '' $ac_executable_extensions; do
2312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315     break 2
2316   fi
2317 done
2318 done
2319 IFS=$as_save_IFS
2320
2321 fi
2322 fi
2323 STRIP=$ac_cv_prog_STRIP
2324 if test -n "$STRIP"; then
2325   { echo "$as_me:$LINENO: result: $STRIP" >&5
2326 echo "${ECHO_T}$STRIP" >&6; }
2327 else
2328   { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2330 fi
2331
2332
2333 fi
2334 if test -z "$ac_cv_prog_STRIP"; then
2335   ac_ct_STRIP=$STRIP
2336   # Extract the first word of "strip", so it can be a program name with args.
2337 set dummy strip; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$ac_ct_STRIP"; then
2344   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351   for ac_exec_ext in '' $ac_executable_extensions; do
2352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353     ac_cv_prog_ac_ct_STRIP="strip"
2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355     break 2
2356   fi
2357 done
2358 done
2359 IFS=$as_save_IFS
2360
2361 fi
2362 fi
2363 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2364 if test -n "$ac_ct_STRIP"; then
2365   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2366 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2367 else
2368   { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2370 fi
2371
2372   if test "x$ac_ct_STRIP" = x; then
2373     STRIP=":"
2374   else
2375     case $cross_compiling:$ac_tool_warned in
2376 yes:)
2377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet.  If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&5
2380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet.  If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2383 ac_tool_warned=yes ;;
2384 esac
2385     STRIP=$ac_ct_STRIP
2386   fi
2387 else
2388   STRIP="$ac_cv_prog_STRIP"
2389 fi
2390
2391 fi
2392 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2393
2394 # We need awk for the "check" target.  The system "awk" is bad on
2395 # some platforms.
2396 # Always define AMTAR for backward compatibility.
2397
2398 AMTAR=${AMTAR-"${am_missing_run}tar"}
2399
2400 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2401
2402
2403
2404
2405
2406 ac_config_headers="$ac_config_headers config.h"
2407
2408 # Check whether --enable-shared was given.
2409 if test "${enable_shared+set}" = set; then
2410   enableval=$enable_shared; p=${PACKAGE-default}
2411     case $enableval in
2412     yes) enable_shared=yes ;;
2413     no) enable_shared=no ;;
2414     *)
2415       enable_shared=no
2416       # Look at the argument we got.  We use all the common list separators.
2417       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2418       for pkg in $enableval; do
2419         IFS="$lt_save_ifs"
2420         if test "X$pkg" = "X$p"; then
2421           enable_shared=yes
2422         fi
2423       done
2424       IFS="$lt_save_ifs"
2425       ;;
2426     esac
2427 else
2428   enable_shared=yes
2429 fi
2430
2431
2432 # Check whether --enable-static was given.
2433 if test "${enable_static+set}" = set; then
2434   enableval=$enable_static; p=${PACKAGE-default}
2435     case $enableval in
2436     yes) enable_static=yes ;;
2437     no) enable_static=no ;;
2438     *)
2439      enable_static=no
2440       # Look at the argument we got.  We use all the common list separators.
2441       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2442       for pkg in $enableval; do
2443         IFS="$lt_save_ifs"
2444         if test "X$pkg" = "X$p"; then
2445           enable_static=yes
2446         fi
2447       done
2448       IFS="$lt_save_ifs"
2449       ;;
2450     esac
2451 else
2452   enable_static=yes
2453 fi
2454
2455
2456 # Check whether --enable-fast-install was given.
2457 if test "${enable_fast_install+set}" = set; then
2458   enableval=$enable_fast_install; p=${PACKAGE-default}
2459     case $enableval in
2460     yes) enable_fast_install=yes ;;
2461     no) enable_fast_install=no ;;
2462     *)
2463       enable_fast_install=no
2464       # Look at the argument we got.  We use all the common list separators.
2465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2466       for pkg in $enableval; do
2467         IFS="$lt_save_ifs"
2468         if test "X$pkg" = "X$p"; then
2469           enable_fast_install=yes
2470         fi
2471       done
2472       IFS="$lt_save_ifs"
2473       ;;
2474     esac
2475 else
2476   enable_fast_install=yes
2477 fi
2478
2479
2480 # Make sure we can run config.sub.
2481 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2482   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2483 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2484    { (exit 1); exit 1; }; }
2485
2486 { echo "$as_me:$LINENO: checking build system type" >&5
2487 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2488 if test "${ac_cv_build+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   ac_build_alias=$build_alias
2492 test "x$ac_build_alias" = x &&
2493   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2494 test "x$ac_build_alias" = x &&
2495   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2496 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2497    { (exit 1); exit 1; }; }
2498 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2499   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2500 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2501    { (exit 1); exit 1; }; }
2502
2503 fi
2504 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2505 echo "${ECHO_T}$ac_cv_build" >&6; }
2506 case $ac_cv_build in
2507 *-*-*) ;;
2508 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2509 echo "$as_me: error: invalid value of canonical build" >&2;}
2510    { (exit 1); exit 1; }; };;
2511 esac
2512 build=$ac_cv_build
2513 ac_save_IFS=$IFS; IFS='-'
2514 set x $ac_cv_build
2515 shift
2516 build_cpu=$1
2517 build_vendor=$2
2518 shift; shift
2519 # Remember, the first character of IFS is used to create $*,
2520 # except with old shells:
2521 build_os=$*
2522 IFS=$ac_save_IFS
2523 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2524
2525
2526 { echo "$as_me:$LINENO: checking host system type" >&5
2527 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2528 if test "${ac_cv_host+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   if test "x$host_alias" = x; then
2532   ac_cv_host=$ac_cv_build
2533 else
2534   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2535     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2536 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2537    { (exit 1); exit 1; }; }
2538 fi
2539
2540 fi
2541 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2542 echo "${ECHO_T}$ac_cv_host" >&6; }
2543 case $ac_cv_host in
2544 *-*-*) ;;
2545 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2546 echo "$as_me: error: invalid value of canonical host" >&2;}
2547    { (exit 1); exit 1; }; };;
2548 esac
2549 host=$ac_cv_host
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_host
2552 shift
2553 host_cpu=$1
2554 host_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 host_os=$*
2559 IFS=$ac_save_IFS
2560 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 DEPDIR="${am__leading_dot}deps"
2564
2565 ac_config_commands="$ac_config_commands depfiles"
2566
2567
2568 am_make=${MAKE-make}
2569 cat > confinc << 'END'
2570 am__doit:
2571         @echo done
2572 .PHONY: am__doit
2573 END
2574 # If we don't find an include directive, just comment out the code.
2575 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2576 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2577 am__include="#"
2578 am__quote=
2579 _am_result=none
2580 # First try GNU make style include.
2581 echo "include confinc" > confmf
2582 # We grep out `Entering directory' and `Leaving directory'
2583 # messages which can occur if `w' ends up in MAKEFLAGS.
2584 # In particular we don't look at `^make:' because GNU make might
2585 # be invoked under some other name (usually "gmake"), in which
2586 # case it prints its new name instead of `make'.
2587 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2588    am__include=include
2589    am__quote=
2590    _am_result=GNU
2591 fi
2592 # Now try BSD make style include.
2593 if test "$am__include" = "#"; then
2594    echo '.include "confinc"' > confmf
2595    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2596       am__include=.include
2597       am__quote="\""
2598       _am_result=BSD
2599    fi
2600 fi
2601
2602
2603 { echo "$as_me:$LINENO: result: $_am_result" >&5
2604 echo "${ECHO_T}$_am_result" >&6; }
2605 rm -f confinc confmf
2606
2607 # Check whether --enable-dependency-tracking was given.
2608 if test "${enable_dependency_tracking+set}" = set; then
2609   enableval=$enable_dependency_tracking; 
2610 fi
2611
2612 if test "x$enable_dependency_tracking" != xno; then
2613   am_depcomp="$ac_aux_dir/depcomp"
2614   AMDEPBACKSLASH='\'
2615 fi
2616  if test "x$enable_dependency_tracking" != xno; then
2617   AMDEP_TRUE=
2618   AMDEP_FALSE='#'
2619 else
2620   AMDEP_TRUE='#'
2621   AMDEP_FALSE=
2622 fi
2623
2624
2625 ac_ext=c
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 if test -n "$ac_tool_prefix"; then
2631   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660   { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668 fi
2669 if test -z "$ac_cv_prog_CC"; then
2670   ac_ct_CC=$CC
2671   # Extract the first word of "gcc", so it can be a program name with args.
2672 set dummy gcc; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   if test -n "$ac_ct_CC"; then
2679   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686   for ac_exec_ext in '' $ac_executable_extensions; do
2687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688     ac_cv_prog_ac_ct_CC="gcc"
2689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690     break 2
2691   fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699 if test -n "$ac_ct_CC"; then
2700   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2701 echo "${ECHO_T}$ac_ct_CC" >&6; }
2702 else
2703   { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2705 fi
2706
2707   if test "x$ac_ct_CC" = x; then
2708     CC=""
2709   else
2710     case $cross_compiling:$ac_tool_warned in
2711 yes:)
2712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2713 whose name does not start with the host triplet.  If you think this
2714 configuration is useful to you, please write to autoconf@gnu.org." >&5
2715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet.  If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2718 ac_tool_warned=yes ;;
2719 esac
2720     CC=$ac_ct_CC
2721   fi
2722 else
2723   CC="$ac_cv_prog_CC"
2724 fi
2725
2726 if test -z "$CC"; then
2727           if test -n "$ac_tool_prefix"; then
2728     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   if test -n "$CC"; then
2736   ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743   for ac_exec_ext in '' $ac_executable_extensions; do
2744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745     ac_cv_prog_CC="${ac_tool_prefix}cc"
2746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757   { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2759 else
2760   { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2762 fi
2763
2764
2765   fi
2766 fi
2767 if test -z "$CC"; then
2768   # Extract the first word of "cc", so it can be a program name with args.
2769 set dummy cc; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_CC+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   if test -n "$CC"; then
2776   ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778   ac_prog_rejected=no
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784   for ac_exec_ext in '' $ac_executable_extensions; do
2785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787        ac_prog_rejected=yes
2788        continue
2789      fi
2790     ac_cv_prog_CC="cc"
2791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 if test $ac_prog_rejected = yes; then
2799   # We found a bogon in the path, so make sure we never use it.
2800   set dummy $ac_cv_prog_CC
2801   shift
2802   if test $@%:@ != 0; then
2803     # We chose a different compiler from the bogus one.
2804     # However, it has the same basename, so the bogon will be chosen
2805     # first if we set CC to just the basename; use the full file name.
2806     shift
2807     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2808   fi
2809 fi
2810 fi
2811 fi
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814   { echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6; }
2816 else
2817   { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2819 fi
2820
2821
2822 fi
2823 if test -z "$CC"; then
2824   if test -n "$ac_tool_prefix"; then
2825   for ac_prog in cl.exe
2826   do
2827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$CC"; then
2835   ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856   { echo "$as_me:$LINENO: result: $CC" >&5
2857 echo "${ECHO_T}$CC" >&6; }
2858 else
2859   { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2861 fi
2862
2863
2864     test -n "$CC" && break
2865   done
2866 fi
2867 if test -z "$CC"; then
2868   ac_ct_CC=$CC
2869   for ac_prog in cl.exe
2870 do
2871   # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   if test -n "$ac_ct_CC"; then
2879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886   for ac_exec_ext in '' $ac_executable_extensions; do
2887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888     ac_cv_prog_ac_ct_CC="$ac_prog"
2889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901 echo "${ECHO_T}$ac_ct_CC" >&6; }
2902 else
2903   { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2905 fi
2906
2907
2908   test -n "$ac_ct_CC" && break
2909 done
2910
2911   if test "x$ac_ct_CC" = x; then
2912     CC=""
2913   else
2914     case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet.  If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2920 whose name does not start with the host triplet.  If you think this
2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924     CC=$ac_ct_CC
2925   fi
2926 fi
2927
2928 fi
2929
2930
2931 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details." >&2;}
2935    { (exit 1); exit 1; }; }
2936
2937 # Provide some information about the compiler.
2938 echo "$as_me:$LINENO: checking for C compiler version" >&5
2939 ac_compiler=`set X $ac_compile; echo $2`
2940 { (ac_try="$ac_compiler --version >&5"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_compiler --version >&5") 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }
2950 { (ac_try="$ac_compiler -v >&5"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_compiler -v >&5") 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }
2960 { (ac_try="$ac_compiler -V >&5"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_compiler -V >&5") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }
2970
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977
2978 int
2979 main ()
2980 {
2981
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 ac_clean_files_save=$ac_clean_files
2987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2990 # of exeext.
2991 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994 #
2995 # List of possible output files, starting from the most likely.
2996 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2997 # only as a last resort.  b.out is created by i960 compilers.
2998 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2999 #
3000 # The IRIX 6 linker writes into existing files which may not be
3001 # executable, retaining their permissions.  Remove them first so a
3002 # subsequent execution test works.
3003 ac_rmfiles=
3004 for ac_file in $ac_files
3005 do
3006   case $ac_file in
3007     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3008     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3009   esac
3010 done
3011 rm -f $ac_rmfiles
3012
3013 if { (ac_try="$ac_link_default"
3014 case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_link_default") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; then
3023   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3025 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3026 # so that the user can short-circuit this test for compilers unknown to
3027 # Autoconf.
3028 for ac_file in $ac_files ''
3029 do
3030   test -f "$ac_file" || continue
3031   case $ac_file in
3032     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3033         ;;
3034     [ab].out )
3035         # We found the default executable, but exeext='' is most
3036         # certainly right.
3037         break;;
3038     *.* )
3039         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3040         then :; else
3041            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042         fi
3043         # We set ac_cv_exeext here because the later test for it is not
3044         # safe: cross compilers may not add the suffix if given an `-o'
3045         # argument, so we may need to know it at that point already.
3046         # Even if this section looks crufty: it has the advantage of
3047         # actually working.
3048         break;;
3049     * )
3050         break;;
3051   esac
3052 done
3053 test "$ac_cv_exeext" = no && ac_cv_exeext=
3054
3055 else
3056   ac_file=''
3057 fi
3058
3059 { echo "$as_me:$LINENO: result: $ac_file" >&5
3060 echo "${ECHO_T}$ac_file" >&6; }
3061 if test -z "$ac_file"; then
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: C compiler cannot create executables
3068 See \`config.log' for more details." >&2;}
3069    { (exit 77); exit 77; }; }
3070 fi
3071
3072 ac_exeext=$ac_cv_exeext
3073
3074 # Check that the compiler produces executables we can run.  If not, either
3075 # the compiler is broken, or we cross compile.
3076 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3077 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3078 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3079 # If not cross compiling, check that we can run a simple program.
3080 if test "$cross_compiling" != yes; then
3081   if { ac_try='./$ac_file'
3082   { (case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_try") 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; }; then
3091     cross_compiling=no
3092   else
3093     if test "$cross_compiling" = maybe; then
3094         cross_compiling=yes
3095     else
3096         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3097 If you meant to cross compile, use \`--host'.
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: cannot run C compiled programs.
3100 If you meant to cross compile, use \`--host'.
3101 See \`config.log' for more details." >&2;}
3102    { (exit 1); exit 1; }; }
3103     fi
3104   fi
3105 fi
3106 { echo "$as_me:$LINENO: result: yes" >&5
3107 echo "${ECHO_T}yes" >&6; }
3108
3109 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3110 ac_clean_files=$ac_clean_files_save
3111 # Check that the compiler produces executables we can run.  If not, either
3112 # the compiler is broken, or we cross compile.
3113 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3114 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3115 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3116 echo "${ECHO_T}$cross_compiling" >&6; }
3117
3118 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3119 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3120 if { (ac_try="$ac_link"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_link") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; then
3130   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3131 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe'), while it won't with
3133 # `rm'.
3134 for ac_file in conftest.exe conftest conftest.*; do
3135   test -f "$ac_file" || continue
3136   case $ac_file in
3137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3138     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139           break;;
3140     * ) break;;
3141   esac
3142 done
3143 else
3144   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3147 See \`config.log' for more details." >&2;}
3148    { (exit 1); exit 1; }; }
3149 fi
3150
3151 rm -f conftest$ac_cv_exeext
3152 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3153 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3154
3155 rm -f conftest.$ac_ext
3156 EXEEXT=$ac_cv_exeext
3157 ac_exeext=$EXEEXT
3158 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3159 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3160 if test "${ac_cv_objext+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163   cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169
3170 int
3171 main ()
3172 {
3173
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.o conftest.obj
3179 if { (ac_try="$ac_compile"
3180 case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_compile") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; then
3189   for ac_file in conftest.o conftest.obj conftest.*; do
3190   test -f "$ac_file" || continue;
3191   case $ac_file in
3192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3193     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3194        break;;
3195   esac
3196 done
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3202 See \`config.log' for more details." >&5
3203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3204 See \`config.log' for more details." >&2;}
3205    { (exit 1); exit 1; }; }
3206 fi
3207
3208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3211 echo "${ECHO_T}$ac_cv_objext" >&6; }
3212 OBJEXT=$ac_cv_objext
3213 ac_objext=$OBJEXT
3214 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
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 #ifndef __GNUC__
3230        choke me
3231 #endif
3232
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (ac_try="$ac_compile"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_compile") 2>conftest.er1
3245   ac_status=$?
3246   grep -v '^ *+' conftest.er1 >conftest.err
3247   rm -f conftest.er1
3248   cat conftest.err >&5
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); } && {
3251          test -z "$ac_c_werror_flag" ||
3252          test ! -s conftest.err
3253        } && test -s conftest.$ac_objext; then
3254   ac_compiler_gnu=yes
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259         ac_compiler_gnu=no
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3264
3265 fi
3266 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3267 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3268 GCC=`test $ac_compiler_gnu = yes && echo yes`
3269 ac_test_CFLAGS=${CFLAGS+set}
3270 ac_save_CFLAGS=$CFLAGS
3271 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3272 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3273 if test "${ac_cv_prog_cc_g+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   ac_save_c_werror_flag=$ac_c_werror_flag
3277    ac_c_werror_flag=yes
3278    ac_cv_prog_cc_g=no
3279    CFLAGS="-g"
3280    cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286
3287 int
3288 main ()
3289 {
3290
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_compile") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && {
3309          test -z "$ac_c_werror_flag" ||
3310          test ! -s conftest.err
3311        } && test -s conftest.$ac_objext; then
3312   ac_cv_prog_cc_g=yes
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317         CFLAGS=""
3318       cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_c_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest.$ac_objext; then
3350   :
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355         ac_c_werror_flag=$ac_save_c_werror_flag
3356          CFLAGS="-g"
3357          cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363
3364 int
3365 main ()
3366 {
3367
3368   ;
3369   return 0;
3370 }
3371 _ACEOF
3372 rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379   (eval "$ac_compile") 2>conftest.er1
3380   ac_status=$?
3381   grep -v '^ *+' conftest.er1 >conftest.err
3382   rm -f conftest.er1
3383   cat conftest.err >&5
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); } && {
3386          test -z "$ac_c_werror_flag" ||
3387          test ! -s conftest.err
3388        } && test -s conftest.$ac_objext; then
3389   ac_cv_prog_cc_g=yes
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394         
3395 fi
3396
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 fi
3399
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 fi
3402
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404    ac_c_werror_flag=$ac_save_c_werror_flag
3405 fi
3406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3407 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3408 if test "$ac_test_CFLAGS" = set; then
3409   CFLAGS=$ac_save_CFLAGS
3410 elif test $ac_cv_prog_cc_g = yes; then
3411   if test "$GCC" = yes; then
3412     CFLAGS="-g -O2"
3413   else
3414     CFLAGS="-g"
3415   fi
3416 else
3417   if test "$GCC" = yes; then
3418     CFLAGS="-O2"
3419   else
3420     CFLAGS=
3421   fi
3422 fi
3423 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3424 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3425 if test "${ac_cv_prog_cc_c89+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   ac_cv_prog_cc_c89=no
3429 ac_save_CC=$CC
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #include <stdarg.h>
3437 #include <stdio.h>
3438 #include <sys/types.h>
3439 #include <sys/stat.h>
3440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3441 struct buf { int x; };
3442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3443 static char *e (p, i)
3444      char **p;
3445      int i;
3446 {
3447   return p[i];
3448 }
3449 static char *f (char * (*g) (char **, int), char **p, ...)
3450 {
3451   char *s;
3452   va_list v;
3453   va_start (v,p);
3454   s = g (p, va_arg (v,int));
3455   va_end (v);
3456   return s;
3457 }
3458
3459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3460    function prototypes and stuff, but not '\xHH' hex character constants.
3461    These don't provoke an error unfortunately, instead are silently treated
3462    as 'x'.  The following induces an error, until -std is added to get
3463    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3464    array size at least.  It's necessary to write '\x00'==0 to get something
3465    that's true only with -std.  */
3466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3467
3468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3469    inside strings and character constants.  */
3470 #define FOO(x) 'x'
3471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3472
3473 int test (int i, double x);
3474 struct s1 {int (*f) (int a);};
3475 struct s2 {int (*f) (double a);};
3476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3477 int argc;
3478 char **argv;
3479 int
3480 main ()
3481 {
3482 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3488         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3489 do
3490   CC="$ac_save_CC $ac_arg"
3491   rm -f conftest.$ac_objext
3492 if { (ac_try="$ac_compile"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498   (eval "$ac_compile") 2>conftest.er1
3499   ac_status=$?
3500   grep -v '^ *+' conftest.er1 >conftest.err
3501   rm -f conftest.er1
3502   cat conftest.err >&5
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } && {
3505          test -z "$ac_c_werror_flag" ||
3506          test ! -s conftest.err
3507        } && test -s conftest.$ac_objext; then
3508   ac_cv_prog_cc_c89=$ac_arg
3509 else
3510   echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513         
3514 fi
3515
3516 rm -f core conftest.err conftest.$ac_objext 
3517   test "x$ac_cv_prog_cc_c89" != "xno" && break
3518 done
3519 rm -f conftest.$ac_ext
3520 CC=$ac_save_CC
3521
3522 fi
3523 # AC_CACHE_VAL
3524 case "x$ac_cv_prog_cc_c89" in
3525   x)
3526     { echo "$as_me:$LINENO: result: none needed" >&5
3527 echo "${ECHO_T}none needed" >&6; } ;;
3528   xno)
3529     { echo "$as_me:$LINENO: result: unsupported" >&5
3530 echo "${ECHO_T}unsupported" >&6; } ;;
3531   *)
3532     CC="$CC $ac_cv_prog_cc_c89"
3533     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3534 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3535 esac
3536
3537
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543
3544 depcc="$CC"   am_compiler_list=
3545
3546 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3547 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3548 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3552   # We make a subdir and do the tests there.  Otherwise we can end up
3553   # making bogus files that we don't know about and never remove.  For
3554   # instance it was reported that on HP-UX the gcc test will end up
3555   # making a dummy file named `D' -- because `-MD' means `put the output
3556   # in D'.
3557   mkdir conftest.dir
3558   # Copy depcomp to subdir because otherwise we won't find it if we're
3559   # using a relative directory.
3560   cp "$am_depcomp" conftest.dir
3561   cd conftest.dir
3562   # We will build objects and dependencies in a subdirectory because
3563   # it helps to detect inapplicable dependency modes.  For instance
3564   # both Tru64's cc and ICC support -MD to output dependencies as a
3565   # side effect of compilation, but ICC will put the dependencies in
3566   # the current directory while Tru64 will put them in the object
3567   # directory.
3568   mkdir sub
3569
3570   am_cv_CC_dependencies_compiler_type=none
3571   if test "$am_compiler_list" = ""; then
3572      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3573   fi
3574   for depmode in $am_compiler_list; do
3575     # Setup a source with many dependencies, because some compilers
3576     # like to wrap large dependency lists on column 80 (with \), and
3577     # we should not choose a depcomp mode which is confused by this.
3578     #
3579     # We need to recreate these files for each test, as the compiler may
3580     # overwrite some of them when testing with obscure command lines.
3581     # This happens at least with the AIX C compiler.
3582     : > sub/conftest.c
3583     for i in 1 2 3 4 5 6; do
3584       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3585       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3586       # Solaris 8's {/usr,}/bin/sh.
3587       touch sub/conftst$i.h
3588     done
3589     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3590
3591     case $depmode in
3592     nosideeffect)
3593       # after this tag, mechanisms are not by side-effect, so they'll
3594       # only be used when explicitly requested
3595       if test "x$enable_dependency_tracking" = xyes; then
3596         continue
3597       else
3598         break
3599       fi
3600       ;;
3601     none) break ;;
3602     esac
3603     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3604     # mode.  It turns out that the SunPro C++ compiler does not properly
3605     # handle `-M -o', and we need to detect this.
3606     if depmode=$depmode \
3607        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3608        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3609        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3610          >/dev/null 2>conftest.err &&
3611        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3612        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3613        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3614        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3615       # icc doesn't choke on unknown options, it will just issue warnings
3616       # or remarks (even with -Werror).  So we grep stderr for any message
3617       # that says an option was ignored or not supported.
3618       # When given -MP, icc 7.0 and 7.1 complain thusly:
3619       #   icc: Command line warning: ignoring option '-M'; no argument required
3620       # The diagnosis changed in icc 8.0:
3621       #   icc: Command line remark: option '-MP' not supported
3622       if (grep 'ignoring option' conftest.err ||
3623           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3624         am_cv_CC_dependencies_compiler_type=$depmode
3625         break
3626       fi
3627     fi
3628   done
3629
3630   cd ..
3631   rm -rf conftest.dir
3632 else
3633   am_cv_CC_dependencies_compiler_type=none
3634 fi
3635
3636 fi
3637 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3638 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3640
3641  if 
3642   test "x$enable_dependency_tracking" != xno \
3643   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3644   am__fastdepCC_TRUE=
3645   am__fastdepCC_FALSE='#'
3646 else
3647   am__fastdepCC_TRUE='#'
3648   am__fastdepCC_FALSE=
3649 fi
3650
3651
3652 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3653 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3654 if test "${lt_cv_path_SED+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   # Loop through the user's path and test for sed and gsed.
3658 # Then use that list of sed's as ones to test for truncation.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664   for lt_ac_prog in sed gsed; do
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3667         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3668       fi
3669     done
3670   done
3671 done
3672 IFS=$as_save_IFS
3673 lt_ac_max=0
3674 lt_ac_count=0
3675 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3676 # along with /bin/sed that truncates output.
3677 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3678   test ! -f $lt_ac_sed && continue
3679   cat /dev/null > conftest.in
3680   lt_ac_count=0
3681   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3682   # Check for GNU sed and select it if it is found.
3683   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3684     lt_cv_path_SED=$lt_ac_sed
3685     break
3686   fi
3687   while true; do
3688     cat conftest.in conftest.in >conftest.tmp
3689     mv conftest.tmp conftest.in
3690     cp conftest.in conftest.nl
3691     echo >>conftest.nl
3692     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3693     cmp -s conftest.out conftest.nl || break
3694     # 10000 chars as input seems more than enough
3695     test $lt_ac_count -gt 10 && break
3696     lt_ac_count=`expr $lt_ac_count + 1`
3697     if test $lt_ac_count -gt $lt_ac_max; then
3698       lt_ac_max=$lt_ac_count
3699       lt_cv_path_SED=$lt_ac_sed
3700     fi
3701   done
3702 done
3703
3704 fi
3705
3706 SED=$lt_cv_path_SED
3707
3708 { echo "$as_me:$LINENO: result: $SED" >&5
3709 echo "${ECHO_T}$SED" >&6; }
3710
3711 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3712 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3713 if test "${ac_cv_path_GREP+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   # Extract the first word of "grep ggrep" to use in msg output
3717 if test -z "$GREP"; then
3718 set dummy grep ggrep; ac_prog_name=$2
3719 if test "${ac_cv_path_GREP+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   ac_path_GREP_found=false
3723 # Loop through the user's path and test for each of PROGNAME-LIST
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729   for ac_prog in grep ggrep; do
3730   for ac_exec_ext in '' $ac_executable_extensions; do
3731     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3732     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3733     # Check for GNU ac_path_GREP and select it if it is found.
3734   # Check for GNU $ac_path_GREP
3735 case `"$ac_path_GREP" --version 2>&1` in
3736 *GNU*)
3737   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3738 *)
3739   ac_count=0
3740   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3741   while :
3742   do
3743     cat "conftest.in" "conftest.in" >"conftest.tmp"
3744     mv "conftest.tmp" "conftest.in"
3745     cp "conftest.in" "conftest.nl"
3746     echo 'GREP' >> "conftest.nl"
3747     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749     ac_count=`expr $ac_count + 1`
3750     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3751       # Best one so far, save it but keep looking for a better one
3752       ac_cv_path_GREP="$ac_path_GREP"
3753       ac_path_GREP_max=$ac_count
3754     fi
3755     # 10*(2^10) chars as input seems more than enough
3756     test $ac_count -gt 10 && break
3757   done
3758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759 esac
3760
3761
3762     $ac_path_GREP_found && break 3
3763   done
3764 done
3765
3766 done
3767 IFS=$as_save_IFS
3768
3769
3770 fi
3771
3772 GREP="$ac_cv_path_GREP"
3773 if test -z "$GREP"; then
3774   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3776    { (exit 1); exit 1; }; }
3777 fi
3778
3779 else
3780   ac_cv_path_GREP=$GREP
3781 fi
3782
3783
3784 fi
3785 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3786 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3787  GREP="$ac_cv_path_GREP"
3788  
3789
3790 { echo "$as_me:$LINENO: checking for egrep" >&5
3791 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_EGREP+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3796    then ac_cv_path_EGREP="$GREP -E"
3797    else
3798      # Extract the first word of "egrep" to use in msg output
3799 if test -z "$EGREP"; then
3800 set dummy egrep; ac_prog_name=$2
3801 if test "${ac_cv_path_EGREP+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   ac_path_EGREP_found=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811   for ac_prog in egrep; do
3812   for ac_exec_ext in '' $ac_executable_extensions; do
3813     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3814     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3815     # Check for GNU ac_path_EGREP and select it if it is found.
3816   # Check for GNU $ac_path_EGREP
3817 case `"$ac_path_EGREP" --version 2>&1` in
3818 *GNU*)
3819   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3820 *)
3821   ac_count=0
3822   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3823   while :
3824   do
3825     cat "conftest.in" "conftest.in" >"conftest.tmp"
3826     mv "conftest.tmp" "conftest.in"
3827     cp "conftest.in" "conftest.nl"
3828     echo 'EGREP' >> "conftest.nl"
3829     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831     ac_count=`expr $ac_count + 1`
3832     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3833       # Best one so far, save it but keep looking for a better one
3834       ac_cv_path_EGREP="$ac_path_EGREP"
3835       ac_path_EGREP_max=$ac_count
3836     fi
3837     # 10*(2^10) chars as input seems more than enough
3838     test $ac_count -gt 10 && break
3839   done
3840   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 esac
3842
3843
3844     $ac_path_EGREP_found && break 3
3845   done
3846 done
3847
3848 done
3849 IFS=$as_save_IFS
3850
3851
3852 fi
3853
3854 EGREP="$ac_cv_path_EGREP"
3855 if test -z "$EGREP"; then
3856   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3857 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3858    { (exit 1); exit 1; }; }
3859 fi
3860
3861 else
3862   ac_cv_path_EGREP=$EGREP
3863 fi
3864
3865
3866    fi
3867 fi
3868 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3869 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3870  EGREP="$ac_cv_path_EGREP"
3871  
3872
3873
3874 # Check whether --with-gnu-ld was given.
3875 if test "${with_gnu_ld+set}" = set; then
3876   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3877 else
3878   with_gnu_ld=no
3879 fi
3880
3881 ac_prog=ld
3882 if test "$GCC" = yes; then
3883   # Check if gcc -print-prog-name=ld gives a path.
3884   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3885 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3886   case $host in
3887   *-*-mingw*)
3888     # gcc leaves a trailing carriage return which upsets mingw
3889     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3890   *)
3891     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3892   esac
3893   case $ac_prog in
3894     # Accept absolute paths.
3895     [\\/]* | ?:[\\/]*)
3896       re_direlt='/[^/][^/]*/\.\./'
3897       # Canonicalize the pathname of ld
3898       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3899       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3900         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3901       done
3902       test -z "$LD" && LD="$ac_prog"
3903       ;;
3904   "")
3905     # If it fails, then pretend we aren't using GCC.
3906     ac_prog=ld
3907     ;;
3908   *)
3909     # If it is relative, then search for the first ld in PATH.
3910     with_gnu_ld=unknown
3911     ;;
3912   esac
3913 elif test "$with_gnu_ld" = yes; then
3914   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3915 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3916 else
3917   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3918 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3919 fi
3920 if test "${lt_cv_path_LD+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   if test -z "$LD"; then
3924   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3925   for ac_dir in $PATH; do
3926     IFS="$lt_save_ifs"
3927     test -z "$ac_dir" && ac_dir=.
3928     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3929       lt_cv_path_LD="$ac_dir/$ac_prog"
3930       # Check to see if the program is GNU ld.  I'd rather use --version,
3931       # but apparently some variants of GNU ld only accept -v.
3932       # Break only if it was the GNU/non-GNU ld that we prefer.
3933       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3934       *GNU* | *'with BFD'*)
3935         test "$with_gnu_ld" != no && break
3936         ;;
3937       *)
3938         test "$with_gnu_ld" != yes && break
3939         ;;
3940       esac
3941     fi
3942   done
3943   IFS="$lt_save_ifs"
3944 else
3945   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3946 fi
3947 fi
3948
3949 LD="$lt_cv_path_LD"
3950 if test -n "$LD"; then
3951   { echo "$as_me:$LINENO: result: $LD" >&5
3952 echo "${ECHO_T}$LD" >&6; }
3953 else
3954   { echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6; }
3956 fi
3957 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3958 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3959    { (exit 1); exit 1; }; }
3960 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3961 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3962 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3966 case `$LD -v 2>&1 </dev/null` in
3967 *GNU* | *'with BFD'*)
3968   lt_cv_prog_gnu_ld=yes
3969   ;;
3970 *)
3971   lt_cv_prog_gnu_ld=no
3972   ;;
3973 esac
3974 fi
3975 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3976 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3977 with_gnu_ld=$lt_cv_prog_gnu_ld
3978
3979
3980 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3981 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3982 if test "${lt_cv_ld_reload_flag+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   lt_cv_ld_reload_flag='-r'
3986 fi
3987 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3988 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3989 reload_flag=$lt_cv_ld_reload_flag
3990 case $reload_flag in
3991 "" | " "*) ;;
3992 *) reload_flag=" $reload_flag" ;;
3993 esac
3994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3995 case $host_os in
3996   darwin*)
3997     if test "$GCC" = yes; then
3998       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3999     else
4000       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4001     fi
4002     ;;
4003 esac
4004
4005 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4006 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4007 if test "${lt_cv_path_NM+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   if test -n "$NM"; then
4011   # Let the user override the test.
4012   lt_cv_path_NM="$NM"
4013 else
4014   lt_nm_to_check="${ac_tool_prefix}nm"
4015   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4016     lt_nm_to_check="$lt_nm_to_check nm"
4017   fi
4018   for lt_tmp_nm in $lt_nm_to_check; do
4019     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4020     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4021       IFS="$lt_save_ifs"
4022       test -z "$ac_dir" && ac_dir=.
4023       tmp_nm="$ac_dir/$lt_tmp_nm"
4024       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4025         # Check to see if the nm accepts a BSD-compat flag.
4026         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4027         #   nm: unknown option "B" ignored
4028         # Tru64's nm complains that /dev/null is an invalid object file
4029         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4030         */dev/null* | *'Invalid file or object type'*)
4031           lt_cv_path_NM="$tmp_nm -B"
4032           break
4033           ;;
4034         *)
4035           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4036           */dev/null*)
4037             lt_cv_path_NM="$tmp_nm -p"
4038             break
4039             ;;
4040           *)
4041             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4042             continue # so that we can try to find one that supports BSD flags
4043             ;;
4044           esac
4045           ;;
4046         esac
4047       fi
4048     done
4049     IFS="$lt_save_ifs"
4050   done
4051   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4052 fi
4053 fi
4054 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4055 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4056 NM="$lt_cv_path_NM"
4057
4058 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4059 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4060 LN_S=$as_ln_s
4061 if test "$LN_S" = "ln -s"; then
4062   { echo "$as_me:$LINENO: result: yes" >&5
4063 echo "${ECHO_T}yes" >&6; }
4064 else
4065   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4066 echo "${ECHO_T}no, using $LN_S" >&6; }
4067 fi
4068
4069 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4070 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4071 if test "${lt_cv_deplibs_check_method+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   lt_cv_file_magic_cmd='$MAGIC_CMD'
4075 lt_cv_file_magic_test_file=
4076 lt_cv_deplibs_check_method='unknown'
4077 # Need to set the preceding variable on all platforms that support
4078 # interlibrary dependencies.
4079 # 'none' -- dependencies not supported.
4080 # `unknown' -- same as none, but documents that we really don't know.
4081 # 'pass_all' -- all dependencies passed with no checks.
4082 # 'test_compile' -- check by making test program.
4083 # 'file_magic [[regex]]' -- check by looking for files in library path
4084 # which responds to the $file_magic_cmd with a given extended regex.
4085 # If you have `file' or equivalent on your system and you're not sure
4086 # whether `pass_all' will *always* work, you probably want this one.
4087
4088 case $host_os in
4089 aix4* | aix5*)
4090   lt_cv_deplibs_check_method=pass_all
4091   ;;
4092
4093 beos*)
4094   lt_cv_deplibs_check_method=pass_all
4095   ;;
4096
4097 bsdi[45]*)
4098   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4099   lt_cv_file_magic_cmd='/usr/bin/file -L'
4100   lt_cv_file_magic_test_file=/shlib/libc.so
4101   ;;
4102
4103 cygwin*)
4104   # func_win32_libid is a shell function defined in ltmain.sh
4105   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4106   lt_cv_file_magic_cmd='func_win32_libid'
4107   ;;
4108
4109 mingw* | pw32*)
4110   # Base MSYS/MinGW do not provide the 'file' command needed by
4111   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4112   # unless we find 'file', for example because we are cross-compiling.
4113   if ( file / ) >/dev/null 2>&1; then
4114     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4115     lt_cv_file_magic_cmd='func_win32_libid'
4116   else
4117     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4118     lt_cv_file_magic_cmd='$OBJDUMP -f'
4119   fi
4120   ;;
4121
4122 darwin* | rhapsody*)
4123   lt_cv_deplibs_check_method=pass_all
4124   ;;
4125
4126 freebsd* | dragonfly*)
4127   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4128     case $host_cpu in
4129     i*86 )
4130       # Not sure whether the presence of OpenBSD here was a mistake.
4131       # Let's accept both of them until this is cleared up.
4132       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4133       lt_cv_file_magic_cmd=/usr/bin/file
4134       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4135       ;;
4136     esac
4137   else
4138     lt_cv_deplibs_check_method=pass_all
4139   fi
4140   ;;
4141
4142 gnu*)
4143   lt_cv_deplibs_check_method=pass_all
4144   ;;
4145
4146 hpux10.20* | hpux11*)
4147   lt_cv_file_magic_cmd=/usr/bin/file
4148   case $host_cpu in
4149   ia64*)
4150     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4151     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4152     ;;
4153   hppa*64*)
4154     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]'
4155     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4156     ;;
4157   *)
4158     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4159     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4160     ;;
4161   esac
4162   ;;
4163
4164 interix[3-9]*)
4165   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4166   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4167   ;;
4168
4169 irix5* | irix6* | nonstopux*)
4170   case $LD in
4171   *-32|*"-32 ") libmagic=32-bit;;
4172   *-n32|*"-n32 ") libmagic=N32;;
4173   *-64|*"-64 ") libmagic=64-bit;;
4174   *) libmagic=never-match;;
4175   esac
4176   lt_cv_deplibs_check_method=pass_all
4177   ;;
4178
4179 # This must be Linux ELF.
4180 linux* | k*bsd*-gnu)
4181   lt_cv_deplibs_check_method=pass_all
4182   ;;
4183
4184 netbsd*)
4185   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4186     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4187   else
4188     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4189   fi
4190   ;;
4191
4192 newos6*)
4193   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4194   lt_cv_file_magic_cmd=/usr/bin/file
4195   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4196   ;;
4197
4198 nto-qnx*)
4199   lt_cv_deplibs_check_method=unknown
4200   ;;
4201
4202 openbsd*)
4203   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4204     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4205   else
4206     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4207   fi
4208   ;;
4209
4210 osf3* | osf4* | osf5*)
4211   lt_cv_deplibs_check_method=pass_all
4212   ;;
4213
4214 rdos*)
4215   lt_cv_deplibs_check_method=pass_all
4216   ;;
4217
4218 solaris*)
4219   lt_cv_deplibs_check_method=pass_all
4220   ;;
4221
4222 sysv4 | sysv4.3*)
4223   case $host_vendor in
4224   motorola)
4225     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]'
4226     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4227     ;;
4228   ncr)
4229     lt_cv_deplibs_check_method=pass_all
4230     ;;
4231   sequent)
4232     lt_cv_file_magic_cmd='/bin/file'
4233     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4234     ;;
4235   sni)
4236     lt_cv_file_magic_cmd='/bin/file'
4237     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4238     lt_cv_file_magic_test_file=/lib/libc.so
4239     ;;
4240   siemens)
4241     lt_cv_deplibs_check_method=pass_all
4242     ;;
4243   pc)
4244     lt_cv_deplibs_check_method=pass_all
4245     ;;
4246   esac
4247   ;;
4248
4249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4250   lt_cv_deplibs_check_method=pass_all
4251   ;;
4252 esac
4253
4254 fi
4255 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4256 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4257 file_magic_cmd=$lt_cv_file_magic_cmd
4258 deplibs_check_method=$lt_cv_deplibs_check_method
4259 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4260
4261
4262
4263
4264 # If no C compiler was specified, use CC.
4265 LTCC=${LTCC-"$CC"}
4266
4267 # If no C compiler flags were specified, use CFLAGS.
4268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4269
4270 # Allow CC to be a program name with arguments.
4271 compiler=$CC
4272
4273
4274 # Check whether --enable-libtool-lock was given.
4275 if test "${enable_libtool_lock+set}" = set; then
4276   enableval=$enable_libtool_lock; 
4277 fi
4278
4279 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4280
4281 # Some flags need to be propagated to the compiler or linker for good
4282 # libtool support.
4283 case $host in
4284 ia64-*-hpux*)
4285   # Find out which ABI we are using.
4286   echo 'int i;' > conftest.$ac_ext
4287   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288   (eval $ac_compile) 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; then
4292     case `/usr/bin/file conftest.$ac_objext` in
4293     *ELF-32*)
4294       HPUX_IA64_MODE="32"
4295       ;;
4296     *ELF-64*)
4297       HPUX_IA64_MODE="64"
4298       ;;
4299     esac
4300   fi
4301   rm -rf conftest*
4302   ;;
4303 *-*-irix6*)
4304   # Find out which ABI we are using.
4305   echo '#line __oline__ "configure"' > conftest.$ac_ext
4306   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307   (eval $ac_compile) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; then
4311    if test "$lt_cv_prog_gnu_ld" = yes; then
4312     case `/usr/bin/file conftest.$ac_objext` in
4313     *32-bit*)
4314       LD="${LD-ld} -melf32bsmip"
4315       ;;
4316     *N32*)
4317       LD="${LD-ld} -melf32bmipn32"
4318       ;;
4319     *64-bit*)
4320       LD="${LD-ld} -melf64bmip"
4321       ;;
4322     esac
4323    else
4324     case `/usr/bin/file conftest.$ac_objext` in
4325     *32-bit*)
4326       LD="${LD-ld} -32"
4327       ;;
4328     *N32*)
4329       LD="${LD-ld} -n32"
4330       ;;
4331     *64-bit*)
4332       LD="${LD-ld} -64"
4333       ;;
4334     esac
4335    fi
4336   fi
4337   rm -rf conftest*
4338   ;;
4339
4340 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4341 s390*-*linux*|sparc*-*linux*)
4342   # Find out which ABI we are using.
4343   echo 'int i;' > conftest.$ac_ext
4344   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; then
4349     case `/usr/bin/file conftest.o` in
4350     *32-bit*)
4351       case $host in
4352         x86_64-*kfreebsd*-gnu)
4353           LD="${LD-ld} -m elf_i386_fbsd"
4354           ;;
4355         x86_64-*linux*)
4356           LD="${LD-ld} -m elf_i386"
4357           ;;
4358         ppc64-*linux*|powerpc64-*linux*)
4359           LD="${LD-ld} -m elf32ppclinux"
4360           ;;
4361         s390x-*linux*)
4362           LD="${LD-ld} -m elf_s390"
4363           ;;
4364         sparc64-*linux*)
4365           LD="${LD-ld} -m elf32_sparc"
4366           ;;
4367       esac
4368       ;;
4369     *64-bit*)
4370       case $host in
4371         x86_64-*kfreebsd*-gnu)
4372           LD="${LD-ld} -m elf_x86_64_fbsd"
4373           ;;
4374         x86_64-*linux*)
4375           LD="${LD-ld} -m elf_x86_64"
4376           ;;
4377         ppc*-*linux*|powerpc*-*linux*)
4378           LD="${LD-ld} -m elf64ppc"
4379           ;;
4380         s390*-*linux*)
4381           LD="${LD-ld} -m elf64_s390"
4382           ;;
4383         sparc*-*linux*)
4384           LD="${LD-ld} -m elf64_sparc"
4385           ;;
4386       esac
4387       ;;
4388     esac
4389   fi
4390   rm -rf conftest*
4391   ;;
4392
4393 *-*-sco3.2v5*)
4394   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4395   SAVE_CFLAGS="$CFLAGS"
4396   CFLAGS="$CFLAGS -belf"
4397   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4398 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4399 if test "${lt_cv_cc_needs_belf+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
4408      cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414
4415 int
4416 main ()
4417 {
4418
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext conftest$ac_exeext
4424 if { (ac_try="$ac_link"
4425 case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430   (eval "$ac_link") 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } && {
4437          test -z "$ac_c_werror_flag" ||
4438          test ! -s conftest.err
4439        } && test -s conftest$ac_exeext &&
4440        $as_test_x conftest$ac_exeext; then
4441   lt_cv_cc_needs_belf=yes
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446         lt_cv_cc_needs_belf=no
4447 fi
4448
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450       conftest$ac_exeext conftest.$ac_ext
4451      ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456
4457 fi
4458 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4459 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4460   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4461     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4462     CFLAGS="$SAVE_CFLAGS"
4463   fi
4464   ;;
4465 sparc*-*solaris*)
4466   # Find out which ABI we are using.
4467   echo 'int i;' > conftest.$ac_ext
4468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469   (eval $ac_compile) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; then
4473     case `/usr/bin/file conftest.o` in
4474     *64-bit*)
4475       case $lt_cv_prog_gnu_ld in
4476       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4477       *)    LD="${LD-ld} -64" ;;
4478       esac
4479       ;;
4480     esac
4481   fi
4482   rm -rf conftest*
4483   ;;
4484
4485
4486 esac
4487
4488 need_locks="$enable_libtool_lock"
4489
4490
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4498 # On Suns, sometimes $CPP names a directory.
4499 if test -n "$CPP" && test -d "$CPP"; then
4500   CPP=
4501 fi
4502 if test -z "$CPP"; then
4503   if test "${ac_cv_prog_CPP+set}" = set; then
4504   echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506       # Double quotes because CPP needs to be expanded
4507     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4508     do
4509       ac_preproc_ok=false
4510 for ac_c_preproc_warn_flag in '' yes
4511 do
4512   # Use a header file that comes with gcc, so configuring glibc
4513   # with a fresh cross-compiler works.
4514   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4515   # <limits.h> exists even on freestanding compilers.
4516   # On the NeXT, cc -E runs the code through the compiler's parser,
4517   # not just through cpp. "Syntax error" is here to catch this case.
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 @%:@ifdef __STDC__
4525 @%:@ include <limits.h>
4526 @%:@else
4527 @%:@ include <assert.h>
4528 @%:@endif
4529                      Syntax error
4530 _ACEOF
4531 if { (ac_try="$ac_cpp conftest.$ac_ext"
4532 case "(($ac_try" in
4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534   *) ac_try_echo=$ac_try;;
4535 esac
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4538   ac_status=$?
4539   grep -v '^ *+' conftest.er1 >conftest.err
4540   rm -f conftest.er1
4541   cat conftest.err >&5
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } >/dev/null && {
4544          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4545          test ! -s conftest.err
4546        }; then
4547   :
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552   # Broken: fails on valid input.
4553 continue
4554 fi
4555
4556 rm -f conftest.err conftest.$ac_ext
4557
4558   # OK, works on sane cases.  Now check whether nonexistent headers
4559   # can be detected and how.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 @%:@include <ac_nonexistent.h>
4567 _ACEOF
4568 if { (ac_try="$ac_cpp conftest.$ac_ext"
4569 case "(($ac_try" in
4570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571   *) ac_try_echo=$ac_try;;
4572 esac
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4575   ac_status=$?
4576   grep -v '^ *+' conftest.er1 >conftest.err
4577   rm -f conftest.er1
4578   cat conftest.err >&5
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } >/dev/null && {
4581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4582          test ! -s conftest.err
4583        }; then
4584   # Broken: success on invalid input.
4585 continue
4586 else
4587   echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590   # Passes both tests.
4591 ac_preproc_ok=:
4592 break
4593 fi
4594
4595 rm -f conftest.err conftest.$ac_ext
4596
4597 done
4598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599 rm -f conftest.err conftest.$ac_ext
4600 if $ac_preproc_ok; then
4601   break
4602 fi
4603
4604     done
4605     ac_cv_prog_CPP=$CPP
4606   
4607 fi
4608   CPP=$ac_cv_prog_CPP
4609 else
4610   ac_cv_prog_CPP=$CPP
4611 fi
4612 { echo "$as_me:$LINENO: result: $CPP" >&5
4613 echo "${ECHO_T}$CPP" >&6; }
4614 ac_preproc_ok=false
4615 for ac_c_preproc_warn_flag in '' yes
4616 do
4617   # Use a header file that comes with gcc, so configuring glibc
4618   # with a fresh cross-compiler works.
4619   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4620   # <limits.h> exists even on freestanding compilers.
4621   # On the NeXT, cc -E runs the code through the compiler's parser,
4622   # not just through cpp. "Syntax error" is here to catch this case.
4623   cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h.  */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h.  */
4629 @%:@ifdef __STDC__
4630 @%:@ include <limits.h>
4631 @%:@else
4632 @%:@ include <assert.h>
4633 @%:@endif
4634                      Syntax error
4635 _ACEOF
4636 if { (ac_try="$ac_cpp conftest.$ac_ext"
4637 case "(($ac_try" in
4638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639   *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } >/dev/null && {
4649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4650          test ! -s conftest.err
4651        }; then
4652   :
4653 else
4654   echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657   # Broken: fails on valid input.
4658 continue
4659 fi
4660
4661 rm -f conftest.err conftest.$ac_ext
4662
4663   # OK, works on sane cases.  Now check whether nonexistent headers
4664   # can be detected and how.
4665   cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h.  */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h.  */
4671 @%:@include <ac_nonexistent.h>
4672 _ACEOF
4673 if { (ac_try="$ac_cpp conftest.$ac_ext"
4674 case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } >/dev/null && {
4686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4687          test ! -s conftest.err
4688        }; then
4689   # Broken: success on invalid input.
4690 continue
4691 else
4692   echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695   # Passes both tests.
4696 ac_preproc_ok=:
4697 break
4698 fi
4699
4700 rm -f conftest.err conftest.$ac_ext
4701
4702 done
4703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4704 rm -f conftest.err conftest.$ac_ext
4705 if $ac_preproc_ok; then
4706   :
4707 else
4708   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4711 See \`config.log' for more details." >&2;}
4712    { (exit 1); exit 1; }; }
4713 fi
4714
4715 ac_ext=c
4716 ac_cpp='$CPP $CPPFLAGS'
4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720
4721
4722 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4723 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4724 if test "${ac_cv_header_stdc+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 #include <stdlib.h>
4734 #include <stdarg.h>
4735 #include <string.h>
4736 #include <float.h>
4737
4738 int
4739 main ()
4740 {
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (ac_try="$ac_compile"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_compile") 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } && {
4760          test -z "$ac_c_werror_flag" ||
4761          test ! -s conftest.err
4762        } && test -s conftest.$ac_objext; then
4763   ac_cv_header_stdc=yes
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768         ac_cv_header_stdc=no
4769 fi
4770
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772
4773 if test $ac_cv_header_stdc = yes; then
4774   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4775   cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781 #include <string.h>
4782
4783 _ACEOF
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785   $EGREP "memchr" >/dev/null 2>&1; then
4786   :
4787 else
4788   ac_cv_header_stdc=no
4789 fi
4790 rm -f conftest*
4791
4792 fi
4793
4794 if test $ac_cv_header_stdc = yes; then
4795   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796   cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 #include <stdlib.h>
4803
4804 _ACEOF
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806   $EGREP "free" >/dev/null 2>&1; then
4807   :
4808 else
4809   ac_cv_header_stdc=no
4810 fi
4811 rm -f conftest*
4812
4813 fi
4814
4815 if test $ac_cv_header_stdc = yes; then
4816   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4817   if test "$cross_compiling" = yes; then
4818   :
4819 else
4820   cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h.  */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h.  */
4826 #include <ctype.h>
4827 #include <stdlib.h>
4828 #if ((' ' & 0x0FF) == 0x020)
4829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4831 #else
4832 # define ISLOWER(c) \
4833                    (('a' <= (c) && (c) <= 'i') \
4834                      || ('j' <= (c) && (c) <= 'r') \
4835                      || ('s' <= (c) && (c) <= 'z'))
4836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4837 #endif
4838
4839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4840 int
4841 main ()
4842 {
4843   int i;
4844   for (i = 0; i < 256; i++)
4845     if (XOR (islower (i), ISLOWER (i))
4846         || toupper (i) != TOUPPER (i))
4847       return 2;
4848   return 0;
4849 }
4850 _ACEOF
4851 rm -f conftest$ac_exeext
4852 if { (ac_try="$ac_link"
4853 case "(($ac_try" in
4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855   *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858   (eval "$ac_link") 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4862   { (case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867   (eval "$ac_try") 2>&5
4868   ac_status=$?
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); }; }; then
4871   :
4872 else
4873   echo "$as_me: program exited with status $ac_status" >&5
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ( exit $ac_status )
4878 ac_cv_header_stdc=no
4879 fi
4880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4881 fi
4882
4883
4884 fi
4885 fi
4886 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4887 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4888 if test $ac_cv_header_stdc = yes; then
4889   
4890 cat >>confdefs.h <<\_ACEOF
4891 @%:@define STDC_HEADERS 1
4892 _ACEOF
4893
4894 fi
4895
4896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4907                   inttypes.h stdint.h unistd.h
4908 do
4909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915   cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921 $ac_includes_default
4922
4923 @%:@include <$ac_header>
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4927 case "(($ac_try" in
4928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929   *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932   (eval "$ac_compile") 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } && {
4939          test -z "$ac_c_werror_flag" ||
4940          test ! -s conftest.err
4941        } && test -s conftest.$ac_objext; then
4942   eval "$as_ac_Header=yes"
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947         eval "$as_ac_Header=no"
4948 fi
4949
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 ac_res=`eval echo '${'$as_ac_Header'}'`
4953                { echo "$as_me:$LINENO: result: $ac_res" >&5
4954 echo "${ECHO_T}$ac_res" >&6; }
4955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4956   cat >>confdefs.h <<_ACEOF
4957 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4958 _ACEOF
4959  
4960 fi
4961
4962 done
4963
4964
4965
4966 for ac_header in dlfcn.h
4967 do
4968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4970   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 fi
4975 ac_res=`eval echo '${'$as_ac_Header'}'`
4976                { echo "$as_me:$LINENO: result: $ac_res" >&5
4977 echo "${ECHO_T}$ac_res" >&6; }
4978 else
4979   # Is the header compilable?
4980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 $ac_includes_default
4989 @%:@include <$ac_header>
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995   *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998   (eval "$ac_compile") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } && {
5005          test -z "$ac_c_werror_flag" ||
5006          test ! -s conftest.err
5007        } && test -s conftest.$ac_objext; then
5008   ac_header_compiler=yes
5009 else
5010   echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013         ac_header_compiler=no
5014 fi
5015
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5018 echo "${ECHO_T}$ac_header_compiler" >&6; }
5019
5020 # Is the header present?
5021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 @%:@include <$ac_header>
5030 _ACEOF
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5032 case "(($ac_try" in
5033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034   *) ac_try_echo=$ac_try;;
5035 esac
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5038   ac_status=$?
5039   grep -v '^ *+' conftest.er1 >conftest.err
5040   rm -f conftest.er1
5041   cat conftest.err >&5
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); } >/dev/null && {
5044          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5045          test ! -s conftest.err
5046        }; then
5047   ac_header_preproc=yes
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052   ac_header_preproc=no
5053 fi
5054
5055 rm -f conftest.err conftest.$ac_ext
5056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5057 echo "${ECHO_T}$ac_header_preproc" >&6; }
5058
5059 # So?  What about this header?
5060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5061   yes:no: )
5062     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5066     ac_header_preproc=yes
5067     ;;
5068   no:yes:* )
5069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5071     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5072 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5073     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5075     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5076 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5079     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5081     
5082     ;;
5083 esac
5084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   eval "$as_ac_Header=\$ac_header_preproc"
5090 fi
5091 ac_res=`eval echo '${'$as_ac_Header'}'`
5092                { echo "$as_me:$LINENO: result: $ac_res" >&5
5093 echo "${ECHO_T}$ac_res" >&6; }
5094
5095 fi
5096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5097   cat >>confdefs.h <<_ACEOF
5098 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5099 _ACEOF
5100  
5101 fi
5102
5103 done
5104
5105 ac_ext=cpp
5106 ac_cpp='$CXXCPP $CPPFLAGS'
5107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5110 if test -z "$CXX"; then
5111   if test -n "$CCC"; then
5112     CXX=$CCC
5113   else
5114     if test -n "$ac_tool_prefix"; then
5115   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5116   do
5117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5121 if test "${ac_cv_prog_CXX+set}" = set; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124   if test -n "$CXX"; then
5125   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132   for ac_exec_ext in '' $ac_executable_extensions; do
5133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 CXX=$ac_cv_prog_CXX
5145 if test -n "$CXX"; then
5146   { echo "$as_me:$LINENO: result: $CXX" >&5
5147 echo "${ECHO_T}$CXX" >&6; }
5148 else
5149   { echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6; }
5151 fi
5152
5153
5154     test -n "$CXX" && break
5155   done
5156 fi
5157 if test -z "$CXX"; then
5158   ac_ct_CXX=$CXX
5159   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5160 do
5161   # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   if test -n "$ac_ct_CXX"; then
5169   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   for ac_exec_ext in '' $ac_executable_extensions; do
5177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178     ac_cv_prog_ac_ct_CXX="$ac_prog"
5179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5189 if test -n "$ac_ct_CXX"; then
5190   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5191 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5192 else
5193   { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5195 fi
5196
5197
5198   test -n "$ac_ct_CXX" && break
5199 done
5200
5201   if test "x$ac_ct_CXX" = x; then
5202     CXX="g++"
5203   else
5204     case $cross_compiling:$ac_tool_warned in
5205 yes:)
5206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5207 whose name does not start with the host triplet.  If you think this
5208 configuration is useful to you, please write to autoconf@gnu.org." >&5
5209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5210 whose name does not start with the host triplet.  If you think this
5211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214     CXX=$ac_ct_CXX
5215   fi
5216 fi
5217
5218   fi
5219 fi
5220 # Provide some information about the compiler.
5221 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5222 ac_compiler=`set X $ac_compile; echo $2`
5223 { (ac_try="$ac_compiler --version >&5"
5224 case "(($ac_try" in
5225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226   *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229   (eval "$ac_compiler --version >&5") 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }
5233 { (ac_try="$ac_compiler -v >&5"
5234 case "(($ac_try" in
5235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236   *) ac_try_echo=$ac_try;;
5237 esac
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239   (eval "$ac_compiler -v >&5") 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }
5243 { (ac_try="$ac_compiler -V >&5"
5244 case "(($ac_try" in
5245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246   *) ac_try_echo=$ac_try;;
5247 esac
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249   (eval "$ac_compiler -V >&5") 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); }
5253
5254 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5255 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5256 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265
5266 int
5267 main ()
5268 {
5269 #ifndef __GNUC__
5270        choke me
5271 #endif
5272
5273   ;
5274   return 0;
5275 }
5276 _ACEOF
5277 rm -f conftest.$ac_objext
5278 if { (ac_try="$ac_compile"
5279 case "(($ac_try" in
5280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281   *) ac_try_echo=$ac_try;;
5282 esac
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284   (eval "$ac_compile") 2>conftest.er1
5285   ac_status=$?
5286   grep -v '^ *+' conftest.er1 >conftest.err
5287   rm -f conftest.er1
5288   cat conftest.err >&5
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } && {
5291          test -z "$ac_cxx_werror_flag" ||
5292          test ! -s conftest.err
5293        } && test -s conftest.$ac_objext; then
5294   ac_compiler_gnu=yes
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299         ac_compiler_gnu=no
5300 fi
5301
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5304
5305 fi
5306 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5307 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5308 GXX=`test $ac_compiler_gnu = yes && echo yes`
5309 ac_test_CXXFLAGS=${CXXFLAGS+set}
5310 ac_save_CXXFLAGS=$CXXFLAGS
5311 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5312 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5313 if test "${ac_cv_prog_cxx_g+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5317    ac_cxx_werror_flag=yes
5318    ac_cv_prog_cxx_g=no
5319    CXXFLAGS="-g"
5320    cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h.  */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h.  */
5326
5327 int
5328 main ()
5329 {
5330
5331   ;
5332   return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342   (eval "$ac_compile") 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } && {
5349          test -z "$ac_cxx_werror_flag" ||
5350          test ! -s conftest.err
5351        } && test -s conftest.$ac_objext; then
5352   ac_cv_prog_cxx_g=yes
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357         CXXFLAGS=""
5358       cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h.  */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h.  */
5364
5365 int
5366 main ()
5367 {
5368
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5375 case "(($ac_try" in
5376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377   *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380   (eval "$ac_compile") 2>conftest.er1
5381   ac_status=$?
5382   grep -v '^ *+' conftest.er1 >conftest.err
5383   rm -f conftest.er1
5384   cat conftest.err >&5
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } && {
5387          test -z "$ac_cxx_werror_flag" ||
5388          test ! -s conftest.err
5389        } && test -s conftest.$ac_objext; then
5390   :
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5396          CXXFLAGS="-g"
5397          cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403
5404 int
5405 main ()
5406 {
5407
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext
5413 if { (ac_try="$ac_compile"
5414 case "(($ac_try" in
5415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416   *) ac_try_echo=$ac_try;;
5417 esac
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419   (eval "$ac_compile") 2>conftest.er1
5420   ac_status=$?
5421   grep -v '^ *+' conftest.er1 >conftest.err
5422   rm -f conftest.er1
5423   cat conftest.err >&5
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } && {
5426          test -z "$ac_cxx_werror_flag" ||
5427          test ! -s conftest.err
5428        } && test -s conftest.$ac_objext; then
5429   ac_cv_prog_cxx_g=yes
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434         
5435 fi
5436
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 fi
5442
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5445 fi
5446 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5447 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5448 if test "$ac_test_CXXFLAGS" = set; then
5449   CXXFLAGS=$ac_save_CXXFLAGS
5450 elif test $ac_cv_prog_cxx_g = yes; then
5451   if test "$GXX" = yes; then
5452     CXXFLAGS="-g -O2"
5453   else
5454     CXXFLAGS="-g"
5455   fi
5456 else
5457   if test "$GXX" = yes; then
5458     CXXFLAGS="-O2"
5459   else
5460     CXXFLAGS=
5461   fi
5462 fi
5463 ac_ext=cpp
5464 ac_cpp='$CXXCPP $CPPFLAGS'
5465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5468
5469 depcc="$CXX"  am_compiler_list=
5470
5471 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5472 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5473 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5477   # We make a subdir and do the tests there.  Otherwise we can end up
5478   # making bogus files that we don't know about and never remove.  For
5479   # instance it was reported that on HP-UX the gcc test will end up
5480   # making a dummy file named `D' -- because `-MD' means `put the output
5481   # in D'.
5482   mkdir conftest.dir
5483   # Copy depcomp to subdir because otherwise we won't find it if we're
5484   # using a relative directory.
5485   cp "$am_depcomp" conftest.dir
5486   cd conftest.dir
5487   # We will build objects and dependencies in a subdirectory because
5488   # it helps to detect inapplicable dependency modes.  For instance
5489   # both Tru64's cc and ICC support -MD to output dependencies as a
5490   # side effect of compilation, but ICC will put the dependencies in
5491   # the current directory while Tru64 will put them in the object
5492   # directory.
5493   mkdir sub
5494
5495   am_cv_CXX_dependencies_compiler_type=none
5496   if test "$am_compiler_list" = ""; then
5497      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5498   fi
5499   for depmode in $am_compiler_list; do
5500     # Setup a source with many dependencies, because some compilers
5501     # like to wrap large dependency lists on column 80 (with \), and
5502     # we should not choose a depcomp mode which is confused by this.
5503     #
5504     # We need to recreate these files for each test, as the compiler may
5505     # overwrite some of them when testing with obscure command lines.
5506     # This happens at least with the AIX C compiler.
5507     : > sub/conftest.c
5508     for i in 1 2 3 4 5 6; do
5509       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5510       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5511       # Solaris 8's {/usr,}/bin/sh.
5512       touch sub/conftst$i.h
5513     done
5514     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5515
5516     case $depmode in
5517     nosideeffect)
5518       # after this tag, mechanisms are not by side-effect, so they'll
5519       # only be used when explicitly requested
5520       if test "x$enable_dependency_tracking" = xyes; then
5521         continue
5522       else
5523         break
5524       fi
5525       ;;
5526     none) break ;;
5527     esac
5528     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5529     # mode.  It turns out that the SunPro C++ compiler does not properly
5530     # handle `-M -o', and we need to detect this.
5531     if depmode=$depmode \
5532        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5533        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5534        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5535          >/dev/null 2>conftest.err &&
5536        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5537        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5538        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5539        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5540       # icc doesn't choke on unknown options, it will just issue warnings
5541       # or remarks (even with -Werror).  So we grep stderr for any message
5542       # that says an option was ignored or not supported.
5543       # When given -MP, icc 7.0 and 7.1 complain thusly:
5544       #   icc: Command line warning: ignoring option '-M'; no argument required
5545       # The diagnosis changed in icc 8.0:
5546       #   icc: Command line remark: option '-MP' not supported
5547       if (grep 'ignoring option' conftest.err ||
5548           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5549         am_cv_CXX_dependencies_compiler_type=$depmode
5550         break
5551       fi
5552     fi
5553   done
5554
5555   cd ..
5556   rm -rf conftest.dir
5557 else
5558   am_cv_CXX_dependencies_compiler_type=none
5559 fi
5560
5561 fi
5562 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5563 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5564 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5565
5566  if 
5567   test "x$enable_dependency_tracking" != xno \
5568   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5569   am__fastdepCXX_TRUE=
5570   am__fastdepCXX_FALSE='#'
5571 else
5572   am__fastdepCXX_TRUE='#'
5573   am__fastdepCXX_FALSE=
5574 fi
5575
5576
5577
5578
5579 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5580     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5581     (test "X$CXX" != "Xg++"))) ; then
5582   ac_ext=cpp
5583 ac_cpp='$CXXCPP $CPPFLAGS'
5584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5587 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5588 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5589 if test -z "$CXXCPP"; then
5590   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593       # Double quotes because CXXCPP needs to be expanded
5594     for CXXCPP in "$CXX -E" "/lib/cpp"
5595     do
5596       ac_preproc_ok=false
5597 for ac_cxx_preproc_warn_flag in '' yes
5598 do
5599   # Use a header file that comes with gcc, so configuring glibc
5600   # with a fresh cross-compiler works.
5601   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602   # <limits.h> exists even on freestanding compilers.
5603   # On the NeXT, cc -E runs the code through the compiler's parser,
5604   # not just through cpp. "Syntax error" is here to catch this case.
5605   cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 @%:@ifdef __STDC__
5612 @%:@ include <limits.h>
5613 @%:@else
5614 @%:@ include <assert.h>
5615 @%:@endif
5616                      Syntax error
5617 _ACEOF
5618 if { (ac_try="$ac_cpp conftest.$ac_ext"
5619 case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5625   ac_status=$?
5626   grep -v '^ *+' conftest.er1 >conftest.err
5627   rm -f conftest.er1
5628   cat conftest.err >&5
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } >/dev/null && {
5631          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5632          test ! -s conftest.err
5633        }; then
5634   :
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639   # Broken: fails on valid input.
5640 continue
5641 fi
5642
5643 rm -f conftest.err conftest.$ac_ext
5644
5645   # OK, works on sane cases.  Now check whether nonexistent headers
5646   # can be detected and how.
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653 @%:@include <ac_nonexistent.h>
5654 _ACEOF
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } >/dev/null && {
5668          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5669          test ! -s conftest.err
5670        }; then
5671   # Broken: success on invalid input.
5672 continue
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677   # Passes both tests.
5678 ac_preproc_ok=:
5679 break
5680 fi
5681
5682 rm -f conftest.err conftest.$ac_ext
5683
5684 done
5685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5686 rm -f conftest.err conftest.$ac_ext
5687 if $ac_preproc_ok; then
5688   break
5689 fi
5690
5691     done
5692     ac_cv_prog_CXXCPP=$CXXCPP
5693   
5694 fi
5695   CXXCPP=$ac_cv_prog_CXXCPP
5696 else
5697   ac_cv_prog_CXXCPP=$CXXCPP
5698 fi
5699 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5700 echo "${ECHO_T}$CXXCPP" >&6; }
5701 ac_preproc_ok=false
5702 for ac_cxx_preproc_warn_flag in '' yes
5703 do
5704   # Use a header file that comes with gcc, so configuring glibc
5705   # with a fresh cross-compiler works.
5706   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707   # <limits.h> exists even on freestanding compilers.
5708   # On the NeXT, cc -E runs the code through the compiler's parser,
5709   # not just through cpp. "Syntax error" is here to catch this case.
5710   cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716 @%:@ifdef __STDC__
5717 @%:@ include <limits.h>
5718 @%:@else
5719 @%:@ include <assert.h>
5720 @%:@endif
5721                      Syntax error
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726   *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } >/dev/null && {
5736          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5737          test ! -s conftest.err
5738        }; then
5739   :
5740 else
5741   echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744   # Broken: fails on valid input.
5745 continue
5746 fi
5747
5748 rm -f conftest.err conftest.$ac_ext
5749
5750   # OK, works on sane cases.  Now check whether nonexistent headers
5751   # can be detected and how.
5752   cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 @%:@include <ac_nonexistent.h>
5759 _ACEOF
5760 if { (ac_try="$ac_cpp conftest.$ac_ext"
5761 case "(($ac_try" in
5762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763   *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } >/dev/null && {
5773          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5774          test ! -s conftest.err
5775        }; then
5776   # Broken: success on invalid input.
5777 continue
5778 else
5779   echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782   # Passes both tests.
5783 ac_preproc_ok=:
5784 break
5785 fi
5786
5787 rm -f conftest.err conftest.$ac_ext
5788
5789 done
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.$ac_ext
5792 if $ac_preproc_ok; then
5793   :
5794 else
5795   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5796 See \`config.log' for more details." >&5
5797 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5798 See \`config.log' for more details." >&2;}
5799    { (exit 1); exit 1; }; }
5800 fi
5801
5802 ac_ext=cpp
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5807
5808 fi
5809
5810
5811 ac_ext=f
5812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5815 if test -n "$ac_tool_prefix"; then
5816   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
5817   do
5818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_F77+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$F77"; then
5826   ac_cv_prog_F77="$F77" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 F77=$ac_cv_prog_F77
5846 if test -n "$F77"; then
5847   { echo "$as_me:$LINENO: result: $F77" >&5
5848 echo "${ECHO_T}$F77" >&6; }
5849 else
5850   { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5852 fi
5853
5854
5855     test -n "$F77" && break
5856   done
5857 fi
5858 if test -z "$F77"; then
5859   ac_ct_F77=$F77
5860   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
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$ac_ct_F77"; then
5870   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_ac_ct_F77="$ac_prog"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5890 if test -n "$ac_ct_F77"; then
5891   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5892 echo "${ECHO_T}$ac_ct_F77" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899   test -n "$ac_ct_F77" && break
5900 done
5901
5902   if test "x$ac_ct_F77" = x; then
5903     F77=""
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet.  If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet.  If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5914 esac
5915     F77=$ac_ct_F77
5916   fi
5917 fi
5918
5919
5920 # Provide some information about the compiler.
5921 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5922 ac_compiler=`set X $ac_compile; echo $2`
5923 { (ac_try="$ac_compiler --version >&5"
5924 case "(($ac_try" in
5925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926   *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929   (eval "$ac_compiler --version >&5") 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }
5933 { (ac_try="$ac_compiler -v >&5"
5934 case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_compiler -v >&5") 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }
5943 { (ac_try="$ac_compiler -V >&5"
5944 case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_compiler -V >&5") 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }
5953 rm -f a.out
5954
5955 # If we don't use `.F' as extension, the preprocessor is not run on the
5956 # input file.  (Note that this only needs to work for GNU compilers.)
5957 ac_save_ext=$ac_ext
5958 ac_ext=F
5959 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5960 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5961 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   cat >conftest.$ac_ext <<_ACEOF
5965       program main
5966 #ifndef __GNUC__
5967        choke me
5968 #endif
5969
5970       end
5971 _ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5974 case "(($ac_try" in
5975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976   *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979   (eval "$ac_compile") 2>conftest.er1
5980   ac_status=$?
5981   grep -v '^ *+' conftest.er1 >conftest.err
5982   rm -f conftest.er1
5983   cat conftest.err >&5
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); } && {
5986          test -z "$ac_f77_werror_flag" ||
5987          test ! -s conftest.err
5988        } && test -s conftest.$ac_objext; then
5989   ac_compiler_gnu=yes
5990 else
5991   echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994         ac_compiler_gnu=no
5995 fi
5996
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5999
6000 fi
6001 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6002 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6003 ac_ext=$ac_save_ext
6004 ac_test_FFLAGS=${FFLAGS+set}
6005 ac_save_FFLAGS=$FFLAGS
6006 FFLAGS=
6007 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6008 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6009 if test "${ac_cv_prog_f77_g+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   FFLAGS=-g
6013 cat >conftest.$ac_ext <<_ACEOF
6014       program main
6015
6016       end
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6020 case "(($ac_try" in
6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022   *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025   (eval "$ac_compile") 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } && {
6032          test -z "$ac_f77_werror_flag" ||
6033          test ! -s conftest.err
6034        } && test -s conftest.$ac_objext; then
6035   ac_cv_prog_f77_g=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040         ac_cv_prog_f77_g=no
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044
6045 fi
6046 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6047 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6048 if test "$ac_test_FFLAGS" = set; then
6049   FFLAGS=$ac_save_FFLAGS
6050 elif test $ac_cv_prog_f77_g = yes; then
6051   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6052     FFLAGS="-g -O2"
6053   else
6054     FFLAGS="-g"
6055   fi
6056 else
6057   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6058     FFLAGS="-O2"
6059   else
6060     FFLAGS=
6061   fi
6062 fi
6063
6064 G77=`test $ac_compiler_gnu = yes && echo yes`
6065 ac_ext=c
6066 ac_cpp='$CPP $CPPFLAGS'
6067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070
6071
6072
6073 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6074
6075 # find the maximum length of command line arguments
6076 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6077 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6078 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081     i=0
6082   teststring="ABCD"
6083
6084   case $build_os in
6085   msdosdjgpp*)
6086     # On DJGPP, this test can blow up pretty badly due to problems in libc
6087     # (any single argument exceeding 2000 bytes causes a buffer overrun
6088     # during glob expansion).  Even if it were fixed, the result of this
6089     # check would be larger than it should be.
6090     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6091     ;;
6092
6093   gnu*)
6094     # Under GNU Hurd, this test is not required because there is
6095     # no limit to the length of command line arguments.
6096     # Libtool will interpret -1 as no limit whatsoever
6097     lt_cv_sys_max_cmd_len=-1;
6098     ;;
6099
6100   cygwin* | mingw*)
6101     # On Win9x/ME, this test blows up -- it succeeds, but takes
6102     # about 5 minutes as the teststring grows exponentially.
6103     # Worse, since 9x/ME are not pre-emptively multitasking,
6104     # you end up with a "frozen" computer, even though with patience
6105     # the test eventually succeeds (with a max line length of 256k).
6106     # Instead, let's just punt: use the minimum linelength reported by
6107     # all of the supported platforms: 8192 (on NT/2K/XP).
6108     lt_cv_sys_max_cmd_len=8192;
6109     ;;
6110
6111   amigaos*)
6112     # On AmigaOS with pdksh, this test takes hours, literally.
6113     # So we just punt and use a minimum line length of 8192.
6114     lt_cv_sys_max_cmd_len=8192;
6115     ;;
6116
6117   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6118     # This has been around since 386BSD, at least.  Likely further.
6119     if test -x /sbin/sysctl; then
6120       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6121     elif test -x /usr/sbin/sysctl; then
6122       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6123     else
6124       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6125     fi
6126     # And add a safety zone
6127     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6128     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6129     ;;
6130
6131   interix*)
6132     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6133     lt_cv_sys_max_cmd_len=196608
6134     ;;
6135
6136   osf*)
6137     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6138     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6139     # nice to cause kernel panics so lets avoid the loop below.
6140     # First set a reasonable default.
6141     lt_cv_sys_max_cmd_len=16384
6142     #
6143     if test -x /sbin/sysconfig; then
6144       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6145         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6146       esac
6147     fi
6148     ;;
6149   sco3.2v5*)
6150     lt_cv_sys_max_cmd_len=102400
6151     ;;
6152   sysv5* | sco5v6* | sysv4.2uw2*)
6153     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6154     if test -n "$kargmax"; then
6155       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6156     else
6157       lt_cv_sys_max_cmd_len=32768
6158     fi
6159     ;;
6160   *)
6161     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6162     if test -n "$lt_cv_sys_max_cmd_len"; then
6163       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6164       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6165     else
6166       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6167       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6168                = "XX$teststring") >/dev/null 2>&1 &&
6169               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6170               lt_cv_sys_max_cmd_len=$new_result &&
6171               test $i != 17 # 1/2 MB should be enough
6172       do
6173         i=`expr $i + 1`
6174         teststring=$teststring$teststring
6175       done
6176       teststring=
6177       # Add a significant safety factor because C++ compilers can tack on massive
6178       # amounts of additional arguments before passing them to the linker.
6179       # It appears as though 1/2 is a usable value.
6180       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6181     fi
6182     ;;
6183   esac
6184
6185 fi
6186
6187 if test -n $lt_cv_sys_max_cmd_len ; then
6188   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6189 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6190 else
6191   { echo "$as_me:$LINENO: result: none" >&5
6192 echo "${ECHO_T}none" >&6; }
6193 fi
6194
6195
6196
6197
6198
6199 # Check for command to grab the raw symbol name followed by C symbol from nm.
6200 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6201 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6202 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205   
6206 # These are sane defaults that work on at least a few old systems.
6207 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6208
6209 # Character class describing NM global symbol codes.
6210 symcode='[BCDEGRST]'
6211
6212 # Regexp to match symbols that can be accessed directly from C.
6213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6214
6215 # Transform an extracted symbol line into a proper C declaration
6216 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6217
6218 # Transform an extracted symbol line into symbol name and symbol address
6219 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'"
6220
6221 # Define system-specific variables.
6222 case $host_os in
6223 aix*)
6224   symcode='[BCDT]'
6225   ;;
6226 cygwin* | mingw* | pw32*)
6227   symcode='[ABCDGISTW]'
6228   ;;
6229 hpux*) # Its linker distinguishes data from code symbols
6230   if test "$host_cpu" = ia64; then
6231     symcode='[ABCDEGRST]'
6232   fi
6233   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6234   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'"
6235   ;;
6236 linux* | k*bsd*-gnu)
6237   if test "$host_cpu" = ia64; then
6238     symcode='[ABCDGIRSTW]'
6239     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6240     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'"
6241   fi
6242   ;;
6243 irix* | nonstopux*)
6244   symcode='[BCDEGRST]'
6245   ;;
6246 osf*)
6247   symcode='[BCDEGQRST]'
6248   ;;
6249 solaris*)
6250   symcode='[BDRT]'
6251   ;;
6252 sco3.2v5*)
6253   symcode='[DT]'
6254   ;;
6255 sysv4.2uw2*)
6256   symcode='[DT]'
6257   ;;
6258 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6259   symcode='[ABDT]'
6260   ;;
6261 sysv4)
6262   symcode='[DFNSTU]'
6263   ;;
6264 esac
6265
6266 # Handle CRLF in mingw tool chain
6267 opt_cr=
6268 case $build_os in
6269 mingw*)
6270   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6271   ;;
6272 esac
6273
6274 # If we're using GNU nm, then use its standard symbol codes.
6275 case `$NM -V 2>&1` in
6276 *GNU* | *'with BFD'*)
6277   symcode='[ABCDGIRSTW]' ;;
6278 esac
6279
6280 # Try without a prefix undercore, then with it.
6281 for ac_symprfx in "" "_"; do
6282
6283   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6284   symxfrm="\\1 $ac_symprfx\\2 \\2"
6285
6286   # Write the raw and C identifiers.
6287   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288
6289   # Check to see that the pipe works correctly.
6290   pipe_works=no
6291
6292   rm -f conftest*
6293   cat > conftest.$ac_ext <<EOF
6294 #ifdef __cplusplus
6295 extern "C" {
6296 #endif
6297 char nm_test_var;
6298 void nm_test_func(){}
6299 #ifdef __cplusplus
6300 }
6301 #endif
6302 int main(){nm_test_var='a';nm_test_func();return(0);}
6303 EOF
6304
6305   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306   (eval $ac_compile) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); }; then
6310     # Now try to grab the symbols.
6311     nlist=conftest.nm
6312     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6313   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } && test -s "$nlist"; then
6317       # Try sorting and uniquifying the output.
6318       if sort "$nlist" | uniq > "$nlist"T; then
6319         mv -f "$nlist"T "$nlist"
6320       else
6321         rm -f "$nlist"T
6322       fi
6323
6324       # Make sure that we snagged all the symbols we need.
6325       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6326         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6327           cat <<EOF > conftest.$ac_ext
6328 #ifdef __cplusplus
6329 extern "C" {
6330 #endif
6331
6332 EOF
6333           # Now generate the symbol file.
6334           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6335
6336           cat <<EOF >> conftest.$ac_ext
6337 #if defined (__STDC__) && __STDC__
6338 # define lt_ptr_t void *
6339 #else
6340 # define lt_ptr_t char *
6341 # define const
6342 #endif
6343
6344 /* The mapping between symbol names and symbols. */
6345 const struct {
6346   const char *name;
6347   lt_ptr_t address;
6348 }
6349 lt_preloaded_symbols[] =
6350 {
6351 EOF
6352           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6353           cat <<\EOF >> conftest.$ac_ext
6354   {0, (lt_ptr_t) 0}
6355 };
6356
6357 #ifdef __cplusplus
6358 }
6359 #endif
6360 EOF
6361           # Now try linking the two files.
6362           mv conftest.$ac_objext conftstm.$ac_objext
6363           lt_save_LIBS="$LIBS"
6364           lt_save_CFLAGS="$CFLAGS"
6365           LIBS="conftstm.$ac_objext"
6366           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6367           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368   (eval $ac_link) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6372             pipe_works=yes
6373           fi
6374           LIBS="$lt_save_LIBS"
6375           CFLAGS="$lt_save_CFLAGS"
6376         else
6377           echo "cannot find nm_test_func in $nlist" >&5
6378         fi
6379       else
6380         echo "cannot find nm_test_var in $nlist" >&5
6381       fi
6382     else
6383       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6384     fi
6385   else
6386     echo "$progname: failed program was:" >&5
6387     cat conftest.$ac_ext >&5
6388   fi
6389   rm -f conftest* conftst*
6390
6391   # Do not use the global_symbol_pipe unless it works.
6392   if test "$pipe_works" = yes; then
6393     break
6394   else
6395     lt_cv_sys_global_symbol_pipe=
6396   fi
6397 done
6398
6399 fi
6400
6401 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6402   lt_cv_sys_global_symbol_to_cdecl=
6403 fi
6404 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6405   { echo "$as_me:$LINENO: result: failed" >&5
6406 echo "${ECHO_T}failed" >&6; }
6407 else
6408   { echo "$as_me:$LINENO: result: ok" >&5
6409 echo "${ECHO_T}ok" >&6; }
6410 fi
6411
6412 { echo "$as_me:$LINENO: checking for objdir" >&5
6413 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6414 if test "${lt_cv_objdir+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   rm -f .libs 2>/dev/null
6418 mkdir .libs 2>/dev/null
6419 if test -d .libs; then
6420   lt_cv_objdir=.libs
6421 else
6422   # MS-DOS does not allow filenames that begin with a dot.
6423   lt_cv_objdir=_libs
6424 fi
6425 rmdir .libs 2>/dev/null
6426 fi
6427 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6428 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6429 objdir=$lt_cv_objdir
6430
6431
6432
6433
6434
6435 case $host_os in
6436 aix3*)
6437   # AIX sometimes has problems with the GCC collect2 program.  For some
6438   # reason, if we set the COLLECT_NAMES environment variable, the problems
6439   # vanish in a puff of smoke.
6440   if test "X${COLLECT_NAMES+set}" != Xset; then
6441     COLLECT_NAMES=
6442     export COLLECT_NAMES
6443   fi
6444   ;;
6445 esac
6446
6447 # Sed substitution that helps us do robust quoting.  It backslashifies
6448 # metacharacters that are still active within double-quoted strings.
6449 Xsed='sed -e 1s/^X//'
6450 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6451
6452 # Same as above, but do not quote variable references.
6453 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6454
6455 # Sed substitution to delay expansion of an escaped shell variable in a
6456 # double_quote_subst'ed string.
6457 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6458
6459 # Sed substitution to avoid accidental globbing in evaled expressions
6460 no_glob_subst='s/\*/\\\*/g'
6461
6462 # Constants:
6463 rm="rm -f"
6464
6465 # Global variables:
6466 default_ofile=libtool
6467 can_build_shared=yes
6468
6469 # All known linkers require a `.a' archive for static linking (except MSVC,
6470 # which needs '.lib').
6471 libext=a
6472 ltmain="$ac_aux_dir/ltmain.sh"
6473 ofile="$default_ofile"
6474 with_gnu_ld="$lt_cv_prog_gnu_ld"
6475
6476 if test -n "$ac_tool_prefix"; then
6477   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ar; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_prog_AR+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   if test -n "$AR"; then
6485   ac_cv_prog_AR="$AR" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_prog_AR="${ac_tool_prefix}ar"
6495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 AR=$ac_cv_prog_AR
6505 if test -n "$AR"; then
6506   { echo "$as_me:$LINENO: result: $AR" >&5
6507 echo "${ECHO_T}$AR" >&6; }
6508 else
6509   { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_prog_AR"; then
6516   ac_ct_AR=$AR
6517   # Extract the first word of "ar", so it can be a program name with args.
6518 set dummy ar; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   if test -n "$ac_ct_AR"; then
6525   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532   for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_prog_ac_ct_AR="ar"
6535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6545 if test -n "$ac_ct_AR"; then
6546   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6547 echo "${ECHO_T}$ac_ct_AR" >&6; }
6548 else
6549   { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6551 fi
6552
6553   if test "x$ac_ct_AR" = x; then
6554     AR="false"
6555   else
6556     case $cross_compiling:$ac_tool_warned in
6557 yes:)
6558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet.  If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&5
6561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet.  If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566     AR=$ac_ct_AR
6567   fi
6568 else
6569   AR="$ac_cv_prog_AR"
6570 fi
6571
6572 if test -n "$ac_tool_prefix"; then
6573   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_prog_RANLIB+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   if test -n "$RANLIB"; then
6581   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588   for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 RANLIB=$ac_cv_prog_RANLIB
6601 if test -n "$RANLIB"; then
6602   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6603 echo "${ECHO_T}$RANLIB" >&6; }
6604 else
6605   { echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6; }
6607 fi
6608
6609
6610 fi
6611 if test -z "$ac_cv_prog_RANLIB"; then
6612   ac_ct_RANLIB=$RANLIB
6613   # Extract the first word of "ranlib", so it can be a program name with args.
6614 set dummy ranlib; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   if test -n "$ac_ct_RANLIB"; then
6621   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628   for ac_exec_ext in '' $ac_executable_extensions; do
6629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630     ac_cv_prog_ac_ct_RANLIB="ranlib"
6631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635 done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6641 if test -n "$ac_ct_RANLIB"; then
6642   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6643 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6644 else
6645   { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6647 fi
6648
6649   if test "x$ac_ct_RANLIB" = x; then
6650     RANLIB=":"
6651   else
6652     case $cross_compiling:$ac_tool_warned in
6653 yes:)
6654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet.  If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&5
6657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6658 whose name does not start with the host triplet.  If you think this
6659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6660 ac_tool_warned=yes ;;
6661 esac
6662     RANLIB=$ac_ct_RANLIB
6663   fi
6664 else
6665   RANLIB="$ac_cv_prog_RANLIB"
6666 fi
6667
6668 if test -n "$ac_tool_prefix"; then
6669   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}strip; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_prog_STRIP+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   if test -n "$STRIP"; then
6677   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684   for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 STRIP=$ac_cv_prog_STRIP
6697 if test -n "$STRIP"; then
6698   { echo "$as_me:$LINENO: result: $STRIP" >&5
6699 echo "${ECHO_T}$STRIP" >&6; }
6700 else
6701   { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6703 fi
6704
6705
6706 fi
6707 if test -z "$ac_cv_prog_STRIP"; then
6708   ac_ct_STRIP=$STRIP
6709   # Extract the first word of "strip", so it can be a program name with args.
6710 set dummy strip; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6714   echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716   if test -n "$ac_ct_STRIP"; then
6717   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_prog_ac_ct_STRIP="strip"
6727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6737 if test -n "$ac_ct_STRIP"; then
6738   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6739 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6740 else
6741   { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6743 fi
6744
6745   if test "x$ac_ct_STRIP" = x; then
6746     STRIP=":"
6747   else
6748     case $cross_compiling:$ac_tool_warned in
6749 yes:)
6750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6751 whose name does not start with the host triplet.  If you think this
6752 configuration is useful to you, please write to autoconf@gnu.org." >&5
6753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6754 whose name does not start with the host triplet.  If you think this
6755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758     STRIP=$ac_ct_STRIP
6759   fi
6760 else
6761   STRIP="$ac_cv_prog_STRIP"
6762 fi
6763
6764
6765 old_CC="$CC"
6766 old_CFLAGS="$CFLAGS"
6767
6768 # Set sane defaults for various variables
6769 test -z "$AR" && AR=ar
6770 test -z "$AR_FLAGS" && AR_FLAGS=cru
6771 test -z "$AS" && AS=as
6772 test -z "$CC" && CC=cc
6773 test -z "$LTCC" && LTCC=$CC
6774 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6775 test -z "$DLLTOOL" && DLLTOOL=dlltool
6776 test -z "$LD" && LD=ld
6777 test -z "$LN_S" && LN_S="ln -s"
6778 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6779 test -z "$NM" && NM=nm
6780 test -z "$SED" && SED=sed
6781 test -z "$OBJDUMP" && OBJDUMP=objdump
6782 test -z "$RANLIB" && RANLIB=:
6783 test -z "$STRIP" && STRIP=:
6784 test -z "$ac_objext" && ac_objext=o
6785
6786 # Determine commands to create old-style static archives.
6787 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6788 old_postinstall_cmds='chmod 644 $oldlib'
6789 old_postuninstall_cmds=
6790
6791 if test -n "$RANLIB"; then
6792   case $host_os in
6793   openbsd*)
6794     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6795     ;;
6796   *)
6797     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6798     ;;
6799   esac
6800   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6801 fi
6802
6803 for cc_temp in $compiler""; do
6804   case $cc_temp in
6805     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6806     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6807     \-*) ;;
6808     *) break;;
6809   esac
6810 done
6811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6812
6813
6814 # Only perform the check for file, if the check method requires it
6815 case $deplibs_check_method in
6816 file_magic*)
6817   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6818     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6819 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6820 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   case $MAGIC_CMD in
6824 [\\/*] |  ?:[\\/]*)
6825   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6826   ;;
6827 *)
6828   lt_save_MAGIC_CMD="$MAGIC_CMD"
6829   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6830   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6831   for ac_dir in $ac_dummy; do
6832     IFS="$lt_save_ifs"
6833     test -z "$ac_dir" && ac_dir=.
6834     if test -f $ac_dir/${ac_tool_prefix}file; then
6835       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6836       if test -n "$file_magic_test_file"; then
6837         case $deplibs_check_method in
6838         "file_magic "*)
6839           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6840           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6842             $EGREP "$file_magic_regex" > /dev/null; then
6843             :
6844           else
6845             cat <<EOF 1>&2
6846
6847 *** Warning: the command libtool uses to detect shared libraries,
6848 *** $file_magic_cmd, produces output that libtool cannot recognize.
6849 *** The result is that libtool may fail to recognize shared libraries
6850 *** as such.  This will affect the creation of libtool libraries that
6851 *** depend on shared libraries, but programs linked with such libtool
6852 *** libraries will work regardless of this problem.  Nevertheless, you
6853 *** may want to report the problem to your system manager and/or to
6854 *** bug-libtool@gnu.org
6855
6856 EOF
6857           fi ;;
6858         esac
6859       fi
6860       break
6861     fi
6862   done
6863   IFS="$lt_save_ifs"
6864   MAGIC_CMD="$lt_save_MAGIC_CMD"
6865   ;;
6866 esac
6867 fi
6868
6869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6870 if test -n "$MAGIC_CMD"; then
6871   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6872 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6873 else
6874   { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6876 fi
6877
6878 if test -z "$lt_cv_path_MAGIC_CMD"; then
6879   if test -n "$ac_tool_prefix"; then
6880     { echo "$as_me:$LINENO: checking for file" >&5
6881 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6882 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   case $MAGIC_CMD in
6886 [\\/*] |  ?:[\\/]*)
6887   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6888   ;;
6889 *)
6890   lt_save_MAGIC_CMD="$MAGIC_CMD"
6891   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6892   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6893   for ac_dir in $ac_dummy; do
6894     IFS="$lt_save_ifs"
6895     test -z "$ac_dir" && ac_dir=.
6896     if test -f $ac_dir/file; then
6897       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6898       if test -n "$file_magic_test_file"; then
6899         case $deplibs_check_method in
6900         "file_magic "*)
6901           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6902           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6903           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6904             $EGREP "$file_magic_regex" > /dev/null; then
6905             :
6906           else
6907             cat <<EOF 1>&2
6908
6909 *** Warning: the command libtool uses to detect shared libraries,
6910 *** $file_magic_cmd, produces output that libtool cannot recognize.
6911 *** The result is that libtool may fail to recognize shared libraries
6912 *** as such.  This will affect the creation of libtool libraries that
6913 *** depend on shared libraries, but programs linked with such libtool
6914 *** libraries will work regardless of this problem.  Nevertheless, you
6915 *** may want to report the problem to your system manager and/or to
6916 *** bug-libtool@gnu.org
6917
6918 EOF
6919           fi ;;
6920         esac
6921       fi
6922       break
6923     fi
6924   done
6925   IFS="$lt_save_ifs"
6926   MAGIC_CMD="$lt_save_MAGIC_CMD"
6927   ;;
6928 esac
6929 fi
6930
6931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6932 if test -n "$MAGIC_CMD"; then
6933   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6934 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6939
6940   else
6941     MAGIC_CMD=:
6942   fi
6943 fi
6944
6945   fi
6946   ;;
6947 esac
6948
6949 enable_dlopen=no
6950 enable_win32_dll=no
6951
6952 # Check whether --enable-libtool-lock was given.
6953 if test "${enable_libtool_lock+set}" = set; then
6954   enableval=$enable_libtool_lock; 
6955 fi
6956
6957 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6958
6959
6960 # Check whether --with-pic was given.
6961 if test "${with_pic+set}" = set; then
6962   withval=$with_pic; pic_mode="$withval"
6963 else
6964   pic_mode=default
6965 fi
6966
6967 test -z "$pic_mode" && pic_mode=default
6968
6969 # Use C for the default configuration in the libtool script
6970 tagname=
6971 lt_save_CC="$CC"
6972 ac_ext=c
6973 ac_cpp='$CPP $CPPFLAGS'
6974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
6978
6979 # Source file extension for C test sources.
6980 ac_ext=c
6981
6982 # Object file extension for compiled C test sources.
6983 objext=o
6984 objext=$objext
6985
6986 # Code to be used in simple compile tests
6987 lt_simple_compile_test_code="int some_variable = 0;"
6988
6989 # Code to be used in simple link tests
6990 lt_simple_link_test_code='int main(){return(0);}'
6991
6992
6993 # If no C compiler was specified, use CC.
6994 LTCC=${LTCC-"$CC"}
6995
6996 # If no C compiler flags were specified, use CFLAGS.
6997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6998
6999 # Allow CC to be a program name with arguments.
7000 compiler=$CC
7001
7002
7003 # save warnings/boilerplate of simple test code
7004 ac_outfile=conftest.$ac_objext
7005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7007 _lt_compiler_boilerplate=`cat conftest.err`
7008 $rm conftest*
7009
7010 ac_outfile=conftest.$ac_objext
7011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7013 _lt_linker_boilerplate=`cat conftest.err`
7014 $rm conftest*
7015
7016
7017 ## CAVEAT EMPTOR:
7018 ## There is no encapsulation within the following macros, do not change
7019 ## the running order or otherwise move them around unless you know exactly
7020 ## what you are doing...
7021
7022 lt_prog_compiler_no_builtin_flag=
7023
7024 if test "$GCC" = yes; then
7025   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7026
7027   
7028 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7029 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7030 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7031   echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033   lt_cv_prog_compiler_rtti_exceptions=no
7034   ac_outfile=conftest.$ac_objext
7035    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7036    lt_compiler_flag="-fno-rtti -fno-exceptions"
7037    # Insert the option either (1) after the last *FLAGS variable, or
7038    # (2) before a word containing "conftest.", or (3) at the end.
7039    # Note that $ac_compile itself does not contain backslashes and begins
7040    # with a dollar sign (not a hyphen), so the echo should work correctly.
7041    # The option is referenced via a variable to avoid confusing sed.
7042    lt_compile=`echo "$ac_compile" | $SED \
7043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7045    -e 's:$: $lt_compiler_flag:'`
7046    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7047    (eval "$lt_compile" 2>conftest.err)
7048    ac_status=$?
7049    cat conftest.err >&5
7050    echo "$as_me:__oline__: \$? = $ac_status" >&5
7051    if (exit $ac_status) && test -s "$ac_outfile"; then
7052      # The compiler can only warn and ignore the option if not recognized
7053      # So say no if there are warnings other than the usual output.
7054      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7055      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7056      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7057        lt_cv_prog_compiler_rtti_exceptions=yes
7058      fi
7059    fi
7060    $rm conftest*
7061
7062 fi
7063 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7064 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7065
7066 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7067     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7068 else
7069     :
7070 fi
7071
7072 fi
7073
7074 lt_prog_compiler_wl=
7075 lt_prog_compiler_pic=
7076 lt_prog_compiler_static=
7077
7078 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7079 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7080  
7081   if test "$GCC" = yes; then
7082     lt_prog_compiler_wl='-Wl,'
7083     lt_prog_compiler_static='-static'
7084
7085     case $host_os in
7086       aix*)
7087       # All AIX code is PIC.
7088       if test "$host_cpu" = ia64; then
7089         # AIX 5 now supports IA64 processor
7090         lt_prog_compiler_static='-Bstatic'
7091       fi
7092       ;;
7093
7094     amigaos*)
7095       # FIXME: we need at least 68020 code to build shared libraries, but
7096       # adding the `-m68020' flag to GCC prevents building anything better,
7097       # like `-m68040'.
7098       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7099       ;;
7100
7101     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7102       # PIC is the default for these OSes.
7103       ;;
7104
7105     mingw* | cygwin* | pw32* | os2*)
7106       # This hack is so that the source file can tell whether it is being
7107       # built for inclusion in a dll (and should export symbols for example).
7108       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7109       # (--disable-auto-import) libraries
7110       lt_prog_compiler_pic='-DDLL_EXPORT'
7111       ;;
7112
7113     darwin* | rhapsody*)
7114       # PIC is the default on this platform
7115       # Common symbols not allowed in MH_DYLIB files
7116       lt_prog_compiler_pic='-fno-common'
7117       ;;
7118
7119     interix[3-9]*)
7120       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7121       # Instead, we relocate shared libraries at runtime.
7122       ;;
7123
7124     msdosdjgpp*)
7125       # Just because we use GCC doesn't mean we suddenly get shared libraries
7126       # on systems that don't support them.
7127       lt_prog_compiler_can_build_shared=no
7128       enable_shared=no
7129       ;;
7130
7131     sysv4*MP*)
7132       if test -d /usr/nec; then
7133         lt_prog_compiler_pic=-Kconform_pic
7134       fi
7135       ;;
7136
7137     hpux*)
7138       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7139       # not for PA HP-UX.
7140       case $host_cpu in
7141       hppa*64*|ia64*)
7142         # +Z the default
7143         ;;
7144       *)
7145         lt_prog_compiler_pic='-fPIC'
7146         ;;
7147       esac
7148       ;;
7149
7150     *)
7151       lt_prog_compiler_pic='-fPIC'
7152       ;;
7153     esac
7154   else
7155     # PORTME Check for flag to pass linker flags through the system compiler.
7156     case $host_os in
7157     aix*)
7158       lt_prog_compiler_wl='-Wl,'
7159       if test "$host_cpu" = ia64; then
7160         # AIX 5 now supports IA64 processor
7161         lt_prog_compiler_static='-Bstatic'
7162       else
7163         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7164       fi
7165       ;;
7166       darwin*)
7167         # PIC is the default on this platform
7168         # Common symbols not allowed in MH_DYLIB files
7169        case $cc_basename in
7170          xlc*)
7171          lt_prog_compiler_pic='-qnocommon'
7172          lt_prog_compiler_wl='-Wl,'
7173          ;;
7174        esac
7175        ;;
7176
7177     mingw* | cygwin* | pw32* | os2*)
7178       # This hack is so that the source file can tell whether it is being
7179       # built for inclusion in a dll (and should export symbols for example).
7180       lt_prog_compiler_pic='-DDLL_EXPORT'
7181       ;;
7182
7183     hpux9* | hpux10* | hpux11*)
7184       lt_prog_compiler_wl='-Wl,'
7185       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7186       # not for PA HP-UX.
7187       case $host_cpu in
7188       hppa*64*|ia64*)
7189         # +Z the default
7190         ;;
7191       *)
7192         lt_prog_compiler_pic='+Z'
7193         ;;
7194       esac
7195       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7196       lt_prog_compiler_static='${wl}-a ${wl}archive'
7197       ;;
7198
7199     irix5* | irix6* | nonstopux*)
7200       lt_prog_compiler_wl='-Wl,'
7201       # PIC (with -KPIC) is the default.
7202       lt_prog_compiler_static='-non_shared'
7203       ;;
7204
7205     newsos6)
7206       lt_prog_compiler_pic='-KPIC'
7207       lt_prog_compiler_static='-Bstatic'
7208       ;;
7209
7210     linux* | k*bsd*-gnu)
7211       case $cc_basename in
7212       icc* | ecc*)
7213         lt_prog_compiler_wl='-Wl,'
7214         lt_prog_compiler_pic='-KPIC'
7215         lt_prog_compiler_static='-static'
7216         ;;
7217       pgcc* | pgf77* | pgf90* | pgf95*)
7218         # Portland Group compilers (*not* the Pentium gcc compiler,
7219         # which looks to be a dead project)
7220         lt_prog_compiler_wl='-Wl,'
7221         lt_prog_compiler_pic='-fpic'
7222         lt_prog_compiler_static='-Bstatic'
7223         ;;
7224       ccc*)
7225         lt_prog_compiler_wl='-Wl,'
7226         # All Alpha code is PIC.
7227         lt_prog_compiler_static='-non_shared'
7228         ;;
7229       *)
7230         case `$CC -V 2>&1 | sed 5q` in
7231         *Sun\ C*)
7232           # Sun C 5.9
7233           lt_prog_compiler_pic='-KPIC'
7234           lt_prog_compiler_static='-Bstatic'
7235           lt_prog_compiler_wl='-Wl,'
7236           ;;
7237         *Sun\ F*)
7238           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7239           lt_prog_compiler_pic='-KPIC'
7240           lt_prog_compiler_static='-Bstatic'
7241           lt_prog_compiler_wl=''
7242           ;;
7243         esac
7244         ;;
7245       esac
7246       ;;
7247
7248     osf3* | osf4* | osf5*)
7249       lt_prog_compiler_wl='-Wl,'
7250       # All OSF/1 code is PIC.
7251       lt_prog_compiler_static='-non_shared'
7252       ;;
7253
7254     rdos*)
7255       lt_prog_compiler_static='-non_shared'
7256       ;;
7257
7258     solaris*)
7259       lt_prog_compiler_pic='-KPIC'
7260       lt_prog_compiler_static='-Bstatic'
7261       case $cc_basename in
7262       f77* | f90* | f95*)
7263         lt_prog_compiler_wl='-Qoption ld ';;
7264       *)
7265         lt_prog_compiler_wl='-Wl,';;
7266       esac
7267       ;;
7268
7269     sunos4*)
7270       lt_prog_compiler_wl='-Qoption ld '
7271       lt_prog_compiler_pic='-PIC'
7272       lt_prog_compiler_static='-Bstatic'
7273       ;;
7274
7275     sysv4 | sysv4.2uw2* | sysv4.3*)
7276       lt_prog_compiler_wl='-Wl,'
7277       lt_prog_compiler_pic='-KPIC'
7278       lt_prog_compiler_static='-Bstatic'
7279       ;;
7280
7281     sysv4*MP*)
7282       if test -d /usr/nec ;then
7283         lt_prog_compiler_pic='-Kconform_pic'
7284         lt_prog_compiler_static='-Bstatic'
7285       fi
7286       ;;
7287
7288     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7289       lt_prog_compiler_wl='-Wl,'
7290       lt_prog_compiler_pic='-KPIC'
7291       lt_prog_compiler_static='-Bstatic'
7292       ;;
7293
7294     unicos*)
7295       lt_prog_compiler_wl='-Wl,'
7296       lt_prog_compiler_can_build_shared=no
7297       ;;
7298
7299     uts4*)
7300       lt_prog_compiler_pic='-pic'
7301       lt_prog_compiler_static='-Bstatic'
7302       ;;
7303
7304     *)
7305       lt_prog_compiler_can_build_shared=no
7306       ;;
7307     esac
7308   fi
7309
7310 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7311 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7312
7313 #
7314 # Check to make sure the PIC flag actually works.
7315 #
7316 if test -n "$lt_prog_compiler_pic"; then
7317   
7318 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7319 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7320 if test "${lt_prog_compiler_pic_works+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   lt_prog_compiler_pic_works=no
7324   ac_outfile=conftest.$ac_objext
7325    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7326    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7327    # Insert the option either (1) after the last *FLAGS variable, or
7328    # (2) before a word containing "conftest.", or (3) at the end.
7329    # Note that $ac_compile itself does not contain backslashes and begins
7330    # with a dollar sign (not a hyphen), so the echo should work correctly.
7331    # The option is referenced via a variable to avoid confusing sed.
7332    lt_compile=`echo "$ac_compile" | $SED \
7333    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7335    -e 's:$: $lt_compiler_flag:'`
7336    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7337    (eval "$lt_compile" 2>conftest.err)
7338    ac_status=$?
7339    cat conftest.err >&5
7340    echo "$as_me:__oline__: \$? = $ac_status" >&5
7341    if (exit $ac_status) && test -s "$ac_outfile"; then
7342      # The compiler can only warn and ignore the option if not recognized
7343      # So say no if there are warnings other than the usual output.
7344      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7345      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7346      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7347        lt_prog_compiler_pic_works=yes
7348      fi
7349    fi
7350    $rm conftest*
7351
7352 fi
7353 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7354 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7355
7356 if test x"$lt_prog_compiler_pic_works" = xyes; then
7357     case $lt_prog_compiler_pic in
7358      "" | " "*) ;;
7359      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7360      esac
7361 else
7362     lt_prog_compiler_pic=
7363      lt_prog_compiler_can_build_shared=no
7364 fi
7365
7366 fi
7367 case $host_os in
7368   # For platforms which do not support PIC, -DPIC is meaningless:
7369   *djgpp*)
7370     lt_prog_compiler_pic=
7371     ;;
7372   *)
7373     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7374     ;;
7375 esac
7376
7377 #
7378 # Check to make sure the static flag actually works.
7379 #
7380 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7381 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7382 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7383 if test "${lt_prog_compiler_static_works+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   lt_prog_compiler_static_works=no
7387    save_LDFLAGS="$LDFLAGS"
7388    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7389    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7390    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7391      # The linker can only warn and ignore the option if not recognized
7392      # So say no if there are warnings
7393      if test -s conftest.err; then
7394        # Append any errors to the config.log.
7395        cat conftest.err 1>&5
7396        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7397        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7398        if diff conftest.exp conftest.er2 >/dev/null; then
7399          lt_prog_compiler_static_works=yes
7400        fi
7401      else
7402        lt_prog_compiler_static_works=yes
7403      fi
7404    fi
7405    $rm conftest*
7406    LDFLAGS="$save_LDFLAGS"
7407
7408 fi
7409 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7410 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7411
7412 if test x"$lt_prog_compiler_static_works" = xyes; then
7413     :
7414 else
7415     lt_prog_compiler_static=
7416 fi
7417
7418
7419 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7420 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7421 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7422   echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424   lt_cv_prog_compiler_c_o=no
7425    $rm -r conftest 2>/dev/null
7426    mkdir conftest
7427    cd conftest
7428    mkdir out
7429    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7430
7431    lt_compiler_flag="-o out/conftest2.$ac_objext"
7432    # Insert the option either (1) after the last *FLAGS variable, or
7433    # (2) before a word containing "conftest.", or (3) at the end.
7434    # Note that $ac_compile itself does not contain backslashes and begins
7435    # with a dollar sign (not a hyphen), so the echo should work correctly.
7436    lt_compile=`echo "$ac_compile" | $SED \
7437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7439    -e 's:$: $lt_compiler_flag:'`
7440    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7441    (eval "$lt_compile" 2>out/conftest.err)
7442    ac_status=$?
7443    cat out/conftest.err >&5
7444    echo "$as_me:__oline__: \$? = $ac_status" >&5
7445    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7446    then
7447      # The compiler can only warn and ignore the option if not recognized
7448      # So say no if there are warnings
7449      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7450      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7451      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7452        lt_cv_prog_compiler_c_o=yes
7453      fi
7454    fi
7455    chmod u+w . 2>&5
7456    $rm conftest*
7457    # SGI C++ compiler will create directory out/ii_files/ for
7458    # template instantiation
7459    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7460    $rm out/* && rmdir out
7461    cd ..
7462    rmdir conftest
7463    $rm conftest*
7464
7465 fi
7466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7467 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7468
7469
7470 hard_links="nottested"
7471 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7472   # do not overwrite the value of need_locks provided by the user
7473   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7474 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7475   hard_links=yes
7476   $rm conftest*
7477   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7478   touch conftest.a
7479   ln conftest.a conftest.b 2>&5 || hard_links=no
7480   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7481   { echo "$as_me:$LINENO: result: $hard_links" >&5
7482 echo "${ECHO_T}$hard_links" >&6; }
7483   if test "$hard_links" = no; then
7484     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7485 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7486     need_locks=warn
7487   fi
7488 else
7489   need_locks=no
7490 fi
7491
7492 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7493 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7494
7495   runpath_var=
7496   allow_undefined_flag=
7497   enable_shared_with_static_runtimes=no
7498   archive_cmds=
7499   archive_expsym_cmds=
7500   old_archive_From_new_cmds=
7501   old_archive_from_expsyms_cmds=
7502   export_dynamic_flag_spec=
7503   whole_archive_flag_spec=
7504   thread_safe_flag_spec=
7505   hardcode_libdir_flag_spec=
7506   hardcode_libdir_flag_spec_ld=
7507   hardcode_libdir_separator=
7508   hardcode_direct=no
7509   hardcode_minus_L=no
7510   hardcode_shlibpath_var=unsupported
7511   link_all_deplibs=unknown
7512   hardcode_automatic=no
7513   module_cmds=
7514   module_expsym_cmds=
7515   always_export_symbols=no
7516   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7517   # include_expsyms should be a list of space-separated symbols to be *always*
7518   # included in the symbol list
7519   include_expsyms=
7520   # exclude_expsyms can be an extended regexp of symbols to exclude
7521   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7522   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7523   # as well as any symbol that contains `d'.
7524   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7525   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7526   # platforms (ab)use it in PIC code, but their linkers get confused if
7527   # the symbol is explicitly referenced.  Since portable code cannot
7528   # rely on this symbol name, it's probably fine to never include it in
7529   # preloaded symbol tables.
7530   extract_expsyms_cmds=
7531   # Just being paranoid about ensuring that cc_basename is set.
7532   for cc_temp in $compiler""; do
7533   case $cc_temp in
7534     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7535     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7536     \-*) ;;
7537     *) break;;
7538   esac
7539 done
7540 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7541
7542   case $host_os in
7543   cygwin* | mingw* | pw32*)
7544     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7545     # When not using gcc, we currently assume that we are using
7546     # Microsoft Visual C++.
7547     if test "$GCC" != yes; then
7548       with_gnu_ld=no
7549     fi
7550     ;;
7551   interix*)
7552     # we just hope/assume this is gcc and not c89 (= MSVC++)
7553     with_gnu_ld=yes
7554     ;;
7555   openbsd*)
7556     with_gnu_ld=no
7557     ;;
7558   esac
7559
7560   ld_shlibs=yes
7561   if test "$with_gnu_ld" = yes; then
7562     # If archive_cmds runs LD, not CC, wlarc should be empty
7563     wlarc='${wl}'
7564
7565     # Set some defaults for GNU ld with shared library support. These
7566     # are reset later if shared libraries are not supported. Putting them
7567     # here allows them to be overridden if necessary.
7568     runpath_var=LD_RUN_PATH
7569     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7570     export_dynamic_flag_spec='${wl}--export-dynamic'
7571     # ancient GNU ld didn't support --whole-archive et. al.
7572     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7573         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7574       else
7575         whole_archive_flag_spec=
7576     fi
7577     supports_anon_versioning=no
7578     case `$LD -v 2>/dev/null` in
7579       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7580       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7581       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7582       *\ 2.11.*) ;; # other 2.11 versions
7583       *) supports_anon_versioning=yes ;;
7584     esac
7585
7586     # See if GNU ld supports shared libraries.
7587     case $host_os in
7588     aix3* | aix4* | aix5*)
7589       # On AIX/PPC, the GNU linker is very broken
7590       if test "$host_cpu" != ia64; then
7591         ld_shlibs=no
7592         cat <<EOF 1>&2
7593
7594 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7595 *** to be unable to reliably create shared libraries on AIX.
7596 *** Therefore, libtool is disabling shared libraries support.  If you
7597 *** really care for shared libraries, you may want to modify your PATH
7598 *** so that a non-GNU linker is found, and then restart.
7599
7600 EOF
7601       fi
7602       ;;
7603
7604     amigaos*)
7605       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)'
7606       hardcode_libdir_flag_spec='-L$libdir'
7607       hardcode_minus_L=yes
7608
7609       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7610       # that the semantics of dynamic libraries on AmigaOS, at least up
7611       # to version 4, is to share data among multiple programs linked
7612       # with the same dynamic library.  Since this doesn't match the
7613       # behavior of shared libraries on other platforms, we can't use
7614       # them.
7615       ld_shlibs=no
7616       ;;
7617
7618     beos*)
7619       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7620         allow_undefined_flag=unsupported
7621         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7622         # support --undefined.  This deserves some investigation.  FIXME
7623         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7624       else
7625         ld_shlibs=no
7626       fi
7627       ;;
7628
7629     cygwin* | mingw* | pw32*)
7630       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7631       # as there is no search path for DLLs.
7632       hardcode_libdir_flag_spec='-L$libdir'
7633       allow_undefined_flag=unsupported
7634       always_export_symbols=no
7635       enable_shared_with_static_runtimes=yes
7636       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7637
7638       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7639         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7640         # If the export-symbols file already is a .def file (1st line
7641         # is EXPORTS), use it as is; otherwise, prepend...
7642         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7643           cp $export_symbols $output_objdir/$soname.def;
7644         else
7645           echo EXPORTS > $output_objdir/$soname.def;
7646           cat $export_symbols >> $output_objdir/$soname.def;
7647         fi~
7648         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7649       else
7650         ld_shlibs=no
7651       fi
7652       ;;
7653
7654     interix[3-9]*)
7655       hardcode_direct=no
7656       hardcode_shlibpath_var=no
7657       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7658       export_dynamic_flag_spec='${wl}-E'
7659       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7660       # Instead, shared libraries are loaded at an image base (0x10000000 by
7661       # default) and relocated if they conflict, which is a slow very memory
7662       # consuming and fragmenting process.  To avoid this, we pick a random,
7663       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7664       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7665       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7666       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'
7667       ;;
7668
7669     gnu* | linux* | k*bsd*-gnu)
7670       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7671         tmp_addflag=
7672         case $cc_basename,$host_cpu in
7673         pgcc*)                          # Portland Group C compiler
7674           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'
7675           tmp_addflag=' $pic_flag'
7676           ;;
7677         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7678           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'
7679           tmp_addflag=' $pic_flag -Mnomain' ;;
7680         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7681           tmp_addflag=' -i_dynamic' ;;
7682         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7683           tmp_addflag=' -i_dynamic -nofor_main' ;;
7684         ifc* | ifort*)                  # Intel Fortran compiler
7685           tmp_addflag=' -nofor_main' ;;
7686         esac
7687         case `$CC -V 2>&1 | sed 5q` in
7688         *Sun\ C*)                       # Sun C 5.9
7689           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'
7690           tmp_sharedflag='-G' ;;
7691         *Sun\ F*)                       # Sun Fortran 8.3
7692           tmp_sharedflag='-G' ;;
7693         *)
7694           tmp_sharedflag='-shared' ;;
7695         esac
7696         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7697
7698         if test $supports_anon_versioning = yes; then
7699           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7700   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7701   $echo "local: *; };" >> $output_objdir/$libname.ver~
7702           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7703         fi
7704       else
7705         ld_shlibs=no
7706       fi
7707       ;;
7708
7709     netbsd*)
7710       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7711         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7712         wlarc=
7713       else
7714         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7715         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7716       fi
7717       ;;
7718
7719     solaris*)
7720       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7721         ld_shlibs=no
7722         cat <<EOF 1>&2
7723
7724 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7725 *** create shared libraries on Solaris systems.  Therefore, libtool
7726 *** is disabling shared libraries support.  We urge you to upgrade GNU
7727 *** binutils to release 2.9.1 or newer.  Another option is to modify
7728 *** your PATH or compiler configuration so that the native linker is
7729 *** used, and then restart.
7730
7731 EOF
7732       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7733         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7734         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7735       else
7736         ld_shlibs=no
7737       fi
7738       ;;
7739
7740     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7741       case `$LD -v 2>&1` in
7742         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7743         ld_shlibs=no
7744         cat <<_LT_EOF 1>&2
7745
7746 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7747 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7748 *** is disabling shared libraries support.  We urge you to upgrade GNU
7749 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7750 *** your PATH or compiler configuration so that the native linker is
7751 *** used, and then restart.
7752
7753 _LT_EOF
7754         ;;
7755         *)
7756           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7757             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7758             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7759             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7760           else
7761             ld_shlibs=no
7762           fi
7763         ;;
7764       esac
7765       ;;
7766
7767     sunos4*)
7768       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7769       wlarc=
7770       hardcode_direct=yes
7771       hardcode_shlibpath_var=no
7772       ;;
7773
7774     *)
7775       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7776         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7777         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7778       else
7779         ld_shlibs=no
7780       fi
7781       ;;
7782     esac
7783
7784     if test "$ld_shlibs" = no; then
7785       runpath_var=
7786       hardcode_libdir_flag_spec=
7787       export_dynamic_flag_spec=
7788       whole_archive_flag_spec=
7789     fi
7790   else
7791     # PORTME fill in a description of your system's linker (not GNU ld)
7792     case $host_os in
7793     aix3*)
7794       allow_undefined_flag=unsupported
7795       always_export_symbols=yes
7796       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'
7797       # Note: this linker hardcodes the directories in LIBPATH if there
7798       # are no directories specified by -L.
7799       hardcode_minus_L=yes
7800       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7801         # Neither direct hardcoding nor static linking is supported with a
7802         # broken collect2.
7803         hardcode_direct=unsupported
7804       fi
7805       ;;
7806
7807     aix4* | aix5*)
7808       if test "$host_cpu" = ia64; then
7809         # On IA64, the linker does run time linking by default, so we don't
7810         # have to do anything special.
7811         aix_use_runtimelinking=no
7812         exp_sym_flag='-Bexport'
7813         no_entry_flag=""
7814       else
7815         # If we're using GNU nm, then we don't want the "-C" option.
7816         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7817         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7818           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'
7819         else
7820           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'
7821         fi
7822         aix_use_runtimelinking=no
7823
7824         # Test if we are trying to use run time linking or normal
7825         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7826         # need to do runtime linking.
7827         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7828           for ld_flag in $LDFLAGS; do
7829           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7830             aix_use_runtimelinking=yes
7831             break
7832           fi
7833           done
7834           ;;
7835         esac
7836
7837         exp_sym_flag='-bexport'
7838         no_entry_flag='-bnoentry'
7839       fi
7840
7841       # When large executables or shared objects are built, AIX ld can
7842       # have problems creating the table of contents.  If linking a library
7843       # or program results in "error TOC overflow" add -mminimal-toc to
7844       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7845       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7846
7847       archive_cmds=''
7848       hardcode_direct=yes
7849       hardcode_libdir_separator=':'
7850       link_all_deplibs=yes
7851
7852       if test "$GCC" = yes; then
7853         case $host_os in aix4.[012]|aix4.[012].*)
7854         # We only want to do this on AIX 4.2 and lower, the check
7855         # below for broken collect2 doesn't work under 4.3+
7856           collect2name=`${CC} -print-prog-name=collect2`
7857           if test -f "$collect2name" && \
7858            strings "$collect2name" | grep resolve_lib_name >/dev/null
7859           then
7860           # We have reworked collect2
7861           :
7862           else
7863           # We have old collect2
7864           hardcode_direct=unsupported
7865           # It fails to find uninstalled libraries when the uninstalled
7866           # path is not listed in the libpath.  Setting hardcode_minus_L
7867           # to unsupported forces relinking
7868           hardcode_minus_L=yes
7869           hardcode_libdir_flag_spec='-L$libdir'
7870           hardcode_libdir_separator=
7871           fi
7872           ;;
7873         esac
7874         shared_flag='-shared'
7875         if test "$aix_use_runtimelinking" = yes; then
7876           shared_flag="$shared_flag "'${wl}-G'
7877         fi
7878       else
7879         # not using gcc
7880         if test "$host_cpu" = ia64; then
7881         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7882         # chokes on -Wl,-G. The following line is correct:
7883           shared_flag='-G'
7884         else
7885           if test "$aix_use_runtimelinking" = yes; then
7886             shared_flag='${wl}-G'
7887           else
7888             shared_flag='${wl}-bM:SRE'
7889           fi
7890         fi
7891       fi
7892
7893       # It seems that -bexpall does not export symbols beginning with
7894       # underscore (_), so it is better to generate a list of symbols to export.
7895       always_export_symbols=yes
7896       if test "$aix_use_runtimelinking" = yes; then
7897         # Warning - without using the other runtime loading flags (-brtl),
7898         # -berok will link without error, but may produce a broken library.
7899         allow_undefined_flag='-berok'
7900        # Determine the default libpath from the value encoded in an empty executable.
7901        cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h.  */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h.  */
7907
7908 int
7909 main ()
7910 {
7911
7912   ;
7913   return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (ac_try="$ac_link"
7918 case "(($ac_try" in
7919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920   *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923   (eval "$ac_link") 2>conftest.er1
7924   ac_status=$?
7925   grep -v '^ *+' conftest.er1 >conftest.err
7926   rm -f conftest.er1
7927   cat conftest.err >&5
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } && {
7930          test -z "$ac_c_werror_flag" ||
7931          test ! -s conftest.err
7932        } && test -s conftest$ac_exeext &&
7933        $as_test_x conftest$ac_exeext; then
7934   
7935 lt_aix_libpath_sed='
7936     /Import File Strings/,/^$/ {
7937         /^0/ {
7938             s/^0  *\(.*\)$/\1/
7939             p
7940         }
7941     }'
7942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7943 # Check for a 64-bit object if we didn't find anything.
7944 if test -z "$aix_libpath"; then
7945   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7946 fi
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951         
7952 fi
7953
7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955       conftest$ac_exeext conftest.$ac_ext
7956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7957
7958        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7959         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"
7960        else
7961         if test "$host_cpu" = ia64; then
7962           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7963           allow_undefined_flag="-z nodefs"
7964           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"
7965         else
7966          # Determine the default libpath from the value encoded in an empty executable.
7967          cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973
7974 int
7975 main ()
7976 {
7977
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (ac_try="$ac_link"
7984 case "(($ac_try" in
7985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986   *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989   (eval "$ac_link") 2>conftest.er1
7990   ac_status=$?
7991   grep -v '^ *+' conftest.er1 >conftest.err
7992   rm -f conftest.er1
7993   cat conftest.err >&5
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); } && {
7996          test -z "$ac_c_werror_flag" ||
7997          test ! -s conftest.err
7998        } && test -s conftest$ac_exeext &&
7999        $as_test_x conftest$ac_exeext; then
8000   
8001 lt_aix_libpath_sed='
8002     /Import File Strings/,/^$/ {
8003         /^0/ {
8004             s/^0  *\(.*\)$/\1/
8005             p
8006         }
8007     }'
8008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8009 # Check for a 64-bit object if we didn't find anything.
8010 if test -z "$aix_libpath"; then
8011   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8012 fi
8013 else
8014   echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017         
8018 fi
8019
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021       conftest$ac_exeext conftest.$ac_ext
8022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8023
8024          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8025           # Warning - without using the other run time loading flags,
8026           # -berok will link without error, but may produce a broken library.
8027           no_undefined_flag=' ${wl}-bernotok'
8028           allow_undefined_flag=' ${wl}-berok'
8029           # Exported symbols can be pulled into shared objects from archives
8030           whole_archive_flag_spec='$convenience'
8031           archive_cmds_need_lc=yes
8032           # This is similar to how AIX traditionally builds its shared libraries.
8033           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'
8034         fi
8035       fi
8036       ;;
8037
8038     amigaos*)
8039       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)'
8040       hardcode_libdir_flag_spec='-L$libdir'
8041       hardcode_minus_L=yes
8042       # see comment about different semantics on the GNU ld section
8043       ld_shlibs=no
8044       ;;
8045
8046     bsdi[45]*)
8047       export_dynamic_flag_spec=-rdynamic
8048       ;;
8049
8050     cygwin* | mingw* | pw32*)
8051       # When not using gcc, we currently assume that we are using
8052       # Microsoft Visual C++.
8053       # hardcode_libdir_flag_spec is actually meaningless, as there is
8054       # no search path for DLLs.
8055       hardcode_libdir_flag_spec=' '
8056       allow_undefined_flag=unsupported
8057       # Tell ltmain to make .lib files, not .a files.
8058       libext=lib
8059       # Tell ltmain to make .dll files, not .so files.
8060       shrext_cmds=".dll"
8061       # FIXME: Setting linknames here is a bad hack.
8062       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8063       # The linker will automatically build a .lib file if we build a DLL.
8064       old_archive_From_new_cmds='true'
8065       # FIXME: Should let the user specify the lib program.
8066       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8067       fix_srcfile_path='`cygpath -w "$srcfile"`'
8068       enable_shared_with_static_runtimes=yes
8069       ;;
8070
8071     darwin* | rhapsody*)
8072       case $host_os in
8073         rhapsody* | darwin1.[012])
8074          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8075          ;;
8076        *) # Darwin 1.3 on
8077          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8078            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8079          else
8080            case ${MACOSX_DEPLOYMENT_TARGET} in
8081              10.[012])
8082                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8083                ;;
8084              10.*)
8085                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8086                ;;
8087            esac
8088          fi
8089          ;;
8090       esac
8091       archive_cmds_need_lc=no
8092       hardcode_direct=no
8093       hardcode_automatic=yes
8094       hardcode_shlibpath_var=unsupported
8095       whole_archive_flag_spec=''
8096       link_all_deplibs=yes
8097     if test "$GCC" = yes ; then
8098         output_verbose_link_cmd='echo'
8099         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8100       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8101       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8102       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8103       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}'
8104     else
8105       case $cc_basename in
8106         xlc*)
8107          output_verbose_link_cmd='echo'
8108          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8109          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8110           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8111          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}'
8112           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}'
8113           ;;
8114        *)
8115          ld_shlibs=no
8116           ;;
8117       esac
8118     fi
8119       ;;
8120
8121     dgux*)
8122       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123       hardcode_libdir_flag_spec='-L$libdir'
8124       hardcode_shlibpath_var=no
8125       ;;
8126
8127     freebsd1*)
8128       ld_shlibs=no
8129       ;;
8130
8131     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8132     # support.  Future versions do this automatically, but an explicit c++rt0.o
8133     # does not break anything, and helps significantly (at the cost of a little
8134     # extra space).
8135     freebsd2.2*)
8136       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8137       hardcode_libdir_flag_spec='-R$libdir'
8138       hardcode_direct=yes
8139       hardcode_shlibpath_var=no
8140       ;;
8141
8142     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8143     freebsd2*)
8144       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8145       hardcode_direct=yes
8146       hardcode_minus_L=yes
8147       hardcode_shlibpath_var=no
8148       ;;
8149
8150     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8151     freebsd* | dragonfly*)
8152       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8153       hardcode_libdir_flag_spec='-R$libdir'
8154       hardcode_direct=yes
8155       hardcode_shlibpath_var=no
8156       ;;
8157
8158     hpux9*)
8159       if test "$GCC" = yes; then
8160         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'
8161       else
8162         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'
8163       fi
8164       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8165       hardcode_libdir_separator=:
8166       hardcode_direct=yes
8167
8168       # hardcode_minus_L: Not really in the search PATH,
8169       # but as the default location of the library.
8170       hardcode_minus_L=yes
8171       export_dynamic_flag_spec='${wl}-E'
8172       ;;
8173
8174     hpux10*)
8175       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8176         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8177       else
8178         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8179       fi
8180       if test "$with_gnu_ld" = no; then
8181         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8182         hardcode_libdir_separator=:
8183
8184         hardcode_direct=yes
8185         export_dynamic_flag_spec='${wl}-E'
8186
8187         # hardcode_minus_L: Not really in the search PATH,
8188         # but as the default location of the library.
8189         hardcode_minus_L=yes
8190       fi
8191       ;;
8192
8193     hpux11*)
8194       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8195         case $host_cpu in
8196         hppa*64*)
8197           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8198           ;;
8199         ia64*)
8200           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8201           ;;
8202         *)
8203           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8204           ;;
8205         esac
8206       else
8207         case $host_cpu in
8208         hppa*64*)
8209           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8210           ;;
8211         ia64*)
8212           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8213           ;;
8214         *)
8215           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8216           ;;
8217         esac
8218       fi
8219       if test "$with_gnu_ld" = no; then
8220         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8221         hardcode_libdir_separator=:
8222
8223         case $host_cpu in
8224         hppa*64*|ia64*)
8225           hardcode_libdir_flag_spec_ld='+b $libdir'
8226           hardcode_direct=no
8227           hardcode_shlibpath_var=no
8228           ;;
8229         *)
8230           hardcode_direct=yes
8231           export_dynamic_flag_spec='${wl}-E'
8232
8233           # hardcode_minus_L: Not really in the search PATH,
8234           # but as the default location of the library.
8235           hardcode_minus_L=yes
8236           ;;
8237         esac
8238       fi
8239       ;;
8240
8241     irix5* | irix6* | nonstopux*)
8242       if test "$GCC" = yes; then
8243         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'
8244       else
8245         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'
8246         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8247       fi
8248       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8249       hardcode_libdir_separator=:
8250       link_all_deplibs=yes
8251       ;;
8252
8253     netbsd*)
8254       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8255         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8256       else
8257         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8258       fi
8259       hardcode_libdir_flag_spec='-R$libdir'
8260       hardcode_direct=yes
8261       hardcode_shlibpath_var=no
8262       ;;
8263
8264     newsos6)
8265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8266       hardcode_direct=yes
8267       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8268       hardcode_libdir_separator=:
8269       hardcode_shlibpath_var=no
8270       ;;
8271
8272     openbsd*)
8273       if test -f /usr/libexec/ld.so; then
8274         hardcode_direct=yes
8275         hardcode_shlibpath_var=no
8276         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8277           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8278           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8279           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8280           export_dynamic_flag_spec='${wl}-E'
8281         else
8282           case $host_os in
8283            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8284              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8285              hardcode_libdir_flag_spec='-R$libdir'
8286              ;;
8287            *)
8288              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8289              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8290              ;;
8291           esac
8292         fi
8293       else
8294         ld_shlibs=no
8295       fi
8296       ;;
8297
8298     os2*)
8299       hardcode_libdir_flag_spec='-L$libdir'
8300       hardcode_minus_L=yes
8301       allow_undefined_flag=unsupported
8302       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'
8303       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8304       ;;
8305
8306     osf3*)
8307       if test "$GCC" = yes; then
8308         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8309         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'
8310       else
8311         allow_undefined_flag=' -expect_unresolved \*'
8312         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'
8313       fi
8314       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8315       hardcode_libdir_separator=:
8316       ;;
8317
8318     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8319       if test "$GCC" = yes; then
8320         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8321         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'
8322         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8323       else
8324         allow_undefined_flag=' -expect_unresolved \*'
8325         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'
8326         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8327         $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'
8328
8329         # Both c and cxx compiler support -rpath directly
8330         hardcode_libdir_flag_spec='-rpath $libdir'
8331       fi
8332       hardcode_libdir_separator=:
8333       ;;
8334
8335     solaris*)
8336       no_undefined_flag=' -z text'
8337       if test "$GCC" = yes; then
8338         wlarc='${wl}'
8339         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8340         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8341           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8342       else
8343         wlarc=''
8344         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8345         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8346         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8347       fi
8348       hardcode_libdir_flag_spec='-R$libdir'
8349       hardcode_shlibpath_var=no
8350       case $host_os in
8351       solaris2.[0-5] | solaris2.[0-5].*) ;;
8352       *)
8353         # The compiler driver will combine and reorder linker options,
8354         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8355         # but is careful enough not to reorder.
8356         # Supported since Solaris 2.6 (maybe 2.5.1?)
8357         if test "$GCC" = yes; then
8358           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8359         else
8360           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8361         fi
8362         ;;
8363       esac
8364       link_all_deplibs=yes
8365       ;;
8366
8367     sunos4*)
8368       if test "x$host_vendor" = xsequent; then
8369         # Use $CC to link under sequent, because it throws in some extra .o
8370         # files that make .init and .fini sections work.
8371         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8372       else
8373         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8374       fi
8375       hardcode_libdir_flag_spec='-L$libdir'
8376       hardcode_direct=yes
8377       hardcode_minus_L=yes
8378       hardcode_shlibpath_var=no
8379       ;;
8380
8381     sysv4)
8382       case $host_vendor in
8383         sni)
8384           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8385           hardcode_direct=yes # is this really true???
8386         ;;
8387         siemens)
8388           ## LD is ld it makes a PLAMLIB
8389           ## CC just makes a GrossModule.
8390           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8391           reload_cmds='$CC -r -o $output$reload_objs'
8392           hardcode_direct=no
8393         ;;
8394         motorola)
8395           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8396           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8397         ;;
8398       esac
8399       runpath_var='LD_RUN_PATH'
8400       hardcode_shlibpath_var=no
8401       ;;
8402
8403     sysv4.3*)
8404       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8405       hardcode_shlibpath_var=no
8406       export_dynamic_flag_spec='-Bexport'
8407       ;;
8408
8409     sysv4*MP*)
8410       if test -d /usr/nec; then
8411         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8412         hardcode_shlibpath_var=no
8413         runpath_var=LD_RUN_PATH
8414         hardcode_runpath_var=yes
8415         ld_shlibs=yes
8416       fi
8417       ;;
8418
8419     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8420       no_undefined_flag='${wl}-z,text'
8421       archive_cmds_need_lc=no
8422       hardcode_shlibpath_var=no
8423       runpath_var='LD_RUN_PATH'
8424
8425       if test "$GCC" = yes; then
8426         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8428       else
8429         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8431       fi
8432       ;;
8433
8434     sysv5* | sco3.2v5* | sco5v6*)
8435       # Note: We can NOT use -z defs as we might desire, because we do not
8436       # link with -lc, and that would cause any symbols used from libc to
8437       # always be unresolved, which means just about no library would
8438       # ever link correctly.  If we're not using GNU ld we use -z text
8439       # though, which does catch some bad symbols but isn't as heavy-handed
8440       # as -z defs.
8441       no_undefined_flag='${wl}-z,text'
8442       allow_undefined_flag='${wl}-z,nodefs'
8443       archive_cmds_need_lc=no
8444       hardcode_shlibpath_var=no
8445       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8446       hardcode_libdir_separator=':'
8447       link_all_deplibs=yes
8448       export_dynamic_flag_spec='${wl}-Bexport'
8449       runpath_var='LD_RUN_PATH'
8450
8451       if test "$GCC" = yes; then
8452         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8453         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8454       else
8455         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8457       fi
8458       ;;
8459
8460     uts4*)
8461       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462       hardcode_libdir_flag_spec='-L$libdir'
8463       hardcode_shlibpath_var=no
8464       ;;
8465
8466     *)
8467       ld_shlibs=no
8468       ;;
8469     esac
8470   fi
8471
8472 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8473 echo "${ECHO_T}$ld_shlibs" >&6; }
8474 test "$ld_shlibs" = no && can_build_shared=no
8475
8476 #
8477 # Do we need to explicitly link libc?
8478 #
8479 case "x$archive_cmds_need_lc" in
8480 x|xyes)
8481   # Assume -lc should be added
8482   archive_cmds_need_lc=yes
8483
8484   if test "$enable_shared" = yes && test "$GCC" = yes; then
8485     case $archive_cmds in
8486     *'~'*)
8487       # FIXME: we may have to deal with multi-command sequences.
8488       ;;
8489     '$CC '*)
8490       # Test whether the compiler implicitly links with -lc since on some
8491       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8492       # to ld, don't add -lc before -lgcc.
8493       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8494 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8495       $rm conftest*
8496       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8497
8498       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8499   (eval $ac_compile) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } 2>conftest.err; then
8503         soname=conftest
8504         lib=conftest
8505         libobjs=conftest.$ac_objext
8506         deplibs=
8507         wl=$lt_prog_compiler_wl
8508         pic_flag=$lt_prog_compiler_pic
8509         compiler_flags=-v
8510         linker_flags=-v
8511         verstring=
8512         output_objdir=.
8513         libname=conftest
8514         lt_save_allow_undefined_flag=$allow_undefined_flag
8515         allow_undefined_flag=
8516         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8517   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }
8521         then
8522           archive_cmds_need_lc=no
8523         else
8524           archive_cmds_need_lc=yes
8525         fi
8526         allow_undefined_flag=$lt_save_allow_undefined_flag
8527       else
8528         cat conftest.err 1>&5
8529       fi
8530       $rm conftest*
8531       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8532 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8533       ;;
8534     esac
8535   fi
8536   ;;
8537 esac
8538
8539 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8540 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8541 library_names_spec=
8542 libname_spec='lib$name'
8543 soname_spec=
8544 shrext_cmds=".so"
8545 postinstall_cmds=
8546 postuninstall_cmds=
8547 finish_cmds=
8548 finish_eval=
8549 shlibpath_var=
8550 shlibpath_overrides_runpath=unknown
8551 version_type=none
8552 dynamic_linker="$host_os ld.so"
8553 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8554
8555 if test "$GCC" = yes; then
8556   case $host_os in
8557     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8558     *) lt_awk_arg="/^libraries:/" ;;
8559   esac
8560   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8562     # if the path contains ";" then we assume it to be the separator
8563     # otherwise default to the standard path separator (i.e. ":") - it is
8564     # assumed that no part of a normal pathname contains ";" but that should
8565     # okay in the real world where ";" in dirpaths is itself problematic.
8566     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8567   else
8568     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8569   fi
8570   # Ok, now we have the path, separated by spaces, we can step through it
8571   # and add multilib dir if necessary.
8572   lt_tmp_lt_search_path_spec=
8573   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8574   for lt_sys_path in $lt_search_path_spec; do
8575     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8576       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8577     else
8578       test -d "$lt_sys_path" && \
8579         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8580     fi
8581   done
8582   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8583 BEGIN {RS=" "; FS="/|\n";} {
8584   lt_foo="";
8585   lt_count=0;
8586   for (lt_i = NF; lt_i > 0; lt_i--) {
8587     if ($lt_i != "" && $lt_i != ".") {
8588       if ($lt_i == "..") {
8589         lt_count++;
8590       } else {
8591         if (lt_count == 0) {
8592           lt_foo="/" $lt_i lt_foo;
8593         } else {
8594           lt_count--;
8595         }
8596       }
8597     }
8598   }
8599   if (lt_foo != "") { lt_freq[lt_foo]++; }
8600   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8601 }'`
8602   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8603 else
8604   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8605 fi
8606 need_lib_prefix=unknown
8607 hardcode_into_libs=no
8608
8609 # when you set need_version to no, make sure it does not cause -set_version
8610 # flags to be left without arguments
8611 need_version=unknown
8612
8613 case $host_os in
8614 aix3*)
8615   version_type=linux
8616   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8617   shlibpath_var=LIBPATH
8618
8619   # AIX 3 has no versioning support, so we append a major version to the name.
8620   soname_spec='${libname}${release}${shared_ext}$major'
8621   ;;
8622
8623 aix4* | aix5*)
8624   version_type=linux
8625   need_lib_prefix=no
8626   need_version=no
8627   hardcode_into_libs=yes
8628   if test "$host_cpu" = ia64; then
8629     # AIX 5 supports IA64
8630     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8631     shlibpath_var=LD_LIBRARY_PATH
8632   else
8633     # With GCC up to 2.95.x, collect2 would create an import file
8634     # for dependence libraries.  The import file would start with
8635     # the line `#! .'.  This would cause the generated library to
8636     # depend on `.', always an invalid library.  This was fixed in
8637     # development snapshots of GCC prior to 3.0.
8638     case $host_os in
8639       aix4 | aix4.[01] | aix4.[01].*)
8640       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8641            echo ' yes '
8642            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8643         :
8644       else
8645         can_build_shared=no
8646       fi
8647       ;;
8648     esac
8649     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8650     # soname into executable. Probably we can add versioning support to
8651     # collect2, so additional links can be useful in future.
8652     if test "$aix_use_runtimelinking" = yes; then
8653       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8654       # instead of lib<name>.a to let people know that these are not
8655       # typical AIX shared libraries.
8656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8657     else
8658       # We preserve .a as extension for shared libraries through AIX4.2
8659       # and later when we are not doing run time linking.
8660       library_names_spec='${libname}${release}.a $libname.a'
8661       soname_spec='${libname}${release}${shared_ext}$major'
8662     fi
8663     shlibpath_var=LIBPATH
8664   fi
8665   ;;
8666
8667 amigaos*)
8668   library_names_spec='$libname.ixlibrary $libname.a'
8669   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8670   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'
8671   ;;
8672
8673 beos*)
8674   library_names_spec='${libname}${shared_ext}'
8675   dynamic_linker="$host_os ld.so"
8676   shlibpath_var=LIBRARY_PATH
8677   ;;
8678
8679 bsdi[45]*)
8680   version_type=linux
8681   need_version=no
8682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683   soname_spec='${libname}${release}${shared_ext}$major'
8684   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8685   shlibpath_var=LD_LIBRARY_PATH
8686   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8687   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8688   # the default ld.so.conf also contains /usr/contrib/lib and
8689   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8690   # libtool to hard-code these into programs
8691   ;;
8692
8693 cygwin* | mingw* | pw32*)
8694   version_type=windows
8695   shrext_cmds=".dll"
8696   need_version=no
8697   need_lib_prefix=no
8698
8699   case $GCC,$host_os in
8700   yes,cygwin* | yes,mingw* | yes,pw32*)
8701     library_names_spec='$libname.dll.a'
8702     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8703     postinstall_cmds='base_file=`basename \${file}`~
8704       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8705       dldir=$destdir/`dirname \$dlpath`~
8706       test -d \$dldir || mkdir -p \$dldir~
8707       $install_prog $dir/$dlname \$dldir/$dlname~
8708       chmod a+x \$dldir/$dlname'
8709     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8710       dlpath=$dir/\$dldll~
8711        $rm \$dlpath'
8712     shlibpath_overrides_runpath=yes
8713
8714     case $host_os in
8715     cygwin*)
8716       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8717       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8718       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8719       ;;
8720     mingw*)
8721       # MinGW DLLs use traditional 'lib' prefix
8722       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8723       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8724       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8725         # It is most probably a Windows format PATH printed by
8726         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8727         # path with ; separators, and with drive letters. We can handle the
8728         # drive letters (cygwin fileutils understands them), so leave them,
8729         # especially as we might pass files found there to a mingw objdump,
8730         # which wouldn't understand a cygwinified path. Ahh.
8731         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8732       else
8733         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8734       fi
8735       ;;
8736     pw32*)
8737       # pw32 DLLs use 'pw' prefix rather than 'lib'
8738       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739       ;;
8740     esac
8741     ;;
8742
8743   *)
8744     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8745     ;;
8746   esac
8747   dynamic_linker='Win32 ld.exe'
8748   # FIXME: first we should search . and the directory the executable is in
8749   shlibpath_var=PATH
8750   ;;
8751
8752 darwin* | rhapsody*)
8753   dynamic_linker="$host_os dyld"
8754   version_type=darwin
8755   need_lib_prefix=no
8756   need_version=no
8757   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8758   soname_spec='${libname}${release}${major}$shared_ext'
8759   shlibpath_overrides_runpath=yes
8760   shlibpath_var=DYLD_LIBRARY_PATH
8761   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8762   
8763   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
8764   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8765   ;;
8766
8767 dgux*)
8768   version_type=linux
8769   need_lib_prefix=no
8770   need_version=no
8771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8772   soname_spec='${libname}${release}${shared_ext}$major'
8773   shlibpath_var=LD_LIBRARY_PATH
8774   ;;
8775
8776 freebsd1*)
8777   dynamic_linker=no
8778   ;;
8779
8780 freebsd* | dragonfly*)
8781   # DragonFly does not have aout.  When/if they implement a new
8782   # versioning mechanism, adjust this.
8783   if test -x /usr/bin/objformat; then
8784     objformat=`/usr/bin/objformat`
8785   else
8786     case $host_os in
8787     freebsd[123]*) objformat=aout ;;
8788     *) objformat=elf ;;
8789     esac
8790   fi
8791   version_type=freebsd-$objformat
8792   case $version_type in
8793     freebsd-elf*)
8794       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8795       need_version=no
8796       need_lib_prefix=no
8797       ;;
8798     freebsd-*)
8799       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8800       need_version=yes
8801       ;;
8802   esac
8803   shlibpath_var=LD_LIBRARY_PATH
8804   case $host_os in
8805   freebsd2*)
8806     shlibpath_overrides_runpath=yes
8807     ;;
8808   freebsd3.[01]* | freebsdelf3.[01]*)
8809     shlibpath_overrides_runpath=yes
8810     hardcode_into_libs=yes
8811     ;;
8812   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8813   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8814     shlibpath_overrides_runpath=no
8815     hardcode_into_libs=yes
8816     ;;
8817   *) # from 4.6 on, and DragonFly
8818     shlibpath_overrides_runpath=yes
8819     hardcode_into_libs=yes
8820     ;;
8821   esac
8822   ;;
8823
8824 gnu*)
8825   version_type=linux
8826   need_lib_prefix=no
8827   need_version=no
8828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8829   soname_spec='${libname}${release}${shared_ext}$major'
8830   shlibpath_var=LD_LIBRARY_PATH
8831   hardcode_into_libs=yes
8832   ;;
8833
8834 hpux9* | hpux10* | hpux11*)
8835   # Give a soname corresponding to the major version so that dld.sl refuses to
8836   # link against other versions.
8837   version_type=sunos
8838   need_lib_prefix=no
8839   need_version=no
8840   case $host_cpu in
8841   ia64*)
8842     shrext_cmds='.so'
8843     hardcode_into_libs=yes
8844     dynamic_linker="$host_os dld.so"
8845     shlibpath_var=LD_LIBRARY_PATH
8846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848     soname_spec='${libname}${release}${shared_ext}$major'
8849     if test "X$HPUX_IA64_MODE" = X32; then
8850       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8851     else
8852       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8853     fi
8854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8855     ;;
8856    hppa*64*)
8857      shrext_cmds='.sl'
8858      hardcode_into_libs=yes
8859      dynamic_linker="$host_os dld.sl"
8860      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8861      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8862      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863      soname_spec='${libname}${release}${shared_ext}$major'
8864      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8865      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866      ;;
8867    *)
8868     shrext_cmds='.sl'
8869     dynamic_linker="$host_os dld.sl"
8870     shlibpath_var=SHLIB_PATH
8871     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873     soname_spec='${libname}${release}${shared_ext}$major'
8874     ;;
8875   esac
8876   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8877   postinstall_cmds='chmod 555 $lib'
8878   ;;
8879
8880 interix[3-9]*)
8881   version_type=linux
8882   need_lib_prefix=no
8883   need_version=no
8884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885   soname_spec='${libname}${release}${shared_ext}$major'
8886   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8887   shlibpath_var=LD_LIBRARY_PATH
8888   shlibpath_overrides_runpath=no
8889   hardcode_into_libs=yes
8890   ;;
8891
8892 irix5* | irix6* | nonstopux*)
8893   case $host_os in
8894     nonstopux*) version_type=nonstopux ;;
8895     *)
8896         if test "$lt_cv_prog_gnu_ld" = yes; then
8897                 version_type=linux
8898         else
8899                 version_type=irix
8900         fi ;;
8901   esac
8902   need_lib_prefix=no
8903   need_version=no
8904   soname_spec='${libname}${release}${shared_ext}$major'
8905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8906   case $host_os in
8907   irix5* | nonstopux*)
8908     libsuff= shlibsuff=
8909     ;;
8910   *)
8911     case $LD in # libtool.m4 will add one of these switches to LD
8912     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8913       libsuff= shlibsuff= libmagic=32-bit;;
8914     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8915       libsuff=32 shlibsuff=N32 libmagic=N32;;
8916     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8917       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8918     *) libsuff= shlibsuff= libmagic=never-match;;
8919     esac
8920     ;;
8921   esac
8922   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8923   shlibpath_overrides_runpath=no
8924   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8925   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8926   hardcode_into_libs=yes
8927   ;;
8928
8929 # No shared lib support for Linux oldld, aout, or coff.
8930 linux*oldld* | linux*aout* | linux*coff*)
8931   dynamic_linker=no
8932   ;;
8933
8934 # This must be Linux ELF.
8935 linux* | k*bsd*-gnu)
8936   version_type=linux
8937   need_lib_prefix=no
8938   need_version=no
8939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940   soname_spec='${libname}${release}${shared_ext}$major'
8941   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8942   shlibpath_var=LD_LIBRARY_PATH
8943   shlibpath_overrides_runpath=no
8944   # This implies no fast_install, which is unacceptable.
8945   # Some rework will be needed to allow for fast_install
8946   # before this can be enabled.
8947   hardcode_into_libs=yes
8948
8949   # find out which ABI we are using
8950   libsuff=
8951   case "$host_cpu" in
8952   x86_64*|s390x*|powerpc64*)
8953     echo '#line __oline__ "configure"' > conftest.$ac_ext
8954     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955   (eval $ac_compile) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; then
8959       case `/usr/bin/file conftest.$ac_objext` in
8960       *64-bit*)
8961         libsuff=64
8962         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8963         ;;
8964       esac
8965     fi
8966     rm -rf conftest*
8967     ;;
8968   esac
8969
8970   # Append ld.so.conf contents to the search path
8971   if test -f /etc/ld.so.conf; then
8972     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' ' '`
8973     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8974   fi
8975
8976   # We used to test for /lib/ld.so.1 and disable shared libraries on
8977   # powerpc, because MkLinux only supported shared libraries with the
8978   # GNU dynamic linker.  Since this was broken with cross compilers,
8979   # most powerpc-linux boxes support dynamic linking these days and
8980   # people can always --disable-shared, the test was removed, and we
8981   # assume the GNU/Linux dynamic linker is in use.
8982   dynamic_linker='GNU/Linux ld.so'
8983   ;;
8984
8985 netbsd*)
8986   version_type=sunos
8987   need_lib_prefix=no
8988   need_version=no
8989   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8992     dynamic_linker='NetBSD (a.out) ld.so'
8993   else
8994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8995     soname_spec='${libname}${release}${shared_ext}$major'
8996     dynamic_linker='NetBSD ld.elf_so'
8997   fi
8998   shlibpath_var=LD_LIBRARY_PATH
8999   shlibpath_overrides_runpath=yes
9000   hardcode_into_libs=yes
9001   ;;
9002
9003 newsos6)
9004   version_type=linux
9005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006   shlibpath_var=LD_LIBRARY_PATH
9007   shlibpath_overrides_runpath=yes
9008   ;;
9009
9010 nto-qnx*)
9011   version_type=linux
9012   need_lib_prefix=no
9013   need_version=no
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   shlibpath_overrides_runpath=yes
9018   ;;
9019
9020 openbsd*)
9021   version_type=sunos
9022   sys_lib_dlsearch_path_spec="/usr/lib"
9023   need_lib_prefix=no
9024   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9025   case $host_os in
9026     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9027     *)                         need_version=no  ;;
9028   esac
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9031   shlibpath_var=LD_LIBRARY_PATH
9032   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9033     case $host_os in
9034       openbsd2.[89] | openbsd2.[89].*)
9035         shlibpath_overrides_runpath=no
9036         ;;
9037       *)
9038         shlibpath_overrides_runpath=yes
9039         ;;
9040       esac
9041   else
9042     shlibpath_overrides_runpath=yes
9043   fi
9044   ;;
9045
9046 os2*)
9047   libname_spec='$name'
9048   shrext_cmds=".dll"
9049   need_lib_prefix=no
9050   library_names_spec='$libname${shared_ext} $libname.a'
9051   dynamic_linker='OS/2 ld.exe'
9052   shlibpath_var=LIBPATH
9053   ;;
9054
9055 osf3* | osf4* | osf5*)
9056   version_type=osf
9057   need_lib_prefix=no
9058   need_version=no
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061   shlibpath_var=LD_LIBRARY_PATH
9062   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9063   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9064   ;;
9065
9066 rdos*)
9067   dynamic_linker=no
9068   ;;
9069
9070 solaris*)
9071   version_type=linux
9072   need_lib_prefix=no
9073   need_version=no
9074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075   soname_spec='${libname}${release}${shared_ext}$major'
9076   shlibpath_var=LD_LIBRARY_PATH
9077   shlibpath_overrides_runpath=yes
9078   hardcode_into_libs=yes
9079   # ldd complains unless libraries are executable
9080   postinstall_cmds='chmod +x $lib'
9081   ;;
9082
9083 sunos4*)
9084   version_type=sunos
9085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9086   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9087   shlibpath_var=LD_LIBRARY_PATH
9088   shlibpath_overrides_runpath=yes
9089   if test "$with_gnu_ld" = yes; then
9090     need_lib_prefix=no
9091   fi
9092   need_version=yes
9093   ;;
9094
9095 sysv4 | sysv4.3*)
9096   version_type=linux
9097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098   soname_spec='${libname}${release}${shared_ext}$major'
9099   shlibpath_var=LD_LIBRARY_PATH
9100   case $host_vendor in
9101     sni)
9102       shlibpath_overrides_runpath=no
9103       need_lib_prefix=no
9104       export_dynamic_flag_spec='${wl}-Blargedynsym'
9105       runpath_var=LD_RUN_PATH
9106       ;;
9107     siemens)
9108       need_lib_prefix=no
9109       ;;
9110     motorola)
9111       need_lib_prefix=no
9112       need_version=no
9113       shlibpath_overrides_runpath=no
9114       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9115       ;;
9116   esac
9117   ;;
9118
9119 sysv4*MP*)
9120   if test -d /usr/nec ;then
9121     version_type=linux
9122     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9123     soname_spec='$libname${shared_ext}.$major'
9124     shlibpath_var=LD_LIBRARY_PATH
9125   fi
9126   ;;
9127
9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9129   version_type=freebsd-elf
9130   need_lib_prefix=no
9131   need_version=no
9132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9133   soname_spec='${libname}${release}${shared_ext}$major'
9134   shlibpath_var=LD_LIBRARY_PATH
9135   hardcode_into_libs=yes
9136   if test "$with_gnu_ld" = yes; then
9137     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9138     shlibpath_overrides_runpath=no
9139   else
9140     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9141     shlibpath_overrides_runpath=yes
9142     case $host_os in
9143       sco3.2v5*)
9144         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9145         ;;
9146     esac
9147   fi
9148   sys_lib_dlsearch_path_spec='/usr/lib'
9149   ;;
9150
9151 uts4*)
9152   version_type=linux
9153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154   soname_spec='${libname}${release}${shared_ext}$major'
9155   shlibpath_var=LD_LIBRARY_PATH
9156   ;;
9157
9158 *)
9159   dynamic_linker=no
9160   ;;
9161 esac
9162 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9163 echo "${ECHO_T}$dynamic_linker" >&6; }
9164 test "$dynamic_linker" = no && can_build_shared=no
9165
9166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9167 if test "$GCC" = yes; then
9168   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9169 fi
9170
9171 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9172 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9173 hardcode_action=
9174 if test -n "$hardcode_libdir_flag_spec" || \
9175    test -n "$runpath_var" || \
9176    test "X$hardcode_automatic" = "Xyes" ; then
9177
9178   # We can hardcode non-existant directories.
9179   if test "$hardcode_direct" != no &&
9180      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9181      # have to relink, otherwise we might link with an installed library
9182      # when we should be linking with a yet-to-be-installed one
9183      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9184      test "$hardcode_minus_L" != no; then
9185     # Linking always hardcodes the temporary library directory.
9186     hardcode_action=relink
9187   else
9188     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9189     hardcode_action=immediate
9190   fi
9191 else
9192   # We cannot hardcode anything, or else we can only hardcode existing
9193   # directories.
9194   hardcode_action=unsupported
9195 fi
9196 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9197 echo "${ECHO_T}$hardcode_action" >&6; }
9198
9199 if test "$hardcode_action" = relink; then
9200   # Fast installation is not supported
9201   enable_fast_install=no
9202 elif test "$shlibpath_overrides_runpath" = yes ||
9203      test "$enable_shared" = no; then
9204   # Fast installation is not necessary
9205   enable_fast_install=needless
9206 fi
9207
9208 striplib=
9209 old_striplib=
9210 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9211 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9212 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9213   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9214   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9215   { echo "$as_me:$LINENO: result: yes" >&5
9216 echo "${ECHO_T}yes" >&6; }
9217 else
9218 # FIXME - insert some real tests, host_os isn't really good enough
9219   case $host_os in
9220    darwin*)
9221        if test -n "$STRIP" ; then
9222          striplib="$STRIP -x"
9223          old_striplib="$STRIP -S"
9224          { echo "$as_me:$LINENO: result: yes" >&5
9225 echo "${ECHO_T}yes" >&6; }
9226        else
9227   { echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6; }
9229 fi
9230        ;;
9231    *)
9232   { echo "$as_me:$LINENO: result: no" >&5
9233 echo "${ECHO_T}no" >&6; }
9234     ;;
9235   esac
9236 fi
9237
9238 if test "x$enable_dlopen" != xyes; then
9239   enable_dlopen=unknown
9240   enable_dlopen_self=unknown
9241   enable_dlopen_self_static=unknown
9242 else
9243   lt_cv_dlopen=no
9244   lt_cv_dlopen_libs=
9245
9246   case $host_os in
9247   beos*)
9248     lt_cv_dlopen="load_add_on"
9249     lt_cv_dlopen_libs=
9250     lt_cv_dlopen_self=yes
9251     ;;
9252
9253   mingw* | pw32*)
9254     lt_cv_dlopen="LoadLibrary"
9255     lt_cv_dlopen_libs=
9256    ;;
9257
9258   cygwin*)
9259     lt_cv_dlopen="dlopen"
9260     lt_cv_dlopen_libs=
9261    ;;
9262
9263   darwin*)
9264   # if libdl is installed we need to link against it
9265     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9266 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9267 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   ac_check_lib_save_LIBS=$LIBS
9271 LIBS="-ldl  $LIBS"
9272 cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h.  */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h.  */
9278
9279 /* Override any GCC internal prototype to avoid an error.
9280    Use char because int might match the return type of a GCC
9281    builtin and then its argument prototype would still apply.  */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char dlopen ();
9286 int
9287 main ()
9288 {
9289 return dlopen ();
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (ac_try="$ac_link"
9296 case "(($ac_try" in
9297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298   *) ac_try_echo=$ac_try;;
9299 esac
9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301   (eval "$ac_link") 2>conftest.er1
9302   ac_status=$?
9303   grep -v '^ *+' conftest.er1 >conftest.err
9304   rm -f conftest.er1
9305   cat conftest.err >&5
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); } && {
9308          test -z "$ac_c_werror_flag" ||
9309          test ! -s conftest.err
9310        } && test -s conftest$ac_exeext &&
9311        $as_test_x conftest$ac_exeext; then
9312   ac_cv_lib_dl_dlopen=yes
9313 else
9314   echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317         ac_cv_lib_dl_dlopen=no
9318 fi
9319
9320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9321       conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9323 fi
9324 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9325 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9326 if test $ac_cv_lib_dl_dlopen = yes; then
9327   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9328 else
9329   
9330     lt_cv_dlopen="dyld"
9331     lt_cv_dlopen_libs=
9332     lt_cv_dlopen_self=yes
9333     
9334 fi
9335
9336    ;;
9337
9338   *)
9339     { echo "$as_me:$LINENO: checking for shl_load" >&5
9340 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9341 if test "${ac_cv_func_shl_load+set}" = set; then
9342   echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344   cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9352 #define shl_load innocuous_shl_load
9353
9354 /* System header to define __stub macros and hopefully few prototypes,
9355     which can conflict with char shl_load (); below.
9356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357     <limits.h> exists even on freestanding compilers.  */
9358
9359 #ifdef __STDC__
9360 # include <limits.h>
9361 #else
9362 # include <assert.h>
9363 #endif
9364
9365 #undef shl_load
9366
9367 /* Override any GCC internal prototype to avoid an error.
9368    Use char because int might match the return type of a GCC
9369    builtin and then its argument prototype would still apply.  */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char shl_load ();
9374 /* The GNU C library defines this for functions which it implements
9375     to always fail with ENOSYS.  Some functions are actually named
9376     something starting with __ and the normal name is an alias.  */
9377 #if defined __stub_shl_load || defined __stub___shl_load
9378 choke me
9379 #endif
9380
9381 int
9382 main ()
9383 {
9384 return shl_load ();
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9391 case "(($ac_try" in
9392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393   *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396   (eval "$ac_link") 2>conftest.er1
9397   ac_status=$?
9398   grep -v '^ *+' conftest.er1 >conftest.err
9399   rm -f conftest.er1
9400   cat conftest.err >&5
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); } && {
9403          test -z "$ac_c_werror_flag" ||
9404          test ! -s conftest.err
9405        } && test -s conftest$ac_exeext &&
9406        $as_test_x conftest$ac_exeext; then
9407   ac_cv_func_shl_load=yes
9408 else
9409   echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412         ac_cv_func_shl_load=no
9413 fi
9414
9415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9416       conftest$ac_exeext conftest.$ac_ext
9417 fi
9418 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9419 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9420 if test $ac_cv_func_shl_load = yes; then
9421   lt_cv_dlopen="shl_load"
9422 else
9423   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9424 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9425 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   ac_check_lib_save_LIBS=$LIBS
9429 LIBS="-ldld  $LIBS"
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h.  */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h.  */
9436
9437 /* Override any GCC internal prototype to avoid an error.
9438    Use char because int might match the return type of a GCC
9439    builtin and then its argument prototype would still apply.  */
9440 #ifdef __cplusplus
9441 extern "C"
9442 #endif
9443 char shl_load ();
9444 int
9445 main ()
9446 {
9447 return shl_load ();
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9454 case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459   (eval "$ac_link") 2>conftest.er1
9460   ac_status=$?
9461   grep -v '^ *+' conftest.er1 >conftest.err
9462   rm -f conftest.er1
9463   cat conftest.err >&5
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && {
9466          test -z "$ac_c_werror_flag" ||
9467          test ! -s conftest.err
9468        } && test -s conftest$ac_exeext &&
9469        $as_test_x conftest$ac_exeext; then
9470   ac_cv_lib_dld_shl_load=yes
9471 else
9472   echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9474
9475         ac_cv_lib_dld_shl_load=no
9476 fi
9477
9478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9479       conftest$ac_exeext conftest.$ac_ext
9480 LIBS=$ac_check_lib_save_LIBS
9481 fi
9482 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9483 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9484 if test $ac_cv_lib_dld_shl_load = yes; then
9485   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9486 else
9487   { echo "$as_me:$LINENO: checking for dlopen" >&5
9488 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9489 if test "${ac_cv_func_dlopen+set}" = set; then
9490   echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492   cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h.  */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h.  */
9498 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9500 #define dlopen innocuous_dlopen
9501
9502 /* System header to define __stub macros and hopefully few prototypes,
9503     which can conflict with char dlopen (); below.
9504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9505     <limits.h> exists even on freestanding compilers.  */
9506
9507 #ifdef __STDC__
9508 # include <limits.h>
9509 #else
9510 # include <assert.h>
9511 #endif
9512
9513 #undef dlopen
9514
9515 /* Override any GCC internal prototype to avoid an error.
9516    Use char because int might match the return type of a GCC
9517    builtin and then its argument prototype would still apply.  */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char dlopen ();
9522 /* The GNU C library defines this for functions which it implements
9523     to always fail with ENOSYS.  Some functions are actually named
9524     something starting with __ and the normal name is an alias.  */
9525 #if defined __stub_dlopen || defined __stub___dlopen
9526 choke me
9527 #endif
9528
9529 int
9530 main ()
9531 {
9532 return dlopen ();
9533   ;
9534   return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (ac_try="$ac_link"
9539 case "(($ac_try" in
9540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541   *) ac_try_echo=$ac_try;;
9542 esac
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544   (eval "$ac_link") 2>conftest.er1
9545   ac_status=$?
9546   grep -v '^ *+' conftest.er1 >conftest.err
9547   rm -f conftest.er1
9548   cat conftest.err >&5
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } && {
9551          test -z "$ac_c_werror_flag" ||
9552          test ! -s conftest.err
9553        } && test -s conftest$ac_exeext &&
9554        $as_test_x conftest$ac_exeext; then
9555   ac_cv_func_dlopen=yes
9556 else
9557   echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560         ac_cv_func_dlopen=no
9561 fi
9562
9563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9564       conftest$ac_exeext conftest.$ac_ext
9565 fi
9566 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9567 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9568 if test $ac_cv_func_dlopen = yes; then
9569   lt_cv_dlopen="dlopen"
9570 else
9571   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9572 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9574   echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576   ac_check_lib_save_LIBS=$LIBS
9577 LIBS="-ldl  $LIBS"
9578 cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h.  */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h.  */
9584
9585 /* Override any GCC internal prototype to avoid an error.
9586    Use char because int might match the return type of a GCC
9587    builtin and then its argument prototype would still apply.  */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 char dlopen ();
9592 int
9593 main ()
9594 {
9595 return dlopen ();
9596   ;
9597   return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9602 case "(($ac_try" in
9603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604   *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607   (eval "$ac_link") 2>conftest.er1
9608   ac_status=$?
9609   grep -v '^ *+' conftest.er1 >conftest.err
9610   rm -f conftest.er1
9611   cat conftest.err >&5
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); } && {
9614          test -z "$ac_c_werror_flag" ||
9615          test ! -s conftest.err
9616        } && test -s conftest$ac_exeext &&
9617        $as_test_x conftest$ac_exeext; then
9618   ac_cv_lib_dl_dlopen=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623         ac_cv_lib_dl_dlopen=no
9624 fi
9625
9626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9627       conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9629 fi
9630 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9632 if test $ac_cv_lib_dl_dlopen = yes; then
9633   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9634 else
9635   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   ac_check_lib_save_LIBS=$LIBS
9641 LIBS="-lsvld  $LIBS"
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648
9649 /* Override any GCC internal prototype to avoid an error.
9650    Use char because int might match the return type of a GCC
9651    builtin and then its argument prototype would still apply.  */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 char dlopen ();
9656 int
9657 main ()
9658 {
9659 return dlopen ();
9660   ;
9661   return 0;
9662 }
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9666 case "(($ac_try" in
9667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668   *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671   (eval "$ac_link") 2>conftest.er1
9672   ac_status=$?
9673   grep -v '^ *+' conftest.er1 >conftest.err
9674   rm -f conftest.er1
9675   cat conftest.err >&5
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } && {
9678          test -z "$ac_c_werror_flag" ||
9679          test ! -s conftest.err
9680        } && test -s conftest$ac_exeext &&
9681        $as_test_x conftest$ac_exeext; then
9682   ac_cv_lib_svld_dlopen=yes
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687         ac_cv_lib_svld_dlopen=no
9688 fi
9689
9690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691       conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9693 fi
9694 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9695 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9696 if test $ac_cv_lib_svld_dlopen = yes; then
9697   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9698 else
9699   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9700 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-ldld  $LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char dld_link ();
9720 int
9721 main ()
9722 {
9723 return dld_link ();
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9730 case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_link") 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } && {
9742          test -z "$ac_c_werror_flag" ||
9743          test ! -s conftest.err
9744        } && test -s conftest$ac_exeext &&
9745        $as_test_x conftest$ac_exeext; then
9746   ac_cv_lib_dld_dld_link=yes
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751         ac_cv_lib_dld_dld_link=no
9752 fi
9753
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755       conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9757 fi
9758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9759 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9760 if test $ac_cv_lib_dld_dld_link = yes; then
9761   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9762 fi
9763
9764               
9765 fi
9766
9767             
9768 fi
9769
9770           
9771 fi
9772
9773         
9774 fi
9775
9776       
9777 fi
9778
9779     ;;
9780   esac
9781
9782   if test "x$lt_cv_dlopen" != xno; then
9783     enable_dlopen=yes
9784   else
9785     enable_dlopen=no
9786   fi
9787
9788   case $lt_cv_dlopen in
9789   dlopen)
9790     save_CPPFLAGS="$CPPFLAGS"
9791     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9792
9793     save_LDFLAGS="$LDFLAGS"
9794     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9795
9796     save_LIBS="$LIBS"
9797     LIBS="$lt_cv_dlopen_libs $LIBS"
9798
9799     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9800 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9801 if test "${lt_cv_dlopen_self+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804           if test "$cross_compiling" = yes; then :
9805   lt_cv_dlopen_self=cross
9806 else
9807   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9808   lt_status=$lt_dlunknown
9809   cat > conftest.$ac_ext <<EOF
9810 #line __oline__ "configure"
9811 #include "confdefs.h"
9812
9813 #if HAVE_DLFCN_H
9814 #include <dlfcn.h>
9815 #endif
9816
9817 #include <stdio.h>
9818
9819 #ifdef RTLD_GLOBAL
9820 #  define LT_DLGLOBAL           RTLD_GLOBAL
9821 #else
9822 #  ifdef DL_GLOBAL
9823 #    define LT_DLGLOBAL         DL_GLOBAL
9824 #  else
9825 #    define LT_DLGLOBAL         0
9826 #  endif
9827 #endif
9828
9829 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9830    find out it does not work in some platform. */
9831 #ifndef LT_DLLAZY_OR_NOW
9832 #  ifdef RTLD_LAZY
9833 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9834 #  else
9835 #    ifdef DL_LAZY
9836 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9837 #    else
9838 #      ifdef RTLD_NOW
9839 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9840 #      else
9841 #        ifdef DL_NOW
9842 #          define LT_DLLAZY_OR_NOW      DL_NOW
9843 #        else
9844 #          define LT_DLLAZY_OR_NOW      0
9845 #        endif
9846 #      endif
9847 #    endif
9848 #  endif
9849 #endif
9850
9851 #ifdef __cplusplus
9852 extern "C" void exit (int);
9853 #endif
9854
9855 void fnord() { int i=42;}
9856 int main ()
9857 {
9858   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9859   int status = $lt_dlunknown;
9860
9861   if (self)
9862     {
9863       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9864       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9865       /* dlclose (self); */
9866     }
9867   else
9868     puts (dlerror ());
9869
9870     exit (status);
9871 }
9872 EOF
9873   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9874   (eval $ac_link) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9878     (./conftest; exit; ) >&5 2>/dev/null
9879     lt_status=$?
9880     case x$lt_status in
9881       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9882       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9883       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9884     esac
9885   else :
9886     # compilation failed
9887     lt_cv_dlopen_self=no
9888   fi
9889 fi
9890 rm -fr conftest*
9891
9892     
9893 fi
9894 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9895 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9896
9897     if test "x$lt_cv_dlopen_self" = xyes; then
9898       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9899       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9900 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9901 if test "${lt_cv_dlopen_self_static+set}" = set; then
9902   echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904           if test "$cross_compiling" = yes; then :
9905   lt_cv_dlopen_self_static=cross
9906 else
9907   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9908   lt_status=$lt_dlunknown
9909   cat > conftest.$ac_ext <<EOF
9910 #line __oline__ "configure"
9911 #include "confdefs.h"
9912
9913 #if HAVE_DLFCN_H
9914 #include <dlfcn.h>
9915 #endif
9916
9917 #include <stdio.h>
9918
9919 #ifdef RTLD_GLOBAL
9920 #  define LT_DLGLOBAL           RTLD_GLOBAL
9921 #else
9922 #  ifdef DL_GLOBAL
9923 #    define LT_DLGLOBAL         DL_GLOBAL
9924 #  else
9925 #    define LT_DLGLOBAL         0
9926 #  endif
9927 #endif
9928
9929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9930    find out it does not work in some platform. */
9931 #ifndef LT_DLLAZY_OR_NOW
9932 #  ifdef RTLD_LAZY
9933 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9934 #  else
9935 #    ifdef DL_LAZY
9936 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9937 #    else
9938 #      ifdef RTLD_NOW
9939 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9940 #      else
9941 #        ifdef DL_NOW
9942 #          define LT_DLLAZY_OR_NOW      DL_NOW
9943 #        else
9944 #          define LT_DLLAZY_OR_NOW      0
9945 #        endif
9946 #      endif
9947 #    endif
9948 #  endif
9949 #endif
9950
9951 #ifdef __cplusplus
9952 extern "C" void exit (int);
9953 #endif
9954
9955 void fnord() { int i=42;}
9956 int main ()
9957 {
9958   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9959   int status = $lt_dlunknown;
9960
9961   if (self)
9962     {
9963       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9964       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9965       /* dlclose (self); */
9966     }
9967   else
9968     puts (dlerror ());
9969
9970     exit (status);
9971 }
9972 EOF
9973   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9974   (eval $ac_link) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9978     (./conftest; exit; ) >&5 2>/dev/null
9979     lt_status=$?
9980     case x$lt_status in
9981       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9982       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9983       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9984     esac
9985   else :
9986     # compilation failed
9987     lt_cv_dlopen_self_static=no
9988   fi
9989 fi
9990 rm -fr conftest*
9991
9992       
9993 fi
9994 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9996     fi
9997
9998     CPPFLAGS="$save_CPPFLAGS"
9999     LDFLAGS="$save_LDFLAGS"
10000     LIBS="$save_LIBS"
10001     ;;
10002   esac
10003
10004   case $lt_cv_dlopen_self in
10005   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10006   *) enable_dlopen_self=unknown ;;
10007   esac
10008
10009   case $lt_cv_dlopen_self_static in
10010   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10011   *) enable_dlopen_self_static=unknown ;;
10012   esac
10013 fi
10014
10015
10016 # Report which library types will actually be built
10017 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10018 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10019 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10020 echo "${ECHO_T}$can_build_shared" >&6; }
10021
10022 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10023 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10024 test "$can_build_shared" = "no" && enable_shared=no
10025
10026 # On AIX, shared libraries and static libraries use the same namespace, and
10027 # are all built from PIC.
10028 case $host_os in
10029 aix3*)
10030   test "$enable_shared" = yes && enable_static=no
10031   if test -n "$RANLIB"; then
10032     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10033     postinstall_cmds='$RANLIB $lib'
10034   fi
10035   ;;
10036
10037 aix4* | aix5*)
10038   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10039     test "$enable_shared" = yes && enable_static=no
10040   fi
10041     ;;
10042 esac
10043 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10044 echo "${ECHO_T}$enable_shared" >&6; }
10045
10046 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10047 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10048 # Make sure either enable_shared or enable_static is yes.
10049 test "$enable_shared" = yes || enable_static=yes
10050 { echo "$as_me:$LINENO: result: $enable_static" >&5
10051 echo "${ECHO_T}$enable_static" >&6; }
10052
10053 # The else clause should only fire when bootstrapping the
10054 # libtool distribution, otherwise you forgot to ship ltmain.sh
10055 # with your package, and you will get complaints that there are
10056 # no rules to generate ltmain.sh.
10057 if test -f "$ltmain"; then
10058   # See if we are running on zsh, and set the options which allow our commands through
10059   # without removal of \ escapes.
10060   if test -n "${ZSH_VERSION+set}" ; then
10061     setopt NO_GLOB_SUBST
10062   fi
10063   # Now quote all the things that may contain metacharacters while being
10064   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10065   # variables and quote the copies for generation of the libtool script.
10066   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10067     SED SHELL STRIP \
10068     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10069     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10070     deplibs_check_method reload_flag reload_cmds need_locks \
10071     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10072     lt_cv_sys_global_symbol_to_c_name_address \
10073     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10074     old_postinstall_cmds old_postuninstall_cmds \
10075     compiler \
10076     CC \
10077     LD \
10078     lt_prog_compiler_wl \
10079     lt_prog_compiler_pic \
10080     lt_prog_compiler_static \
10081     lt_prog_compiler_no_builtin_flag \
10082     export_dynamic_flag_spec \
10083     thread_safe_flag_spec \
10084     whole_archive_flag_spec \
10085     enable_shared_with_static_runtimes \
10086     old_archive_cmds \
10087     old_archive_from_new_cmds \
10088     predep_objects \
10089     postdep_objects \
10090     predeps \
10091     postdeps \
10092     compiler_lib_search_path \
10093     archive_cmds \
10094     archive_expsym_cmds \
10095     postinstall_cmds \
10096     postuninstall_cmds \
10097     old_archive_from_expsyms_cmds \
10098     allow_undefined_flag \
10099     no_undefined_flag \
10100     export_symbols_cmds \
10101     hardcode_libdir_flag_spec \
10102     hardcode_libdir_flag_spec_ld \
10103     hardcode_libdir_separator \
10104     hardcode_automatic \
10105     module_cmds \
10106     module_expsym_cmds \
10107     lt_cv_prog_compiler_c_o \
10108     fix_srcfile_path \
10109     exclude_expsyms \
10110     include_expsyms; do
10111
10112     case $var in
10113     old_archive_cmds | \
10114     old_archive_from_new_cmds | \
10115     archive_cmds | \
10116     archive_expsym_cmds | \
10117     module_cmds | \
10118     module_expsym_cmds | \
10119     old_archive_from_expsyms_cmds | \
10120     export_symbols_cmds | \
10121     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10122     postinstall_cmds | postuninstall_cmds | \
10123     old_postinstall_cmds | old_postuninstall_cmds | \
10124     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10125       # Double-quote double-evaled strings.
10126       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10127       ;;
10128     *)
10129       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10130       ;;
10131     esac
10132   done
10133
10134   case $lt_echo in
10135   *'\$0 --fallback-echo"')
10136     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10137     ;;
10138   esac
10139
10140 cfgfile="${ofile}T"
10141   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10142   $rm -f "$cfgfile"
10143   { echo "$as_me:$LINENO: creating $ofile" >&5
10144 echo "$as_me: creating $ofile" >&6;}
10145
10146   cat <<__EOF__ >> "$cfgfile"
10147 #! $SHELL
10148
10149 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10150 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10151 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10152 #
10153 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10154 # Free Software Foundation, Inc.
10155 #
10156 # This file is part of GNU Libtool:
10157 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10158 #
10159 # This program is free software; you can redistribute it and/or modify
10160 # it under the terms of the GNU General Public License as published by
10161 # the Free Software Foundation; either version 2 of the License, or
10162 # (at your option) any later version.
10163 #
10164 # This program is distributed in the hope that it will be useful, but
10165 # WITHOUT ANY WARRANTY; without even the implied warranty of
10166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10167 # General Public License for more details.
10168 #
10169 # You should have received a copy of the GNU General Public License
10170 # along with this program; if not, write to the Free Software
10171 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10172 #
10173 # As a special exception to the GNU General Public License, if you
10174 # distribute this file as part of a program that contains a
10175 # configuration script generated by Autoconf, you may include it under
10176 # the same distribution terms that you use for the rest of that program.
10177
10178 # A sed program that does not truncate output.
10179 SED=$lt_SED
10180
10181 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10182 Xsed="$SED -e 1s/^X//"
10183
10184 # The HP-UX ksh and POSIX shell print the target directory to stdout
10185 # if CDPATH is set.
10186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10187
10188 # The names of the tagged configurations supported by this script.
10189 available_tags=
10190
10191 # ### BEGIN LIBTOOL CONFIG
10192
10193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10194
10195 # Shell to use when invoking shell scripts.
10196 SHELL=$lt_SHELL
10197
10198 # Whether or not to build shared libraries.
10199 build_libtool_libs=$enable_shared
10200
10201 # Whether or not to build static libraries.
10202 build_old_libs=$enable_static
10203
10204 # Whether or not to add -lc for building shared libraries.
10205 build_libtool_need_lc=$archive_cmds_need_lc
10206
10207 # Whether or not to disallow shared libs when runtime libs are static
10208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10209
10210 # Whether or not to optimize for fast installation.
10211 fast_install=$enable_fast_install
10212
10213 # The host system.
10214 host_alias=$host_alias
10215 host=$host
10216 host_os=$host_os
10217
10218 # The build system.
10219 build_alias=$build_alias
10220 build=$build
10221 build_os=$build_os
10222
10223 # An echo program that does not interpret backslashes.
10224 echo=$lt_echo
10225
10226 # The archiver.
10227 AR=$lt_AR
10228 AR_FLAGS=$lt_AR_FLAGS
10229
10230 # A C compiler.
10231 LTCC=$lt_LTCC
10232
10233 # LTCC compiler flags.
10234 LTCFLAGS=$lt_LTCFLAGS
10235
10236 # A language-specific compiler.
10237 CC=$lt_compiler
10238
10239 # Is the compiler the GNU C compiler?
10240 with_gcc=$GCC
10241
10242 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10243 gcc_ver=\`gcc -dumpversion\`
10244
10245 # An ERE matcher.
10246 EGREP=$lt_EGREP
10247
10248 # The linker used to build libraries.
10249 LD=$lt_LD
10250
10251 # Whether we need hard or soft links.
10252 LN_S=$lt_LN_S
10253
10254 # A BSD-compatible nm program.
10255 NM=$lt_NM
10256
10257 # A symbol stripping program
10258 STRIP=$lt_STRIP
10259
10260 # Used to examine libraries when file_magic_cmd begins "file"
10261 MAGIC_CMD=$MAGIC_CMD
10262
10263 # Used on cygwin: DLL creation program.
10264 DLLTOOL="$DLLTOOL"
10265
10266 # Used on cygwin: object dumper.
10267 OBJDUMP="$OBJDUMP"
10268
10269 # Used on cygwin: assembler.
10270 AS="$AS"
10271
10272 # The name of the directory that contains temporary libtool files.
10273 objdir=$objdir
10274
10275 # How to create reloadable object files.
10276 reload_flag=$lt_reload_flag
10277 reload_cmds=$lt_reload_cmds
10278
10279 # How to pass a linker flag through the compiler.
10280 wl=$lt_lt_prog_compiler_wl
10281
10282 # Object file suffix (normally "o").
10283 objext="$ac_objext"
10284
10285 # Old archive suffix (normally "a").
10286 libext="$libext"
10287
10288 # Shared library suffix (normally ".so").
10289 shrext_cmds='$shrext_cmds'
10290
10291 # Executable file suffix (normally "").
10292 exeext="$exeext"
10293
10294 # Additional compiler flags for building library objects.
10295 pic_flag=$lt_lt_prog_compiler_pic
10296 pic_mode=$pic_mode
10297
10298 # What is the maximum length of a command?
10299 max_cmd_len=$lt_cv_sys_max_cmd_len
10300
10301 # Does compiler simultaneously support -c and -o options?
10302 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10303
10304 # Must we lock files when doing compilation?
10305 need_locks=$lt_need_locks
10306
10307 # Do we need the lib prefix for modules?
10308 need_lib_prefix=$need_lib_prefix
10309
10310 # Do we need a version for libraries?
10311 need_version=$need_version
10312
10313 # Whether dlopen is supported.
10314 dlopen_support=$enable_dlopen
10315
10316 # Whether dlopen of programs is supported.
10317 dlopen_self=$enable_dlopen_self
10318
10319 # Whether dlopen of statically linked programs is supported.
10320 dlopen_self_static=$enable_dlopen_self_static
10321
10322 # Compiler flag to prevent dynamic linking.
10323 link_static_flag=$lt_lt_prog_compiler_static
10324
10325 # Compiler flag to turn off builtin functions.
10326 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10327
10328 # Compiler flag to allow reflexive dlopens.
10329 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10330
10331 # Compiler flag to generate shared objects directly from archives.
10332 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10333
10334 # Compiler flag to generate thread-safe objects.
10335 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10336
10337 # Library versioning type.
10338 version_type=$version_type
10339
10340 # Format of library name prefix.
10341 libname_spec=$lt_libname_spec
10342
10343 # List of archive names.  First name is the real one, the rest are links.
10344 # The last name is the one that the linker finds with -lNAME.
10345 library_names_spec=$lt_library_names_spec
10346
10347 # The coded name of the library, if different from the real name.
10348 soname_spec=$lt_soname_spec
10349
10350 # Commands used to build and install an old-style archive.
10351 RANLIB=$lt_RANLIB
10352 old_archive_cmds=$lt_old_archive_cmds
10353 old_postinstall_cmds=$lt_old_postinstall_cmds
10354 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10355
10356 # Create an old-style archive from a shared archive.
10357 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10358
10359 # Create a temporary old-style archive to link instead of a shared archive.
10360 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10361
10362 # Commands used to build and install a shared archive.
10363 archive_cmds=$lt_archive_cmds
10364 archive_expsym_cmds=$lt_archive_expsym_cmds
10365 postinstall_cmds=$lt_postinstall_cmds
10366 postuninstall_cmds=$lt_postuninstall_cmds
10367
10368 # Commands used to build a loadable module (assumed same as above if empty)
10369 module_cmds=$lt_module_cmds
10370 module_expsym_cmds=$lt_module_expsym_cmds
10371
10372 # Commands to strip libraries.
10373 old_striplib=$lt_old_striplib
10374 striplib=$lt_striplib
10375
10376 # Dependencies to place before the objects being linked to create a
10377 # shared library.
10378 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10379
10380 # Dependencies to place after the objects being linked to create a
10381 # shared library.
10382 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10383
10384 # Dependencies to place before the objects being linked to create a
10385 # shared library.
10386 predeps=$lt_predeps
10387
10388 # Dependencies to place after the objects being linked to create a
10389 # shared library.
10390 postdeps=$lt_postdeps
10391
10392 # The library search path used internally by the compiler when linking
10393 # a shared library.
10394 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10395
10396 # Method to check whether dependent libraries are shared objects.
10397 deplibs_check_method=$lt_deplibs_check_method
10398
10399 # Command to use when deplibs_check_method == file_magic.
10400 file_magic_cmd=$lt_file_magic_cmd
10401
10402 # Flag that allows shared libraries with undefined symbols to be built.
10403 allow_undefined_flag=$lt_allow_undefined_flag
10404
10405 # Flag that forces no undefined symbols.
10406 no_undefined_flag=$lt_no_undefined_flag
10407
10408 # Commands used to finish a libtool library installation in a directory.
10409 finish_cmds=$lt_finish_cmds
10410
10411 # Same as above, but a single script fragment to be evaled but not shown.
10412 finish_eval=$lt_finish_eval
10413
10414 # Take the output of nm and produce a listing of raw symbols and C names.
10415 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10416
10417 # Transform the output of nm in a proper C declaration
10418 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10419
10420 # Transform the output of nm in a C name address pair
10421 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10422
10423 # This is the shared library runtime path variable.
10424 runpath_var=$runpath_var
10425
10426 # This is the shared library path variable.
10427 shlibpath_var=$shlibpath_var
10428
10429 # Is shlibpath searched before the hard-coded library search path?
10430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10431
10432 # How to hardcode a shared library path into an executable.
10433 hardcode_action=$hardcode_action
10434
10435 # Whether we should hardcode library paths into libraries.
10436 hardcode_into_libs=$hardcode_into_libs
10437
10438 # Flag to hardcode \$libdir into a binary during linking.
10439 # This must work even if \$libdir does not exist.
10440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10441
10442 # If ld is used when linking, flag to hardcode \$libdir into
10443 # a binary during linking. This must work even if \$libdir does
10444 # not exist.
10445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10446
10447 # Whether we need a single -rpath flag with a separated argument.
10448 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10449
10450 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10451 # resulting binary.
10452 hardcode_direct=$hardcode_direct
10453
10454 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10455 # resulting binary.
10456 hardcode_minus_L=$hardcode_minus_L
10457
10458 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10459 # the resulting binary.
10460 hardcode_shlibpath_var=$hardcode_shlibpath_var
10461
10462 # Set to yes if building a shared library automatically hardcodes DIR into the library
10463 # and all subsequent libraries and executables linked against it.
10464 hardcode_automatic=$hardcode_automatic
10465
10466 # Variables whose values should be saved in libtool wrapper scripts and
10467 # restored at relink time.
10468 variables_saved_for_relink="$variables_saved_for_relink"
10469
10470 # Whether libtool must link a program against all its dependency libraries.
10471 link_all_deplibs=$link_all_deplibs
10472
10473 # Compile-time system search path for libraries
10474 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10475
10476 # Run-time system search path for libraries
10477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10478
10479 # Fix the shell variable \$srcfile for the compiler.
10480 fix_srcfile_path=$lt_fix_srcfile_path
10481
10482 # Set to yes if exported symbols are required.
10483 always_export_symbols=$always_export_symbols
10484
10485 # The commands to list exported symbols.
10486 export_symbols_cmds=$lt_export_symbols_cmds
10487
10488 # The commands to extract the exported symbol list from a shared archive.
10489 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10490
10491 # Symbols that should not be listed in the preloaded symbols.
10492 exclude_expsyms=$lt_exclude_expsyms
10493
10494 # Symbols that must always be exported.
10495 include_expsyms=$lt_include_expsyms
10496
10497 # ### END LIBTOOL CONFIG
10498
10499 __EOF__
10500
10501
10502   case $host_os in
10503   aix3*)
10504     cat <<\EOF >> "$cfgfile"
10505
10506 # AIX sometimes has problems with the GCC collect2 program.  For some
10507 # reason, if we set the COLLECT_NAMES environment variable, the problems
10508 # vanish in a puff of smoke.
10509 if test "X${COLLECT_NAMES+set}" != Xset; then
10510   COLLECT_NAMES=
10511   export COLLECT_NAMES
10512 fi
10513 EOF
10514     ;;
10515   esac
10516
10517   # We use sed instead of cat because bash on DJGPP gets confused if
10518   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10519   # text mode, it properly converts lines to CR/LF.  This bash problem
10520   # is reportedly fixed, but why not run on old versions too?
10521   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10522
10523   mv -f "$cfgfile" "$ofile" || \
10524     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10525   chmod +x "$ofile"
10526
10527 else
10528   # If there is no Makefile yet, we rely on a make rule to execute
10529   # `config.status --recheck' to rerun these tests and create the
10530   # libtool script then.
10531   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10532   if test -f "$ltmain_in"; then
10533     test -f Makefile && make "$ltmain"
10534   fi
10535 fi
10536
10537
10538 ac_ext=c
10539 ac_cpp='$CPP $CPPFLAGS'
10540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10543
10544 CC="$lt_save_CC"
10545
10546
10547 # Check whether --with-tags was given.
10548 if test "${with_tags+set}" = set; then
10549   withval=$with_tags; tagnames="$withval"
10550 fi
10551
10552
10553 if test -f "$ltmain" && test -n "$tagnames"; then
10554   if test ! -f "${ofile}"; then
10555     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10556 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10557   fi
10558
10559   if test -z "$LTCC"; then
10560     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10561     if test -z "$LTCC"; then
10562       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10563 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10564     else
10565       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10566 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10567     fi
10568   fi
10569   if test -z "$LTCFLAGS"; then
10570     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10571   fi
10572
10573   # Extract list of available tagged configurations in $ofile.
10574   # Note that this assumes the entire list is on one line.
10575   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10576
10577   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10578   for tagname in $tagnames; do
10579     IFS="$lt_save_ifs"
10580     # Check whether tagname contains only valid characters
10581     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10582     "") ;;
10583     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10584 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10585    { (exit 1); exit 1; }; }
10586         ;;
10587     esac
10588
10589     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10590     then
10591       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10592 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10593    { (exit 1); exit 1; }; }
10594     fi
10595
10596     # Update the list of available tags.
10597     if test -n "$tagname"; then
10598       echo appending configuration tag \"$tagname\" to $ofile
10599
10600       case $tagname in
10601       CXX)
10602         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10603             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10604             (test "X$CXX" != "Xg++"))) ; then
10605           ac_ext=cpp
10606 ac_cpp='$CXXCPP $CPPFLAGS'
10607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10610
10611
10612
10613
10614 archive_cmds_need_lc_CXX=no
10615 allow_undefined_flag_CXX=
10616 always_export_symbols_CXX=no
10617 archive_expsym_cmds_CXX=
10618 export_dynamic_flag_spec_CXX=
10619 hardcode_direct_CXX=no
10620 hardcode_libdir_flag_spec_CXX=
10621 hardcode_libdir_flag_spec_ld_CXX=
10622 hardcode_libdir_separator_CXX=
10623 hardcode_minus_L_CXX=no
10624 hardcode_shlibpath_var_CXX=unsupported
10625 hardcode_automatic_CXX=no
10626 module_cmds_CXX=
10627 module_expsym_cmds_CXX=
10628 link_all_deplibs_CXX=unknown
10629 old_archive_cmds_CXX=$old_archive_cmds
10630 no_undefined_flag_CXX=
10631 whole_archive_flag_spec_CXX=
10632 enable_shared_with_static_runtimes_CXX=no
10633
10634 # Dependencies to place before and after the object being linked:
10635 predep_objects_CXX=
10636 postdep_objects_CXX=
10637 predeps_CXX=
10638 postdeps_CXX=
10639 compiler_lib_search_path_CXX=
10640
10641 # Source file extension for C++ test sources.
10642 ac_ext=cpp
10643
10644 # Object file extension for compiled C++ test sources.
10645 objext=o
10646 objext_CXX=$objext
10647
10648 # Code to be used in simple compile tests
10649 lt_simple_compile_test_code="int some_variable = 0;"
10650
10651 # Code to be used in simple link tests
10652 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10653
10654 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10655
10656 # If no C compiler was specified, use CC.
10657 LTCC=${LTCC-"$CC"}
10658
10659 # If no C compiler flags were specified, use CFLAGS.
10660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10661
10662 # Allow CC to be a program name with arguments.
10663 compiler=$CC
10664
10665
10666 # save warnings/boilerplate of simple test code
10667 ac_outfile=conftest.$ac_objext
10668 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10669 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10670 _lt_compiler_boilerplate=`cat conftest.err`
10671 $rm conftest*
10672
10673 ac_outfile=conftest.$ac_objext
10674 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10675 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10676 _lt_linker_boilerplate=`cat conftest.err`
10677 $rm conftest*
10678
10679
10680 # Allow CC to be a program name with arguments.
10681 lt_save_CC=$CC
10682 lt_save_LD=$LD
10683 lt_save_GCC=$GCC
10684 GCC=$GXX
10685 lt_save_with_gnu_ld=$with_gnu_ld
10686 lt_save_path_LD=$lt_cv_path_LD
10687 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10688   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10689 else
10690   $as_unset lt_cv_prog_gnu_ld
10691 fi
10692 if test -n "${lt_cv_path_LDCXX+set}"; then
10693   lt_cv_path_LD=$lt_cv_path_LDCXX
10694 else
10695   $as_unset lt_cv_path_LD
10696 fi
10697 test -z "${LDCXX+set}" || LD=$LDCXX
10698 CC=${CXX-"c++"}
10699 compiler=$CC
10700 compiler_CXX=$CC
10701 for cc_temp in $compiler""; do
10702   case $cc_temp in
10703     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10704     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10705     \-*) ;;
10706     *) break;;
10707   esac
10708 done
10709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10710
10711
10712 # We don't want -fno-exception wen compiling C++ code, so set the
10713 # no_builtin_flag separately
10714 if test "$GXX" = yes; then
10715   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10716 else
10717   lt_prog_compiler_no_builtin_flag_CXX=
10718 fi
10719
10720 if test "$GXX" = yes; then
10721   # Set up default GNU C++ configuration
10722
10723   
10724 # Check whether --with-gnu-ld was given.
10725 if test "${with_gnu_ld+set}" = set; then
10726   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10727 else
10728   with_gnu_ld=no
10729 fi
10730
10731 ac_prog=ld
10732 if test "$GCC" = yes; then
10733   # Check if gcc -print-prog-name=ld gives a path.
10734   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10735 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10736   case $host in
10737   *-*-mingw*)
10738     # gcc leaves a trailing carriage return which upsets mingw
10739     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10740   *)
10741     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10742   esac
10743   case $ac_prog in
10744     # Accept absolute paths.
10745     [\\/]* | ?:[\\/]*)
10746       re_direlt='/[^/][^/]*/\.\./'
10747       # Canonicalize the pathname of ld
10748       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10749       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10750         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10751       done
10752       test -z "$LD" && LD="$ac_prog"
10753       ;;
10754   "")
10755     # If it fails, then pretend we aren't using GCC.
10756     ac_prog=ld
10757     ;;
10758   *)
10759     # If it is relative, then search for the first ld in PATH.
10760     with_gnu_ld=unknown
10761     ;;
10762   esac
10763 elif test "$with_gnu_ld" = yes; then
10764   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10765 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10766 else
10767   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10768 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10769 fi
10770 if test "${lt_cv_path_LD+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   if test -z "$LD"; then
10774   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10775   for ac_dir in $PATH; do
10776     IFS="$lt_save_ifs"
10777     test -z "$ac_dir" && ac_dir=.
10778     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10779       lt_cv_path_LD="$ac_dir/$ac_prog"
10780       # Check to see if the program is GNU ld.  I'd rather use --version,
10781       # but apparently some variants of GNU ld only accept -v.
10782       # Break only if it was the GNU/non-GNU ld that we prefer.
10783       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10784       *GNU* | *'with BFD'*)
10785         test "$with_gnu_ld" != no && break
10786         ;;
10787       *)
10788         test "$with_gnu_ld" != yes && break
10789         ;;
10790       esac
10791     fi
10792   done
10793   IFS="$lt_save_ifs"
10794 else
10795   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10796 fi
10797 fi
10798
10799 LD="$lt_cv_path_LD"
10800 if test -n "$LD"; then
10801   { echo "$as_me:$LINENO: result: $LD" >&5
10802 echo "${ECHO_T}$LD" >&6; }
10803 else
10804   { echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6; }
10806 fi
10807 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10808 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10809    { (exit 1); exit 1; }; }
10810 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10811 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10812 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10813   echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10816 case `$LD -v 2>&1 </dev/null` in
10817 *GNU* | *'with BFD'*)
10818   lt_cv_prog_gnu_ld=yes
10819   ;;
10820 *)
10821   lt_cv_prog_gnu_ld=no
10822   ;;
10823 esac
10824 fi
10825 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10826 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10827 with_gnu_ld=$lt_cv_prog_gnu_ld
10828
10829
10830
10831   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10832   # archiving commands below assume that GNU ld is being used.
10833   if test "$with_gnu_ld" = yes; then
10834     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10835     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'
10836
10837     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10838     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10839
10840     # If archive_cmds runs LD, not CC, wlarc should be empty
10841     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10842     #     investigate it a little bit more. (MM)
10843     wlarc='${wl}'
10844
10845     # ancient GNU ld didn't support --whole-archive et. al.
10846     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10847         grep 'no-whole-archive' > /dev/null; then
10848       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10849     else
10850       whole_archive_flag_spec_CXX=
10851     fi
10852   else
10853     with_gnu_ld=no
10854     wlarc=
10855
10856     # A generic and very simple default shared library creation
10857     # command for GNU C++ for the case where it uses the native
10858     # linker, instead of GNU ld.  If possible, this setting should
10859     # overridden to take advantage of the native linker features on
10860     # the platform it is being used on.
10861     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10862   fi
10863
10864   # Commands to make compiler produce verbose output that lists
10865   # what "hidden" libraries, object files and flags are used when
10866   # linking a shared library.
10867   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10868
10869 else
10870   GXX=no
10871   with_gnu_ld=no
10872   wlarc=
10873 fi
10874
10875 # PORTME: fill in a description of your system's C++ link characteristics
10876 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10877 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10878 ld_shlibs_CXX=yes
10879 case $host_os in
10880   aix3*)
10881     # FIXME: insert proper C++ library support
10882     ld_shlibs_CXX=no
10883     ;;
10884   aix4* | aix5*)
10885     if test "$host_cpu" = ia64; then
10886       # On IA64, the linker does run time linking by default, so we don't
10887       # have to do anything special.
10888       aix_use_runtimelinking=no
10889       exp_sym_flag='-Bexport'
10890       no_entry_flag=""
10891     else
10892       aix_use_runtimelinking=no
10893
10894       # Test if we are trying to use run time linking or normal
10895       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10896       # need to do runtime linking.
10897       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10898         for ld_flag in $LDFLAGS; do
10899           case $ld_flag in
10900           *-brtl*)
10901             aix_use_runtimelinking=yes
10902             break
10903             ;;
10904           esac
10905         done
10906         ;;
10907       esac
10908
10909       exp_sym_flag='-bexport'
10910       no_entry_flag='-bnoentry'
10911     fi
10912
10913     # When large executables or shared objects are built, AIX ld can
10914     # have problems creating the table of contents.  If linking a library
10915     # or program results in "error TOC overflow" add -mminimal-toc to
10916     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10917     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10918
10919     archive_cmds_CXX=''
10920     hardcode_direct_CXX=yes
10921     hardcode_libdir_separator_CXX=':'
10922     link_all_deplibs_CXX=yes
10923
10924     if test "$GXX" = yes; then
10925       case $host_os in aix4.[012]|aix4.[012].*)
10926       # We only want to do this on AIX 4.2 and lower, the check
10927       # below for broken collect2 doesn't work under 4.3+
10928         collect2name=`${CC} -print-prog-name=collect2`
10929         if test -f "$collect2name" && \
10930            strings "$collect2name" | grep resolve_lib_name >/dev/null
10931         then
10932           # We have reworked collect2
10933           :
10934         else
10935           # We have old collect2
10936           hardcode_direct_CXX=unsupported
10937           # It fails to find uninstalled libraries when the uninstalled
10938           # path is not listed in the libpath.  Setting hardcode_minus_L
10939           # to unsupported forces relinking
10940           hardcode_minus_L_CXX=yes
10941           hardcode_libdir_flag_spec_CXX='-L$libdir'
10942           hardcode_libdir_separator_CXX=
10943         fi
10944         ;;
10945       esac
10946       shared_flag='-shared'
10947       if test "$aix_use_runtimelinking" = yes; then
10948         shared_flag="$shared_flag "'${wl}-G'
10949       fi
10950     else
10951       # not using gcc
10952       if test "$host_cpu" = ia64; then
10953         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10954         # chokes on -Wl,-G. The following line is correct:
10955         shared_flag='-G'
10956       else
10957         if test "$aix_use_runtimelinking" = yes; then
10958           shared_flag='${wl}-G'
10959         else
10960           shared_flag='${wl}-bM:SRE'
10961         fi
10962       fi
10963     fi
10964
10965     # It seems that -bexpall does not export symbols beginning with
10966     # underscore (_), so it is better to generate a list of symbols to export.
10967     always_export_symbols_CXX=yes
10968     if test "$aix_use_runtimelinking" = yes; then
10969       # Warning - without using the other runtime loading flags (-brtl),
10970       # -berok will link without error, but may produce a broken library.
10971       allow_undefined_flag_CXX='-berok'
10972       # Determine the default libpath from the value encoded in an empty executable.
10973       cat >conftest.$ac_ext <<_ACEOF
10974 /* confdefs.h.  */
10975 _ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h.  */
10979
10980 int
10981 main ()
10982 {
10983
10984   ;
10985   return 0;
10986 }
10987 _ACEOF
10988 rm -f conftest.$ac_objext conftest$ac_exeext
10989 if { (ac_try="$ac_link"
10990 case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995   (eval "$ac_link") 2>conftest.er1
10996   ac_status=$?
10997   grep -v '^ *+' conftest.er1 >conftest.err
10998   rm -f conftest.er1
10999   cat conftest.err >&5
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } && {
11002          test -z "$ac_cxx_werror_flag" ||
11003          test ! -s conftest.err
11004        } && test -s conftest$ac_exeext &&
11005        $as_test_x conftest$ac_exeext; then
11006   
11007 lt_aix_libpath_sed='
11008     /Import File Strings/,/^$/ {
11009         /^0/ {
11010             s/^0  *\(.*\)$/\1/
11011             p
11012         }
11013     }'
11014 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11015 # Check for a 64-bit object if we didn't find anything.
11016 if test -z "$aix_libpath"; then
11017   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11018 fi
11019 else
11020   echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023         
11024 fi
11025
11026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11027       conftest$ac_exeext conftest.$ac_ext
11028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11029
11030       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11031
11032       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"
11033      else
11034       if test "$host_cpu" = ia64; then
11035         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11036         allow_undefined_flag_CXX="-z nodefs"
11037         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"
11038       else
11039         # Determine the default libpath from the value encoded in an empty executable.
11040         cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046
11047 int
11048 main ()
11049 {
11050
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059   *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062   (eval "$ac_link") 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } && {
11069          test -z "$ac_cxx_werror_flag" ||
11070          test ! -s conftest.err
11071        } && test -s conftest$ac_exeext &&
11072        $as_test_x conftest$ac_exeext; then
11073   
11074 lt_aix_libpath_sed='
11075     /Import File Strings/,/^$/ {
11076         /^0/ {
11077             s/^0  *\(.*\)$/\1/
11078             p
11079         }
11080     }'
11081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11082 # Check for a 64-bit object if we didn't find anything.
11083 if test -z "$aix_libpath"; then
11084   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11085 fi
11086 else
11087   echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090         
11091 fi
11092
11093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11094       conftest$ac_exeext conftest.$ac_ext
11095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11096
11097         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11098         # Warning - without using the other run time loading flags,
11099         # -berok will link without error, but may produce a broken library.
11100         no_undefined_flag_CXX=' ${wl}-bernotok'
11101         allow_undefined_flag_CXX=' ${wl}-berok'
11102         # Exported symbols can be pulled into shared objects from archives
11103         whole_archive_flag_spec_CXX='$convenience'
11104         archive_cmds_need_lc_CXX=yes
11105         # This is similar to how AIX traditionally builds its shared libraries.
11106         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'
11107       fi
11108     fi
11109     ;;
11110
11111   beos*)
11112     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11113       allow_undefined_flag_CXX=unsupported
11114       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11115       # support --undefined.  This deserves some investigation.  FIXME
11116       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11117     else
11118       ld_shlibs_CXX=no
11119     fi
11120     ;;
11121
11122   chorus*)
11123     case $cc_basename in
11124       *)
11125         # FIXME: insert proper C++ library support
11126         ld_shlibs_CXX=no
11127         ;;
11128     esac
11129     ;;
11130
11131   cygwin* | mingw* | pw32*)
11132     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11133     # as there is no search path for DLLs.
11134     hardcode_libdir_flag_spec_CXX='-L$libdir'
11135     allow_undefined_flag_CXX=unsupported
11136     always_export_symbols_CXX=no
11137     enable_shared_with_static_runtimes_CXX=yes
11138
11139     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11140       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'
11141       # If the export-symbols file already is a .def file (1st line
11142       # is EXPORTS), use it as is; otherwise, prepend...
11143       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11144         cp $export_symbols $output_objdir/$soname.def;
11145       else
11146         echo EXPORTS > $output_objdir/$soname.def;
11147         cat $export_symbols >> $output_objdir/$soname.def;
11148       fi~
11149       $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'
11150     else
11151       ld_shlibs_CXX=no
11152     fi
11153   ;;
11154       darwin* | rhapsody*)
11155         case $host_os in
11156         rhapsody* | darwin1.[012])
11157          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11158          ;;
11159        *) # Darwin 1.3 on
11160          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11161            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11162          else
11163            case ${MACOSX_DEPLOYMENT_TARGET} in
11164              10.[012])
11165                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11166                ;;
11167              10.*)
11168                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11169                ;;
11170            esac
11171          fi
11172          ;;
11173         esac
11174       archive_cmds_need_lc_CXX=no
11175       hardcode_direct_CXX=no
11176       hardcode_automatic_CXX=yes
11177       hardcode_shlibpath_var_CXX=unsupported
11178       whole_archive_flag_spec_CXX=''
11179       link_all_deplibs_CXX=yes
11180
11181     if test "$GXX" = yes ; then
11182       lt_int_apple_cc_single_mod=no
11183       output_verbose_link_cmd='echo'
11184       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11185        lt_int_apple_cc_single_mod=yes
11186       fi
11187       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11188        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11189       else
11190           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'
11191         fi
11192         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11193         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11194           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11195             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11196           else
11197             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11198           fi
11199             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}'
11200       else
11201       case $cc_basename in
11202         xlc*)
11203          output_verbose_link_cmd='echo'
11204           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'
11205           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11206           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11207           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}'
11208           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}'
11209           ;;
11210        *)
11211          ld_shlibs_CXX=no
11212           ;;
11213       esac
11214       fi
11215         ;;
11216
11217   dgux*)
11218     case $cc_basename in
11219       ec++*)
11220         # FIXME: insert proper C++ library support
11221         ld_shlibs_CXX=no
11222         ;;
11223       ghcx*)
11224         # Green Hills C++ Compiler
11225         # FIXME: insert proper C++ library support
11226         ld_shlibs_CXX=no
11227         ;;
11228       *)
11229         # FIXME: insert proper C++ library support
11230         ld_shlibs_CXX=no
11231         ;;
11232     esac
11233     ;;
11234   freebsd[12]*)
11235     # C++ shared libraries reported to be fairly broken before switch to ELF
11236     ld_shlibs_CXX=no
11237     ;;
11238   freebsd-elf*)
11239     archive_cmds_need_lc_CXX=no
11240     ;;
11241   freebsd* | dragonfly*)
11242     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11243     # conventions
11244     ld_shlibs_CXX=yes
11245     ;;
11246   gnu*)
11247     ;;
11248   hpux9*)
11249     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11250     hardcode_libdir_separator_CXX=:
11251     export_dynamic_flag_spec_CXX='${wl}-E'
11252     hardcode_direct_CXX=yes
11253     hardcode_minus_L_CXX=yes # Not in the search PATH,
11254                                 # but as the default
11255                                 # location of the library.
11256
11257     case $cc_basename in
11258     CC*)
11259       # FIXME: insert proper C++ library support
11260       ld_shlibs_CXX=no
11261       ;;
11262     aCC*)
11263       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'
11264       # Commands to make compiler produce verbose output that lists
11265       # what "hidden" libraries, object files and flags are used when
11266       # linking a shared library.
11267       #
11268       # There doesn't appear to be a way to prevent this compiler from
11269       # explicitly linking system object files so we need to strip them
11270       # from the output so that they don't get included in the library
11271       # dependencies.
11272       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'
11273       ;;
11274     *)
11275       if test "$GXX" = yes; then
11276         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'
11277       else
11278         # FIXME: insert proper C++ library support
11279         ld_shlibs_CXX=no
11280       fi
11281       ;;
11282     esac
11283     ;;
11284   hpux10*|hpux11*)
11285     if test $with_gnu_ld = no; then
11286       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11287       hardcode_libdir_separator_CXX=:
11288
11289       case $host_cpu in
11290       hppa*64*|ia64*) ;;
11291       *)
11292         export_dynamic_flag_spec_CXX='${wl}-E'
11293         ;;
11294       esac
11295     fi
11296     case $host_cpu in
11297     hppa*64*|ia64*)
11298       hardcode_direct_CXX=no
11299       hardcode_shlibpath_var_CXX=no
11300       ;;
11301     *)
11302       hardcode_direct_CXX=yes
11303       hardcode_minus_L_CXX=yes # Not in the search PATH,
11304                                               # but as the default
11305                                               # location of the library.
11306       ;;
11307     esac
11308
11309     case $cc_basename in
11310       CC*)
11311         # FIXME: insert proper C++ library support
11312         ld_shlibs_CXX=no
11313         ;;
11314       aCC*)
11315         case $host_cpu in
11316         hppa*64*)
11317           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11318           ;;
11319         ia64*)
11320           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11321           ;;
11322         *)
11323           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324           ;;
11325         esac
11326         # Commands to make compiler produce verbose output that lists
11327         # what "hidden" libraries, object files and flags are used when
11328         # linking a shared library.
11329         #
11330         # There doesn't appear to be a way to prevent this compiler from
11331         # explicitly linking system object files so we need to strip them
11332         # from the output so that they don't get included in the library
11333         # dependencies.
11334         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'
11335         ;;
11336       *)
11337         if test "$GXX" = yes; then
11338           if test $with_gnu_ld = no; then
11339             case $host_cpu in
11340             hppa*64*)
11341               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11342               ;;
11343             ia64*)
11344               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11345               ;;
11346             *)
11347               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'
11348               ;;
11349             esac
11350           fi
11351         else
11352           # FIXME: insert proper C++ library support
11353           ld_shlibs_CXX=no
11354         fi
11355         ;;
11356     esac
11357     ;;
11358   interix[3-9]*)
11359     hardcode_direct_CXX=no
11360     hardcode_shlibpath_var_CXX=no
11361     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11362     export_dynamic_flag_spec_CXX='${wl}-E'
11363     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11364     # Instead, shared libraries are loaded at an image base (0x10000000 by
11365     # default) and relocated if they conflict, which is a slow very memory
11366     # consuming and fragmenting process.  To avoid this, we pick a random,
11367     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11368     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11369     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'
11370     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'
11371     ;;
11372   irix5* | irix6*)
11373     case $cc_basename in
11374       CC*)
11375         # SGI C++
11376         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'
11377
11378         # Archives containing C++ object files must be created using
11379         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11380         # necessary to make sure instantiated templates are included
11381         # in the archive.
11382         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11383         ;;
11384       *)
11385         if test "$GXX" = yes; then
11386           if test "$with_gnu_ld" = no; then
11387             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'
11388           else
11389             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'
11390           fi
11391         fi
11392         link_all_deplibs_CXX=yes
11393         ;;
11394     esac
11395     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11396     hardcode_libdir_separator_CXX=:
11397     ;;
11398   linux* | k*bsd*-gnu)
11399     case $cc_basename in
11400       KCC*)
11401         # Kuck and Associates, Inc. (KAI) C++ Compiler
11402
11403         # KCC will only create a shared library if the output file
11404         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11405         # to its proper name (with version) after linking.
11406         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'
11407         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'
11408         # Commands to make compiler produce verbose output that lists
11409         # what "hidden" libraries, object files and flags are used when
11410         # linking a shared library.
11411         #
11412         # There doesn't appear to be a way to prevent this compiler from
11413         # explicitly linking system object files so we need to strip them
11414         # from the output so that they don't get included in the library
11415         # dependencies.
11416         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'
11417
11418         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11419         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11420
11421         # Archives containing C++ object files must be created using
11422         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11423         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11424         ;;
11425       icpc*)
11426         # Intel C++
11427         with_gnu_ld=yes
11428         # version 8.0 and above of icpc choke on multiply defined symbols
11429         # if we add $predep_objects and $postdep_objects, however 7.1 and
11430         # earlier do not add the objects themselves.
11431         case `$CC -V 2>&1` in
11432         *"Version 7."*)
11433           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11434           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'
11435           ;;
11436         *)  # Version 8.0 or newer
11437           tmp_idyn=
11438           case $host_cpu in
11439             ia64*) tmp_idyn=' -i_dynamic';;
11440           esac
11441           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11442           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'
11443           ;;
11444         esac
11445         archive_cmds_need_lc_CXX=no
11446         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11447         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11448         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11449         ;;
11450       pgCC*)
11451         # Portland Group C++ compiler
11452         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11453         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'
11454
11455         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11456         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11457         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'
11458         ;;
11459       cxx*)
11460         # Compaq C++
11461         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11462         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'
11463
11464         runpath_var=LD_RUN_PATH
11465         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11466         hardcode_libdir_separator_CXX=:
11467
11468         # Commands to make compiler produce verbose output that lists
11469         # what "hidden" libraries, object files and flags are used when
11470         # linking a shared library.
11471         #
11472         # There doesn't appear to be a way to prevent this compiler from
11473         # explicitly linking system object files so we need to strip them
11474         # from the output so that they don't get included in the library
11475         # dependencies.
11476         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'
11477         ;;
11478       *)
11479         case `$CC -V 2>&1 | sed 5q` in
11480         *Sun\ C*)
11481           # Sun C++ 5.9
11482           no_undefined_flag_CXX=' -zdefs'
11483           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11484           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'
11485           hardcode_libdir_flag_spec_CXX='-R$libdir'
11486           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'
11487
11488           # Not sure whether something based on
11489           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11490           # would be better.
11491           output_verbose_link_cmd='echo'
11492
11493           # Archives containing C++ object files must be created using
11494           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11495           # necessary to make sure instantiated templates are included
11496           # in the archive.
11497           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11498           ;;
11499         esac
11500         ;;
11501     esac
11502     ;;
11503   lynxos*)
11504     # FIXME: insert proper C++ library support
11505     ld_shlibs_CXX=no
11506     ;;
11507   m88k*)
11508     # FIXME: insert proper C++ library support
11509     ld_shlibs_CXX=no
11510     ;;
11511   mvs*)
11512     case $cc_basename in
11513       cxx*)
11514         # FIXME: insert proper C++ library support
11515         ld_shlibs_CXX=no
11516         ;;
11517       *)
11518         # FIXME: insert proper C++ library support
11519         ld_shlibs_CXX=no
11520         ;;
11521     esac
11522     ;;
11523   netbsd*)
11524     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11525       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11526       wlarc=
11527       hardcode_libdir_flag_spec_CXX='-R$libdir'
11528       hardcode_direct_CXX=yes
11529       hardcode_shlibpath_var_CXX=no
11530     fi
11531     # Workaround some broken pre-1.5 toolchains
11532     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11533     ;;
11534   openbsd2*)
11535     # C++ shared libraries are fairly broken
11536     ld_shlibs_CXX=no
11537     ;;
11538   openbsd*)
11539     if test -f /usr/libexec/ld.so; then
11540       hardcode_direct_CXX=yes
11541       hardcode_shlibpath_var_CXX=no
11542       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11543       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11544       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11545         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11546         export_dynamic_flag_spec_CXX='${wl}-E'
11547         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11548       fi
11549       output_verbose_link_cmd='echo'
11550     else
11551       ld_shlibs_CXX=no
11552     fi
11553     ;;
11554   osf3*)
11555     case $cc_basename in
11556       KCC*)
11557         # Kuck and Associates, Inc. (KAI) C++ Compiler
11558
11559         # KCC will only create a shared library if the output file
11560         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11561         # to its proper name (with version) after linking.
11562         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'
11563
11564         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11565         hardcode_libdir_separator_CXX=:
11566
11567         # Archives containing C++ object files must be created using
11568         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11569         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11570
11571         ;;
11572       RCC*)
11573         # Rational C++ 2.4.1
11574         # FIXME: insert proper C++ library support
11575         ld_shlibs_CXX=no
11576         ;;
11577       cxx*)
11578         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11579         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'
11580
11581         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11582         hardcode_libdir_separator_CXX=:
11583
11584         # Commands to make compiler produce verbose output that lists
11585         # what "hidden" libraries, object files and flags are used when
11586         # linking a shared library.
11587         #
11588         # There doesn't appear to be a way to prevent this compiler from
11589         # explicitly linking system object files so we need to strip them
11590         # from the output so that they don't get included in the library
11591         # dependencies.
11592         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'
11593         ;;
11594       *)
11595         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11596           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11597           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'
11598
11599           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11600           hardcode_libdir_separator_CXX=:
11601
11602           # Commands to make compiler produce verbose output that lists
11603           # what "hidden" libraries, object files and flags are used when
11604           # linking a shared library.
11605           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11606
11607         else
11608           # FIXME: insert proper C++ library support
11609           ld_shlibs_CXX=no
11610         fi
11611         ;;
11612     esac
11613     ;;
11614   osf4* | osf5*)
11615     case $cc_basename in
11616       KCC*)
11617         # Kuck and Associates, Inc. (KAI) C++ Compiler
11618
11619         # KCC will only create a shared library if the output file
11620         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11621         # to its proper name (with version) after linking.
11622         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'
11623
11624         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11625         hardcode_libdir_separator_CXX=:
11626
11627         # Archives containing C++ object files must be created using
11628         # the KAI C++ compiler.
11629         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11630         ;;
11631       RCC*)
11632         # Rational C++ 2.4.1
11633         # FIXME: insert proper C++ library support
11634         ld_shlibs_CXX=no
11635         ;;
11636       cxx*)
11637         allow_undefined_flag_CXX=' -expect_unresolved \*'
11638         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'
11639         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11640           echo "-hidden">> $lib.exp~
11641           $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~
11642           $rm $lib.exp'
11643
11644         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11645         hardcode_libdir_separator_CXX=:
11646
11647         # Commands to make compiler produce verbose output that lists
11648         # what "hidden" libraries, object files and flags are used when
11649         # linking a shared library.
11650         #
11651         # There doesn't appear to be a way to prevent this compiler from
11652         # explicitly linking system object files so we need to strip them
11653         # from the output so that they don't get included in the library
11654         # dependencies.
11655         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'
11656         ;;
11657       *)
11658         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11659           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11660          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'
11661
11662           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11663           hardcode_libdir_separator_CXX=:
11664
11665           # Commands to make compiler produce verbose output that lists
11666           # what "hidden" libraries, object files and flags are used when
11667           # linking a shared library.
11668           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11669
11670         else
11671           # FIXME: insert proper C++ library support
11672           ld_shlibs_CXX=no
11673         fi
11674         ;;
11675     esac
11676     ;;
11677   psos*)
11678     # FIXME: insert proper C++ library support
11679     ld_shlibs_CXX=no
11680     ;;
11681   sunos4*)
11682     case $cc_basename in
11683       CC*)
11684         # Sun C++ 4.x
11685         # FIXME: insert proper C++ library support
11686         ld_shlibs_CXX=no
11687         ;;
11688       lcc*)
11689         # Lucid
11690         # FIXME: insert proper C++ library support
11691         ld_shlibs_CXX=no
11692         ;;
11693       *)
11694         # FIXME: insert proper C++ library support
11695         ld_shlibs_CXX=no
11696         ;;
11697     esac
11698     ;;
11699   solaris*)
11700     case $cc_basename in
11701       CC*)
11702         # Sun C++ 4.2, 5.x and Centerline C++
11703         archive_cmds_need_lc_CXX=yes
11704         no_undefined_flag_CXX=' -zdefs'
11705         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11706         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11707         $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'
11708
11709         hardcode_libdir_flag_spec_CXX='-R$libdir'
11710         hardcode_shlibpath_var_CXX=no
11711         case $host_os in
11712           solaris2.[0-5] | solaris2.[0-5].*) ;;
11713           *)
11714             # The compiler driver will combine and reorder linker options,
11715             # but understands `-z linker_flag'.
11716             # Supported since Solaris 2.6 (maybe 2.5.1?)
11717             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11718             ;;
11719         esac
11720         link_all_deplibs_CXX=yes
11721
11722         output_verbose_link_cmd='echo'
11723
11724         # Archives containing C++ object files must be created using
11725         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11726         # necessary to make sure instantiated templates are included
11727         # in the archive.
11728         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11729         ;;
11730       gcx*)
11731         # Green Hills C++ Compiler
11732         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11733
11734         # The C++ compiler must be used to create the archive.
11735         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11736         ;;
11737       *)
11738         # GNU C++ compiler with Solaris linker
11739         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11740           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11741           if $CC --version | grep -v '^2\.7' > /dev/null; then
11742             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11743             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11744                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11745
11746             # Commands to make compiler produce verbose output that lists
11747             # what "hidden" libraries, object files and flags are used when
11748             # linking a shared library.
11749             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11750           else
11751             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11752             # platform.
11753             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11754             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11755                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11756
11757             # Commands to make compiler produce verbose output that lists
11758             # what "hidden" libraries, object files and flags are used when
11759             # linking a shared library.
11760             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11761           fi
11762
11763           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11764           case $host_os in
11765           solaris2.[0-5] | solaris2.[0-5].*) ;;
11766           *)
11767             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11768             ;;
11769           esac
11770         fi
11771         ;;
11772     esac
11773     ;;
11774   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11775     no_undefined_flag_CXX='${wl}-z,text'
11776     archive_cmds_need_lc_CXX=no
11777     hardcode_shlibpath_var_CXX=no
11778     runpath_var='LD_RUN_PATH'
11779
11780     case $cc_basename in
11781       CC*)
11782         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784         ;;
11785       *)
11786         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11787         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11788         ;;
11789     esac
11790     ;;
11791   sysv5* | sco3.2v5* | sco5v6*)
11792     # Note: We can NOT use -z defs as we might desire, because we do not
11793     # link with -lc, and that would cause any symbols used from libc to
11794     # always be unresolved, which means just about no library would
11795     # ever link correctly.  If we're not using GNU ld we use -z text
11796     # though, which does catch some bad symbols but isn't as heavy-handed
11797     # as -z defs.
11798     # For security reasons, it is highly recommended that you always
11799     # use absolute paths for naming shared libraries, and exclude the
11800     # DT_RUNPATH tag from executables and libraries.  But doing so
11801     # requires that you compile everything twice, which is a pain.
11802     # So that behaviour is only enabled if SCOABSPATH is set to a
11803     # non-empty value in the environment.  Most likely only useful for
11804     # creating official distributions of packages.
11805     # This is a hack until libtool officially supports absolute path
11806     # names for shared libraries.
11807     no_undefined_flag_CXX='${wl}-z,text'
11808     allow_undefined_flag_CXX='${wl}-z,nodefs'
11809     archive_cmds_need_lc_CXX=no
11810     hardcode_shlibpath_var_CXX=no
11811     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11812     hardcode_libdir_separator_CXX=':'
11813     link_all_deplibs_CXX=yes
11814     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11815     runpath_var='LD_RUN_PATH'
11816
11817     case $cc_basename in
11818       CC*)
11819         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11820         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11821         ;;
11822       *)
11823         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11824         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11825         ;;
11826     esac
11827     ;;
11828   tandem*)
11829     case $cc_basename in
11830       NCC*)
11831         # NonStop-UX NCC 3.20
11832         # FIXME: insert proper C++ library support
11833         ld_shlibs_CXX=no
11834         ;;
11835       *)
11836         # FIXME: insert proper C++ library support
11837         ld_shlibs_CXX=no
11838         ;;
11839     esac
11840     ;;
11841   vxworks*)
11842     # FIXME: insert proper C++ library support
11843     ld_shlibs_CXX=no
11844     ;;
11845   *)
11846     # FIXME: insert proper C++ library support
11847     ld_shlibs_CXX=no
11848     ;;
11849 esac
11850 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11851 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11852 test "$ld_shlibs_CXX" = no && can_build_shared=no
11853
11854 GCC_CXX="$GXX"
11855 LD_CXX="$LD"
11856
11857 ## CAVEAT EMPTOR:
11858 ## There is no encapsulation within the following macros, do not change
11859 ## the running order or otherwise move them around unless you know exactly
11860 ## what you are doing...
11861
11862 cat > conftest.$ac_ext <<EOF
11863 class Foo
11864 {
11865 public:
11866   Foo (void) { a = 0; }
11867 private:
11868   int a;
11869 };
11870 EOF
11871
11872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873   (eval $ac_compile) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; then
11877   # Parse the compiler output and extract the necessary
11878   # objects, libraries and library flags.
11879
11880   # Sentinel used to keep track of whether or not we are before
11881   # the conftest object file.
11882   pre_test_object_deps_done=no
11883
11884   # The `*' in the case matches for architectures that use `case' in
11885   # $output_verbose_cmd can trigger glob expansion during the loop
11886   # eval without this substitution.
11887   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11888
11889   for p in `eval $output_verbose_link_cmd`; do
11890     case $p in
11891
11892     -L* | -R* | -l*)
11893        # Some compilers place space between "-{L,R}" and the path.
11894        # Remove the space.
11895        if test $p = "-L" \
11896           || test $p = "-R"; then
11897          prev=$p
11898          continue
11899        else
11900          prev=
11901        fi
11902
11903        if test "$pre_test_object_deps_done" = no; then
11904          case $p in
11905          -L* | -R*)
11906            # Internal compiler library paths should come after those
11907            # provided the user.  The postdeps already come after the
11908            # user supplied libs so there is no need to process them.
11909            if test -z "$compiler_lib_search_path_CXX"; then
11910              compiler_lib_search_path_CXX="${prev}${p}"
11911            else
11912              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11913            fi
11914            ;;
11915          # The "-l" case would never come before the object being
11916          # linked, so don't bother handling this case.
11917          esac
11918        else
11919          if test -z "$postdeps_CXX"; then
11920            postdeps_CXX="${prev}${p}"
11921          else
11922            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11923          fi
11924        fi
11925        ;;
11926
11927     *.$objext)
11928        # This assumes that the test object file only shows up
11929        # once in the compiler output.
11930        if test "$p" = "conftest.$objext"; then
11931          pre_test_object_deps_done=yes
11932          continue
11933        fi
11934
11935        if test "$pre_test_object_deps_done" = no; then
11936          if test -z "$predep_objects_CXX"; then
11937            predep_objects_CXX="$p"
11938          else
11939            predep_objects_CXX="$predep_objects_CXX $p"
11940          fi
11941        else
11942          if test -z "$postdep_objects_CXX"; then
11943            postdep_objects_CXX="$p"
11944          else
11945            postdep_objects_CXX="$postdep_objects_CXX $p"
11946          fi
11947        fi
11948        ;;
11949
11950     *) ;; # Ignore the rest.
11951
11952     esac
11953   done
11954
11955   # Clean up.
11956   rm -f a.out a.exe
11957 else
11958   echo "libtool.m4: error: problem compiling CXX test program"
11959 fi
11960
11961 $rm -f confest.$objext
11962
11963 # PORTME: override above test on systems where it is broken
11964 case $host_os in
11965 interix[3-9]*)
11966   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11967   # hack all around it, let's just trust "g++" to DTRT.
11968   predep_objects_CXX=
11969   postdep_objects_CXX=
11970   postdeps_CXX=
11971   ;;
11972
11973 linux*)
11974   case `$CC -V 2>&1 | sed 5q` in
11975   *Sun\ C*)
11976     # Sun C++ 5.9
11977     #
11978     # The more standards-conforming stlport4 library is
11979     # incompatible with the Cstd library. Avoid specifying
11980     # it if it's in CXXFLAGS. Ignore libCrun as
11981     # -library=stlport4 depends on it.
11982     case " $CXX $CXXFLAGS " in
11983     *" -library=stlport4 "*)
11984       solaris_use_stlport4=yes
11985       ;;
11986     esac
11987     if test "$solaris_use_stlport4" != yes; then
11988       postdeps_CXX='-library=Cstd -library=Crun'
11989     fi
11990     ;;
11991   esac
11992   ;;
11993
11994 solaris*)
11995   case $cc_basename in
11996   CC*)
11997     # The more standards-conforming stlport4 library is
11998     # incompatible with the Cstd library. Avoid specifying
11999     # it if it's in CXXFLAGS. Ignore libCrun as
12000     # -library=stlport4 depends on it.
12001     case " $CXX $CXXFLAGS " in
12002     *" -library=stlport4 "*)
12003       solaris_use_stlport4=yes
12004       ;;
12005     esac
12006
12007     # Adding this requires a known-good setup of shared libraries for
12008     # Sun compiler versions before 5.6, else PIC objects from an old
12009     # archive will be linked into the output, leading to subtle bugs.
12010     if test "$solaris_use_stlport4" != yes; then
12011       postdeps_CXX='-library=Cstd -library=Crun'
12012     fi
12013     ;;
12014   esac
12015   ;;
12016 esac
12017
12018
12019 case " $postdeps_CXX " in
12020 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12021 esac
12022
12023 lt_prog_compiler_wl_CXX=
12024 lt_prog_compiler_pic_CXX=
12025 lt_prog_compiler_static_CXX=
12026
12027 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12028 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12029  
12030   # C++ specific cases for pic, static, wl, etc.
12031   if test "$GXX" = yes; then
12032     lt_prog_compiler_wl_CXX='-Wl,'
12033     lt_prog_compiler_static_CXX='-static'
12034
12035     case $host_os in
12036     aix*)
12037       # All AIX code is PIC.
12038       if test "$host_cpu" = ia64; then
12039         # AIX 5 now supports IA64 processor
12040         lt_prog_compiler_static_CXX='-Bstatic'
12041       fi
12042       ;;
12043     amigaos*)
12044       # FIXME: we need at least 68020 code to build shared libraries, but
12045       # adding the `-m68020' flag to GCC prevents building anything better,
12046       # like `-m68040'.
12047       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12048       ;;
12049     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12050       # PIC is the default for these OSes.
12051       ;;
12052     mingw* | cygwin* | os2* | pw32*)
12053       # This hack is so that the source file can tell whether it is being
12054       # built for inclusion in a dll (and should export symbols for example).
12055       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12056       # (--disable-auto-import) libraries
12057       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12058       ;;
12059     darwin* | rhapsody*)
12060       # PIC is the default on this platform
12061       # Common symbols not allowed in MH_DYLIB files
12062       lt_prog_compiler_pic_CXX='-fno-common'
12063       ;;
12064     *djgpp*)
12065       # DJGPP does not support shared libraries at all
12066       lt_prog_compiler_pic_CXX=
12067       ;;
12068     interix[3-9]*)
12069       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12070       # Instead, we relocate shared libraries at runtime.
12071       ;;
12072     sysv4*MP*)
12073       if test -d /usr/nec; then
12074         lt_prog_compiler_pic_CXX=-Kconform_pic
12075       fi
12076       ;;
12077     hpux*)
12078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12079       # not for PA HP-UX.
12080       case $host_cpu in
12081       hppa*64*|ia64*)
12082         ;;
12083       *)
12084         lt_prog_compiler_pic_CXX='-fPIC'
12085         ;;
12086       esac
12087       ;;
12088     *)
12089       lt_prog_compiler_pic_CXX='-fPIC'
12090       ;;
12091     esac
12092   else
12093     case $host_os in
12094       aix4* | aix5*)
12095         # All AIX code is PIC.
12096         if test "$host_cpu" = ia64; then
12097           # AIX 5 now supports IA64 processor
12098           lt_prog_compiler_static_CXX='-Bstatic'
12099         else
12100           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12101         fi
12102         ;;
12103       chorus*)
12104         case $cc_basename in
12105         cxch68*)
12106           # Green Hills C++ Compiler
12107           # _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"
12108           ;;
12109         esac
12110         ;;
12111        darwin*)
12112          # PIC is the default on this platform
12113          # Common symbols not allowed in MH_DYLIB files
12114          case $cc_basename in
12115            xlc*)
12116            lt_prog_compiler_pic_CXX='-qnocommon'
12117            lt_prog_compiler_wl_CXX='-Wl,'
12118            ;;
12119          esac
12120        ;;
12121       dgux*)
12122         case $cc_basename in
12123           ec++*)
12124             lt_prog_compiler_pic_CXX='-KPIC'
12125             ;;
12126           ghcx*)
12127             # Green Hills C++ Compiler
12128             lt_prog_compiler_pic_CXX='-pic'
12129             ;;
12130           *)
12131             ;;
12132         esac
12133         ;;
12134       freebsd* | dragonfly*)
12135         # FreeBSD uses GNU C++
12136         ;;
12137       hpux9* | hpux10* | hpux11*)
12138         case $cc_basename in
12139           CC*)
12140             lt_prog_compiler_wl_CXX='-Wl,'
12141             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12142             if test "$host_cpu" != ia64; then
12143               lt_prog_compiler_pic_CXX='+Z'
12144             fi
12145             ;;
12146           aCC*)
12147             lt_prog_compiler_wl_CXX='-Wl,'
12148             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12149             case $host_cpu in
12150             hppa*64*|ia64*)
12151               # +Z the default
12152               ;;
12153             *)
12154               lt_prog_compiler_pic_CXX='+Z'
12155               ;;
12156             esac
12157             ;;
12158           *)
12159             ;;
12160         esac
12161         ;;
12162       interix*)
12163         # This is c89, which is MS Visual C++ (no shared libs)
12164         # Anyone wants to do a port?
12165         ;;
12166       irix5* | irix6* | nonstopux*)
12167         case $cc_basename in
12168           CC*)
12169             lt_prog_compiler_wl_CXX='-Wl,'
12170             lt_prog_compiler_static_CXX='-non_shared'
12171             # CC pic flag -KPIC is the default.
12172             ;;
12173           *)
12174             ;;
12175         esac
12176         ;;
12177       linux* | k*bsd*-gnu)
12178         case $cc_basename in
12179           KCC*)
12180             # KAI C++ Compiler
12181             lt_prog_compiler_wl_CXX='--backend -Wl,'
12182             lt_prog_compiler_pic_CXX='-fPIC'
12183             ;;
12184           icpc* | ecpc*)
12185             # Intel C++
12186             lt_prog_compiler_wl_CXX='-Wl,'
12187             lt_prog_compiler_pic_CXX='-KPIC'
12188             lt_prog_compiler_static_CXX='-static'
12189             ;;
12190           pgCC*)
12191             # Portland Group C++ compiler.
12192             lt_prog_compiler_wl_CXX='-Wl,'
12193             lt_prog_compiler_pic_CXX='-fpic'
12194             lt_prog_compiler_static_CXX='-Bstatic'
12195             ;;
12196           cxx*)
12197             # Compaq C++
12198             # Make sure the PIC flag is empty.  It appears that all Alpha
12199             # Linux and Compaq Tru64 Unix objects are PIC.
12200             lt_prog_compiler_pic_CXX=
12201             lt_prog_compiler_static_CXX='-non_shared'
12202             ;;
12203           *)
12204             case `$CC -V 2>&1 | sed 5q` in
12205             *Sun\ C*)
12206               # Sun C++ 5.9
12207               lt_prog_compiler_pic_CXX='-KPIC'
12208               lt_prog_compiler_static_CXX='-Bstatic'
12209               lt_prog_compiler_wl_CXX='-Qoption ld '
12210               ;;
12211             esac
12212             ;;
12213         esac
12214         ;;
12215       lynxos*)
12216         ;;
12217       m88k*)
12218         ;;
12219       mvs*)
12220         case $cc_basename in
12221           cxx*)
12222             lt_prog_compiler_pic_CXX='-W c,exportall'
12223             ;;
12224           *)
12225             ;;
12226         esac
12227         ;;
12228       netbsd*)
12229         ;;
12230       osf3* | osf4* | osf5*)
12231         case $cc_basename in
12232           KCC*)
12233             lt_prog_compiler_wl_CXX='--backend -Wl,'
12234             ;;
12235           RCC*)
12236             # Rational C++ 2.4.1
12237             lt_prog_compiler_pic_CXX='-pic'
12238             ;;
12239           cxx*)
12240             # Digital/Compaq C++
12241             lt_prog_compiler_wl_CXX='-Wl,'
12242             # Make sure the PIC flag is empty.  It appears that all Alpha
12243             # Linux and Compaq Tru64 Unix objects are PIC.
12244             lt_prog_compiler_pic_CXX=
12245             lt_prog_compiler_static_CXX='-non_shared'
12246             ;;
12247           *)
12248             ;;
12249         esac
12250         ;;
12251       psos*)
12252         ;;
12253       solaris*)
12254         case $cc_basename in
12255           CC*)
12256             # Sun C++ 4.2, 5.x and Centerline C++
12257             lt_prog_compiler_pic_CXX='-KPIC'
12258             lt_prog_compiler_static_CXX='-Bstatic'
12259             lt_prog_compiler_wl_CXX='-Qoption ld '
12260             ;;
12261           gcx*)
12262             # Green Hills C++ Compiler
12263             lt_prog_compiler_pic_CXX='-PIC'
12264             ;;
12265           *)
12266             ;;
12267         esac
12268         ;;
12269       sunos4*)
12270         case $cc_basename in
12271           CC*)
12272             # Sun C++ 4.x
12273             lt_prog_compiler_pic_CXX='-pic'
12274             lt_prog_compiler_static_CXX='-Bstatic'
12275             ;;
12276           lcc*)
12277             # Lucid
12278             lt_prog_compiler_pic_CXX='-pic'
12279             ;;
12280           *)
12281             ;;
12282         esac
12283         ;;
12284       tandem*)
12285         case $cc_basename in
12286           NCC*)
12287             # NonStop-UX NCC 3.20
12288             lt_prog_compiler_pic_CXX='-KPIC'
12289             ;;
12290           *)
12291             ;;
12292         esac
12293         ;;
12294       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12295         case $cc_basename in
12296           CC*)
12297             lt_prog_compiler_wl_CXX='-Wl,'
12298             lt_prog_compiler_pic_CXX='-KPIC'
12299             lt_prog_compiler_static_CXX='-Bstatic'
12300             ;;
12301         esac
12302         ;;
12303       vxworks*)
12304         ;;
12305       *)
12306         lt_prog_compiler_can_build_shared_CXX=no
12307         ;;
12308     esac
12309   fi
12310
12311 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12312 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12313
12314 #
12315 # Check to make sure the PIC flag actually works.
12316 #
12317 if test -n "$lt_prog_compiler_pic_CXX"; then
12318   
12319 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12320 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12321 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   lt_prog_compiler_pic_works_CXX=no
12325   ac_outfile=conftest.$ac_objext
12326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12327    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12328    # Insert the option either (1) after the last *FLAGS variable, or
12329    # (2) before a word containing "conftest.", or (3) at the end.
12330    # Note that $ac_compile itself does not contain backslashes and begins
12331    # with a dollar sign (not a hyphen), so the echo should work correctly.
12332    # The option is referenced via a variable to avoid confusing sed.
12333    lt_compile=`echo "$ac_compile" | $SED \
12334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12336    -e 's:$: $lt_compiler_flag:'`
12337    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12338    (eval "$lt_compile" 2>conftest.err)
12339    ac_status=$?
12340    cat conftest.err >&5
12341    echo "$as_me:__oline__: \$? = $ac_status" >&5
12342    if (exit $ac_status) && test -s "$ac_outfile"; then
12343      # The compiler can only warn and ignore the option if not recognized
12344      # So say no if there are warnings other than the usual output.
12345      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12346      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12347      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12348        lt_prog_compiler_pic_works_CXX=yes
12349      fi
12350    fi
12351    $rm conftest*
12352
12353 fi
12354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12355 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12356
12357 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12358     case $lt_prog_compiler_pic_CXX in
12359      "" | " "*) ;;
12360      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12361      esac
12362 else
12363     lt_prog_compiler_pic_CXX=
12364      lt_prog_compiler_can_build_shared_CXX=no
12365 fi
12366
12367 fi
12368 case $host_os in
12369   # For platforms which do not support PIC, -DPIC is meaningless:
12370   *djgpp*)
12371     lt_prog_compiler_pic_CXX=
12372     ;;
12373   *)
12374     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12375     ;;
12376 esac
12377
12378 #
12379 # Check to make sure the static flag actually works.
12380 #
12381 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12382 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12383 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12384 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   lt_prog_compiler_static_works_CXX=no
12388    save_LDFLAGS="$LDFLAGS"
12389    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12390    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12391    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12392      # The linker can only warn and ignore the option if not recognized
12393      # So say no if there are warnings
12394      if test -s conftest.err; then
12395        # Append any errors to the config.log.
12396        cat conftest.err 1>&5
12397        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12398        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12399        if diff conftest.exp conftest.er2 >/dev/null; then
12400          lt_prog_compiler_static_works_CXX=yes
12401        fi
12402      else
12403        lt_prog_compiler_static_works_CXX=yes
12404      fi
12405    fi
12406    $rm conftest*
12407    LDFLAGS="$save_LDFLAGS"
12408
12409 fi
12410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12411 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12412
12413 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12414     :
12415 else
12416     lt_prog_compiler_static_CXX=
12417 fi
12418
12419
12420 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12421 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12422 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12423   echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425   lt_cv_prog_compiler_c_o_CXX=no
12426    $rm -r conftest 2>/dev/null
12427    mkdir conftest
12428    cd conftest
12429    mkdir out
12430    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12431
12432    lt_compiler_flag="-o out/conftest2.$ac_objext"
12433    # Insert the option either (1) after the last *FLAGS variable, or
12434    # (2) before a word containing "conftest.", or (3) at the end.
12435    # Note that $ac_compile itself does not contain backslashes and begins
12436    # with a dollar sign (not a hyphen), so the echo should work correctly.
12437    lt_compile=`echo "$ac_compile" | $SED \
12438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12440    -e 's:$: $lt_compiler_flag:'`
12441    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12442    (eval "$lt_compile" 2>out/conftest.err)
12443    ac_status=$?
12444    cat out/conftest.err >&5
12445    echo "$as_me:__oline__: \$? = $ac_status" >&5
12446    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12447    then
12448      # The compiler can only warn and ignore the option if not recognized
12449      # So say no if there are warnings
12450      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12451      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12452      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12453        lt_cv_prog_compiler_c_o_CXX=yes
12454      fi
12455    fi
12456    chmod u+w . 2>&5
12457    $rm conftest*
12458    # SGI C++ compiler will create directory out/ii_files/ for
12459    # template instantiation
12460    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12461    $rm out/* && rmdir out
12462    cd ..
12463    rmdir conftest
12464    $rm conftest*
12465
12466 fi
12467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12468 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12469
12470
12471 hard_links="nottested"
12472 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12473   # do not overwrite the value of need_locks provided by the user
12474   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12476   hard_links=yes
12477   $rm conftest*
12478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12479   touch conftest.a
12480   ln conftest.a conftest.b 2>&5 || hard_links=no
12481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12482   { echo "$as_me:$LINENO: result: $hard_links" >&5
12483 echo "${ECHO_T}$hard_links" >&6; }
12484   if test "$hard_links" = no; then
12485     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12487     need_locks=warn
12488   fi
12489 else
12490   need_locks=no
12491 fi
12492
12493 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12495
12496   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12497   case $host_os in
12498   aix4* | aix5*)
12499     # If we're using GNU nm, then we don't want the "-C" option.
12500     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12501     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12502       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'
12503     else
12504       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'
12505     fi
12506     ;;
12507   pw32*)
12508     export_symbols_cmds_CXX="$ltdll_cmds"
12509   ;;
12510   cygwin* | mingw*)
12511     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'
12512   ;;
12513   *)
12514     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12515   ;;
12516   esac
12517
12518 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12519 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12520 test "$ld_shlibs_CXX" = no && can_build_shared=no
12521
12522 #
12523 # Do we need to explicitly link libc?
12524 #
12525 case "x$archive_cmds_need_lc_CXX" in
12526 x|xyes)
12527   # Assume -lc should be added
12528   archive_cmds_need_lc_CXX=yes
12529
12530   if test "$enable_shared" = yes && test "$GCC" = yes; then
12531     case $archive_cmds_CXX in
12532     *'~'*)
12533       # FIXME: we may have to deal with multi-command sequences.
12534       ;;
12535     '$CC '*)
12536       # Test whether the compiler implicitly links with -lc since on some
12537       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12538       # to ld, don't add -lc before -lgcc.
12539       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12540 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12541       $rm conftest*
12542       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12543
12544       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545   (eval $ac_compile) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } 2>conftest.err; then
12549         soname=conftest
12550         lib=conftest
12551         libobjs=conftest.$ac_objext
12552         deplibs=
12553         wl=$lt_prog_compiler_wl_CXX
12554         pic_flag=$lt_prog_compiler_pic_CXX
12555         compiler_flags=-v
12556         linker_flags=-v
12557         verstring=
12558         output_objdir=.
12559         libname=conftest
12560         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12561         allow_undefined_flag_CXX=
12562         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12563   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }
12567         then
12568           archive_cmds_need_lc_CXX=no
12569         else
12570           archive_cmds_need_lc_CXX=yes
12571         fi
12572         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12573       else
12574         cat conftest.err 1>&5
12575       fi
12576       $rm conftest*
12577       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12578 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12579       ;;
12580     esac
12581   fi
12582   ;;
12583 esac
12584
12585 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12587 library_names_spec=
12588 libname_spec='lib$name'
12589 soname_spec=
12590 shrext_cmds=".so"
12591 postinstall_cmds=
12592 postuninstall_cmds=
12593 finish_cmds=
12594 finish_eval=
12595 shlibpath_var=
12596 shlibpath_overrides_runpath=unknown
12597 version_type=none
12598 dynamic_linker="$host_os ld.so"
12599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12600
12601 need_lib_prefix=unknown
12602 hardcode_into_libs=no
12603
12604 # when you set need_version to no, make sure it does not cause -set_version
12605 # flags to be left without arguments
12606 need_version=unknown
12607
12608 case $host_os in
12609 aix3*)
12610   version_type=linux
12611   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12612   shlibpath_var=LIBPATH
12613
12614   # AIX 3 has no versioning support, so we append a major version to the name.
12615   soname_spec='${libname}${release}${shared_ext}$major'
12616   ;;
12617
12618 aix4* | aix5*)
12619   version_type=linux
12620   need_lib_prefix=no
12621   need_version=no
12622   hardcode_into_libs=yes
12623   if test "$host_cpu" = ia64; then
12624     # AIX 5 supports IA64
12625     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12626     shlibpath_var=LD_LIBRARY_PATH
12627   else
12628     # With GCC up to 2.95.x, collect2 would create an import file
12629     # for dependence libraries.  The import file would start with
12630     # the line `#! .'.  This would cause the generated library to
12631     # depend on `.', always an invalid library.  This was fixed in
12632     # development snapshots of GCC prior to 3.0.
12633     case $host_os in
12634       aix4 | aix4.[01] | aix4.[01].*)
12635       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12636            echo ' yes '
12637            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12638         :
12639       else
12640         can_build_shared=no
12641       fi
12642       ;;
12643     esac
12644     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12645     # soname into executable. Probably we can add versioning support to
12646     # collect2, so additional links can be useful in future.
12647     if test "$aix_use_runtimelinking" = yes; then
12648       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12649       # instead of lib<name>.a to let people know that these are not
12650       # typical AIX shared libraries.
12651       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652     else
12653       # We preserve .a as extension for shared libraries through AIX4.2
12654       # and later when we are not doing run time linking.
12655       library_names_spec='${libname}${release}.a $libname.a'
12656       soname_spec='${libname}${release}${shared_ext}$major'
12657     fi
12658     shlibpath_var=LIBPATH
12659   fi
12660   ;;
12661
12662 amigaos*)
12663   library_names_spec='$libname.ixlibrary $libname.a'
12664   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12665   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'
12666   ;;
12667
12668 beos*)
12669   library_names_spec='${libname}${shared_ext}'
12670   dynamic_linker="$host_os ld.so"
12671   shlibpath_var=LIBRARY_PATH
12672   ;;
12673
12674 bsdi[45]*)
12675   version_type=linux
12676   need_version=no
12677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12678   soname_spec='${libname}${release}${shared_ext}$major'
12679   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12680   shlibpath_var=LD_LIBRARY_PATH
12681   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12682   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12683   # the default ld.so.conf also contains /usr/contrib/lib and
12684   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12685   # libtool to hard-code these into programs
12686   ;;
12687
12688 cygwin* | mingw* | pw32*)
12689   version_type=windows
12690   shrext_cmds=".dll"
12691   need_version=no
12692   need_lib_prefix=no
12693
12694   case $GCC,$host_os in
12695   yes,cygwin* | yes,mingw* | yes,pw32*)
12696     library_names_spec='$libname.dll.a'
12697     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12698     postinstall_cmds='base_file=`basename \${file}`~
12699       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12700       dldir=$destdir/`dirname \$dlpath`~
12701       test -d \$dldir || mkdir -p \$dldir~
12702       $install_prog $dir/$dlname \$dldir/$dlname~
12703       chmod a+x \$dldir/$dlname'
12704     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12705       dlpath=$dir/\$dldll~
12706        $rm \$dlpath'
12707     shlibpath_overrides_runpath=yes
12708
12709     case $host_os in
12710     cygwin*)
12711       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12712       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12713       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12714       ;;
12715     mingw*)
12716       # MinGW DLLs use traditional 'lib' prefix
12717       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12718       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12719       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12720         # It is most probably a Windows format PATH printed by
12721         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12722         # path with ; separators, and with drive letters. We can handle the
12723         # drive letters (cygwin fileutils understands them), so leave them,
12724         # especially as we might pass files found there to a mingw objdump,
12725         # which wouldn't understand a cygwinified path. Ahh.
12726         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12727       else
12728         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12729       fi
12730       ;;
12731     pw32*)
12732       # pw32 DLLs use 'pw' prefix rather than 'lib'
12733       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12734       ;;
12735     esac
12736     ;;
12737
12738   *)
12739     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12740     ;;
12741   esac
12742   dynamic_linker='Win32 ld.exe'
12743   # FIXME: first we should search . and the directory the executable is in
12744   shlibpath_var=PATH
12745   ;;
12746
12747 darwin* | rhapsody*)
12748   dynamic_linker="$host_os dyld"
12749   version_type=darwin
12750   need_lib_prefix=no
12751   need_version=no
12752   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12753   soname_spec='${libname}${release}${major}$shared_ext'
12754   shlibpath_overrides_runpath=yes
12755   shlibpath_var=DYLD_LIBRARY_PATH
12756   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12757    
12758   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12759   ;;
12760
12761 dgux*)
12762   version_type=linux
12763   need_lib_prefix=no
12764   need_version=no
12765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12766   soname_spec='${libname}${release}${shared_ext}$major'
12767   shlibpath_var=LD_LIBRARY_PATH
12768   ;;
12769
12770 freebsd1*)
12771   dynamic_linker=no
12772   ;;
12773
12774 freebsd* | dragonfly*)
12775   # DragonFly does not have aout.  When/if they implement a new
12776   # versioning mechanism, adjust this.
12777   if test -x /usr/bin/objformat; then
12778     objformat=`/usr/bin/objformat`
12779   else
12780     case $host_os in
12781     freebsd[123]*) objformat=aout ;;
12782     *) objformat=elf ;;
12783     esac
12784   fi
12785   version_type=freebsd-$objformat
12786   case $version_type in
12787     freebsd-elf*)
12788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12789       need_version=no
12790       need_lib_prefix=no
12791       ;;
12792     freebsd-*)
12793       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12794       need_version=yes
12795       ;;
12796   esac
12797   shlibpath_var=LD_LIBRARY_PATH
12798   case $host_os in
12799   freebsd2*)
12800     shlibpath_overrides_runpath=yes
12801     ;;
12802   freebsd3.[01]* | freebsdelf3.[01]*)
12803     shlibpath_overrides_runpath=yes
12804     hardcode_into_libs=yes
12805     ;;
12806   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12807   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12808     shlibpath_overrides_runpath=no
12809     hardcode_into_libs=yes
12810     ;;
12811   *) # from 4.6 on, and DragonFly
12812     shlibpath_overrides_runpath=yes
12813     hardcode_into_libs=yes
12814     ;;
12815   esac
12816   ;;
12817
12818 gnu*)
12819   version_type=linux
12820   need_lib_prefix=no
12821   need_version=no
12822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12823   soname_spec='${libname}${release}${shared_ext}$major'
12824   shlibpath_var=LD_LIBRARY_PATH
12825   hardcode_into_libs=yes
12826   ;;
12827
12828 hpux9* | hpux10* | hpux11*)
12829   # Give a soname corresponding to the major version so that dld.sl refuses to
12830   # link against other versions.
12831   version_type=sunos
12832   need_lib_prefix=no
12833   need_version=no
12834   case $host_cpu in
12835   ia64*)
12836     shrext_cmds='.so'
12837     hardcode_into_libs=yes
12838     dynamic_linker="$host_os dld.so"
12839     shlibpath_var=LD_LIBRARY_PATH
12840     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842     soname_spec='${libname}${release}${shared_ext}$major'
12843     if test "X$HPUX_IA64_MODE" = X32; then
12844       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12845     else
12846       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12847     fi
12848     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12849     ;;
12850    hppa*64*)
12851      shrext_cmds='.sl'
12852      hardcode_into_libs=yes
12853      dynamic_linker="$host_os dld.sl"
12854      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12855      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12856      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12857      soname_spec='${libname}${release}${shared_ext}$major'
12858      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12859      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12860      ;;
12861    *)
12862     shrext_cmds='.sl'
12863     dynamic_linker="$host_os dld.sl"
12864     shlibpath_var=SHLIB_PATH
12865     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12867     soname_spec='${libname}${release}${shared_ext}$major'
12868     ;;
12869   esac
12870   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12871   postinstall_cmds='chmod 555 $lib'
12872   ;;
12873
12874 interix[3-9]*)
12875   version_type=linux
12876   need_lib_prefix=no
12877   need_version=no
12878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12879   soname_spec='${libname}${release}${shared_ext}$major'
12880   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12881   shlibpath_var=LD_LIBRARY_PATH
12882   shlibpath_overrides_runpath=no
12883   hardcode_into_libs=yes
12884   ;;
12885
12886 irix5* | irix6* | nonstopux*)
12887   case $host_os in
12888     nonstopux*) version_type=nonstopux ;;
12889     *)
12890         if test "$lt_cv_prog_gnu_ld" = yes; then
12891                 version_type=linux
12892         else
12893                 version_type=irix
12894         fi ;;
12895   esac
12896   need_lib_prefix=no
12897   need_version=no
12898   soname_spec='${libname}${release}${shared_ext}$major'
12899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12900   case $host_os in
12901   irix5* | nonstopux*)
12902     libsuff= shlibsuff=
12903     ;;
12904   *)
12905     case $LD in # libtool.m4 will add one of these switches to LD
12906     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12907       libsuff= shlibsuff= libmagic=32-bit;;
12908     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12909       libsuff=32 shlibsuff=N32 libmagic=N32;;
12910     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12911       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12912     *) libsuff= shlibsuff= libmagic=never-match;;
12913     esac
12914     ;;
12915   esac
12916   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12917   shlibpath_overrides_runpath=no
12918   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12919   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12920   hardcode_into_libs=yes
12921   ;;
12922
12923 # No shared lib support for Linux oldld, aout, or coff.
12924 linux*oldld* | linux*aout* | linux*coff*)
12925   dynamic_linker=no
12926   ;;
12927
12928 # This must be Linux ELF.
12929 linux* | k*bsd*-gnu)
12930   version_type=linux
12931   need_lib_prefix=no
12932   need_version=no
12933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934   soname_spec='${libname}${release}${shared_ext}$major'
12935   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12936   shlibpath_var=LD_LIBRARY_PATH
12937   shlibpath_overrides_runpath=no
12938   # This implies no fast_install, which is unacceptable.
12939   # Some rework will be needed to allow for fast_install
12940   # before this can be enabled.
12941   hardcode_into_libs=yes
12942
12943   # find out which ABI we are using
12944   libsuff=
12945   case "$host_cpu" in
12946   x86_64*|s390x*|powerpc64*)
12947     echo '#line __oline__ "configure"' > conftest.$ac_ext
12948     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949   (eval $ac_compile) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; then
12953       case `/usr/bin/file conftest.$ac_objext` in
12954       *64-bit*)
12955         libsuff=64
12956         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12957         ;;
12958       esac
12959     fi
12960     rm -rf conftest*
12961     ;;
12962   esac
12963
12964   # Append ld.so.conf contents to the search path
12965   if test -f /etc/ld.so.conf; then
12966     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' ' '`
12967     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12968   fi
12969
12970   # We used to test for /lib/ld.so.1 and disable shared libraries on
12971   # powerpc, because MkLinux only supported shared libraries with the
12972   # GNU dynamic linker.  Since this was broken with cross compilers,
12973   # most powerpc-linux boxes support dynamic linking these days and
12974   # people can always --disable-shared, the test was removed, and we
12975   # assume the GNU/Linux dynamic linker is in use.
12976   dynamic_linker='GNU/Linux ld.so'
12977   ;;
12978
12979 netbsd*)
12980   version_type=sunos
12981   need_lib_prefix=no
12982   need_version=no
12983   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12985     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12986     dynamic_linker='NetBSD (a.out) ld.so'
12987   else
12988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12989     soname_spec='${libname}${release}${shared_ext}$major'
12990     dynamic_linker='NetBSD ld.elf_so'
12991   fi
12992   shlibpath_var=LD_LIBRARY_PATH
12993   shlibpath_overrides_runpath=yes
12994   hardcode_into_libs=yes
12995   ;;
12996
12997 newsos6)
12998   version_type=linux
12999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000   shlibpath_var=LD_LIBRARY_PATH
13001   shlibpath_overrides_runpath=yes
13002   ;;
13003
13004 nto-qnx*)
13005   version_type=linux
13006   need_lib_prefix=no
13007   need_version=no
13008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009   soname_spec='${libname}${release}${shared_ext}$major'
13010   shlibpath_var=LD_LIBRARY_PATH
13011   shlibpath_overrides_runpath=yes
13012   ;;
13013
13014 openbsd*)
13015   version_type=sunos
13016   sys_lib_dlsearch_path_spec="/usr/lib"
13017   need_lib_prefix=no
13018   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13019   case $host_os in
13020     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13021     *)                         need_version=no  ;;
13022   esac
13023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13024   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13025   shlibpath_var=LD_LIBRARY_PATH
13026   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13027     case $host_os in
13028       openbsd2.[89] | openbsd2.[89].*)
13029         shlibpath_overrides_runpath=no
13030         ;;
13031       *)
13032         shlibpath_overrides_runpath=yes
13033         ;;
13034       esac
13035   else
13036     shlibpath_overrides_runpath=yes
13037   fi
13038   ;;
13039
13040 os2*)
13041   libname_spec='$name'
13042   shrext_cmds=".dll"
13043   need_lib_prefix=no
13044   library_names_spec='$libname${shared_ext} $libname.a'
13045   dynamic_linker='OS/2 ld.exe'
13046   shlibpath_var=LIBPATH
13047   ;;
13048
13049 osf3* | osf4* | osf5*)
13050   version_type=osf
13051   need_lib_prefix=no
13052   need_version=no
13053   soname_spec='${libname}${release}${shared_ext}$major'
13054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055   shlibpath_var=LD_LIBRARY_PATH
13056   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13057   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13058   ;;
13059
13060 rdos*)
13061   dynamic_linker=no
13062   ;;
13063
13064 solaris*)
13065   version_type=linux
13066   need_lib_prefix=no
13067   need_version=no
13068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069   soname_spec='${libname}${release}${shared_ext}$major'
13070   shlibpath_var=LD_LIBRARY_PATH
13071   shlibpath_overrides_runpath=yes
13072   hardcode_into_libs=yes
13073   # ldd complains unless libraries are executable
13074   postinstall_cmds='chmod +x $lib'
13075   ;;
13076
13077 sunos4*)
13078   version_type=sunos
13079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13080   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13081   shlibpath_var=LD_LIBRARY_PATH
13082   shlibpath_overrides_runpath=yes
13083   if test "$with_gnu_ld" = yes; then
13084     need_lib_prefix=no
13085   fi
13086   need_version=yes
13087   ;;
13088
13089 sysv4 | sysv4.3*)
13090   version_type=linux
13091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13092   soname_spec='${libname}${release}${shared_ext}$major'
13093   shlibpath_var=LD_LIBRARY_PATH
13094   case $host_vendor in
13095     sni)
13096       shlibpath_overrides_runpath=no
13097       need_lib_prefix=no
13098       export_dynamic_flag_spec='${wl}-Blargedynsym'
13099       runpath_var=LD_RUN_PATH
13100       ;;
13101     siemens)
13102       need_lib_prefix=no
13103       ;;
13104     motorola)
13105       need_lib_prefix=no
13106       need_version=no
13107       shlibpath_overrides_runpath=no
13108       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13109       ;;
13110   esac
13111   ;;
13112
13113 sysv4*MP*)
13114   if test -d /usr/nec ;then
13115     version_type=linux
13116     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13117     soname_spec='$libname${shared_ext}.$major'
13118     shlibpath_var=LD_LIBRARY_PATH
13119   fi
13120   ;;
13121
13122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13123   version_type=freebsd-elf
13124   need_lib_prefix=no
13125   need_version=no
13126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13127   soname_spec='${libname}${release}${shared_ext}$major'
13128   shlibpath_var=LD_LIBRARY_PATH
13129   hardcode_into_libs=yes
13130   if test "$with_gnu_ld" = yes; then
13131     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13132     shlibpath_overrides_runpath=no
13133   else
13134     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13135     shlibpath_overrides_runpath=yes
13136     case $host_os in
13137       sco3.2v5*)
13138         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13139         ;;
13140     esac
13141   fi
13142   sys_lib_dlsearch_path_spec='/usr/lib'
13143   ;;
13144
13145 uts4*)
13146   version_type=linux
13147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148   soname_spec='${libname}${release}${shared_ext}$major'
13149   shlibpath_var=LD_LIBRARY_PATH
13150   ;;
13151
13152 *)
13153   dynamic_linker=no
13154   ;;
13155 esac
13156 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13157 echo "${ECHO_T}$dynamic_linker" >&6; }
13158 test "$dynamic_linker" = no && can_build_shared=no
13159
13160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13161 if test "$GCC" = yes; then
13162   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13163 fi
13164
13165 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13167 hardcode_action_CXX=
13168 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13169    test -n "$runpath_var_CXX" || \
13170    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13171
13172   # We can hardcode non-existant directories.
13173   if test "$hardcode_direct_CXX" != no &&
13174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13175      # have to relink, otherwise we might link with an installed library
13176      # when we should be linking with a yet-to-be-installed one
13177      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13178      test "$hardcode_minus_L_CXX" != no; then
13179     # Linking always hardcodes the temporary library directory.
13180     hardcode_action_CXX=relink
13181   else
13182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13183     hardcode_action_CXX=immediate
13184   fi
13185 else
13186   # We cannot hardcode anything, or else we can only hardcode existing
13187   # directories.
13188   hardcode_action_CXX=unsupported
13189 fi
13190 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13191 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13192
13193 if test "$hardcode_action_CXX" = relink; then
13194   # Fast installation is not supported
13195   enable_fast_install=no
13196 elif test "$shlibpath_overrides_runpath" = yes ||
13197      test "$enable_shared" = no; then
13198   # Fast installation is not necessary
13199   enable_fast_install=needless
13200 fi
13201
13202
13203 # The else clause should only fire when bootstrapping the
13204 # libtool distribution, otherwise you forgot to ship ltmain.sh
13205 # with your package, and you will get complaints that there are
13206 # no rules to generate ltmain.sh.
13207 if test -f "$ltmain"; then
13208   # See if we are running on zsh, and set the options which allow our commands through
13209   # without removal of \ escapes.
13210   if test -n "${ZSH_VERSION+set}" ; then
13211     setopt NO_GLOB_SUBST
13212   fi
13213   # Now quote all the things that may contain metacharacters while being
13214   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13215   # variables and quote the copies for generation of the libtool script.
13216   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13217     SED SHELL STRIP \
13218     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13219     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13220     deplibs_check_method reload_flag reload_cmds need_locks \
13221     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13222     lt_cv_sys_global_symbol_to_c_name_address \
13223     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13224     old_postinstall_cmds old_postuninstall_cmds \
13225     compiler_CXX \
13226     CC_CXX \
13227     LD_CXX \
13228     lt_prog_compiler_wl_CXX \
13229     lt_prog_compiler_pic_CXX \
13230     lt_prog_compiler_static_CXX \
13231     lt_prog_compiler_no_builtin_flag_CXX \
13232     export_dynamic_flag_spec_CXX \
13233     thread_safe_flag_spec_CXX \
13234     whole_archive_flag_spec_CXX \
13235     enable_shared_with_static_runtimes_CXX \
13236     old_archive_cmds_CXX \
13237     old_archive_from_new_cmds_CXX \
13238     predep_objects_CXX \
13239     postdep_objects_CXX \
13240     predeps_CXX \
13241     postdeps_CXX \
13242     compiler_lib_search_path_CXX \
13243     archive_cmds_CXX \
13244     archive_expsym_cmds_CXX \
13245     postinstall_cmds_CXX \
13246     postuninstall_cmds_CXX \
13247     old_archive_from_expsyms_cmds_CXX \
13248     allow_undefined_flag_CXX \
13249     no_undefined_flag_CXX \
13250     export_symbols_cmds_CXX \
13251     hardcode_libdir_flag_spec_CXX \
13252     hardcode_libdir_flag_spec_ld_CXX \
13253     hardcode_libdir_separator_CXX \
13254     hardcode_automatic_CXX \
13255     module_cmds_CXX \
13256     module_expsym_cmds_CXX \
13257     lt_cv_prog_compiler_c_o_CXX \
13258     fix_srcfile_path_CXX \
13259     exclude_expsyms_CXX \
13260     include_expsyms_CXX; do
13261
13262     case $var in
13263     old_archive_cmds_CXX | \
13264     old_archive_from_new_cmds_CXX | \
13265     archive_cmds_CXX | \
13266     archive_expsym_cmds_CXX | \
13267     module_cmds_CXX | \
13268     module_expsym_cmds_CXX | \
13269     old_archive_from_expsyms_cmds_CXX | \
13270     export_symbols_cmds_CXX | \
13271     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13272     postinstall_cmds | postuninstall_cmds | \
13273     old_postinstall_cmds | old_postuninstall_cmds | \
13274     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13275       # Double-quote double-evaled strings.
13276       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13277       ;;
13278     *)
13279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13280       ;;
13281     esac
13282   done
13283
13284   case $lt_echo in
13285   *'\$0 --fallback-echo"')
13286     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13287     ;;
13288   esac
13289
13290 cfgfile="$ofile"
13291
13292   cat <<__EOF__ >> "$cfgfile"
13293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13294
13295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13296
13297 # Shell to use when invoking shell scripts.
13298 SHELL=$lt_SHELL
13299
13300 # Whether or not to build shared libraries.
13301 build_libtool_libs=$enable_shared
13302
13303 # Whether or not to build static libraries.
13304 build_old_libs=$enable_static
13305
13306 # Whether or not to add -lc for building shared libraries.
13307 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13308
13309 # Whether or not to disallow shared libs when runtime libs are static
13310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13311
13312 # Whether or not to optimize for fast installation.
13313 fast_install=$enable_fast_install
13314
13315 # The host system.
13316 host_alias=$host_alias
13317 host=$host
13318 host_os=$host_os
13319
13320 # The build system.
13321 build_alias=$build_alias
13322 build=$build
13323 build_os=$build_os
13324
13325 # An echo program that does not interpret backslashes.
13326 echo=$lt_echo
13327
13328 # The archiver.
13329 AR=$lt_AR
13330 AR_FLAGS=$lt_AR_FLAGS
13331
13332 # A C compiler.
13333 LTCC=$lt_LTCC
13334
13335 # LTCC compiler flags.
13336 LTCFLAGS=$lt_LTCFLAGS
13337
13338 # A language-specific compiler.
13339 CC=$lt_compiler_CXX
13340
13341 # Is the compiler the GNU C compiler?
13342 with_gcc=$GCC_CXX
13343
13344 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13345 gcc_ver=\`gcc -dumpversion\`
13346
13347 # An ERE matcher.
13348 EGREP=$lt_EGREP
13349
13350 # The linker used to build libraries.
13351 LD=$lt_LD_CXX
13352
13353 # Whether we need hard or soft links.
13354 LN_S=$lt_LN_S
13355
13356 # A BSD-compatible nm program.
13357 NM=$lt_NM
13358
13359 # A symbol stripping program
13360 STRIP=$lt_STRIP
13361
13362 # Used to examine libraries when file_magic_cmd begins "file"
13363 MAGIC_CMD=$MAGIC_CMD
13364
13365 # Used on cygwin: DLL creation program.
13366 DLLTOOL="$DLLTOOL"
13367
13368 # Used on cygwin: object dumper.
13369 OBJDUMP="$OBJDUMP"
13370
13371 # Used on cygwin: assembler.
13372 AS="$AS"
13373
13374 # The name of the directory that contains temporary libtool files.
13375 objdir=$objdir
13376
13377 # How to create reloadable object files.
13378 reload_flag=$lt_reload_flag
13379 reload_cmds=$lt_reload_cmds
13380
13381 # How to pass a linker flag through the compiler.
13382 wl=$lt_lt_prog_compiler_wl_CXX
13383
13384 # Object file suffix (normally "o").
13385 objext="$ac_objext"
13386
13387 # Old archive suffix (normally "a").
13388 libext="$libext"
13389
13390 # Shared library suffix (normally ".so").
13391 shrext_cmds='$shrext_cmds'
13392
13393 # Executable file suffix (normally "").
13394 exeext="$exeext"
13395
13396 # Additional compiler flags for building library objects.
13397 pic_flag=$lt_lt_prog_compiler_pic_CXX
13398 pic_mode=$pic_mode
13399
13400 # What is the maximum length of a command?
13401 max_cmd_len=$lt_cv_sys_max_cmd_len
13402
13403 # Does compiler simultaneously support -c and -o options?
13404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13405
13406 # Must we lock files when doing compilation?
13407 need_locks=$lt_need_locks
13408
13409 # Do we need the lib prefix for modules?
13410 need_lib_prefix=$need_lib_prefix
13411
13412 # Do we need a version for libraries?
13413 need_version=$need_version
13414
13415 # Whether dlopen is supported.
13416 dlopen_support=$enable_dlopen
13417
13418 # Whether dlopen of programs is supported.
13419 dlopen_self=$enable_dlopen_self
13420
13421 # Whether dlopen of statically linked programs is supported.
13422 dlopen_self_static=$enable_dlopen_self_static
13423
13424 # Compiler flag to prevent dynamic linking.
13425 link_static_flag=$lt_lt_prog_compiler_static_CXX
13426
13427 # Compiler flag to turn off builtin functions.
13428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13429
13430 # Compiler flag to allow reflexive dlopens.
13431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13432
13433 # Compiler flag to generate shared objects directly from archives.
13434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13435
13436 # Compiler flag to generate thread-safe objects.
13437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13438
13439 # Library versioning type.
13440 version_type=$version_type
13441
13442 # Format of library name prefix.
13443 libname_spec=$lt_libname_spec
13444
13445 # List of archive names.  First name is the real one, the rest are links.
13446 # The last name is the one that the linker finds with -lNAME.
13447 library_names_spec=$lt_library_names_spec
13448
13449 # The coded name of the library, if different from the real name.
13450 soname_spec=$lt_soname_spec
13451
13452 # Commands used to build and install an old-style archive.
13453 RANLIB=$lt_RANLIB
13454 old_archive_cmds=$lt_old_archive_cmds_CXX
13455 old_postinstall_cmds=$lt_old_postinstall_cmds
13456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13457
13458 # Create an old-style archive from a shared archive.
13459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13460
13461 # Create a temporary old-style archive to link instead of a shared archive.
13462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13463
13464 # Commands used to build and install a shared archive.
13465 archive_cmds=$lt_archive_cmds_CXX
13466 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13467 postinstall_cmds=$lt_postinstall_cmds
13468 postuninstall_cmds=$lt_postuninstall_cmds
13469
13470 # Commands used to build a loadable module (assumed same as above if empty)
13471 module_cmds=$lt_module_cmds_CXX
13472 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13473
13474 # Commands to strip libraries.
13475 old_striplib=$lt_old_striplib
13476 striplib=$lt_striplib
13477
13478 # Dependencies to place before the objects being linked to create a
13479 # shared library.
13480 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13481
13482 # Dependencies to place after the objects being linked to create a
13483 # shared library.
13484 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13485
13486 # Dependencies to place before the objects being linked to create a
13487 # shared library.
13488 predeps=$lt_predeps_CXX
13489
13490 # Dependencies to place after the objects being linked to create a
13491 # shared library.
13492 postdeps=$lt_postdeps_CXX
13493
13494 # The library search path used internally by the compiler when linking
13495 # a shared library.
13496 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13497
13498 # Method to check whether dependent libraries are shared objects.
13499 deplibs_check_method=$lt_deplibs_check_method
13500
13501 # Command to use when deplibs_check_method == file_magic.
13502 file_magic_cmd=$lt_file_magic_cmd
13503
13504 # Flag that allows shared libraries with undefined symbols to be built.
13505 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13506
13507 # Flag that forces no undefined symbols.
13508 no_undefined_flag=$lt_no_undefined_flag_CXX
13509
13510 # Commands used to finish a libtool library installation in a directory.
13511 finish_cmds=$lt_finish_cmds
13512
13513 # Same as above, but a single script fragment to be evaled but not shown.
13514 finish_eval=$lt_finish_eval
13515
13516 # Take the output of nm and produce a listing of raw symbols and C names.
13517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13518
13519 # Transform the output of nm in a proper C declaration
13520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13521
13522 # Transform the output of nm in a C name address pair
13523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13524
13525 # This is the shared library runtime path variable.
13526 runpath_var=$runpath_var
13527
13528 # This is the shared library path variable.
13529 shlibpath_var=$shlibpath_var
13530
13531 # Is shlibpath searched before the hard-coded library search path?
13532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13533
13534 # How to hardcode a shared library path into an executable.
13535 hardcode_action=$hardcode_action_CXX
13536
13537 # Whether we should hardcode library paths into libraries.
13538 hardcode_into_libs=$hardcode_into_libs
13539
13540 # Flag to hardcode \$libdir into a binary during linking.
13541 # This must work even if \$libdir does not exist.
13542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13543
13544 # If ld is used when linking, flag to hardcode \$libdir into
13545 # a binary during linking. This must work even if \$libdir does
13546 # not exist.
13547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13548
13549 # Whether we need a single -rpath flag with a separated argument.
13550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13551
13552 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13553 # resulting binary.
13554 hardcode_direct=$hardcode_direct_CXX
13555
13556 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13557 # resulting binary.
13558 hardcode_minus_L=$hardcode_minus_L_CXX
13559
13560 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13561 # the resulting binary.
13562 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13563
13564 # Set to yes if building a shared library automatically hardcodes DIR into the library
13565 # and all subsequent libraries and executables linked against it.
13566 hardcode_automatic=$hardcode_automatic_CXX
13567
13568 # Variables whose values should be saved in libtool wrapper scripts and
13569 # restored at relink time.
13570 variables_saved_for_relink="$variables_saved_for_relink"
13571
13572 # Whether libtool must link a program against all its dependency libraries.
13573 link_all_deplibs=$link_all_deplibs_CXX
13574
13575 # Compile-time system search path for libraries
13576 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13577
13578 # Run-time system search path for libraries
13579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13580
13581 # Fix the shell variable \$srcfile for the compiler.
13582 fix_srcfile_path=$lt_fix_srcfile_path
13583
13584 # Set to yes if exported symbols are required.
13585 always_export_symbols=$always_export_symbols_CXX
13586
13587 # The commands to list exported symbols.
13588 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13589
13590 # The commands to extract the exported symbol list from a shared archive.
13591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13592
13593 # Symbols that should not be listed in the preloaded symbols.
13594 exclude_expsyms=$lt_exclude_expsyms_CXX
13595
13596 # Symbols that must always be exported.
13597 include_expsyms=$lt_include_expsyms_CXX
13598
13599 # ### END LIBTOOL TAG CONFIG: $tagname
13600
13601 __EOF__
13602
13603
13604 else
13605   # If there is no Makefile yet, we rely on a make rule to execute
13606   # `config.status --recheck' to rerun these tests and create the
13607   # libtool script then.
13608   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13609   if test -f "$ltmain_in"; then
13610     test -f Makefile && make "$ltmain"
13611   fi
13612 fi
13613
13614
13615 ac_ext=c
13616 ac_cpp='$CPP $CPPFLAGS'
13617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13620
13621 CC=$lt_save_CC
13622 LDCXX=$LD
13623 LD=$lt_save_LD
13624 GCC=$lt_save_GCC
13625 with_gnu_ldcxx=$with_gnu_ld
13626 with_gnu_ld=$lt_save_with_gnu_ld
13627 lt_cv_path_LDCXX=$lt_cv_path_LD
13628 lt_cv_path_LD=$lt_save_path_LD
13629 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13630 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13631
13632         else
13633           tagname=""
13634         fi
13635         ;;
13636
13637       F77)
13638         if test -n "$F77" && test "X$F77" != "Xno"; then
13639           
13640 ac_ext=f
13641 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13642 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13643 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13644
13645
13646 archive_cmds_need_lc_F77=no
13647 allow_undefined_flag_F77=
13648 always_export_symbols_F77=no
13649 archive_expsym_cmds_F77=
13650 export_dynamic_flag_spec_F77=
13651 hardcode_direct_F77=no
13652 hardcode_libdir_flag_spec_F77=
13653 hardcode_libdir_flag_spec_ld_F77=
13654 hardcode_libdir_separator_F77=
13655 hardcode_minus_L_F77=no
13656 hardcode_automatic_F77=no
13657 module_cmds_F77=
13658 module_expsym_cmds_F77=
13659 link_all_deplibs_F77=unknown
13660 old_archive_cmds_F77=$old_archive_cmds
13661 no_undefined_flag_F77=
13662 whole_archive_flag_spec_F77=
13663 enable_shared_with_static_runtimes_F77=no
13664
13665 # Source file extension for f77 test sources.
13666 ac_ext=f
13667
13668 # Object file extension for compiled f77 test sources.
13669 objext=o
13670 objext_F77=$objext
13671
13672 # Code to be used in simple compile tests
13673 lt_simple_compile_test_code="\
13674       subroutine t
13675       return
13676       end
13677 "
13678
13679 # Code to be used in simple link tests
13680 lt_simple_link_test_code="\
13681       program t
13682       end
13683 "
13684
13685 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13686
13687 # If no C compiler was specified, use CC.
13688 LTCC=${LTCC-"$CC"}
13689
13690 # If no C compiler flags were specified, use CFLAGS.
13691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13692
13693 # Allow CC to be a program name with arguments.
13694 compiler=$CC
13695
13696
13697 # save warnings/boilerplate of simple test code
13698 ac_outfile=conftest.$ac_objext
13699 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13700 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13701 _lt_compiler_boilerplate=`cat conftest.err`
13702 $rm conftest*
13703
13704 ac_outfile=conftest.$ac_objext
13705 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13706 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13707 _lt_linker_boilerplate=`cat conftest.err`
13708 $rm conftest*
13709
13710
13711 # Allow CC to be a program name with arguments.
13712 lt_save_CC="$CC"
13713 CC=${F77-"f77"}
13714 compiler=$CC
13715 compiler_F77=$CC
13716 for cc_temp in $compiler""; do
13717   case $cc_temp in
13718     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13719     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13720     \-*) ;;
13721     *) break;;
13722   esac
13723 done
13724 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13725
13726
13727 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13728 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13729 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13730 echo "${ECHO_T}$can_build_shared" >&6; }
13731
13732 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13733 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13734 test "$can_build_shared" = "no" && enable_shared=no
13735
13736 # On AIX, shared libraries and static libraries use the same namespace, and
13737 # are all built from PIC.
13738 case $host_os in
13739 aix3*)
13740   test "$enable_shared" = yes && enable_static=no
13741   if test -n "$RANLIB"; then
13742     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13743     postinstall_cmds='$RANLIB $lib'
13744   fi
13745   ;;
13746 aix4* | aix5*)
13747   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13748     test "$enable_shared" = yes && enable_static=no
13749   fi
13750   ;;
13751 esac
13752 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13753 echo "${ECHO_T}$enable_shared" >&6; }
13754
13755 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13756 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13757 # Make sure either enable_shared or enable_static is yes.
13758 test "$enable_shared" = yes || enable_static=yes
13759 { echo "$as_me:$LINENO: result: $enable_static" >&5
13760 echo "${ECHO_T}$enable_static" >&6; }
13761
13762 GCC_F77="$G77"
13763 LD_F77="$LD"
13764
13765 lt_prog_compiler_wl_F77=
13766 lt_prog_compiler_pic_F77=
13767 lt_prog_compiler_static_F77=
13768
13769 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13770 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13771  
13772   if test "$GCC" = yes; then
13773     lt_prog_compiler_wl_F77='-Wl,'
13774     lt_prog_compiler_static_F77='-static'
13775
13776     case $host_os in
13777       aix*)
13778       # All AIX code is PIC.
13779       if test "$host_cpu" = ia64; then
13780         # AIX 5 now supports IA64 processor
13781         lt_prog_compiler_static_F77='-Bstatic'
13782       fi
13783       ;;
13784
13785     amigaos*)
13786       # FIXME: we need at least 68020 code to build shared libraries, but
13787       # adding the `-m68020' flag to GCC prevents building anything better,
13788       # like `-m68040'.
13789       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13790       ;;
13791
13792     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13793       # PIC is the default for these OSes.
13794       ;;
13795
13796     mingw* | cygwin* | pw32* | os2*)
13797       # This hack is so that the source file can tell whether it is being
13798       # built for inclusion in a dll (and should export symbols for example).
13799       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13800       # (--disable-auto-import) libraries
13801       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13802       ;;
13803
13804     darwin* | rhapsody*)
13805       # PIC is the default on this platform
13806       # Common symbols not allowed in MH_DYLIB files
13807       lt_prog_compiler_pic_F77='-fno-common'
13808       ;;
13809
13810     interix[3-9]*)
13811       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13812       # Instead, we relocate shared libraries at runtime.
13813       ;;
13814
13815     msdosdjgpp*)
13816       # Just because we use GCC doesn't mean we suddenly get shared libraries
13817       # on systems that don't support them.
13818       lt_prog_compiler_can_build_shared_F77=no
13819       enable_shared=no
13820       ;;
13821
13822     sysv4*MP*)
13823       if test -d /usr/nec; then
13824         lt_prog_compiler_pic_F77=-Kconform_pic
13825       fi
13826       ;;
13827
13828     hpux*)
13829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13830       # not for PA HP-UX.
13831       case $host_cpu in
13832       hppa*64*|ia64*)
13833         # +Z the default
13834         ;;
13835       *)
13836         lt_prog_compiler_pic_F77='-fPIC'
13837         ;;
13838       esac
13839       ;;
13840
13841     *)
13842       lt_prog_compiler_pic_F77='-fPIC'
13843       ;;
13844     esac
13845   else
13846     # PORTME Check for flag to pass linker flags through the system compiler.
13847     case $host_os in
13848     aix*)
13849       lt_prog_compiler_wl_F77='-Wl,'
13850       if test "$host_cpu" = ia64; then
13851         # AIX 5 now supports IA64 processor
13852         lt_prog_compiler_static_F77='-Bstatic'
13853       else
13854         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13855       fi
13856       ;;
13857       darwin*)
13858         # PIC is the default on this platform
13859         # Common symbols not allowed in MH_DYLIB files
13860        case $cc_basename in
13861          xlc*)
13862          lt_prog_compiler_pic_F77='-qnocommon'
13863          lt_prog_compiler_wl_F77='-Wl,'
13864          ;;
13865        esac
13866        ;;
13867
13868     mingw* | cygwin* | pw32* | os2*)
13869       # This hack is so that the source file can tell whether it is being
13870       # built for inclusion in a dll (and should export symbols for example).
13871       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13872       ;;
13873
13874     hpux9* | hpux10* | hpux11*)
13875       lt_prog_compiler_wl_F77='-Wl,'
13876       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13877       # not for PA HP-UX.
13878       case $host_cpu in
13879       hppa*64*|ia64*)
13880         # +Z the default
13881         ;;
13882       *)
13883         lt_prog_compiler_pic_F77='+Z'
13884         ;;
13885       esac
13886       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13887       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13888       ;;
13889
13890     irix5* | irix6* | nonstopux*)
13891       lt_prog_compiler_wl_F77='-Wl,'
13892       # PIC (with -KPIC) is the default.
13893       lt_prog_compiler_static_F77='-non_shared'
13894       ;;
13895
13896     newsos6)
13897       lt_prog_compiler_pic_F77='-KPIC'
13898       lt_prog_compiler_static_F77='-Bstatic'
13899       ;;
13900
13901     linux* | k*bsd*-gnu)
13902       case $cc_basename in
13903       icc* | ecc*)
13904         lt_prog_compiler_wl_F77='-Wl,'
13905         lt_prog_compiler_pic_F77='-KPIC'
13906         lt_prog_compiler_static_F77='-static'
13907         ;;
13908       pgcc* | pgf77* | pgf90* | pgf95*)
13909         # Portland Group compilers (*not* the Pentium gcc compiler,
13910         # which looks to be a dead project)
13911         lt_prog_compiler_wl_F77='-Wl,'
13912         lt_prog_compiler_pic_F77='-fpic'
13913         lt_prog_compiler_static_F77='-Bstatic'
13914         ;;
13915       ccc*)
13916         lt_prog_compiler_wl_F77='-Wl,'
13917         # All Alpha code is PIC.
13918         lt_prog_compiler_static_F77='-non_shared'
13919         ;;
13920       *)
13921         case `$CC -V 2>&1 | sed 5q` in
13922         *Sun\ C*)
13923           # Sun C 5.9
13924           lt_prog_compiler_pic_F77='-KPIC'
13925           lt_prog_compiler_static_F77='-Bstatic'
13926           lt_prog_compiler_wl_F77='-Wl,'
13927           ;;
13928         *Sun\ F*)
13929           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13930           lt_prog_compiler_pic_F77='-KPIC'
13931           lt_prog_compiler_static_F77='-Bstatic'
13932           lt_prog_compiler_wl_F77=''
13933           ;;
13934         esac
13935         ;;
13936       esac
13937       ;;
13938
13939     osf3* | osf4* | osf5*)
13940       lt_prog_compiler_wl_F77='-Wl,'
13941       # All OSF/1 code is PIC.
13942       lt_prog_compiler_static_F77='-non_shared'
13943       ;;
13944
13945     rdos*)
13946       lt_prog_compiler_static_F77='-non_shared'
13947       ;;
13948
13949     solaris*)
13950       lt_prog_compiler_pic_F77='-KPIC'
13951       lt_prog_compiler_static_F77='-Bstatic'
13952       case $cc_basename in
13953       f77* | f90* | f95*)
13954         lt_prog_compiler_wl_F77='-Qoption ld ';;
13955       *)
13956         lt_prog_compiler_wl_F77='-Wl,';;
13957       esac
13958       ;;
13959
13960     sunos4*)
13961       lt_prog_compiler_wl_F77='-Qoption ld '
13962       lt_prog_compiler_pic_F77='-PIC'
13963       lt_prog_compiler_static_F77='-Bstatic'
13964       ;;
13965
13966     sysv4 | sysv4.2uw2* | sysv4.3*)
13967       lt_prog_compiler_wl_F77='-Wl,'
13968       lt_prog_compiler_pic_F77='-KPIC'
13969       lt_prog_compiler_static_F77='-Bstatic'
13970       ;;
13971
13972     sysv4*MP*)
13973       if test -d /usr/nec ;then
13974         lt_prog_compiler_pic_F77='-Kconform_pic'
13975         lt_prog_compiler_static_F77='-Bstatic'
13976       fi
13977       ;;
13978
13979     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13980       lt_prog_compiler_wl_F77='-Wl,'
13981       lt_prog_compiler_pic_F77='-KPIC'
13982       lt_prog_compiler_static_F77='-Bstatic'
13983       ;;
13984
13985     unicos*)
13986       lt_prog_compiler_wl_F77='-Wl,'
13987       lt_prog_compiler_can_build_shared_F77=no
13988       ;;
13989
13990     uts4*)
13991       lt_prog_compiler_pic_F77='-pic'
13992       lt_prog_compiler_static_F77='-Bstatic'
13993       ;;
13994
13995     *)
13996       lt_prog_compiler_can_build_shared_F77=no
13997       ;;
13998     esac
13999   fi
14000
14001 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14002 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14003
14004 #
14005 # Check to make sure the PIC flag actually works.
14006 #
14007 if test -n "$lt_prog_compiler_pic_F77"; then
14008   
14009 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14010 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14011 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14012   echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14014   lt_prog_compiler_pic_works_F77=no
14015   ac_outfile=conftest.$ac_objext
14016    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14017    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14018    # Insert the option either (1) after the last *FLAGS variable, or
14019    # (2) before a word containing "conftest.", or (3) at the end.
14020    # Note that $ac_compile itself does not contain backslashes and begins
14021    # with a dollar sign (not a hyphen), so the echo should work correctly.
14022    # The option is referenced via a variable to avoid confusing sed.
14023    lt_compile=`echo "$ac_compile" | $SED \
14024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14026    -e 's:$: $lt_compiler_flag:'`
14027    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14028    (eval "$lt_compile" 2>conftest.err)
14029    ac_status=$?
14030    cat conftest.err >&5
14031    echo "$as_me:__oline__: \$? = $ac_status" >&5
14032    if (exit $ac_status) && test -s "$ac_outfile"; then
14033      # The compiler can only warn and ignore the option if not recognized
14034      # So say no if there are warnings other than the usual output.
14035      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14036      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14037      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14038        lt_prog_compiler_pic_works_F77=yes
14039      fi
14040    fi
14041    $rm conftest*
14042
14043 fi
14044 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14045 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14046
14047 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14048     case $lt_prog_compiler_pic_F77 in
14049      "" | " "*) ;;
14050      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14051      esac
14052 else
14053     lt_prog_compiler_pic_F77=
14054      lt_prog_compiler_can_build_shared_F77=no
14055 fi
14056
14057 fi
14058 case $host_os in
14059   # For platforms which do not support PIC, -DPIC is meaningless:
14060   *djgpp*)
14061     lt_prog_compiler_pic_F77=
14062     ;;
14063   *)
14064     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14065     ;;
14066 esac
14067
14068 #
14069 # Check to make sure the static flag actually works.
14070 #
14071 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14072 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14073 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14074 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14075   echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077   lt_prog_compiler_static_works_F77=no
14078    save_LDFLAGS="$LDFLAGS"
14079    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14080    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14081    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14082      # The linker can only warn and ignore the option if not recognized
14083      # So say no if there are warnings
14084      if test -s conftest.err; then
14085        # Append any errors to the config.log.
14086        cat conftest.err 1>&5
14087        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14088        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14089        if diff conftest.exp conftest.er2 >/dev/null; then
14090          lt_prog_compiler_static_works_F77=yes
14091        fi
14092      else
14093        lt_prog_compiler_static_works_F77=yes
14094      fi
14095    fi
14096    $rm conftest*
14097    LDFLAGS="$save_LDFLAGS"
14098
14099 fi
14100 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14101 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14102
14103 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14104     :
14105 else
14106     lt_prog_compiler_static_F77=
14107 fi
14108
14109
14110 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14111 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14112 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115   lt_cv_prog_compiler_c_o_F77=no
14116    $rm -r conftest 2>/dev/null
14117    mkdir conftest
14118    cd conftest
14119    mkdir out
14120    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14121
14122    lt_compiler_flag="-o out/conftest2.$ac_objext"
14123    # Insert the option either (1) after the last *FLAGS variable, or
14124    # (2) before a word containing "conftest.", or (3) at the end.
14125    # Note that $ac_compile itself does not contain backslashes and begins
14126    # with a dollar sign (not a hyphen), so the echo should work correctly.
14127    lt_compile=`echo "$ac_compile" | $SED \
14128    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14130    -e 's:$: $lt_compiler_flag:'`
14131    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14132    (eval "$lt_compile" 2>out/conftest.err)
14133    ac_status=$?
14134    cat out/conftest.err >&5
14135    echo "$as_me:__oline__: \$? = $ac_status" >&5
14136    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14137    then
14138      # The compiler can only warn and ignore the option if not recognized
14139      # So say no if there are warnings
14140      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14141      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14142      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14143        lt_cv_prog_compiler_c_o_F77=yes
14144      fi
14145    fi
14146    chmod u+w . 2>&5
14147    $rm conftest*
14148    # SGI C++ compiler will create directory out/ii_files/ for
14149    # template instantiation
14150    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14151    $rm out/* && rmdir out
14152    cd ..
14153    rmdir conftest
14154    $rm conftest*
14155
14156 fi
14157 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14158 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14159
14160
14161 hard_links="nottested"
14162 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14163   # do not overwrite the value of need_locks provided by the user
14164   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14165 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14166   hard_links=yes
14167   $rm conftest*
14168   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14169   touch conftest.a
14170   ln conftest.a conftest.b 2>&5 || hard_links=no
14171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14172   { echo "$as_me:$LINENO: result: $hard_links" >&5
14173 echo "${ECHO_T}$hard_links" >&6; }
14174   if test "$hard_links" = no; then
14175     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14176 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14177     need_locks=warn
14178   fi
14179 else
14180   need_locks=no
14181 fi
14182
14183 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14184 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14185
14186   runpath_var=
14187   allow_undefined_flag_F77=
14188   enable_shared_with_static_runtimes_F77=no
14189   archive_cmds_F77=
14190   archive_expsym_cmds_F77=
14191   old_archive_From_new_cmds_F77=
14192   old_archive_from_expsyms_cmds_F77=
14193   export_dynamic_flag_spec_F77=
14194   whole_archive_flag_spec_F77=
14195   thread_safe_flag_spec_F77=
14196   hardcode_libdir_flag_spec_F77=
14197   hardcode_libdir_flag_spec_ld_F77=
14198   hardcode_libdir_separator_F77=
14199   hardcode_direct_F77=no
14200   hardcode_minus_L_F77=no
14201   hardcode_shlibpath_var_F77=unsupported
14202   link_all_deplibs_F77=unknown
14203   hardcode_automatic_F77=no
14204   module_cmds_F77=
14205   module_expsym_cmds_F77=
14206   always_export_symbols_F77=no
14207   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14208   # include_expsyms should be a list of space-separated symbols to be *always*
14209   # included in the symbol list
14210   include_expsyms_F77=
14211   # exclude_expsyms can be an extended regexp of symbols to exclude
14212   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14213   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14214   # as well as any symbol that contains `d'.
14215   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14216   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14217   # platforms (ab)use it in PIC code, but their linkers get confused if
14218   # the symbol is explicitly referenced.  Since portable code cannot
14219   # rely on this symbol name, it's probably fine to never include it in
14220   # preloaded symbol tables.
14221   extract_expsyms_cmds=
14222   # Just being paranoid about ensuring that cc_basename is set.
14223   for cc_temp in $compiler""; do
14224   case $cc_temp in
14225     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14226     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14227     \-*) ;;
14228     *) break;;
14229   esac
14230 done
14231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14232
14233   case $host_os in
14234   cygwin* | mingw* | pw32*)
14235     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14236     # When not using gcc, we currently assume that we are using
14237     # Microsoft Visual C++.
14238     if test "$GCC" != yes; then
14239       with_gnu_ld=no
14240     fi
14241     ;;
14242   interix*)
14243     # we just hope/assume this is gcc and not c89 (= MSVC++)
14244     with_gnu_ld=yes
14245     ;;
14246   openbsd*)
14247     with_gnu_ld=no
14248     ;;
14249   esac
14250
14251   ld_shlibs_F77=yes
14252   if test "$with_gnu_ld" = yes; then
14253     # If archive_cmds runs LD, not CC, wlarc should be empty
14254     wlarc='${wl}'
14255
14256     # Set some defaults for GNU ld with shared library support. These
14257     # are reset later if shared libraries are not supported. Putting them
14258     # here allows them to be overridden if necessary.
14259     runpath_var=LD_RUN_PATH
14260     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14261     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14262     # ancient GNU ld didn't support --whole-archive et. al.
14263     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14264         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14265       else
14266         whole_archive_flag_spec_F77=
14267     fi
14268     supports_anon_versioning=no
14269     case `$LD -v 2>/dev/null` in
14270       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14271       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14272       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14273       *\ 2.11.*) ;; # other 2.11 versions
14274       *) supports_anon_versioning=yes ;;
14275     esac
14276
14277     # See if GNU ld supports shared libraries.
14278     case $host_os in
14279     aix3* | aix4* | aix5*)
14280       # On AIX/PPC, the GNU linker is very broken
14281       if test "$host_cpu" != ia64; then
14282         ld_shlibs_F77=no
14283         cat <<EOF 1>&2
14284
14285 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14286 *** to be unable to reliably create shared libraries on AIX.
14287 *** Therefore, libtool is disabling shared libraries support.  If you
14288 *** really care for shared libraries, you may want to modify your PATH
14289 *** so that a non-GNU linker is found, and then restart.
14290
14291 EOF
14292       fi
14293       ;;
14294
14295     amigaos*)
14296       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)'
14297       hardcode_libdir_flag_spec_F77='-L$libdir'
14298       hardcode_minus_L_F77=yes
14299
14300       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14301       # that the semantics of dynamic libraries on AmigaOS, at least up
14302       # to version 4, is to share data among multiple programs linked
14303       # with the same dynamic library.  Since this doesn't match the
14304       # behavior of shared libraries on other platforms, we can't use
14305       # them.
14306       ld_shlibs_F77=no
14307       ;;
14308
14309     beos*)
14310       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14311         allow_undefined_flag_F77=unsupported
14312         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14313         # support --undefined.  This deserves some investigation.  FIXME
14314         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14315       else
14316         ld_shlibs_F77=no
14317       fi
14318       ;;
14319
14320     cygwin* | mingw* | pw32*)
14321       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14322       # as there is no search path for DLLs.
14323       hardcode_libdir_flag_spec_F77='-L$libdir'
14324       allow_undefined_flag_F77=unsupported
14325       always_export_symbols_F77=no
14326       enable_shared_with_static_runtimes_F77=yes
14327       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14328
14329       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14330         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14331         # If the export-symbols file already is a .def file (1st line
14332         # is EXPORTS), use it as is; otherwise, prepend...
14333         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14334           cp $export_symbols $output_objdir/$soname.def;
14335         else
14336           echo EXPORTS > $output_objdir/$soname.def;
14337           cat $export_symbols >> $output_objdir/$soname.def;
14338         fi~
14339         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14340       else
14341         ld_shlibs_F77=no
14342       fi
14343       ;;
14344
14345     interix[3-9]*)
14346       hardcode_direct_F77=no
14347       hardcode_shlibpath_var_F77=no
14348       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14349       export_dynamic_flag_spec_F77='${wl}-E'
14350       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14351       # Instead, shared libraries are loaded at an image base (0x10000000 by
14352       # default) and relocated if they conflict, which is a slow very memory
14353       # consuming and fragmenting process.  To avoid this, we pick a random,
14354       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14355       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14356       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'
14357       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'
14358       ;;
14359
14360     gnu* | linux* | k*bsd*-gnu)
14361       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14362         tmp_addflag=
14363         case $cc_basename,$host_cpu in
14364         pgcc*)                          # Portland Group C compiler
14365           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'
14366           tmp_addflag=' $pic_flag'
14367           ;;
14368         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14369           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'
14370           tmp_addflag=' $pic_flag -Mnomain' ;;
14371         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14372           tmp_addflag=' -i_dynamic' ;;
14373         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14374           tmp_addflag=' -i_dynamic -nofor_main' ;;
14375         ifc* | ifort*)                  # Intel Fortran compiler
14376           tmp_addflag=' -nofor_main' ;;
14377         esac
14378         case `$CC -V 2>&1 | sed 5q` in
14379         *Sun\ C*)                       # Sun C 5.9
14380           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'
14381           tmp_sharedflag='-G' ;;
14382         *Sun\ F*)                       # Sun Fortran 8.3
14383           tmp_sharedflag='-G' ;;
14384         *)
14385           tmp_sharedflag='-shared' ;;
14386         esac
14387         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14388
14389         if test $supports_anon_versioning = yes; then
14390           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14391   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14392   $echo "local: *; };" >> $output_objdir/$libname.ver~
14393           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14394         fi
14395       else
14396         ld_shlibs_F77=no
14397       fi
14398       ;;
14399
14400     netbsd*)
14401       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14402         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14403         wlarc=
14404       else
14405         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14406         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14407       fi
14408       ;;
14409
14410     solaris*)
14411       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14412         ld_shlibs_F77=no
14413         cat <<EOF 1>&2
14414
14415 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14416 *** create shared libraries on Solaris systems.  Therefore, libtool
14417 *** is disabling shared libraries support.  We urge you to upgrade GNU
14418 *** binutils to release 2.9.1 or newer.  Another option is to modify
14419 *** your PATH or compiler configuration so that the native linker is
14420 *** used, and then restart.
14421
14422 EOF
14423       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14424         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14425         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14426       else
14427         ld_shlibs_F77=no
14428       fi
14429       ;;
14430
14431     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14432       case `$LD -v 2>&1` in
14433         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14434         ld_shlibs_F77=no
14435         cat <<_LT_EOF 1>&2
14436
14437 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14438 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14439 *** is disabling shared libraries support.  We urge you to upgrade GNU
14440 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14441 *** your PATH or compiler configuration so that the native linker is
14442 *** used, and then restart.
14443
14444 _LT_EOF
14445         ;;
14446         *)
14447           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14448             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14449             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14450             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14451           else
14452             ld_shlibs_F77=no
14453           fi
14454         ;;
14455       esac
14456       ;;
14457
14458     sunos4*)
14459       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14460       wlarc=
14461       hardcode_direct_F77=yes
14462       hardcode_shlibpath_var_F77=no
14463       ;;
14464
14465     *)
14466       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14467         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14468         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14469       else
14470         ld_shlibs_F77=no
14471       fi
14472       ;;
14473     esac
14474
14475     if test "$ld_shlibs_F77" = no; then
14476       runpath_var=
14477       hardcode_libdir_flag_spec_F77=
14478       export_dynamic_flag_spec_F77=
14479       whole_archive_flag_spec_F77=
14480     fi
14481   else
14482     # PORTME fill in a description of your system's linker (not GNU ld)
14483     case $host_os in
14484     aix3*)
14485       allow_undefined_flag_F77=unsupported
14486       always_export_symbols_F77=yes
14487       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'
14488       # Note: this linker hardcodes the directories in LIBPATH if there
14489       # are no directories specified by -L.
14490       hardcode_minus_L_F77=yes
14491       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14492         # Neither direct hardcoding nor static linking is supported with a
14493         # broken collect2.
14494         hardcode_direct_F77=unsupported
14495       fi
14496       ;;
14497
14498     aix4* | aix5*)
14499       if test "$host_cpu" = ia64; then
14500         # On IA64, the linker does run time linking by default, so we don't
14501         # have to do anything special.
14502         aix_use_runtimelinking=no
14503         exp_sym_flag='-Bexport'
14504         no_entry_flag=""
14505       else
14506         # If we're using GNU nm, then we don't want the "-C" option.
14507         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14508         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14509           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'
14510         else
14511           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'
14512         fi
14513         aix_use_runtimelinking=no
14514
14515         # Test if we are trying to use run time linking or normal
14516         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14517         # need to do runtime linking.
14518         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14519           for ld_flag in $LDFLAGS; do
14520           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14521             aix_use_runtimelinking=yes
14522             break
14523           fi
14524           done
14525           ;;
14526         esac
14527
14528         exp_sym_flag='-bexport'
14529         no_entry_flag='-bnoentry'
14530       fi
14531
14532       # When large executables or shared objects are built, AIX ld can
14533       # have problems creating the table of contents.  If linking a library
14534       # or program results in "error TOC overflow" add -mminimal-toc to
14535       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14536       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14537
14538       archive_cmds_F77=''
14539       hardcode_direct_F77=yes
14540       hardcode_libdir_separator_F77=':'
14541       link_all_deplibs_F77=yes
14542
14543       if test "$GCC" = yes; then
14544         case $host_os in aix4.[012]|aix4.[012].*)
14545         # We only want to do this on AIX 4.2 and lower, the check
14546         # below for broken collect2 doesn't work under 4.3+
14547           collect2name=`${CC} -print-prog-name=collect2`
14548           if test -f "$collect2name" && \
14549            strings "$collect2name" | grep resolve_lib_name >/dev/null
14550           then
14551           # We have reworked collect2
14552           :
14553           else
14554           # We have old collect2
14555           hardcode_direct_F77=unsupported
14556           # It fails to find uninstalled libraries when the uninstalled
14557           # path is not listed in the libpath.  Setting hardcode_minus_L
14558           # to unsupported forces relinking
14559           hardcode_minus_L_F77=yes
14560           hardcode_libdir_flag_spec_F77='-L$libdir'
14561           hardcode_libdir_separator_F77=
14562           fi
14563           ;;
14564         esac
14565         shared_flag='-shared'
14566         if test "$aix_use_runtimelinking" = yes; then
14567           shared_flag="$shared_flag "'${wl}-G'
14568         fi
14569       else
14570         # not using gcc
14571         if test "$host_cpu" = ia64; then
14572         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14573         # chokes on -Wl,-G. The following line is correct:
14574           shared_flag='-G'
14575         else
14576           if test "$aix_use_runtimelinking" = yes; then
14577             shared_flag='${wl}-G'
14578           else
14579             shared_flag='${wl}-bM:SRE'
14580           fi
14581         fi
14582       fi
14583
14584       # It seems that -bexpall does not export symbols beginning with
14585       # underscore (_), so it is better to generate a list of symbols to export.
14586       always_export_symbols_F77=yes
14587       if test "$aix_use_runtimelinking" = yes; then
14588         # Warning - without using the other runtime loading flags (-brtl),
14589         # -berok will link without error, but may produce a broken library.
14590         allow_undefined_flag_F77='-berok'
14591        # Determine the default libpath from the value encoded in an empty executable.
14592        cat >conftest.$ac_ext <<_ACEOF
14593       program main
14594
14595       end
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601   *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604   (eval "$ac_link") 2>conftest.er1
14605   ac_status=$?
14606   grep -v '^ *+' conftest.er1 >conftest.err
14607   rm -f conftest.er1
14608   cat conftest.err >&5
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); } && {
14611          test -z "$ac_f77_werror_flag" ||
14612          test ! -s conftest.err
14613        } && test -s conftest$ac_exeext &&
14614        $as_test_x conftest$ac_exeext; then
14615   
14616 lt_aix_libpath_sed='
14617     /Import File Strings/,/^$/ {
14618         /^0/ {
14619             s/^0  *\(.*\)$/\1/
14620             p
14621         }
14622     }'
14623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14624 # Check for a 64-bit object if we didn't find anything.
14625 if test -z "$aix_libpath"; then
14626   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14627 fi
14628 else
14629   echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14631
14632         
14633 fi
14634
14635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14636       conftest$ac_exeext conftest.$ac_ext
14637 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14638
14639        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14640         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"
14641        else
14642         if test "$host_cpu" = ia64; then
14643           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14644           allow_undefined_flag_F77="-z nodefs"
14645           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"
14646         else
14647          # Determine the default libpath from the value encoded in an empty executable.
14648          cat >conftest.$ac_ext <<_ACEOF
14649       program main
14650
14651       end
14652 _ACEOF
14653 rm -f conftest.$ac_objext conftest$ac_exeext
14654 if { (ac_try="$ac_link"
14655 case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660   (eval "$ac_link") 2>conftest.er1
14661   ac_status=$?
14662   grep -v '^ *+' conftest.er1 >conftest.err
14663   rm -f conftest.er1
14664   cat conftest.err >&5
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); } && {
14667          test -z "$ac_f77_werror_flag" ||
14668          test ! -s conftest.err
14669        } && test -s conftest$ac_exeext &&
14670        $as_test_x conftest$ac_exeext; then
14671   
14672 lt_aix_libpath_sed='
14673     /Import File Strings/,/^$/ {
14674         /^0/ {
14675             s/^0  *\(.*\)$/\1/
14676             p
14677         }
14678     }'
14679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14680 # Check for a 64-bit object if we didn't find anything.
14681 if test -z "$aix_libpath"; then
14682   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14683 fi
14684 else
14685   echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688         
14689 fi
14690
14691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14692       conftest$ac_exeext conftest.$ac_ext
14693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14694
14695          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14696           # Warning - without using the other run time loading flags,
14697           # -berok will link without error, but may produce a broken library.
14698           no_undefined_flag_F77=' ${wl}-bernotok'
14699           allow_undefined_flag_F77=' ${wl}-berok'
14700           # Exported symbols can be pulled into shared objects from archives
14701           whole_archive_flag_spec_F77='$convenience'
14702           archive_cmds_need_lc_F77=yes
14703           # This is similar to how AIX traditionally builds its shared libraries.
14704           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'
14705         fi
14706       fi
14707       ;;
14708
14709     amigaos*)
14710       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)'
14711       hardcode_libdir_flag_spec_F77='-L$libdir'
14712       hardcode_minus_L_F77=yes
14713       # see comment about different semantics on the GNU ld section
14714       ld_shlibs_F77=no
14715       ;;
14716
14717     bsdi[45]*)
14718       export_dynamic_flag_spec_F77=-rdynamic
14719       ;;
14720
14721     cygwin* | mingw* | pw32*)
14722       # When not using gcc, we currently assume that we are using
14723       # Microsoft Visual C++.
14724       # hardcode_libdir_flag_spec is actually meaningless, as there is
14725       # no search path for DLLs.
14726       hardcode_libdir_flag_spec_F77=' '
14727       allow_undefined_flag_F77=unsupported
14728       # Tell ltmain to make .lib files, not .a files.
14729       libext=lib
14730       # Tell ltmain to make .dll files, not .so files.
14731       shrext_cmds=".dll"
14732       # FIXME: Setting linknames here is a bad hack.
14733       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14734       # The linker will automatically build a .lib file if we build a DLL.
14735       old_archive_From_new_cmds_F77='true'
14736       # FIXME: Should let the user specify the lib program.
14737       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14738       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14739       enable_shared_with_static_runtimes_F77=yes
14740       ;;
14741
14742     darwin* | rhapsody*)
14743       case $host_os in
14744         rhapsody* | darwin1.[012])
14745          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14746          ;;
14747        *) # Darwin 1.3 on
14748          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14749            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14750          else
14751            case ${MACOSX_DEPLOYMENT_TARGET} in
14752              10.[012])
14753                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14754                ;;
14755              10.*)
14756                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14757                ;;
14758            esac
14759          fi
14760          ;;
14761       esac
14762       archive_cmds_need_lc_F77=no
14763       hardcode_direct_F77=no
14764       hardcode_automatic_F77=yes
14765       hardcode_shlibpath_var_F77=unsupported
14766       whole_archive_flag_spec_F77=''
14767       link_all_deplibs_F77=yes
14768     if test "$GCC" = yes ; then
14769         output_verbose_link_cmd='echo'
14770         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14771       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14772       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14773       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14774       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}'
14775     else
14776       case $cc_basename in
14777         xlc*)
14778          output_verbose_link_cmd='echo'
14779          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14780          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14781           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14782          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}'
14783           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}'
14784           ;;
14785        *)
14786          ld_shlibs_F77=no
14787           ;;
14788       esac
14789     fi
14790       ;;
14791
14792     dgux*)
14793       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14794       hardcode_libdir_flag_spec_F77='-L$libdir'
14795       hardcode_shlibpath_var_F77=no
14796       ;;
14797
14798     freebsd1*)
14799       ld_shlibs_F77=no
14800       ;;
14801
14802     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14803     # support.  Future versions do this automatically, but an explicit c++rt0.o
14804     # does not break anything, and helps significantly (at the cost of a little
14805     # extra space).
14806     freebsd2.2*)
14807       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14808       hardcode_libdir_flag_spec_F77='-R$libdir'
14809       hardcode_direct_F77=yes
14810       hardcode_shlibpath_var_F77=no
14811       ;;
14812
14813     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14814     freebsd2*)
14815       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14816       hardcode_direct_F77=yes
14817       hardcode_minus_L_F77=yes
14818       hardcode_shlibpath_var_F77=no
14819       ;;
14820
14821     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14822     freebsd* | dragonfly*)
14823       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14824       hardcode_libdir_flag_spec_F77='-R$libdir'
14825       hardcode_direct_F77=yes
14826       hardcode_shlibpath_var_F77=no
14827       ;;
14828
14829     hpux9*)
14830       if test "$GCC" = yes; then
14831         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'
14832       else
14833         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'
14834       fi
14835       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14836       hardcode_libdir_separator_F77=:
14837       hardcode_direct_F77=yes
14838
14839       # hardcode_minus_L: Not really in the search PATH,
14840       # but as the default location of the library.
14841       hardcode_minus_L_F77=yes
14842       export_dynamic_flag_spec_F77='${wl}-E'
14843       ;;
14844
14845     hpux10*)
14846       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14847         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14848       else
14849         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14850       fi
14851       if test "$with_gnu_ld" = no; then
14852         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14853         hardcode_libdir_separator_F77=:
14854
14855         hardcode_direct_F77=yes
14856         export_dynamic_flag_spec_F77='${wl}-E'
14857
14858         # hardcode_minus_L: Not really in the search PATH,
14859         # but as the default location of the library.
14860         hardcode_minus_L_F77=yes
14861       fi
14862       ;;
14863
14864     hpux11*)
14865       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14866         case $host_cpu in
14867         hppa*64*)
14868           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14869           ;;
14870         ia64*)
14871           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14872           ;;
14873         *)
14874           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14875           ;;
14876         esac
14877       else
14878         case $host_cpu in
14879         hppa*64*)
14880           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14881           ;;
14882         ia64*)
14883           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14884           ;;
14885         *)
14886           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14887           ;;
14888         esac
14889       fi
14890       if test "$with_gnu_ld" = no; then
14891         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14892         hardcode_libdir_separator_F77=:
14893
14894         case $host_cpu in
14895         hppa*64*|ia64*)
14896           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14897           hardcode_direct_F77=no
14898           hardcode_shlibpath_var_F77=no
14899           ;;
14900         *)
14901           hardcode_direct_F77=yes
14902           export_dynamic_flag_spec_F77='${wl}-E'
14903
14904           # hardcode_minus_L: Not really in the search PATH,
14905           # but as the default location of the library.
14906           hardcode_minus_L_F77=yes
14907           ;;
14908         esac
14909       fi
14910       ;;
14911
14912     irix5* | irix6* | nonstopux*)
14913       if test "$GCC" = yes; then
14914         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'
14915       else
14916         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'
14917         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14918       fi
14919       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14920       hardcode_libdir_separator_F77=:
14921       link_all_deplibs_F77=yes
14922       ;;
14923
14924     netbsd*)
14925       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14926         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14927       else
14928         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14929       fi
14930       hardcode_libdir_flag_spec_F77='-R$libdir'
14931       hardcode_direct_F77=yes
14932       hardcode_shlibpath_var_F77=no
14933       ;;
14934
14935     newsos6)
14936       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937       hardcode_direct_F77=yes
14938       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14939       hardcode_libdir_separator_F77=:
14940       hardcode_shlibpath_var_F77=no
14941       ;;
14942
14943     openbsd*)
14944       if test -f /usr/libexec/ld.so; then
14945         hardcode_direct_F77=yes
14946         hardcode_shlibpath_var_F77=no
14947         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14948           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14949           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14950           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14951           export_dynamic_flag_spec_F77='${wl}-E'
14952         else
14953           case $host_os in
14954            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14955              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14956              hardcode_libdir_flag_spec_F77='-R$libdir'
14957              ;;
14958            *)
14959              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14960              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14961              ;;
14962           esac
14963         fi
14964       else
14965         ld_shlibs_F77=no
14966       fi
14967       ;;
14968
14969     os2*)
14970       hardcode_libdir_flag_spec_F77='-L$libdir'
14971       hardcode_minus_L_F77=yes
14972       allow_undefined_flag_F77=unsupported
14973       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'
14974       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14975       ;;
14976
14977     osf3*)
14978       if test "$GCC" = yes; then
14979         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14980         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'
14981       else
14982         allow_undefined_flag_F77=' -expect_unresolved \*'
14983         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'
14984       fi
14985       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14986       hardcode_libdir_separator_F77=:
14987       ;;
14988
14989     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14990       if test "$GCC" = yes; then
14991         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14992         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'
14993         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14994       else
14995         allow_undefined_flag_F77=' -expect_unresolved \*'
14996         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'
14997         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~
14998         $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'
14999
15000         # Both c and cxx compiler support -rpath directly
15001         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15002       fi
15003       hardcode_libdir_separator_F77=:
15004       ;;
15005
15006     solaris*)
15007       no_undefined_flag_F77=' -z text'
15008       if test "$GCC" = yes; then
15009         wlarc='${wl}'
15010         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15011         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15012           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15013       else
15014         wlarc=''
15015         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15017         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15018       fi
15019       hardcode_libdir_flag_spec_F77='-R$libdir'
15020       hardcode_shlibpath_var_F77=no
15021       case $host_os in
15022       solaris2.[0-5] | solaris2.[0-5].*) ;;
15023       *)
15024         # The compiler driver will combine and reorder linker options,
15025         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15026         # but is careful enough not to reorder.
15027         # Supported since Solaris 2.6 (maybe 2.5.1?)
15028         if test "$GCC" = yes; then
15029           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15030         else
15031           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15032         fi
15033         ;;
15034       esac
15035       link_all_deplibs_F77=yes
15036       ;;
15037
15038     sunos4*)
15039       if test "x$host_vendor" = xsequent; then
15040         # Use $CC to link under sequent, because it throws in some extra .o
15041         # files that make .init and .fini sections work.
15042         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15043       else
15044         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15045       fi
15046       hardcode_libdir_flag_spec_F77='-L$libdir'
15047       hardcode_direct_F77=yes
15048       hardcode_minus_L_F77=yes
15049       hardcode_shlibpath_var_F77=no
15050       ;;
15051
15052     sysv4)
15053       case $host_vendor in
15054         sni)
15055           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056           hardcode_direct_F77=yes # is this really true???
15057         ;;
15058         siemens)
15059           ## LD is ld it makes a PLAMLIB
15060           ## CC just makes a GrossModule.
15061           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15062           reload_cmds_F77='$CC -r -o $output$reload_objs'
15063           hardcode_direct_F77=no
15064         ;;
15065         motorola)
15066           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15067           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15068         ;;
15069       esac
15070       runpath_var='LD_RUN_PATH'
15071       hardcode_shlibpath_var_F77=no
15072       ;;
15073
15074     sysv4.3*)
15075       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15076       hardcode_shlibpath_var_F77=no
15077       export_dynamic_flag_spec_F77='-Bexport'
15078       ;;
15079
15080     sysv4*MP*)
15081       if test -d /usr/nec; then
15082         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083         hardcode_shlibpath_var_F77=no
15084         runpath_var=LD_RUN_PATH
15085         hardcode_runpath_var=yes
15086         ld_shlibs_F77=yes
15087       fi
15088       ;;
15089
15090     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15091       no_undefined_flag_F77='${wl}-z,text'
15092       archive_cmds_need_lc_F77=no
15093       hardcode_shlibpath_var_F77=no
15094       runpath_var='LD_RUN_PATH'
15095
15096       if test "$GCC" = yes; then
15097         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15098         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15099       else
15100         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15102       fi
15103       ;;
15104
15105     sysv5* | sco3.2v5* | sco5v6*)
15106       # Note: We can NOT use -z defs as we might desire, because we do not
15107       # link with -lc, and that would cause any symbols used from libc to
15108       # always be unresolved, which means just about no library would
15109       # ever link correctly.  If we're not using GNU ld we use -z text
15110       # though, which does catch some bad symbols but isn't as heavy-handed
15111       # as -z defs.
15112       no_undefined_flag_F77='${wl}-z,text'
15113       allow_undefined_flag_F77='${wl}-z,nodefs'
15114       archive_cmds_need_lc_F77=no
15115       hardcode_shlibpath_var_F77=no
15116       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15117       hardcode_libdir_separator_F77=':'
15118       link_all_deplibs_F77=yes
15119       export_dynamic_flag_spec_F77='${wl}-Bexport'
15120       runpath_var='LD_RUN_PATH'
15121
15122       if test "$GCC" = yes; then
15123         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15124         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15125       else
15126         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15127         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15128       fi
15129       ;;
15130
15131     uts4*)
15132       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15133       hardcode_libdir_flag_spec_F77='-L$libdir'
15134       hardcode_shlibpath_var_F77=no
15135       ;;
15136
15137     *)
15138       ld_shlibs_F77=no
15139       ;;
15140     esac
15141   fi
15142
15143 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15144 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15145 test "$ld_shlibs_F77" = no && can_build_shared=no
15146
15147 #
15148 # Do we need to explicitly link libc?
15149 #
15150 case "x$archive_cmds_need_lc_F77" in
15151 x|xyes)
15152   # Assume -lc should be added
15153   archive_cmds_need_lc_F77=yes
15154
15155   if test "$enable_shared" = yes && test "$GCC" = yes; then
15156     case $archive_cmds_F77 in
15157     *'~'*)
15158       # FIXME: we may have to deal with multi-command sequences.
15159       ;;
15160     '$CC '*)
15161       # Test whether the compiler implicitly links with -lc since on some
15162       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15163       # to ld, don't add -lc before -lgcc.
15164       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15165 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15166       $rm conftest*
15167       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15168
15169       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170   (eval $ac_compile) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); } 2>conftest.err; then
15174         soname=conftest
15175         lib=conftest
15176         libobjs=conftest.$ac_objext
15177         deplibs=
15178         wl=$lt_prog_compiler_wl_F77
15179         pic_flag=$lt_prog_compiler_pic_F77
15180         compiler_flags=-v
15181         linker_flags=-v
15182         verstring=
15183         output_objdir=.
15184         libname=conftest
15185         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15186         allow_undefined_flag_F77=
15187         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15188   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }
15192         then
15193           archive_cmds_need_lc_F77=no
15194         else
15195           archive_cmds_need_lc_F77=yes
15196         fi
15197         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15198       else
15199         cat conftest.err 1>&5
15200       fi
15201       $rm conftest*
15202       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15203 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15204       ;;
15205     esac
15206   fi
15207   ;;
15208 esac
15209
15210 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15211 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15212 library_names_spec=
15213 libname_spec='lib$name'
15214 soname_spec=
15215 shrext_cmds=".so"
15216 postinstall_cmds=
15217 postuninstall_cmds=
15218 finish_cmds=
15219 finish_eval=
15220 shlibpath_var=
15221 shlibpath_overrides_runpath=unknown
15222 version_type=none
15223 dynamic_linker="$host_os ld.so"
15224 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15225
15226 need_lib_prefix=unknown
15227 hardcode_into_libs=no
15228
15229 # when you set need_version to no, make sure it does not cause -set_version
15230 # flags to be left without arguments
15231 need_version=unknown
15232
15233 case $host_os in
15234 aix3*)
15235   version_type=linux
15236   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15237   shlibpath_var=LIBPATH
15238
15239   # AIX 3 has no versioning support, so we append a major version to the name.
15240   soname_spec='${libname}${release}${shared_ext}$major'
15241   ;;
15242
15243 aix4* | aix5*)
15244   version_type=linux
15245   need_lib_prefix=no
15246   need_version=no
15247   hardcode_into_libs=yes
15248   if test "$host_cpu" = ia64; then
15249     # AIX 5 supports IA64
15250     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15251     shlibpath_var=LD_LIBRARY_PATH
15252   else
15253     # With GCC up to 2.95.x, collect2 would create an import file
15254     # for dependence libraries.  The import file would start with
15255     # the line `#! .'.  This would cause the generated library to
15256     # depend on `.', always an invalid library.  This was fixed in
15257     # development snapshots of GCC prior to 3.0.
15258     case $host_os in
15259       aix4 | aix4.[01] | aix4.[01].*)
15260       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15261            echo ' yes '
15262            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15263         :
15264       else
15265         can_build_shared=no
15266       fi
15267       ;;
15268     esac
15269     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15270     # soname into executable. Probably we can add versioning support to
15271     # collect2, so additional links can be useful in future.
15272     if test "$aix_use_runtimelinking" = yes; then
15273       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15274       # instead of lib<name>.a to let people know that these are not
15275       # typical AIX shared libraries.
15276       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277     else
15278       # We preserve .a as extension for shared libraries through AIX4.2
15279       # and later when we are not doing run time linking.
15280       library_names_spec='${libname}${release}.a $libname.a'
15281       soname_spec='${libname}${release}${shared_ext}$major'
15282     fi
15283     shlibpath_var=LIBPATH
15284   fi
15285   ;;
15286
15287 amigaos*)
15288   library_names_spec='$libname.ixlibrary $libname.a'
15289   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15290   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'
15291   ;;
15292
15293 beos*)
15294   library_names_spec='${libname}${shared_ext}'
15295   dynamic_linker="$host_os ld.so"
15296   shlibpath_var=LIBRARY_PATH
15297   ;;
15298
15299 bsdi[45]*)
15300   version_type=linux
15301   need_version=no
15302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303   soname_spec='${libname}${release}${shared_ext}$major'
15304   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15305   shlibpath_var=LD_LIBRARY_PATH
15306   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15307   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15308   # the default ld.so.conf also contains /usr/contrib/lib and
15309   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15310   # libtool to hard-code these into programs
15311   ;;
15312
15313 cygwin* | mingw* | pw32*)
15314   version_type=windows
15315   shrext_cmds=".dll"
15316   need_version=no
15317   need_lib_prefix=no
15318
15319   case $GCC,$host_os in
15320   yes,cygwin* | yes,mingw* | yes,pw32*)
15321     library_names_spec='$libname.dll.a'
15322     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15323     postinstall_cmds='base_file=`basename \${file}`~
15324       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15325       dldir=$destdir/`dirname \$dlpath`~
15326       test -d \$dldir || mkdir -p \$dldir~
15327       $install_prog $dir/$dlname \$dldir/$dlname~
15328       chmod a+x \$dldir/$dlname'
15329     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15330       dlpath=$dir/\$dldll~
15331        $rm \$dlpath'
15332     shlibpath_overrides_runpath=yes
15333
15334     case $host_os in
15335     cygwin*)
15336       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15337       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15338       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15339       ;;
15340     mingw*)
15341       # MinGW DLLs use traditional 'lib' prefix
15342       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15343       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15344       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15345         # It is most probably a Windows format PATH printed by
15346         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15347         # path with ; separators, and with drive letters. We can handle the
15348         # drive letters (cygwin fileutils understands them), so leave them,
15349         # especially as we might pass files found there to a mingw objdump,
15350         # which wouldn't understand a cygwinified path. Ahh.
15351         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15352       else
15353         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15354       fi
15355       ;;
15356     pw32*)
15357       # pw32 DLLs use 'pw' prefix rather than 'lib'
15358       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15359       ;;
15360     esac
15361     ;;
15362
15363   *)
15364     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15365     ;;
15366   esac
15367   dynamic_linker='Win32 ld.exe'
15368   # FIXME: first we should search . and the directory the executable is in
15369   shlibpath_var=PATH
15370   ;;
15371
15372 darwin* | rhapsody*)
15373   dynamic_linker="$host_os dyld"
15374   version_type=darwin
15375   need_lib_prefix=no
15376   need_version=no
15377   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15378   soname_spec='${libname}${release}${major}$shared_ext'
15379   shlibpath_overrides_runpath=yes
15380   shlibpath_var=DYLD_LIBRARY_PATH
15381   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15382    
15383   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15384   ;;
15385
15386 dgux*)
15387   version_type=linux
15388   need_lib_prefix=no
15389   need_version=no
15390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15391   soname_spec='${libname}${release}${shared_ext}$major'
15392   shlibpath_var=LD_LIBRARY_PATH
15393   ;;
15394
15395 freebsd1*)
15396   dynamic_linker=no
15397   ;;
15398
15399 freebsd* | dragonfly*)
15400   # DragonFly does not have aout.  When/if they implement a new
15401   # versioning mechanism, adjust this.
15402   if test -x /usr/bin/objformat; then
15403     objformat=`/usr/bin/objformat`
15404   else
15405     case $host_os in
15406     freebsd[123]*) objformat=aout ;;
15407     *) objformat=elf ;;
15408     esac
15409   fi
15410   version_type=freebsd-$objformat
15411   case $version_type in
15412     freebsd-elf*)
15413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15414       need_version=no
15415       need_lib_prefix=no
15416       ;;
15417     freebsd-*)
15418       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15419       need_version=yes
15420       ;;
15421   esac
15422   shlibpath_var=LD_LIBRARY_PATH
15423   case $host_os in
15424   freebsd2*)
15425     shlibpath_overrides_runpath=yes
15426     ;;
15427   freebsd3.[01]* | freebsdelf3.[01]*)
15428     shlibpath_overrides_runpath=yes
15429     hardcode_into_libs=yes
15430     ;;
15431   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15432   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15433     shlibpath_overrides_runpath=no
15434     hardcode_into_libs=yes
15435     ;;
15436   *) # from 4.6 on, and DragonFly
15437     shlibpath_overrides_runpath=yes
15438     hardcode_into_libs=yes
15439     ;;
15440   esac
15441   ;;
15442
15443 gnu*)
15444   version_type=linux
15445   need_lib_prefix=no
15446   need_version=no
15447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15448   soname_spec='${libname}${release}${shared_ext}$major'
15449   shlibpath_var=LD_LIBRARY_PATH
15450   hardcode_into_libs=yes
15451   ;;
15452
15453 hpux9* | hpux10* | hpux11*)
15454   # Give a soname corresponding to the major version so that dld.sl refuses to
15455   # link against other versions.
15456   version_type=sunos
15457   need_lib_prefix=no
15458   need_version=no
15459   case $host_cpu in
15460   ia64*)
15461     shrext_cmds='.so'
15462     hardcode_into_libs=yes
15463     dynamic_linker="$host_os dld.so"
15464     shlibpath_var=LD_LIBRARY_PATH
15465     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467     soname_spec='${libname}${release}${shared_ext}$major'
15468     if test "X$HPUX_IA64_MODE" = X32; then
15469       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15470     else
15471       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15472     fi
15473     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15474     ;;
15475    hppa*64*)
15476      shrext_cmds='.sl'
15477      hardcode_into_libs=yes
15478      dynamic_linker="$host_os dld.sl"
15479      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15480      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15481      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482      soname_spec='${libname}${release}${shared_ext}$major'
15483      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15484      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15485      ;;
15486    *)
15487     shrext_cmds='.sl'
15488     dynamic_linker="$host_os dld.sl"
15489     shlibpath_var=SHLIB_PATH
15490     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492     soname_spec='${libname}${release}${shared_ext}$major'
15493     ;;
15494   esac
15495   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15496   postinstall_cmds='chmod 555 $lib'
15497   ;;
15498
15499 interix[3-9]*)
15500   version_type=linux
15501   need_lib_prefix=no
15502   need_version=no
15503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15504   soname_spec='${libname}${release}${shared_ext}$major'
15505   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15506   shlibpath_var=LD_LIBRARY_PATH
15507   shlibpath_overrides_runpath=no
15508   hardcode_into_libs=yes
15509   ;;
15510
15511 irix5* | irix6* | nonstopux*)
15512   case $host_os in
15513     nonstopux*) version_type=nonstopux ;;
15514     *)
15515         if test "$lt_cv_prog_gnu_ld" = yes; then
15516                 version_type=linux
15517         else
15518                 version_type=irix
15519         fi ;;
15520   esac
15521   need_lib_prefix=no
15522   need_version=no
15523   soname_spec='${libname}${release}${shared_ext}$major'
15524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15525   case $host_os in
15526   irix5* | nonstopux*)
15527     libsuff= shlibsuff=
15528     ;;
15529   *)
15530     case $LD in # libtool.m4 will add one of these switches to LD
15531     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15532       libsuff= shlibsuff= libmagic=32-bit;;
15533     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15534       libsuff=32 shlibsuff=N32 libmagic=N32;;
15535     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15536       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15537     *) libsuff= shlibsuff= libmagic=never-match;;
15538     esac
15539     ;;
15540   esac
15541   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15542   shlibpath_overrides_runpath=no
15543   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15544   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15545   hardcode_into_libs=yes
15546   ;;
15547
15548 # No shared lib support for Linux oldld, aout, or coff.
15549 linux*oldld* | linux*aout* | linux*coff*)
15550   dynamic_linker=no
15551   ;;
15552
15553 # This must be Linux ELF.
15554 linux* | k*bsd*-gnu)
15555   version_type=linux
15556   need_lib_prefix=no
15557   need_version=no
15558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559   soname_spec='${libname}${release}${shared_ext}$major'
15560   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15561   shlibpath_var=LD_LIBRARY_PATH
15562   shlibpath_overrides_runpath=no
15563   # This implies no fast_install, which is unacceptable.
15564   # Some rework will be needed to allow for fast_install
15565   # before this can be enabled.
15566   hardcode_into_libs=yes
15567
15568   # find out which ABI we are using
15569   libsuff=
15570   case "$host_cpu" in
15571   x86_64*|s390x*|powerpc64*)
15572     echo '#line __oline__ "configure"' > conftest.$ac_ext
15573     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574   (eval $ac_compile) 2>&5
15575   ac_status=$?
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); }; then
15578       case `/usr/bin/file conftest.$ac_objext` in
15579       *64-bit*)
15580         libsuff=64
15581         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15582         ;;
15583       esac
15584     fi
15585     rm -rf conftest*
15586     ;;
15587   esac
15588
15589   # Append ld.so.conf contents to the search path
15590   if test -f /etc/ld.so.conf; then
15591     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' ' '`
15592     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15593   fi
15594
15595   # We used to test for /lib/ld.so.1 and disable shared libraries on
15596   # powerpc, because MkLinux only supported shared libraries with the
15597   # GNU dynamic linker.  Since this was broken with cross compilers,
15598   # most powerpc-linux boxes support dynamic linking these days and
15599   # people can always --disable-shared, the test was removed, and we
15600   # assume the GNU/Linux dynamic linker is in use.
15601   dynamic_linker='GNU/Linux ld.so'
15602   ;;
15603
15604 netbsd*)
15605   version_type=sunos
15606   need_lib_prefix=no
15607   need_version=no
15608   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15610     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15611     dynamic_linker='NetBSD (a.out) ld.so'
15612   else
15613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15614     soname_spec='${libname}${release}${shared_ext}$major'
15615     dynamic_linker='NetBSD ld.elf_so'
15616   fi
15617   shlibpath_var=LD_LIBRARY_PATH
15618   shlibpath_overrides_runpath=yes
15619   hardcode_into_libs=yes
15620   ;;
15621
15622 newsos6)
15623   version_type=linux
15624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15625   shlibpath_var=LD_LIBRARY_PATH
15626   shlibpath_overrides_runpath=yes
15627   ;;
15628
15629 nto-qnx*)
15630   version_type=linux
15631   need_lib_prefix=no
15632   need_version=no
15633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634   soname_spec='${libname}${release}${shared_ext}$major'
15635   shlibpath_var=LD_LIBRARY_PATH
15636   shlibpath_overrides_runpath=yes
15637   ;;
15638
15639 openbsd*)
15640   version_type=sunos
15641   sys_lib_dlsearch_path_spec="/usr/lib"
15642   need_lib_prefix=no
15643   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15644   case $host_os in
15645     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15646     *)                         need_version=no  ;;
15647   esac
15648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15650   shlibpath_var=LD_LIBRARY_PATH
15651   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15652     case $host_os in
15653       openbsd2.[89] | openbsd2.[89].*)
15654         shlibpath_overrides_runpath=no
15655         ;;
15656       *)
15657         shlibpath_overrides_runpath=yes
15658         ;;
15659       esac
15660   else
15661     shlibpath_overrides_runpath=yes
15662   fi
15663   ;;
15664
15665 os2*)
15666   libname_spec='$name'
15667   shrext_cmds=".dll"
15668   need_lib_prefix=no
15669   library_names_spec='$libname${shared_ext} $libname.a'
15670   dynamic_linker='OS/2 ld.exe'
15671   shlibpath_var=LIBPATH
15672   ;;
15673
15674 osf3* | osf4* | osf5*)
15675   version_type=osf
15676   need_lib_prefix=no
15677   need_version=no
15678   soname_spec='${libname}${release}${shared_ext}$major'
15679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680   shlibpath_var=LD_LIBRARY_PATH
15681   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15682   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15683   ;;
15684
15685 rdos*)
15686   dynamic_linker=no
15687   ;;
15688
15689 solaris*)
15690   version_type=linux
15691   need_lib_prefix=no
15692   need_version=no
15693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694   soname_spec='${libname}${release}${shared_ext}$major'
15695   shlibpath_var=LD_LIBRARY_PATH
15696   shlibpath_overrides_runpath=yes
15697   hardcode_into_libs=yes
15698   # ldd complains unless libraries are executable
15699   postinstall_cmds='chmod +x $lib'
15700   ;;
15701
15702 sunos4*)
15703   version_type=sunos
15704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15705   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15706   shlibpath_var=LD_LIBRARY_PATH
15707   shlibpath_overrides_runpath=yes
15708   if test "$with_gnu_ld" = yes; then
15709     need_lib_prefix=no
15710   fi
15711   need_version=yes
15712   ;;
15713
15714 sysv4 | sysv4.3*)
15715   version_type=linux
15716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717   soname_spec='${libname}${release}${shared_ext}$major'
15718   shlibpath_var=LD_LIBRARY_PATH
15719   case $host_vendor in
15720     sni)
15721       shlibpath_overrides_runpath=no
15722       need_lib_prefix=no
15723       export_dynamic_flag_spec='${wl}-Blargedynsym'
15724       runpath_var=LD_RUN_PATH
15725       ;;
15726     siemens)
15727       need_lib_prefix=no
15728       ;;
15729     motorola)
15730       need_lib_prefix=no
15731       need_version=no
15732       shlibpath_overrides_runpath=no
15733       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15734       ;;
15735   esac
15736   ;;
15737
15738 sysv4*MP*)
15739   if test -d /usr/nec ;then
15740     version_type=linux
15741     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15742     soname_spec='$libname${shared_ext}.$major'
15743     shlibpath_var=LD_LIBRARY_PATH
15744   fi
15745   ;;
15746
15747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15748   version_type=freebsd-elf
15749   need_lib_prefix=no
15750   need_version=no
15751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15752   soname_spec='${libname}${release}${shared_ext}$major'
15753   shlibpath_var=LD_LIBRARY_PATH
15754   hardcode_into_libs=yes
15755   if test "$with_gnu_ld" = yes; then
15756     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15757     shlibpath_overrides_runpath=no
15758   else
15759     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15760     shlibpath_overrides_runpath=yes
15761     case $host_os in
15762       sco3.2v5*)
15763         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15764         ;;
15765     esac
15766   fi
15767   sys_lib_dlsearch_path_spec='/usr/lib'
15768   ;;
15769
15770 uts4*)
15771   version_type=linux
15772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773   soname_spec='${libname}${release}${shared_ext}$major'
15774   shlibpath_var=LD_LIBRARY_PATH
15775   ;;
15776
15777 *)
15778   dynamic_linker=no
15779   ;;
15780 esac
15781 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15782 echo "${ECHO_T}$dynamic_linker" >&6; }
15783 test "$dynamic_linker" = no && can_build_shared=no
15784
15785 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15786 if test "$GCC" = yes; then
15787   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15788 fi
15789
15790 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15791 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15792 hardcode_action_F77=
15793 if test -n "$hardcode_libdir_flag_spec_F77" || \
15794    test -n "$runpath_var_F77" || \
15795    test "X$hardcode_automatic_F77" = "Xyes" ; then
15796
15797   # We can hardcode non-existant directories.
15798   if test "$hardcode_direct_F77" != no &&
15799      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15800      # have to relink, otherwise we might link with an installed library
15801      # when we should be linking with a yet-to-be-installed one
15802      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15803      test "$hardcode_minus_L_F77" != no; then
15804     # Linking always hardcodes the temporary library directory.
15805     hardcode_action_F77=relink
15806   else
15807     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15808     hardcode_action_F77=immediate
15809   fi
15810 else
15811   # We cannot hardcode anything, or else we can only hardcode existing
15812   # directories.
15813   hardcode_action_F77=unsupported
15814 fi
15815 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15816 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15817
15818 if test "$hardcode_action_F77" = relink; then
15819   # Fast installation is not supported
15820   enable_fast_install=no
15821 elif test "$shlibpath_overrides_runpath" = yes ||
15822      test "$enable_shared" = no; then
15823   # Fast installation is not necessary
15824   enable_fast_install=needless
15825 fi
15826
15827
15828 # The else clause should only fire when bootstrapping the
15829 # libtool distribution, otherwise you forgot to ship ltmain.sh
15830 # with your package, and you will get complaints that there are
15831 # no rules to generate ltmain.sh.
15832 if test -f "$ltmain"; then
15833   # See if we are running on zsh, and set the options which allow our commands through
15834   # without removal of \ escapes.
15835   if test -n "${ZSH_VERSION+set}" ; then
15836     setopt NO_GLOB_SUBST
15837   fi
15838   # Now quote all the things that may contain metacharacters while being
15839   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15840   # variables and quote the copies for generation of the libtool script.
15841   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15842     SED SHELL STRIP \
15843     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15844     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15845     deplibs_check_method reload_flag reload_cmds need_locks \
15846     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15847     lt_cv_sys_global_symbol_to_c_name_address \
15848     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15849     old_postinstall_cmds old_postuninstall_cmds \
15850     compiler_F77 \
15851     CC_F77 \
15852     LD_F77 \
15853     lt_prog_compiler_wl_F77 \
15854     lt_prog_compiler_pic_F77 \
15855     lt_prog_compiler_static_F77 \
15856     lt_prog_compiler_no_builtin_flag_F77 \
15857     export_dynamic_flag_spec_F77 \
15858     thread_safe_flag_spec_F77 \
15859     whole_archive_flag_spec_F77 \
15860     enable_shared_with_static_runtimes_F77 \
15861     old_archive_cmds_F77 \
15862     old_archive_from_new_cmds_F77 \
15863     predep_objects_F77 \
15864     postdep_objects_F77 \
15865     predeps_F77 \
15866     postdeps_F77 \
15867     compiler_lib_search_path_F77 \
15868     archive_cmds_F77 \
15869     archive_expsym_cmds_F77 \
15870     postinstall_cmds_F77 \
15871     postuninstall_cmds_F77 \
15872     old_archive_from_expsyms_cmds_F77 \
15873     allow_undefined_flag_F77 \
15874     no_undefined_flag_F77 \
15875     export_symbols_cmds_F77 \
15876     hardcode_libdir_flag_spec_F77 \
15877     hardcode_libdir_flag_spec_ld_F77 \
15878     hardcode_libdir_separator_F77 \
15879     hardcode_automatic_F77 \
15880     module_cmds_F77 \
15881     module_expsym_cmds_F77 \
15882     lt_cv_prog_compiler_c_o_F77 \
15883     fix_srcfile_path_F77 \
15884     exclude_expsyms_F77 \
15885     include_expsyms_F77; do
15886
15887     case $var in
15888     old_archive_cmds_F77 | \
15889     old_archive_from_new_cmds_F77 | \
15890     archive_cmds_F77 | \
15891     archive_expsym_cmds_F77 | \
15892     module_cmds_F77 | \
15893     module_expsym_cmds_F77 | \
15894     old_archive_from_expsyms_cmds_F77 | \
15895     export_symbols_cmds_F77 | \
15896     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15897     postinstall_cmds | postuninstall_cmds | \
15898     old_postinstall_cmds | old_postuninstall_cmds | \
15899     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15900       # Double-quote double-evaled strings.
15901       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15902       ;;
15903     *)
15904       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15905       ;;
15906     esac
15907   done
15908
15909   case $lt_echo in
15910   *'\$0 --fallback-echo"')
15911     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15912     ;;
15913   esac
15914
15915 cfgfile="$ofile"
15916
15917   cat <<__EOF__ >> "$cfgfile"
15918 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15919
15920 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15921
15922 # Shell to use when invoking shell scripts.
15923 SHELL=$lt_SHELL
15924
15925 # Whether or not to build shared libraries.
15926 build_libtool_libs=$enable_shared
15927
15928 # Whether or not to build static libraries.
15929 build_old_libs=$enable_static
15930
15931 # Whether or not to add -lc for building shared libraries.
15932 build_libtool_need_lc=$archive_cmds_need_lc_F77
15933
15934 # Whether or not to disallow shared libs when runtime libs are static
15935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15936
15937 # Whether or not to optimize for fast installation.
15938 fast_install=$enable_fast_install
15939
15940 # The host system.
15941 host_alias=$host_alias
15942 host=$host
15943 host_os=$host_os
15944
15945 # The build system.
15946 build_alias=$build_alias
15947 build=$build
15948 build_os=$build_os
15949
15950 # An echo program that does not interpret backslashes.
15951 echo=$lt_echo
15952
15953 # The archiver.
15954 AR=$lt_AR
15955 AR_FLAGS=$lt_AR_FLAGS
15956
15957 # A C compiler.
15958 LTCC=$lt_LTCC
15959
15960 # LTCC compiler flags.
15961 LTCFLAGS=$lt_LTCFLAGS
15962
15963 # A language-specific compiler.
15964 CC=$lt_compiler_F77
15965
15966 # Is the compiler the GNU C compiler?
15967 with_gcc=$GCC_F77
15968
15969 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15970 gcc_ver=\`gcc -dumpversion\`
15971
15972 # An ERE matcher.
15973 EGREP=$lt_EGREP
15974
15975 # The linker used to build libraries.
15976 LD=$lt_LD_F77
15977
15978 # Whether we need hard or soft links.
15979 LN_S=$lt_LN_S
15980
15981 # A BSD-compatible nm program.
15982 NM=$lt_NM
15983
15984 # A symbol stripping program
15985 STRIP=$lt_STRIP
15986
15987 # Used to examine libraries when file_magic_cmd begins "file"
15988 MAGIC_CMD=$MAGIC_CMD
15989
15990 # Used on cygwin: DLL creation program.
15991 DLLTOOL="$DLLTOOL"
15992
15993 # Used on cygwin: object dumper.
15994 OBJDUMP="$OBJDUMP"
15995
15996 # Used on cygwin: assembler.
15997 AS="$AS"
15998
15999 # The name of the directory that contains temporary libtool files.
16000 objdir=$objdir
16001
16002 # How to create reloadable object files.
16003 reload_flag=$lt_reload_flag
16004 reload_cmds=$lt_reload_cmds
16005
16006 # How to pass a linker flag through the compiler.
16007 wl=$lt_lt_prog_compiler_wl_F77
16008
16009 # Object file suffix (normally "o").
16010 objext="$ac_objext"
16011
16012 # Old archive suffix (normally "a").
16013 libext="$libext"
16014
16015 # Shared library suffix (normally ".so").
16016 shrext_cmds='$shrext_cmds'
16017
16018 # Executable file suffix (normally "").
16019 exeext="$exeext"
16020
16021 # Additional compiler flags for building library objects.
16022 pic_flag=$lt_lt_prog_compiler_pic_F77
16023 pic_mode=$pic_mode
16024
16025 # What is the maximum length of a command?
16026 max_cmd_len=$lt_cv_sys_max_cmd_len
16027
16028 # Does compiler simultaneously support -c and -o options?
16029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16030
16031 # Must we lock files when doing compilation?
16032 need_locks=$lt_need_locks
16033
16034 # Do we need the lib prefix for modules?
16035 need_lib_prefix=$need_lib_prefix
16036
16037 # Do we need a version for libraries?
16038 need_version=$need_version
16039
16040 # Whether dlopen is supported.
16041 dlopen_support=$enable_dlopen
16042
16043 # Whether dlopen of programs is supported.
16044 dlopen_self=$enable_dlopen_self
16045
16046 # Whether dlopen of statically linked programs is supported.
16047 dlopen_self_static=$enable_dlopen_self_static
16048
16049 # Compiler flag to prevent dynamic linking.
16050 link_static_flag=$lt_lt_prog_compiler_static_F77
16051
16052 # Compiler flag to turn off builtin functions.
16053 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16054
16055 # Compiler flag to allow reflexive dlopens.
16056 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16057
16058 # Compiler flag to generate shared objects directly from archives.
16059 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16060
16061 # Compiler flag to generate thread-safe objects.
16062 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16063
16064 # Library versioning type.
16065 version_type=$version_type
16066
16067 # Format of library name prefix.
16068 libname_spec=$lt_libname_spec
16069
16070 # List of archive names.  First name is the real one, the rest are links.
16071 # The last name is the one that the linker finds with -lNAME.
16072 library_names_spec=$lt_library_names_spec
16073
16074 # The coded name of the library, if different from the real name.
16075 soname_spec=$lt_soname_spec
16076
16077 # Commands used to build and install an old-style archive.
16078 RANLIB=$lt_RANLIB
16079 old_archive_cmds=$lt_old_archive_cmds_F77
16080 old_postinstall_cmds=$lt_old_postinstall_cmds
16081 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16082
16083 # Create an old-style archive from a shared archive.
16084 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16085
16086 # Create a temporary old-style archive to link instead of a shared archive.
16087 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16088
16089 # Commands used to build and install a shared archive.
16090 archive_cmds=$lt_archive_cmds_F77
16091 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16092 postinstall_cmds=$lt_postinstall_cmds
16093 postuninstall_cmds=$lt_postuninstall_cmds
16094
16095 # Commands used to build a loadable module (assumed same as above if empty)
16096 module_cmds=$lt_module_cmds_F77
16097 module_expsym_cmds=$lt_module_expsym_cmds_F77
16098
16099 # Commands to strip libraries.
16100 old_striplib=$lt_old_striplib
16101 striplib=$lt_striplib
16102
16103 # Dependencies to place before the objects being linked to create a
16104 # shared library.
16105 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16106
16107 # Dependencies to place after the objects being linked to create a
16108 # shared library.
16109 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16110
16111 # Dependencies to place before the objects being linked to create a
16112 # shared library.
16113 predeps=$lt_predeps_F77
16114
16115 # Dependencies to place after the objects being linked to create a
16116 # shared library.
16117 postdeps=$lt_postdeps_F77
16118
16119 # The library search path used internally by the compiler when linking
16120 # a shared library.
16121 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16122
16123 # Method to check whether dependent libraries are shared objects.
16124 deplibs_check_method=$lt_deplibs_check_method
16125
16126 # Command to use when deplibs_check_method == file_magic.
16127 file_magic_cmd=$lt_file_magic_cmd
16128
16129 # Flag that allows shared libraries with undefined symbols to be built.
16130 allow_undefined_flag=$lt_allow_undefined_flag_F77
16131
16132 # Flag that forces no undefined symbols.
16133 no_undefined_flag=$lt_no_undefined_flag_F77
16134
16135 # Commands used to finish a libtool library installation in a directory.
16136 finish_cmds=$lt_finish_cmds
16137
16138 # Same as above, but a single script fragment to be evaled but not shown.
16139 finish_eval=$lt_finish_eval
16140
16141 # Take the output of nm and produce a listing of raw symbols and C names.
16142 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16143
16144 # Transform the output of nm in a proper C declaration
16145 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16146
16147 # Transform the output of nm in a C name address pair
16148 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16149
16150 # This is the shared library runtime path variable.
16151 runpath_var=$runpath_var
16152
16153 # This is the shared library path variable.
16154 shlibpath_var=$shlibpath_var
16155
16156 # Is shlibpath searched before the hard-coded library search path?
16157 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16158
16159 # How to hardcode a shared library path into an executable.
16160 hardcode_action=$hardcode_action_F77
16161
16162 # Whether we should hardcode library paths into libraries.
16163 hardcode_into_libs=$hardcode_into_libs
16164
16165 # Flag to hardcode \$libdir into a binary during linking.
16166 # This must work even if \$libdir does not exist.
16167 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16168
16169 # If ld is used when linking, flag to hardcode \$libdir into
16170 # a binary during linking. This must work even if \$libdir does
16171 # not exist.
16172 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16173
16174 # Whether we need a single -rpath flag with a separated argument.
16175 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16176
16177 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16178 # resulting binary.
16179 hardcode_direct=$hardcode_direct_F77
16180
16181 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16182 # resulting binary.
16183 hardcode_minus_L=$hardcode_minus_L_F77
16184
16185 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16186 # the resulting binary.
16187 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16188
16189 # Set to yes if building a shared library automatically hardcodes DIR into the library
16190 # and all subsequent libraries and executables linked against it.
16191 hardcode_automatic=$hardcode_automatic_F77
16192
16193 # Variables whose values should be saved in libtool wrapper scripts and
16194 # restored at relink time.
16195 variables_saved_for_relink="$variables_saved_for_relink"
16196
16197 # Whether libtool must link a program against all its dependency libraries.
16198 link_all_deplibs=$link_all_deplibs_F77
16199
16200 # Compile-time system search path for libraries
16201 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16202
16203 # Run-time system search path for libraries
16204 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16205
16206 # Fix the shell variable \$srcfile for the compiler.
16207 fix_srcfile_path=$lt_fix_srcfile_path
16208
16209 # Set to yes if exported symbols are required.
16210 always_export_symbols=$always_export_symbols_F77
16211
16212 # The commands to list exported symbols.
16213 export_symbols_cmds=$lt_export_symbols_cmds_F77
16214
16215 # The commands to extract the exported symbol list from a shared archive.
16216 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16217
16218 # Symbols that should not be listed in the preloaded symbols.
16219 exclude_expsyms=$lt_exclude_expsyms_F77
16220
16221 # Symbols that must always be exported.
16222 include_expsyms=$lt_include_expsyms_F77
16223
16224 # ### END LIBTOOL TAG CONFIG: $tagname
16225
16226 __EOF__
16227
16228
16229 else
16230   # If there is no Makefile yet, we rely on a make rule to execute
16231   # `config.status --recheck' to rerun these tests and create the
16232   # libtool script then.
16233   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16234   if test -f "$ltmain_in"; then
16235     test -f Makefile && make "$ltmain"
16236   fi
16237 fi
16238
16239
16240 ac_ext=c
16241 ac_cpp='$CPP $CPPFLAGS'
16242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16245
16246 CC="$lt_save_CC"
16247
16248         else
16249           tagname=""
16250         fi
16251         ;;
16252
16253       GCJ)
16254         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16255           
16256
16257 # Source file extension for Java test sources.
16258 ac_ext=java
16259
16260 # Object file extension for compiled Java test sources.
16261 objext=o
16262 objext_GCJ=$objext
16263
16264 # Code to be used in simple compile tests
16265 lt_simple_compile_test_code="class foo {}"
16266
16267 # Code to be used in simple link tests
16268 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16269
16270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16271
16272 # If no C compiler was specified, use CC.
16273 LTCC=${LTCC-"$CC"}
16274
16275 # If no C compiler flags were specified, use CFLAGS.
16276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16277
16278 # Allow CC to be a program name with arguments.
16279 compiler=$CC
16280
16281
16282 # save warnings/boilerplate of simple test code
16283 ac_outfile=conftest.$ac_objext
16284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16286 _lt_compiler_boilerplate=`cat conftest.err`
16287 $rm conftest*
16288
16289 ac_outfile=conftest.$ac_objext
16290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16292 _lt_linker_boilerplate=`cat conftest.err`
16293 $rm conftest*
16294
16295
16296 # Allow CC to be a program name with arguments.
16297 lt_save_CC="$CC"
16298 CC=${GCJ-"gcj"}
16299 compiler=$CC
16300 compiler_GCJ=$CC
16301 for cc_temp in $compiler""; do
16302   case $cc_temp in
16303     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16304     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16305     \-*) ;;
16306     *) break;;
16307   esac
16308 done
16309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16310
16311 LD_GCJ="$LD"
16312
16313 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16314 archive_cmds_need_lc_GCJ=no
16315
16316 old_archive_cmds_GCJ=$old_archive_cmds
16317
16318 ## CAVEAT EMPTOR:
16319 ## There is no encapsulation within the following macros, do not change
16320 ## the running order or otherwise move them around unless you know exactly
16321 ## what you are doing...
16322
16323 lt_prog_compiler_no_builtin_flag_GCJ=
16324
16325 if test "$GCC" = yes; then
16326   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16327
16328   
16329 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16330 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16331 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334   lt_cv_prog_compiler_rtti_exceptions=no
16335   ac_outfile=conftest.$ac_objext
16336    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16337    lt_compiler_flag="-fno-rtti -fno-exceptions"
16338    # Insert the option either (1) after the last *FLAGS variable, or
16339    # (2) before a word containing "conftest.", or (3) at the end.
16340    # Note that $ac_compile itself does not contain backslashes and begins
16341    # with a dollar sign (not a hyphen), so the echo should work correctly.
16342    # The option is referenced via a variable to avoid confusing sed.
16343    lt_compile=`echo "$ac_compile" | $SED \
16344    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16345    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16346    -e 's:$: $lt_compiler_flag:'`
16347    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16348    (eval "$lt_compile" 2>conftest.err)
16349    ac_status=$?
16350    cat conftest.err >&5
16351    echo "$as_me:__oline__: \$? = $ac_status" >&5
16352    if (exit $ac_status) && test -s "$ac_outfile"; then
16353      # The compiler can only warn and ignore the option if not recognized
16354      # So say no if there are warnings other than the usual output.
16355      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16356      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16357      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16358        lt_cv_prog_compiler_rtti_exceptions=yes
16359      fi
16360    fi
16361    $rm conftest*
16362
16363 fi
16364 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16365 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16366
16367 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16368     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16369 else
16370     :
16371 fi
16372
16373 fi
16374
16375 lt_prog_compiler_wl_GCJ=
16376 lt_prog_compiler_pic_GCJ=
16377 lt_prog_compiler_static_GCJ=
16378
16379 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16380 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16381  
16382   if test "$GCC" = yes; then
16383     lt_prog_compiler_wl_GCJ='-Wl,'
16384     lt_prog_compiler_static_GCJ='-static'
16385
16386     case $host_os in
16387       aix*)
16388       # All AIX code is PIC.
16389       if test "$host_cpu" = ia64; then
16390         # AIX 5 now supports IA64 processor
16391         lt_prog_compiler_static_GCJ='-Bstatic'
16392       fi
16393       ;;
16394
16395     amigaos*)
16396       # FIXME: we need at least 68020 code to build shared libraries, but
16397       # adding the `-m68020' flag to GCC prevents building anything better,
16398       # like `-m68040'.
16399       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16400       ;;
16401
16402     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16403       # PIC is the default for these OSes.
16404       ;;
16405
16406     mingw* | cygwin* | pw32* | os2*)
16407       # This hack is so that the source file can tell whether it is being
16408       # built for inclusion in a dll (and should export symbols for example).
16409       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16410       # (--disable-auto-import) libraries
16411       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16412       ;;
16413
16414     darwin* | rhapsody*)
16415       # PIC is the default on this platform
16416       # Common symbols not allowed in MH_DYLIB files
16417       lt_prog_compiler_pic_GCJ='-fno-common'
16418       ;;
16419
16420     interix[3-9]*)
16421       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16422       # Instead, we relocate shared libraries at runtime.
16423       ;;
16424
16425     msdosdjgpp*)
16426       # Just because we use GCC doesn't mean we suddenly get shared libraries
16427       # on systems that don't support them.
16428       lt_prog_compiler_can_build_shared_GCJ=no
16429       enable_shared=no
16430       ;;
16431
16432     sysv4*MP*)
16433       if test -d /usr/nec; then
16434         lt_prog_compiler_pic_GCJ=-Kconform_pic
16435       fi
16436       ;;
16437
16438     hpux*)
16439       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16440       # not for PA HP-UX.
16441       case $host_cpu in
16442       hppa*64*|ia64*)
16443         # +Z the default
16444         ;;
16445       *)
16446         lt_prog_compiler_pic_GCJ='-fPIC'
16447         ;;
16448       esac
16449       ;;
16450
16451     *)
16452       lt_prog_compiler_pic_GCJ='-fPIC'
16453       ;;
16454     esac
16455   else
16456     # PORTME Check for flag to pass linker flags through the system compiler.
16457     case $host_os in
16458     aix*)
16459       lt_prog_compiler_wl_GCJ='-Wl,'
16460       if test "$host_cpu" = ia64; then
16461         # AIX 5 now supports IA64 processor
16462         lt_prog_compiler_static_GCJ='-Bstatic'
16463       else
16464         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16465       fi
16466       ;;
16467       darwin*)
16468         # PIC is the default on this platform
16469         # Common symbols not allowed in MH_DYLIB files
16470        case $cc_basename in
16471          xlc*)
16472          lt_prog_compiler_pic_GCJ='-qnocommon'
16473          lt_prog_compiler_wl_GCJ='-Wl,'
16474          ;;
16475        esac
16476        ;;
16477
16478     mingw* | cygwin* | pw32* | os2*)
16479       # This hack is so that the source file can tell whether it is being
16480       # built for inclusion in a dll (and should export symbols for example).
16481       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16482       ;;
16483
16484     hpux9* | hpux10* | hpux11*)
16485       lt_prog_compiler_wl_GCJ='-Wl,'
16486       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16487       # not for PA HP-UX.
16488       case $host_cpu in
16489       hppa*64*|ia64*)
16490         # +Z the default
16491         ;;
16492       *)
16493         lt_prog_compiler_pic_GCJ='+Z'
16494         ;;
16495       esac
16496       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16497       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16498       ;;
16499
16500     irix5* | irix6* | nonstopux*)
16501       lt_prog_compiler_wl_GCJ='-Wl,'
16502       # PIC (with -KPIC) is the default.
16503       lt_prog_compiler_static_GCJ='-non_shared'
16504       ;;
16505
16506     newsos6)
16507       lt_prog_compiler_pic_GCJ='-KPIC'
16508       lt_prog_compiler_static_GCJ='-Bstatic'
16509       ;;
16510
16511     linux* | k*bsd*-gnu)
16512       case $cc_basename in
16513       icc* | ecc*)
16514         lt_prog_compiler_wl_GCJ='-Wl,'
16515         lt_prog_compiler_pic_GCJ='-KPIC'
16516         lt_prog_compiler_static_GCJ='-static'
16517         ;;
16518       pgcc* | pgf77* | pgf90* | pgf95*)
16519         # Portland Group compilers (*not* the Pentium gcc compiler,
16520         # which looks to be a dead project)
16521         lt_prog_compiler_wl_GCJ='-Wl,'
16522         lt_prog_compiler_pic_GCJ='-fpic'
16523         lt_prog_compiler_static_GCJ='-Bstatic'
16524         ;;
16525       ccc*)
16526         lt_prog_compiler_wl_GCJ='-Wl,'
16527         # All Alpha code is PIC.
16528         lt_prog_compiler_static_GCJ='-non_shared'
16529         ;;
16530       *)
16531         case `$CC -V 2>&1 | sed 5q` in
16532         *Sun\ C*)
16533           # Sun C 5.9
16534           lt_prog_compiler_pic_GCJ='-KPIC'
16535           lt_prog_compiler_static_GCJ='-Bstatic'
16536           lt_prog_compiler_wl_GCJ='-Wl,'
16537           ;;
16538         *Sun\ F*)
16539           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16540           lt_prog_compiler_pic_GCJ='-KPIC'
16541           lt_prog_compiler_static_GCJ='-Bstatic'
16542           lt_prog_compiler_wl_GCJ=''
16543           ;;
16544         esac
16545         ;;
16546       esac
16547       ;;
16548
16549     osf3* | osf4* | osf5*)
16550       lt_prog_compiler_wl_GCJ='-Wl,'
16551       # All OSF/1 code is PIC.
16552       lt_prog_compiler_static_GCJ='-non_shared'
16553       ;;
16554
16555     rdos*)
16556       lt_prog_compiler_static_GCJ='-non_shared'
16557       ;;
16558
16559     solaris*)
16560       lt_prog_compiler_pic_GCJ='-KPIC'
16561       lt_prog_compiler_static_GCJ='-Bstatic'
16562       case $cc_basename in
16563       f77* | f90* | f95*)
16564         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16565       *)
16566         lt_prog_compiler_wl_GCJ='-Wl,';;
16567       esac
16568       ;;
16569
16570     sunos4*)
16571       lt_prog_compiler_wl_GCJ='-Qoption ld '
16572       lt_prog_compiler_pic_GCJ='-PIC'
16573       lt_prog_compiler_static_GCJ='-Bstatic'
16574       ;;
16575
16576     sysv4 | sysv4.2uw2* | sysv4.3*)
16577       lt_prog_compiler_wl_GCJ='-Wl,'
16578       lt_prog_compiler_pic_GCJ='-KPIC'
16579       lt_prog_compiler_static_GCJ='-Bstatic'
16580       ;;
16581
16582     sysv4*MP*)
16583       if test -d /usr/nec ;then
16584         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16585         lt_prog_compiler_static_GCJ='-Bstatic'
16586       fi
16587       ;;
16588
16589     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16590       lt_prog_compiler_wl_GCJ='-Wl,'
16591       lt_prog_compiler_pic_GCJ='-KPIC'
16592       lt_prog_compiler_static_GCJ='-Bstatic'
16593       ;;
16594
16595     unicos*)
16596       lt_prog_compiler_wl_GCJ='-Wl,'
16597       lt_prog_compiler_can_build_shared_GCJ=no
16598       ;;
16599
16600     uts4*)
16601       lt_prog_compiler_pic_GCJ='-pic'
16602       lt_prog_compiler_static_GCJ='-Bstatic'
16603       ;;
16604
16605     *)
16606       lt_prog_compiler_can_build_shared_GCJ=no
16607       ;;
16608     esac
16609   fi
16610
16611 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16612 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16613
16614 #
16615 # Check to make sure the PIC flag actually works.
16616 #
16617 if test -n "$lt_prog_compiler_pic_GCJ"; then
16618   
16619 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16620 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16621 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16622   echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624   lt_prog_compiler_pic_works_GCJ=no
16625   ac_outfile=conftest.$ac_objext
16626    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16627    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16628    # Insert the option either (1) after the last *FLAGS variable, or
16629    # (2) before a word containing "conftest.", or (3) at the end.
16630    # Note that $ac_compile itself does not contain backslashes and begins
16631    # with a dollar sign (not a hyphen), so the echo should work correctly.
16632    # The option is referenced via a variable to avoid confusing sed.
16633    lt_compile=`echo "$ac_compile" | $SED \
16634    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16635    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16636    -e 's:$: $lt_compiler_flag:'`
16637    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16638    (eval "$lt_compile" 2>conftest.err)
16639    ac_status=$?
16640    cat conftest.err >&5
16641    echo "$as_me:__oline__: \$? = $ac_status" >&5
16642    if (exit $ac_status) && test -s "$ac_outfile"; then
16643      # The compiler can only warn and ignore the option if not recognized
16644      # So say no if there are warnings other than the usual output.
16645      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16646      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16647      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16648        lt_prog_compiler_pic_works_GCJ=yes
16649      fi
16650    fi
16651    $rm conftest*
16652
16653 fi
16654 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16655 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16656
16657 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16658     case $lt_prog_compiler_pic_GCJ in
16659      "" | " "*) ;;
16660      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16661      esac
16662 else
16663     lt_prog_compiler_pic_GCJ=
16664      lt_prog_compiler_can_build_shared_GCJ=no
16665 fi
16666
16667 fi
16668 case $host_os in
16669   # For platforms which do not support PIC, -DPIC is meaningless:
16670   *djgpp*)
16671     lt_prog_compiler_pic_GCJ=
16672     ;;
16673   *)
16674     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16675     ;;
16676 esac
16677
16678 #
16679 # Check to make sure the static flag actually works.
16680 #
16681 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16682 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16683 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16684 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   lt_prog_compiler_static_works_GCJ=no
16688    save_LDFLAGS="$LDFLAGS"
16689    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16690    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16691    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16692      # The linker can only warn and ignore the option if not recognized
16693      # So say no if there are warnings
16694      if test -s conftest.err; then
16695        # Append any errors to the config.log.
16696        cat conftest.err 1>&5
16697        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16698        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16699        if diff conftest.exp conftest.er2 >/dev/null; then
16700          lt_prog_compiler_static_works_GCJ=yes
16701        fi
16702      else
16703        lt_prog_compiler_static_works_GCJ=yes
16704      fi
16705    fi
16706    $rm conftest*
16707    LDFLAGS="$save_LDFLAGS"
16708
16709 fi
16710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16711 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16712
16713 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16714     :
16715 else
16716     lt_prog_compiler_static_GCJ=
16717 fi
16718
16719
16720 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16721 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16722 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16723   echo $ECHO_N "(cached) $ECHO_C" >&6
16724 else
16725   lt_cv_prog_compiler_c_o_GCJ=no
16726    $rm -r conftest 2>/dev/null
16727    mkdir conftest
16728    cd conftest
16729    mkdir out
16730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16731
16732    lt_compiler_flag="-o out/conftest2.$ac_objext"
16733    # Insert the option either (1) after the last *FLAGS variable, or
16734    # (2) before a word containing "conftest.", or (3) at the end.
16735    # Note that $ac_compile itself does not contain backslashes and begins
16736    # with a dollar sign (not a hyphen), so the echo should work correctly.
16737    lt_compile=`echo "$ac_compile" | $SED \
16738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16740    -e 's:$: $lt_compiler_flag:'`
16741    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16742    (eval "$lt_compile" 2>out/conftest.err)
16743    ac_status=$?
16744    cat out/conftest.err >&5
16745    echo "$as_me:__oline__: \$? = $ac_status" >&5
16746    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16747    then
16748      # The compiler can only warn and ignore the option if not recognized
16749      # So say no if there are warnings
16750      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16751      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16752      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16753        lt_cv_prog_compiler_c_o_GCJ=yes
16754      fi
16755    fi
16756    chmod u+w . 2>&5
16757    $rm conftest*
16758    # SGI C++ compiler will create directory out/ii_files/ for
16759    # template instantiation
16760    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16761    $rm out/* && rmdir out
16762    cd ..
16763    rmdir conftest
16764    $rm conftest*
16765
16766 fi
16767 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16768 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16769
16770
16771 hard_links="nottested"
16772 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16773   # do not overwrite the value of need_locks provided by the user
16774   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16775 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16776   hard_links=yes
16777   $rm conftest*
16778   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16779   touch conftest.a
16780   ln conftest.a conftest.b 2>&5 || hard_links=no
16781   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16782   { echo "$as_me:$LINENO: result: $hard_links" >&5
16783 echo "${ECHO_T}$hard_links" >&6; }
16784   if test "$hard_links" = no; then
16785     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16786 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16787     need_locks=warn
16788   fi
16789 else
16790   need_locks=no
16791 fi
16792
16793 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16794 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16795
16796   runpath_var=
16797   allow_undefined_flag_GCJ=
16798   enable_shared_with_static_runtimes_GCJ=no
16799   archive_cmds_GCJ=
16800   archive_expsym_cmds_GCJ=
16801   old_archive_From_new_cmds_GCJ=
16802   old_archive_from_expsyms_cmds_GCJ=
16803   export_dynamic_flag_spec_GCJ=
16804   whole_archive_flag_spec_GCJ=
16805   thread_safe_flag_spec_GCJ=
16806   hardcode_libdir_flag_spec_GCJ=
16807   hardcode_libdir_flag_spec_ld_GCJ=
16808   hardcode_libdir_separator_GCJ=
16809   hardcode_direct_GCJ=no
16810   hardcode_minus_L_GCJ=no
16811   hardcode_shlibpath_var_GCJ=unsupported
16812   link_all_deplibs_GCJ=unknown
16813   hardcode_automatic_GCJ=no
16814   module_cmds_GCJ=
16815   module_expsym_cmds_GCJ=
16816   always_export_symbols_GCJ=no
16817   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16818   # include_expsyms should be a list of space-separated symbols to be *always*
16819   # included in the symbol list
16820   include_expsyms_GCJ=
16821   # exclude_expsyms can be an extended regexp of symbols to exclude
16822   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16823   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16824   # as well as any symbol that contains `d'.
16825   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16826   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16827   # platforms (ab)use it in PIC code, but their linkers get confused if
16828   # the symbol is explicitly referenced.  Since portable code cannot
16829   # rely on this symbol name, it's probably fine to never include it in
16830   # preloaded symbol tables.
16831   extract_expsyms_cmds=
16832   # Just being paranoid about ensuring that cc_basename is set.
16833   for cc_temp in $compiler""; do
16834   case $cc_temp in
16835     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16836     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16837     \-*) ;;
16838     *) break;;
16839   esac
16840 done
16841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16842
16843   case $host_os in
16844   cygwin* | mingw* | pw32*)
16845     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16846     # When not using gcc, we currently assume that we are using
16847     # Microsoft Visual C++.
16848     if test "$GCC" != yes; then
16849       with_gnu_ld=no
16850     fi
16851     ;;
16852   interix*)
16853     # we just hope/assume this is gcc and not c89 (= MSVC++)
16854     with_gnu_ld=yes
16855     ;;
16856   openbsd*)
16857     with_gnu_ld=no
16858     ;;
16859   esac
16860
16861   ld_shlibs_GCJ=yes
16862   if test "$with_gnu_ld" = yes; then
16863     # If archive_cmds runs LD, not CC, wlarc should be empty
16864     wlarc='${wl}'
16865
16866     # Set some defaults for GNU ld with shared library support. These
16867     # are reset later if shared libraries are not supported. Putting them
16868     # here allows them to be overridden if necessary.
16869     runpath_var=LD_RUN_PATH
16870     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16871     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16872     # ancient GNU ld didn't support --whole-archive et. al.
16873     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16874         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16875       else
16876         whole_archive_flag_spec_GCJ=
16877     fi
16878     supports_anon_versioning=no
16879     case `$LD -v 2>/dev/null` in
16880       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16881       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16882       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16883       *\ 2.11.*) ;; # other 2.11 versions
16884       *) supports_anon_versioning=yes ;;
16885     esac
16886
16887     # See if GNU ld supports shared libraries.
16888     case $host_os in
16889     aix3* | aix4* | aix5*)
16890       # On AIX/PPC, the GNU linker is very broken
16891       if test "$host_cpu" != ia64; then
16892         ld_shlibs_GCJ=no
16893         cat <<EOF 1>&2
16894
16895 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16896 *** to be unable to reliably create shared libraries on AIX.
16897 *** Therefore, libtool is disabling shared libraries support.  If you
16898 *** really care for shared libraries, you may want to modify your PATH
16899 *** so that a non-GNU linker is found, and then restart.
16900
16901 EOF
16902       fi
16903       ;;
16904
16905     amigaos*)
16906       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)'
16907       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16908       hardcode_minus_L_GCJ=yes
16909
16910       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16911       # that the semantics of dynamic libraries on AmigaOS, at least up
16912       # to version 4, is to share data among multiple programs linked
16913       # with the same dynamic library.  Since this doesn't match the
16914       # behavior of shared libraries on other platforms, we can't use
16915       # them.
16916       ld_shlibs_GCJ=no
16917       ;;
16918
16919     beos*)
16920       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16921         allow_undefined_flag_GCJ=unsupported
16922         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16923         # support --undefined.  This deserves some investigation.  FIXME
16924         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16925       else
16926         ld_shlibs_GCJ=no
16927       fi
16928       ;;
16929
16930     cygwin* | mingw* | pw32*)
16931       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16932       # as there is no search path for DLLs.
16933       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16934       allow_undefined_flag_GCJ=unsupported
16935       always_export_symbols_GCJ=no
16936       enable_shared_with_static_runtimes_GCJ=yes
16937       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16938
16939       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16940         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16941         # If the export-symbols file already is a .def file (1st line
16942         # is EXPORTS), use it as is; otherwise, prepend...
16943         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16944           cp $export_symbols $output_objdir/$soname.def;
16945         else
16946           echo EXPORTS > $output_objdir/$soname.def;
16947           cat $export_symbols >> $output_objdir/$soname.def;
16948         fi~
16949         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16950       else
16951         ld_shlibs_GCJ=no
16952       fi
16953       ;;
16954
16955     interix[3-9]*)
16956       hardcode_direct_GCJ=no
16957       hardcode_shlibpath_var_GCJ=no
16958       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16959       export_dynamic_flag_spec_GCJ='${wl}-E'
16960       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16961       # Instead, shared libraries are loaded at an image base (0x10000000 by
16962       # default) and relocated if they conflict, which is a slow very memory
16963       # consuming and fragmenting process.  To avoid this, we pick a random,
16964       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16965       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16966       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'
16967       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'
16968       ;;
16969
16970     gnu* | linux* | k*bsd*-gnu)
16971       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16972         tmp_addflag=
16973         case $cc_basename,$host_cpu in
16974         pgcc*)                          # Portland Group C compiler
16975           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'
16976           tmp_addflag=' $pic_flag'
16977           ;;
16978         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16979           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'
16980           tmp_addflag=' $pic_flag -Mnomain' ;;
16981         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16982           tmp_addflag=' -i_dynamic' ;;
16983         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16984           tmp_addflag=' -i_dynamic -nofor_main' ;;
16985         ifc* | ifort*)                  # Intel Fortran compiler
16986           tmp_addflag=' -nofor_main' ;;
16987         esac
16988         case `$CC -V 2>&1 | sed 5q` in
16989         *Sun\ C*)                       # Sun C 5.9
16990           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'
16991           tmp_sharedflag='-G' ;;
16992         *Sun\ F*)                       # Sun Fortran 8.3
16993           tmp_sharedflag='-G' ;;
16994         *)
16995           tmp_sharedflag='-shared' ;;
16996         esac
16997         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16998
16999         if test $supports_anon_versioning = yes; then
17000           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17001   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17002   $echo "local: *; };" >> $output_objdir/$libname.ver~
17003           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17004         fi
17005       else
17006         ld_shlibs_GCJ=no
17007       fi
17008       ;;
17009
17010     netbsd*)
17011       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17012         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17013         wlarc=
17014       else
17015         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17017       fi
17018       ;;
17019
17020     solaris*)
17021       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17022         ld_shlibs_GCJ=no
17023         cat <<EOF 1>&2
17024
17025 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17026 *** create shared libraries on Solaris systems.  Therefore, libtool
17027 *** is disabling shared libraries support.  We urge you to upgrade GNU
17028 *** binutils to release 2.9.1 or newer.  Another option is to modify
17029 *** your PATH or compiler configuration so that the native linker is
17030 *** used, and then restart.
17031
17032 EOF
17033       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17034         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17035         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17036       else
17037         ld_shlibs_GCJ=no
17038       fi
17039       ;;
17040
17041     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17042       case `$LD -v 2>&1` in
17043         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17044         ld_shlibs_GCJ=no
17045         cat <<_LT_EOF 1>&2
17046
17047 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17048 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17049 *** is disabling shared libraries support.  We urge you to upgrade GNU
17050 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17051 *** your PATH or compiler configuration so that the native linker is
17052 *** used, and then restart.
17053
17054 _LT_EOF
17055         ;;
17056         *)
17057           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17058             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17059             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17060             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17061           else
17062             ld_shlibs_GCJ=no
17063           fi
17064         ;;
17065       esac
17066       ;;
17067
17068     sunos4*)
17069       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17070       wlarc=
17071       hardcode_direct_GCJ=yes
17072       hardcode_shlibpath_var_GCJ=no
17073       ;;
17074
17075     *)
17076       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17077         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17078         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17079       else
17080         ld_shlibs_GCJ=no
17081       fi
17082       ;;
17083     esac
17084
17085     if test "$ld_shlibs_GCJ" = no; then
17086       runpath_var=
17087       hardcode_libdir_flag_spec_GCJ=
17088       export_dynamic_flag_spec_GCJ=
17089       whole_archive_flag_spec_GCJ=
17090     fi
17091   else
17092     # PORTME fill in a description of your system's linker (not GNU ld)
17093     case $host_os in
17094     aix3*)
17095       allow_undefined_flag_GCJ=unsupported
17096       always_export_symbols_GCJ=yes
17097       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'
17098       # Note: this linker hardcodes the directories in LIBPATH if there
17099       # are no directories specified by -L.
17100       hardcode_minus_L_GCJ=yes
17101       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17102         # Neither direct hardcoding nor static linking is supported with a
17103         # broken collect2.
17104         hardcode_direct_GCJ=unsupported
17105       fi
17106       ;;
17107
17108     aix4* | aix5*)
17109       if test "$host_cpu" = ia64; then
17110         # On IA64, the linker does run time linking by default, so we don't
17111         # have to do anything special.
17112         aix_use_runtimelinking=no
17113         exp_sym_flag='-Bexport'
17114         no_entry_flag=""
17115       else
17116         # If we're using GNU nm, then we don't want the "-C" option.
17117         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17118         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17119           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'
17120         else
17121           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'
17122         fi
17123         aix_use_runtimelinking=no
17124
17125         # Test if we are trying to use run time linking or normal
17126         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17127         # need to do runtime linking.
17128         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17129           for ld_flag in $LDFLAGS; do
17130           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17131             aix_use_runtimelinking=yes
17132             break
17133           fi
17134           done
17135           ;;
17136         esac
17137
17138         exp_sym_flag='-bexport'
17139         no_entry_flag='-bnoentry'
17140       fi
17141
17142       # When large executables or shared objects are built, AIX ld can
17143       # have problems creating the table of contents.  If linking a library
17144       # or program results in "error TOC overflow" add -mminimal-toc to
17145       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17146       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17147
17148       archive_cmds_GCJ=''
17149       hardcode_direct_GCJ=yes
17150       hardcode_libdir_separator_GCJ=':'
17151       link_all_deplibs_GCJ=yes
17152
17153       if test "$GCC" = yes; then
17154         case $host_os in aix4.[012]|aix4.[012].*)
17155         # We only want to do this on AIX 4.2 and lower, the check
17156         # below for broken collect2 doesn't work under 4.3+
17157           collect2name=`${CC} -print-prog-name=collect2`
17158           if test -f "$collect2name" && \
17159            strings "$collect2name" | grep resolve_lib_name >/dev/null
17160           then
17161           # We have reworked collect2
17162           :
17163           else
17164           # We have old collect2
17165           hardcode_direct_GCJ=unsupported
17166           # It fails to find uninstalled libraries when the uninstalled
17167           # path is not listed in the libpath.  Setting hardcode_minus_L
17168           # to unsupported forces relinking
17169           hardcode_minus_L_GCJ=yes
17170           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17171           hardcode_libdir_separator_GCJ=
17172           fi
17173           ;;
17174         esac
17175         shared_flag='-shared'
17176         if test "$aix_use_runtimelinking" = yes; then
17177           shared_flag="$shared_flag "'${wl}-G'
17178         fi
17179       else
17180         # not using gcc
17181         if test "$host_cpu" = ia64; then
17182         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17183         # chokes on -Wl,-G. The following line is correct:
17184           shared_flag='-G'
17185         else
17186           if test "$aix_use_runtimelinking" = yes; then
17187             shared_flag='${wl}-G'
17188           else
17189             shared_flag='${wl}-bM:SRE'
17190           fi
17191         fi
17192       fi
17193
17194       # It seems that -bexpall does not export symbols beginning with
17195       # underscore (_), so it is better to generate a list of symbols to export.
17196       always_export_symbols_GCJ=yes
17197       if test "$aix_use_runtimelinking" = yes; then
17198         # Warning - without using the other runtime loading flags (-brtl),
17199         # -berok will link without error, but may produce a broken library.
17200         allow_undefined_flag_GCJ='-berok'
17201        # Determine the default libpath from the value encoded in an empty executable.
17202        cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208
17209 int
17210 main ()
17211 {
17212
17213   ;
17214   return 0;
17215 }
17216 _ACEOF
17217 rm -f conftest.$ac_objext conftest$ac_exeext
17218 if { (ac_try="$ac_link"
17219 case "(($ac_try" in
17220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221   *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224   (eval "$ac_link") 2>conftest.er1
17225   ac_status=$?
17226   grep -v '^ *+' conftest.er1 >conftest.err
17227   rm -f conftest.er1
17228   cat conftest.err >&5
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } && {
17231          test -z "$ac_c_werror_flag" ||
17232          test ! -s conftest.err
17233        } && test -s conftest$ac_exeext &&
17234        $as_test_x conftest$ac_exeext; then
17235   
17236 lt_aix_libpath_sed='
17237     /Import File Strings/,/^$/ {
17238         /^0/ {
17239             s/^0  *\(.*\)$/\1/
17240             p
17241         }
17242     }'
17243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17244 # Check for a 64-bit object if we didn't find anything.
17245 if test -z "$aix_libpath"; then
17246   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17247 fi
17248 else
17249   echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252         
17253 fi
17254
17255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17256       conftest$ac_exeext conftest.$ac_ext
17257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17258
17259        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17260         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"
17261        else
17262         if test "$host_cpu" = ia64; then
17263           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17264           allow_undefined_flag_GCJ="-z nodefs"
17265           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"
17266         else
17267          # Determine the default libpath from the value encoded in an empty executable.
17268          cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274
17275 int
17276 main ()
17277 {
17278
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (ac_try="$ac_link"
17285 case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_link") 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } && {
17297          test -z "$ac_c_werror_flag" ||
17298          test ! -s conftest.err
17299        } && test -s conftest$ac_exeext &&
17300        $as_test_x conftest$ac_exeext; then
17301   
17302 lt_aix_libpath_sed='
17303     /Import File Strings/,/^$/ {
17304         /^0/ {
17305             s/^0  *\(.*\)$/\1/
17306             p
17307         }
17308     }'
17309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17310 # Check for a 64-bit object if we didn't find anything.
17311 if test -z "$aix_libpath"; then
17312   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17313 fi
17314 else
17315   echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318         
17319 fi
17320
17321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17322       conftest$ac_exeext conftest.$ac_ext
17323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17324
17325          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17326           # Warning - without using the other run time loading flags,
17327           # -berok will link without error, but may produce a broken library.
17328           no_undefined_flag_GCJ=' ${wl}-bernotok'
17329           allow_undefined_flag_GCJ=' ${wl}-berok'
17330           # Exported symbols can be pulled into shared objects from archives
17331           whole_archive_flag_spec_GCJ='$convenience'
17332           archive_cmds_need_lc_GCJ=yes
17333           # This is similar to how AIX traditionally builds its shared libraries.
17334           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'
17335         fi
17336       fi
17337       ;;
17338
17339     amigaos*)
17340       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)'
17341       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17342       hardcode_minus_L_GCJ=yes
17343       # see comment about different semantics on the GNU ld section
17344       ld_shlibs_GCJ=no
17345       ;;
17346
17347     bsdi[45]*)
17348       export_dynamic_flag_spec_GCJ=-rdynamic
17349       ;;
17350
17351     cygwin* | mingw* | pw32*)
17352       # When not using gcc, we currently assume that we are using
17353       # Microsoft Visual C++.
17354       # hardcode_libdir_flag_spec is actually meaningless, as there is
17355       # no search path for DLLs.
17356       hardcode_libdir_flag_spec_GCJ=' '
17357       allow_undefined_flag_GCJ=unsupported
17358       # Tell ltmain to make .lib files, not .a files.
17359       libext=lib
17360       # Tell ltmain to make .dll files, not .so files.
17361       shrext_cmds=".dll"
17362       # FIXME: Setting linknames here is a bad hack.
17363       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17364       # The linker will automatically build a .lib file if we build a DLL.
17365       old_archive_From_new_cmds_GCJ='true'
17366       # FIXME: Should let the user specify the lib program.
17367       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17368       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17369       enable_shared_with_static_runtimes_GCJ=yes
17370       ;;
17371
17372     darwin* | rhapsody*)
17373       case $host_os in
17374         rhapsody* | darwin1.[012])
17375          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17376          ;;
17377        *) # Darwin 1.3 on
17378          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17379            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17380          else
17381            case ${MACOSX_DEPLOYMENT_TARGET} in
17382              10.[012])
17383                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17384                ;;
17385              10.*)
17386                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17387                ;;
17388            esac
17389          fi
17390          ;;
17391       esac
17392       archive_cmds_need_lc_GCJ=no
17393       hardcode_direct_GCJ=no
17394       hardcode_automatic_GCJ=yes
17395       hardcode_shlibpath_var_GCJ=unsupported
17396       whole_archive_flag_spec_GCJ=''
17397       link_all_deplibs_GCJ=yes
17398     if test "$GCC" = yes ; then
17399         output_verbose_link_cmd='echo'
17400         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17401       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17402       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17403       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17404       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}'
17405     else
17406       case $cc_basename in
17407         xlc*)
17408          output_verbose_link_cmd='echo'
17409          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17410          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17411           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17412          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}'
17413           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}'
17414           ;;
17415        *)
17416          ld_shlibs_GCJ=no
17417           ;;
17418       esac
17419     fi
17420       ;;
17421
17422     dgux*)
17423       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17424       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17425       hardcode_shlibpath_var_GCJ=no
17426       ;;
17427
17428     freebsd1*)
17429       ld_shlibs_GCJ=no
17430       ;;
17431
17432     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17433     # support.  Future versions do this automatically, but an explicit c++rt0.o
17434     # does not break anything, and helps significantly (at the cost of a little
17435     # extra space).
17436     freebsd2.2*)
17437       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17438       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17439       hardcode_direct_GCJ=yes
17440       hardcode_shlibpath_var_GCJ=no
17441       ;;
17442
17443     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17444     freebsd2*)
17445       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17446       hardcode_direct_GCJ=yes
17447       hardcode_minus_L_GCJ=yes
17448       hardcode_shlibpath_var_GCJ=no
17449       ;;
17450
17451     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17452     freebsd* | dragonfly*)
17453       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17454       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17455       hardcode_direct_GCJ=yes
17456       hardcode_shlibpath_var_GCJ=no
17457       ;;
17458
17459     hpux9*)
17460       if test "$GCC" = yes; then
17461         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'
17462       else
17463         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'
17464       fi
17465       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17466       hardcode_libdir_separator_GCJ=:
17467       hardcode_direct_GCJ=yes
17468
17469       # hardcode_minus_L: Not really in the search PATH,
17470       # but as the default location of the library.
17471       hardcode_minus_L_GCJ=yes
17472       export_dynamic_flag_spec_GCJ='${wl}-E'
17473       ;;
17474
17475     hpux10*)
17476       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17477         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17478       else
17479         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17480       fi
17481       if test "$with_gnu_ld" = no; then
17482         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17483         hardcode_libdir_separator_GCJ=:
17484
17485         hardcode_direct_GCJ=yes
17486         export_dynamic_flag_spec_GCJ='${wl}-E'
17487
17488         # hardcode_minus_L: Not really in the search PATH,
17489         # but as the default location of the library.
17490         hardcode_minus_L_GCJ=yes
17491       fi
17492       ;;
17493
17494     hpux11*)
17495       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17496         case $host_cpu in
17497         hppa*64*)
17498           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17499           ;;
17500         ia64*)
17501           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17502           ;;
17503         *)
17504           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17505           ;;
17506         esac
17507       else
17508         case $host_cpu in
17509         hppa*64*)
17510           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17511           ;;
17512         ia64*)
17513           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17514           ;;
17515         *)
17516           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17517           ;;
17518         esac
17519       fi
17520       if test "$with_gnu_ld" = no; then
17521         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17522         hardcode_libdir_separator_GCJ=:
17523
17524         case $host_cpu in
17525         hppa*64*|ia64*)
17526           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17527           hardcode_direct_GCJ=no
17528           hardcode_shlibpath_var_GCJ=no
17529           ;;
17530         *)
17531           hardcode_direct_GCJ=yes
17532           export_dynamic_flag_spec_GCJ='${wl}-E'
17533
17534           # hardcode_minus_L: Not really in the search PATH,
17535           # but as the default location of the library.
17536           hardcode_minus_L_GCJ=yes
17537           ;;
17538         esac
17539       fi
17540       ;;
17541
17542     irix5* | irix6* | nonstopux*)
17543       if test "$GCC" = yes; then
17544         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'
17545       else
17546         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'
17547         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17548       fi
17549       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17550       hardcode_libdir_separator_GCJ=:
17551       link_all_deplibs_GCJ=yes
17552       ;;
17553
17554     netbsd*)
17555       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17556         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17557       else
17558         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17559       fi
17560       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17561       hardcode_direct_GCJ=yes
17562       hardcode_shlibpath_var_GCJ=no
17563       ;;
17564
17565     newsos6)
17566       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17567       hardcode_direct_GCJ=yes
17568       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17569       hardcode_libdir_separator_GCJ=:
17570       hardcode_shlibpath_var_GCJ=no
17571       ;;
17572
17573     openbsd*)
17574       if test -f /usr/libexec/ld.so; then
17575         hardcode_direct_GCJ=yes
17576         hardcode_shlibpath_var_GCJ=no
17577         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17578           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17579           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17580           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17581           export_dynamic_flag_spec_GCJ='${wl}-E'
17582         else
17583           case $host_os in
17584            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17585              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17586              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17587              ;;
17588            *)
17589              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17590              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17591              ;;
17592           esac
17593         fi
17594       else
17595         ld_shlibs_GCJ=no
17596       fi
17597       ;;
17598
17599     os2*)
17600       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17601       hardcode_minus_L_GCJ=yes
17602       allow_undefined_flag_GCJ=unsupported
17603       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'
17604       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17605       ;;
17606
17607     osf3*)
17608       if test "$GCC" = yes; then
17609         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17610         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'
17611       else
17612         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17613         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'
17614       fi
17615       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17616       hardcode_libdir_separator_GCJ=:
17617       ;;
17618
17619     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17620       if test "$GCC" = yes; then
17621         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17622         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'
17623         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17624       else
17625         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17626         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'
17627         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~
17628         $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'
17629
17630         # Both c and cxx compiler support -rpath directly
17631         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17632       fi
17633       hardcode_libdir_separator_GCJ=:
17634       ;;
17635
17636     solaris*)
17637       no_undefined_flag_GCJ=' -z text'
17638       if test "$GCC" = yes; then
17639         wlarc='${wl}'
17640         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17641         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17642           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17643       else
17644         wlarc=''
17645         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17646         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17647         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17648       fi
17649       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17650       hardcode_shlibpath_var_GCJ=no
17651       case $host_os in
17652       solaris2.[0-5] | solaris2.[0-5].*) ;;
17653       *)
17654         # The compiler driver will combine and reorder linker options,
17655         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17656         # but is careful enough not to reorder.
17657         # Supported since Solaris 2.6 (maybe 2.5.1?)
17658         if test "$GCC" = yes; then
17659           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17660         else
17661           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17662         fi
17663         ;;
17664       esac
17665       link_all_deplibs_GCJ=yes
17666       ;;
17667
17668     sunos4*)
17669       if test "x$host_vendor" = xsequent; then
17670         # Use $CC to link under sequent, because it throws in some extra .o
17671         # files that make .init and .fini sections work.
17672         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17673       else
17674         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17675       fi
17676       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17677       hardcode_direct_GCJ=yes
17678       hardcode_minus_L_GCJ=yes
17679       hardcode_shlibpath_var_GCJ=no
17680       ;;
17681
17682     sysv4)
17683       case $host_vendor in
17684         sni)
17685           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17686           hardcode_direct_GCJ=yes # is this really true???
17687         ;;
17688         siemens)
17689           ## LD is ld it makes a PLAMLIB
17690           ## CC just makes a GrossModule.
17691           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17692           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17693           hardcode_direct_GCJ=no
17694         ;;
17695         motorola)
17696           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17697           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17698         ;;
17699       esac
17700       runpath_var='LD_RUN_PATH'
17701       hardcode_shlibpath_var_GCJ=no
17702       ;;
17703
17704     sysv4.3*)
17705       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17706       hardcode_shlibpath_var_GCJ=no
17707       export_dynamic_flag_spec_GCJ='-Bexport'
17708       ;;
17709
17710     sysv4*MP*)
17711       if test -d /usr/nec; then
17712         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17713         hardcode_shlibpath_var_GCJ=no
17714         runpath_var=LD_RUN_PATH
17715         hardcode_runpath_var=yes
17716         ld_shlibs_GCJ=yes
17717       fi
17718       ;;
17719
17720     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17721       no_undefined_flag_GCJ='${wl}-z,text'
17722       archive_cmds_need_lc_GCJ=no
17723       hardcode_shlibpath_var_GCJ=no
17724       runpath_var='LD_RUN_PATH'
17725
17726       if test "$GCC" = yes; then
17727         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17728         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17729       else
17730         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17731         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17732       fi
17733       ;;
17734
17735     sysv5* | sco3.2v5* | sco5v6*)
17736       # Note: We can NOT use -z defs as we might desire, because we do not
17737       # link with -lc, and that would cause any symbols used from libc to
17738       # always be unresolved, which means just about no library would
17739       # ever link correctly.  If we're not using GNU ld we use -z text
17740       # though, which does catch some bad symbols but isn't as heavy-handed
17741       # as -z defs.
17742       no_undefined_flag_GCJ='${wl}-z,text'
17743       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17744       archive_cmds_need_lc_GCJ=no
17745       hardcode_shlibpath_var_GCJ=no
17746       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17747       hardcode_libdir_separator_GCJ=':'
17748       link_all_deplibs_GCJ=yes
17749       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17750       runpath_var='LD_RUN_PATH'
17751
17752       if test "$GCC" = yes; then
17753         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17754         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17755       else
17756         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17757         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17758       fi
17759       ;;
17760
17761     uts4*)
17762       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17763       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17764       hardcode_shlibpath_var_GCJ=no
17765       ;;
17766
17767     *)
17768       ld_shlibs_GCJ=no
17769       ;;
17770     esac
17771   fi
17772
17773 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17774 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17775 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17776
17777 #
17778 # Do we need to explicitly link libc?
17779 #
17780 case "x$archive_cmds_need_lc_GCJ" in
17781 x|xyes)
17782   # Assume -lc should be added
17783   archive_cmds_need_lc_GCJ=yes
17784
17785   if test "$enable_shared" = yes && test "$GCC" = yes; then
17786     case $archive_cmds_GCJ in
17787     *'~'*)
17788       # FIXME: we may have to deal with multi-command sequences.
17789       ;;
17790     '$CC '*)
17791       # Test whether the compiler implicitly links with -lc since on some
17792       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17793       # to ld, don't add -lc before -lgcc.
17794       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17795 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17796       $rm conftest*
17797       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17798
17799       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800   (eval $ac_compile) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } 2>conftest.err; then
17804         soname=conftest
17805         lib=conftest
17806         libobjs=conftest.$ac_objext
17807         deplibs=
17808         wl=$lt_prog_compiler_wl_GCJ
17809         pic_flag=$lt_prog_compiler_pic_GCJ
17810         compiler_flags=-v
17811         linker_flags=-v
17812         verstring=
17813         output_objdir=.
17814         libname=conftest
17815         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17816         allow_undefined_flag_GCJ=
17817         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17818   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }
17822         then
17823           archive_cmds_need_lc_GCJ=no
17824         else
17825           archive_cmds_need_lc_GCJ=yes
17826         fi
17827         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17828       else
17829         cat conftest.err 1>&5
17830       fi
17831       $rm conftest*
17832       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17833 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17834       ;;
17835     esac
17836   fi
17837   ;;
17838 esac
17839
17840 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17841 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17842 library_names_spec=
17843 libname_spec='lib$name'
17844 soname_spec=
17845 shrext_cmds=".so"
17846 postinstall_cmds=
17847 postuninstall_cmds=
17848 finish_cmds=
17849 finish_eval=
17850 shlibpath_var=
17851 shlibpath_overrides_runpath=unknown
17852 version_type=none
17853 dynamic_linker="$host_os ld.so"
17854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17855
17856 need_lib_prefix=unknown
17857 hardcode_into_libs=no
17858
17859 # when you set need_version to no, make sure it does not cause -set_version
17860 # flags to be left without arguments
17861 need_version=unknown
17862
17863 case $host_os in
17864 aix3*)
17865   version_type=linux
17866   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17867   shlibpath_var=LIBPATH
17868
17869   # AIX 3 has no versioning support, so we append a major version to the name.
17870   soname_spec='${libname}${release}${shared_ext}$major'
17871   ;;
17872
17873 aix4* | aix5*)
17874   version_type=linux
17875   need_lib_prefix=no
17876   need_version=no
17877   hardcode_into_libs=yes
17878   if test "$host_cpu" = ia64; then
17879     # AIX 5 supports IA64
17880     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17881     shlibpath_var=LD_LIBRARY_PATH
17882   else
17883     # With GCC up to 2.95.x, collect2 would create an import file
17884     # for dependence libraries.  The import file would start with
17885     # the line `#! .'.  This would cause the generated library to
17886     # depend on `.', always an invalid library.  This was fixed in
17887     # development snapshots of GCC prior to 3.0.
17888     case $host_os in
17889       aix4 | aix4.[01] | aix4.[01].*)
17890       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17891            echo ' yes '
17892            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17893         :
17894       else
17895         can_build_shared=no
17896       fi
17897       ;;
17898     esac
17899     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17900     # soname into executable. Probably we can add versioning support to
17901     # collect2, so additional links can be useful in future.
17902     if test "$aix_use_runtimelinking" = yes; then
17903       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17904       # instead of lib<name>.a to let people know that these are not
17905       # typical AIX shared libraries.
17906       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907     else
17908       # We preserve .a as extension for shared libraries through AIX4.2
17909       # and later when we are not doing run time linking.
17910       library_names_spec='${libname}${release}.a $libname.a'
17911       soname_spec='${libname}${release}${shared_ext}$major'
17912     fi
17913     shlibpath_var=LIBPATH
17914   fi
17915   ;;
17916
17917 amigaos*)
17918   library_names_spec='$libname.ixlibrary $libname.a'
17919   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17920   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'
17921   ;;
17922
17923 beos*)
17924   library_names_spec='${libname}${shared_ext}'
17925   dynamic_linker="$host_os ld.so"
17926   shlibpath_var=LIBRARY_PATH
17927   ;;
17928
17929 bsdi[45]*)
17930   version_type=linux
17931   need_version=no
17932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17933   soname_spec='${libname}${release}${shared_ext}$major'
17934   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17935   shlibpath_var=LD_LIBRARY_PATH
17936   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17937   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17938   # the default ld.so.conf also contains /usr/contrib/lib and
17939   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17940   # libtool to hard-code these into programs
17941   ;;
17942
17943 cygwin* | mingw* | pw32*)
17944   version_type=windows
17945   shrext_cmds=".dll"
17946   need_version=no
17947   need_lib_prefix=no
17948
17949   case $GCC,$host_os in
17950   yes,cygwin* | yes,mingw* | yes,pw32*)
17951     library_names_spec='$libname.dll.a'
17952     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17953     postinstall_cmds='base_file=`basename \${file}`~
17954       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17955       dldir=$destdir/`dirname \$dlpath`~
17956       test -d \$dldir || mkdir -p \$dldir~
17957       $install_prog $dir/$dlname \$dldir/$dlname~
17958       chmod a+x \$dldir/$dlname'
17959     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17960       dlpath=$dir/\$dldll~
17961        $rm \$dlpath'
17962     shlibpath_overrides_runpath=yes
17963
17964     case $host_os in
17965     cygwin*)
17966       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17967       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17968       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17969       ;;
17970     mingw*)
17971       # MinGW DLLs use traditional 'lib' prefix
17972       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17973       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17974       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17975         # It is most probably a Windows format PATH printed by
17976         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17977         # path with ; separators, and with drive letters. We can handle the
17978         # drive letters (cygwin fileutils understands them), so leave them,
17979         # especially as we might pass files found there to a mingw objdump,
17980         # which wouldn't understand a cygwinified path. Ahh.
17981         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17982       else
17983         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17984       fi
17985       ;;
17986     pw32*)
17987       # pw32 DLLs use 'pw' prefix rather than 'lib'
17988       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17989       ;;
17990     esac
17991     ;;
17992
17993   *)
17994     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17995     ;;
17996   esac
17997   dynamic_linker='Win32 ld.exe'
17998   # FIXME: first we should search . and the directory the executable is in
17999   shlibpath_var=PATH
18000   ;;
18001
18002 darwin* | rhapsody*)
18003   dynamic_linker="$host_os dyld"
18004   version_type=darwin
18005   need_lib_prefix=no
18006   need_version=no
18007   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18008   soname_spec='${libname}${release}${major}$shared_ext'
18009   shlibpath_overrides_runpath=yes
18010   shlibpath_var=DYLD_LIBRARY_PATH
18011   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18012    
18013   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18014   ;;
18015
18016 dgux*)
18017   version_type=linux
18018   need_lib_prefix=no
18019   need_version=no
18020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18021   soname_spec='${libname}${release}${shared_ext}$major'
18022   shlibpath_var=LD_LIBRARY_PATH
18023   ;;
18024
18025 freebsd1*)
18026   dynamic_linker=no
18027   ;;
18028
18029 freebsd* | dragonfly*)
18030   # DragonFly does not have aout.  When/if they implement a new
18031   # versioning mechanism, adjust this.
18032   if test -x /usr/bin/objformat; then
18033     objformat=`/usr/bin/objformat`
18034   else
18035     case $host_os in
18036     freebsd[123]*) objformat=aout ;;
18037     *) objformat=elf ;;
18038     esac
18039   fi
18040   version_type=freebsd-$objformat
18041   case $version_type in
18042     freebsd-elf*)
18043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18044       need_version=no
18045       need_lib_prefix=no
18046       ;;
18047     freebsd-*)
18048       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18049       need_version=yes
18050       ;;
18051   esac
18052   shlibpath_var=LD_LIBRARY_PATH
18053   case $host_os in
18054   freebsd2*)
18055     shlibpath_overrides_runpath=yes
18056     ;;
18057   freebsd3.[01]* | freebsdelf3.[01]*)
18058     shlibpath_overrides_runpath=yes
18059     hardcode_into_libs=yes
18060     ;;
18061   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18062   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18063     shlibpath_overrides_runpath=no
18064     hardcode_into_libs=yes
18065     ;;
18066   *) # from 4.6 on, and DragonFly
18067     shlibpath_overrides_runpath=yes
18068     hardcode_into_libs=yes
18069     ;;
18070   esac
18071   ;;
18072
18073 gnu*)
18074   version_type=linux
18075   need_lib_prefix=no
18076   need_version=no
18077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18078   soname_spec='${libname}${release}${shared_ext}$major'
18079   shlibpath_var=LD_LIBRARY_PATH
18080   hardcode_into_libs=yes
18081   ;;
18082
18083 hpux9* | hpux10* | hpux11*)
18084   # Give a soname corresponding to the major version so that dld.sl refuses to
18085   # link against other versions.
18086   version_type=sunos
18087   need_lib_prefix=no
18088   need_version=no
18089   case $host_cpu in
18090   ia64*)
18091     shrext_cmds='.so'
18092     hardcode_into_libs=yes
18093     dynamic_linker="$host_os dld.so"
18094     shlibpath_var=LD_LIBRARY_PATH
18095     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18097     soname_spec='${libname}${release}${shared_ext}$major'
18098     if test "X$HPUX_IA64_MODE" = X32; then
18099       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18100     else
18101       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18102     fi
18103     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18104     ;;
18105    hppa*64*)
18106      shrext_cmds='.sl'
18107      hardcode_into_libs=yes
18108      dynamic_linker="$host_os dld.sl"
18109      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18110      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18111      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112      soname_spec='${libname}${release}${shared_ext}$major'
18113      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18114      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18115      ;;
18116    *)
18117     shrext_cmds='.sl'
18118     dynamic_linker="$host_os dld.sl"
18119     shlibpath_var=SHLIB_PATH
18120     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18122     soname_spec='${libname}${release}${shared_ext}$major'
18123     ;;
18124   esac
18125   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18126   postinstall_cmds='chmod 555 $lib'
18127   ;;
18128
18129 interix[3-9]*)
18130   version_type=linux
18131   need_lib_prefix=no
18132   need_version=no
18133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18134   soname_spec='${libname}${release}${shared_ext}$major'
18135   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18136   shlibpath_var=LD_LIBRARY_PATH
18137   shlibpath_overrides_runpath=no
18138   hardcode_into_libs=yes
18139   ;;
18140
18141 irix5* | irix6* | nonstopux*)
18142   case $host_os in
18143     nonstopux*) version_type=nonstopux ;;
18144     *)
18145         if test "$lt_cv_prog_gnu_ld" = yes; then
18146                 version_type=linux
18147         else
18148                 version_type=irix
18149         fi ;;
18150   esac
18151   need_lib_prefix=no
18152   need_version=no
18153   soname_spec='${libname}${release}${shared_ext}$major'
18154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18155   case $host_os in
18156   irix5* | nonstopux*)
18157     libsuff= shlibsuff=
18158     ;;
18159   *)
18160     case $LD in # libtool.m4 will add one of these switches to LD
18161     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18162       libsuff= shlibsuff= libmagic=32-bit;;
18163     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18164       libsuff=32 shlibsuff=N32 libmagic=N32;;
18165     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18166       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18167     *) libsuff= shlibsuff= libmagic=never-match;;
18168     esac
18169     ;;
18170   esac
18171   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18172   shlibpath_overrides_runpath=no
18173   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18174   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18175   hardcode_into_libs=yes
18176   ;;
18177
18178 # No shared lib support for Linux oldld, aout, or coff.
18179 linux*oldld* | linux*aout* | linux*coff*)
18180   dynamic_linker=no
18181   ;;
18182
18183 # This must be Linux ELF.
18184 linux* | k*bsd*-gnu)
18185   version_type=linux
18186   need_lib_prefix=no
18187   need_version=no
18188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18189   soname_spec='${libname}${release}${shared_ext}$major'
18190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18191   shlibpath_var=LD_LIBRARY_PATH
18192   shlibpath_overrides_runpath=no
18193   # This implies no fast_install, which is unacceptable.
18194   # Some rework will be needed to allow for fast_install
18195   # before this can be enabled.
18196   hardcode_into_libs=yes
18197
18198   # find out which ABI we are using
18199   libsuff=
18200   case "$host_cpu" in
18201   x86_64*|s390x*|powerpc64*)
18202     echo '#line __oline__ "configure"' > conftest.$ac_ext
18203     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18204   (eval $ac_compile) 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; then
18208       case `/usr/bin/file conftest.$ac_objext` in
18209       *64-bit*)
18210         libsuff=64
18211         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18212         ;;
18213       esac
18214     fi
18215     rm -rf conftest*
18216     ;;
18217   esac
18218
18219   # Append ld.so.conf contents to the search path
18220   if test -f /etc/ld.so.conf; then
18221     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' ' '`
18222     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18223   fi
18224
18225   # We used to test for /lib/ld.so.1 and disable shared libraries on
18226   # powerpc, because MkLinux only supported shared libraries with the
18227   # GNU dynamic linker.  Since this was broken with cross compilers,
18228   # most powerpc-linux boxes support dynamic linking these days and
18229   # people can always --disable-shared, the test was removed, and we
18230   # assume the GNU/Linux dynamic linker is in use.
18231   dynamic_linker='GNU/Linux ld.so'
18232   ;;
18233
18234 netbsd*)
18235   version_type=sunos
18236   need_lib_prefix=no
18237   need_version=no
18238   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18241     dynamic_linker='NetBSD (a.out) ld.so'
18242   else
18243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18244     soname_spec='${libname}${release}${shared_ext}$major'
18245     dynamic_linker='NetBSD ld.elf_so'
18246   fi
18247   shlibpath_var=LD_LIBRARY_PATH
18248   shlibpath_overrides_runpath=yes
18249   hardcode_into_libs=yes
18250   ;;
18251
18252 newsos6)
18253   version_type=linux
18254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18255   shlibpath_var=LD_LIBRARY_PATH
18256   shlibpath_overrides_runpath=yes
18257   ;;
18258
18259 nto-qnx*)
18260   version_type=linux
18261   need_lib_prefix=no
18262   need_version=no
18263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18264   soname_spec='${libname}${release}${shared_ext}$major'
18265   shlibpath_var=LD_LIBRARY_PATH
18266   shlibpath_overrides_runpath=yes
18267   ;;
18268
18269 openbsd*)
18270   version_type=sunos
18271   sys_lib_dlsearch_path_spec="/usr/lib"
18272   need_lib_prefix=no
18273   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18274   case $host_os in
18275     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18276     *)                         need_version=no  ;;
18277   esac
18278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18279   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18280   shlibpath_var=LD_LIBRARY_PATH
18281   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18282     case $host_os in
18283       openbsd2.[89] | openbsd2.[89].*)
18284         shlibpath_overrides_runpath=no
18285         ;;
18286       *)
18287         shlibpath_overrides_runpath=yes
18288         ;;
18289       esac
18290   else
18291     shlibpath_overrides_runpath=yes
18292   fi
18293   ;;
18294
18295 os2*)
18296   libname_spec='$name'
18297   shrext_cmds=".dll"
18298   need_lib_prefix=no
18299   library_names_spec='$libname${shared_ext} $libname.a'
18300   dynamic_linker='OS/2 ld.exe'
18301   shlibpath_var=LIBPATH
18302   ;;
18303
18304 osf3* | osf4* | osf5*)
18305   version_type=osf
18306   need_lib_prefix=no
18307   need_version=no
18308   soname_spec='${libname}${release}${shared_ext}$major'
18309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310   shlibpath_var=LD_LIBRARY_PATH
18311   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18312   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18313   ;;
18314
18315 rdos*)
18316   dynamic_linker=no
18317   ;;
18318
18319 solaris*)
18320   version_type=linux
18321   need_lib_prefix=no
18322   need_version=no
18323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324   soname_spec='${libname}${release}${shared_ext}$major'
18325   shlibpath_var=LD_LIBRARY_PATH
18326   shlibpath_overrides_runpath=yes
18327   hardcode_into_libs=yes
18328   # ldd complains unless libraries are executable
18329   postinstall_cmds='chmod +x $lib'
18330   ;;
18331
18332 sunos4*)
18333   version_type=sunos
18334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18335   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18336   shlibpath_var=LD_LIBRARY_PATH
18337   shlibpath_overrides_runpath=yes
18338   if test "$with_gnu_ld" = yes; then
18339     need_lib_prefix=no
18340   fi
18341   need_version=yes
18342   ;;
18343
18344 sysv4 | sysv4.3*)
18345   version_type=linux
18346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347   soname_spec='${libname}${release}${shared_ext}$major'
18348   shlibpath_var=LD_LIBRARY_PATH
18349   case $host_vendor in
18350     sni)
18351       shlibpath_overrides_runpath=no
18352       need_lib_prefix=no
18353       export_dynamic_flag_spec='${wl}-Blargedynsym'
18354       runpath_var=LD_RUN_PATH
18355       ;;
18356     siemens)
18357       need_lib_prefix=no
18358       ;;
18359     motorola)
18360       need_lib_prefix=no
18361       need_version=no
18362       shlibpath_overrides_runpath=no
18363       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18364       ;;
18365   esac
18366   ;;
18367
18368 sysv4*MP*)
18369   if test -d /usr/nec ;then
18370     version_type=linux
18371     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18372     soname_spec='$libname${shared_ext}.$major'
18373     shlibpath_var=LD_LIBRARY_PATH
18374   fi
18375   ;;
18376
18377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18378   version_type=freebsd-elf
18379   need_lib_prefix=no
18380   need_version=no
18381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18382   soname_spec='${libname}${release}${shared_ext}$major'
18383   shlibpath_var=LD_LIBRARY_PATH
18384   hardcode_into_libs=yes
18385   if test "$with_gnu_ld" = yes; then
18386     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18387     shlibpath_overrides_runpath=no
18388   else
18389     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18390     shlibpath_overrides_runpath=yes
18391     case $host_os in
18392       sco3.2v5*)
18393         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18394         ;;
18395     esac
18396   fi
18397   sys_lib_dlsearch_path_spec='/usr/lib'
18398   ;;
18399
18400 uts4*)
18401   version_type=linux
18402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18403   soname_spec='${libname}${release}${shared_ext}$major'
18404   shlibpath_var=LD_LIBRARY_PATH
18405   ;;
18406
18407 *)
18408   dynamic_linker=no
18409   ;;
18410 esac
18411 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18412 echo "${ECHO_T}$dynamic_linker" >&6; }
18413 test "$dynamic_linker" = no && can_build_shared=no
18414
18415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18416 if test "$GCC" = yes; then
18417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18418 fi
18419
18420 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18422 hardcode_action_GCJ=
18423 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18424    test -n "$runpath_var_GCJ" || \
18425    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18426
18427   # We can hardcode non-existant directories.
18428   if test "$hardcode_direct_GCJ" != no &&
18429      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18430      # have to relink, otherwise we might link with an installed library
18431      # when we should be linking with a yet-to-be-installed one
18432      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18433      test "$hardcode_minus_L_GCJ" != no; then
18434     # Linking always hardcodes the temporary library directory.
18435     hardcode_action_GCJ=relink
18436   else
18437     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18438     hardcode_action_GCJ=immediate
18439   fi
18440 else
18441   # We cannot hardcode anything, or else we can only hardcode existing
18442   # directories.
18443   hardcode_action_GCJ=unsupported
18444 fi
18445 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18446 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18447
18448 if test "$hardcode_action_GCJ" = relink; then
18449   # Fast installation is not supported
18450   enable_fast_install=no
18451 elif test "$shlibpath_overrides_runpath" = yes ||
18452      test "$enable_shared" = no; then
18453   # Fast installation is not necessary
18454   enable_fast_install=needless
18455 fi
18456
18457
18458 # The else clause should only fire when bootstrapping the
18459 # libtool distribution, otherwise you forgot to ship ltmain.sh
18460 # with your package, and you will get complaints that there are
18461 # no rules to generate ltmain.sh.
18462 if test -f "$ltmain"; then
18463   # See if we are running on zsh, and set the options which allow our commands through
18464   # without removal of \ escapes.
18465   if test -n "${ZSH_VERSION+set}" ; then
18466     setopt NO_GLOB_SUBST
18467   fi
18468   # Now quote all the things that may contain metacharacters while being
18469   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18470   # variables and quote the copies for generation of the libtool script.
18471   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18472     SED SHELL STRIP \
18473     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18474     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18475     deplibs_check_method reload_flag reload_cmds need_locks \
18476     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18477     lt_cv_sys_global_symbol_to_c_name_address \
18478     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18479     old_postinstall_cmds old_postuninstall_cmds \
18480     compiler_GCJ \
18481     CC_GCJ \
18482     LD_GCJ \
18483     lt_prog_compiler_wl_GCJ \
18484     lt_prog_compiler_pic_GCJ \
18485     lt_prog_compiler_static_GCJ \
18486     lt_prog_compiler_no_builtin_flag_GCJ \
18487     export_dynamic_flag_spec_GCJ \
18488     thread_safe_flag_spec_GCJ \
18489     whole_archive_flag_spec_GCJ \
18490     enable_shared_with_static_runtimes_GCJ \
18491     old_archive_cmds_GCJ \
18492     old_archive_from_new_cmds_GCJ \
18493     predep_objects_GCJ \
18494     postdep_objects_GCJ \
18495     predeps_GCJ \
18496     postdeps_GCJ \
18497     compiler_lib_search_path_GCJ \
18498     archive_cmds_GCJ \
18499     archive_expsym_cmds_GCJ \
18500     postinstall_cmds_GCJ \
18501     postuninstall_cmds_GCJ \
18502     old_archive_from_expsyms_cmds_GCJ \
18503     allow_undefined_flag_GCJ \
18504     no_undefined_flag_GCJ \
18505     export_symbols_cmds_GCJ \
18506     hardcode_libdir_flag_spec_GCJ \
18507     hardcode_libdir_flag_spec_ld_GCJ \
18508     hardcode_libdir_separator_GCJ \
18509     hardcode_automatic_GCJ \
18510     module_cmds_GCJ \
18511     module_expsym_cmds_GCJ \
18512     lt_cv_prog_compiler_c_o_GCJ \
18513     fix_srcfile_path_GCJ \
18514     exclude_expsyms_GCJ \
18515     include_expsyms_GCJ; do
18516
18517     case $var in
18518     old_archive_cmds_GCJ | \
18519     old_archive_from_new_cmds_GCJ | \
18520     archive_cmds_GCJ | \
18521     archive_expsym_cmds_GCJ | \
18522     module_cmds_GCJ | \
18523     module_expsym_cmds_GCJ | \
18524     old_archive_from_expsyms_cmds_GCJ | \
18525     export_symbols_cmds_GCJ | \
18526     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527     postinstall_cmds | postuninstall_cmds | \
18528     old_postinstall_cmds | old_postuninstall_cmds | \
18529     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530       # Double-quote double-evaled strings.
18531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18532       ;;
18533     *)
18534       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18535       ;;
18536     esac
18537   done
18538
18539   case $lt_echo in
18540   *'\$0 --fallback-echo"')
18541     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18542     ;;
18543   esac
18544
18545 cfgfile="$ofile"
18546
18547   cat <<__EOF__ >> "$cfgfile"
18548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18549
18550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18551
18552 # Shell to use when invoking shell scripts.
18553 SHELL=$lt_SHELL
18554
18555 # Whether or not to build shared libraries.
18556 build_libtool_libs=$enable_shared
18557
18558 # Whether or not to build static libraries.
18559 build_old_libs=$enable_static
18560
18561 # Whether or not to add -lc for building shared libraries.
18562 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18563
18564 # Whether or not to disallow shared libs when runtime libs are static
18565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18566
18567 # Whether or not to optimize for fast installation.
18568 fast_install=$enable_fast_install
18569
18570 # The host system.
18571 host_alias=$host_alias
18572 host=$host
18573 host_os=$host_os
18574
18575 # The build system.
18576 build_alias=$build_alias
18577 build=$build
18578 build_os=$build_os
18579
18580 # An echo program that does not interpret backslashes.
18581 echo=$lt_echo
18582
18583 # The archiver.
18584 AR=$lt_AR
18585 AR_FLAGS=$lt_AR_FLAGS
18586
18587 # A C compiler.
18588 LTCC=$lt_LTCC
18589
18590 # LTCC compiler flags.
18591 LTCFLAGS=$lt_LTCFLAGS
18592
18593 # A language-specific compiler.
18594 CC=$lt_compiler_GCJ
18595
18596 # Is the compiler the GNU C compiler?
18597 with_gcc=$GCC_GCJ
18598
18599 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18600 gcc_ver=\`gcc -dumpversion\`
18601
18602 # An ERE matcher.
18603 EGREP=$lt_EGREP
18604
18605 # The linker used to build libraries.
18606 LD=$lt_LD_GCJ
18607
18608 # Whether we need hard or soft links.
18609 LN_S=$lt_LN_S
18610
18611 # A BSD-compatible nm program.
18612 NM=$lt_NM
18613
18614 # A symbol stripping program
18615 STRIP=$lt_STRIP
18616
18617 # Used to examine libraries when file_magic_cmd begins "file"
18618 MAGIC_CMD=$MAGIC_CMD
18619
18620 # Used on cygwin: DLL creation program.
18621 DLLTOOL="$DLLTOOL"
18622
18623 # Used on cygwin: object dumper.
18624 OBJDUMP="$OBJDUMP"
18625
18626 # Used on cygwin: assembler.
18627 AS="$AS"
18628
18629 # The name of the directory that contains temporary libtool files.
18630 objdir=$objdir
18631
18632 # How to create reloadable object files.
18633 reload_flag=$lt_reload_flag
18634 reload_cmds=$lt_reload_cmds
18635
18636 # How to pass a linker flag through the compiler.
18637 wl=$lt_lt_prog_compiler_wl_GCJ
18638
18639 # Object file suffix (normally "o").
18640 objext="$ac_objext"
18641
18642 # Old archive suffix (normally "a").
18643 libext="$libext"
18644
18645 # Shared library suffix (normally ".so").
18646 shrext_cmds='$shrext_cmds'
18647
18648 # Executable file suffix (normally "").
18649 exeext="$exeext"
18650
18651 # Additional compiler flags for building library objects.
18652 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18653 pic_mode=$pic_mode
18654
18655 # What is the maximum length of a command?
18656 max_cmd_len=$lt_cv_sys_max_cmd_len
18657
18658 # Does compiler simultaneously support -c and -o options?
18659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18660
18661 # Must we lock files when doing compilation?
18662 need_locks=$lt_need_locks
18663
18664 # Do we need the lib prefix for modules?
18665 need_lib_prefix=$need_lib_prefix
18666
18667 # Do we need a version for libraries?
18668 need_version=$need_version
18669
18670 # Whether dlopen is supported.
18671 dlopen_support=$enable_dlopen
18672
18673 # Whether dlopen of programs is supported.
18674 dlopen_self=$enable_dlopen_self
18675
18676 # Whether dlopen of statically linked programs is supported.
18677 dlopen_self_static=$enable_dlopen_self_static
18678
18679 # Compiler flag to prevent dynamic linking.
18680 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18681
18682 # Compiler flag to turn off builtin functions.
18683 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18684
18685 # Compiler flag to allow reflexive dlopens.
18686 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18687
18688 # Compiler flag to generate shared objects directly from archives.
18689 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18690
18691 # Compiler flag to generate thread-safe objects.
18692 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18693
18694 # Library versioning type.
18695 version_type=$version_type
18696
18697 # Format of library name prefix.
18698 libname_spec=$lt_libname_spec
18699
18700 # List of archive names.  First name is the real one, the rest are links.
18701 # The last name is the one that the linker finds with -lNAME.
18702 library_names_spec=$lt_library_names_spec
18703
18704 # The coded name of the library, if different from the real name.
18705 soname_spec=$lt_soname_spec
18706
18707 # Commands used to build and install an old-style archive.
18708 RANLIB=$lt_RANLIB
18709 old_archive_cmds=$lt_old_archive_cmds_GCJ
18710 old_postinstall_cmds=$lt_old_postinstall_cmds
18711 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18712
18713 # Create an old-style archive from a shared archive.
18714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18715
18716 # Create a temporary old-style archive to link instead of a shared archive.
18717 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18718
18719 # Commands used to build and install a shared archive.
18720 archive_cmds=$lt_archive_cmds_GCJ
18721 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18722 postinstall_cmds=$lt_postinstall_cmds
18723 postuninstall_cmds=$lt_postuninstall_cmds
18724
18725 # Commands used to build a loadable module (assumed same as above if empty)
18726 module_cmds=$lt_module_cmds_GCJ
18727 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18728
18729 # Commands to strip libraries.
18730 old_striplib=$lt_old_striplib
18731 striplib=$lt_striplib
18732
18733 # Dependencies to place before the objects being linked to create a
18734 # shared library.
18735 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18736
18737 # Dependencies to place after the objects being linked to create a
18738 # shared library.
18739 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18740
18741 # Dependencies to place before the objects being linked to create a
18742 # shared library.
18743 predeps=$lt_predeps_GCJ
18744
18745 # Dependencies to place after the objects being linked to create a
18746 # shared library.
18747 postdeps=$lt_postdeps_GCJ
18748
18749 # The library search path used internally by the compiler when linking
18750 # a shared library.
18751 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18752
18753 # Method to check whether dependent libraries are shared objects.
18754 deplibs_check_method=$lt_deplibs_check_method
18755
18756 # Command to use when deplibs_check_method == file_magic.
18757 file_magic_cmd=$lt_file_magic_cmd
18758
18759 # Flag that allows shared libraries with undefined symbols to be built.
18760 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18761
18762 # Flag that forces no undefined symbols.
18763 no_undefined_flag=$lt_no_undefined_flag_GCJ
18764
18765 # Commands used to finish a libtool library installation in a directory.
18766 finish_cmds=$lt_finish_cmds
18767
18768 # Same as above, but a single script fragment to be evaled but not shown.
18769 finish_eval=$lt_finish_eval
18770
18771 # Take the output of nm and produce a listing of raw symbols and C names.
18772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18773
18774 # Transform the output of nm in a proper C declaration
18775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18776
18777 # Transform the output of nm in a C name address pair
18778 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18779
18780 # This is the shared library runtime path variable.
18781 runpath_var=$runpath_var
18782
18783 # This is the shared library path variable.
18784 shlibpath_var=$shlibpath_var
18785
18786 # Is shlibpath searched before the hard-coded library search path?
18787 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18788
18789 # How to hardcode a shared library path into an executable.
18790 hardcode_action=$hardcode_action_GCJ
18791
18792 # Whether we should hardcode library paths into libraries.
18793 hardcode_into_libs=$hardcode_into_libs
18794
18795 # Flag to hardcode \$libdir into a binary during linking.
18796 # This must work even if \$libdir does not exist.
18797 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18798
18799 # If ld is used when linking, flag to hardcode \$libdir into
18800 # a binary during linking. This must work even if \$libdir does
18801 # not exist.
18802 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18803
18804 # Whether we need a single -rpath flag with a separated argument.
18805 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18806
18807 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18808 # resulting binary.
18809 hardcode_direct=$hardcode_direct_GCJ
18810
18811 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18812 # resulting binary.
18813 hardcode_minus_L=$hardcode_minus_L_GCJ
18814
18815 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18816 # the resulting binary.
18817 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18818
18819 # Set to yes if building a shared library automatically hardcodes DIR into the library
18820 # and all subsequent libraries and executables linked against it.
18821 hardcode_automatic=$hardcode_automatic_GCJ
18822
18823 # Variables whose values should be saved in libtool wrapper scripts and
18824 # restored at relink time.
18825 variables_saved_for_relink="$variables_saved_for_relink"
18826
18827 # Whether libtool must link a program against all its dependency libraries.
18828 link_all_deplibs=$link_all_deplibs_GCJ
18829
18830 # Compile-time system search path for libraries
18831 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18832
18833 # Run-time system search path for libraries
18834 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18835
18836 # Fix the shell variable \$srcfile for the compiler.
18837 fix_srcfile_path=$lt_fix_srcfile_path
18838
18839 # Set to yes if exported symbols are required.
18840 always_export_symbols=$always_export_symbols_GCJ
18841
18842 # The commands to list exported symbols.
18843 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18844
18845 # The commands to extract the exported symbol list from a shared archive.
18846 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18847
18848 # Symbols that should not be listed in the preloaded symbols.
18849 exclude_expsyms=$lt_exclude_expsyms_GCJ
18850
18851 # Symbols that must always be exported.
18852 include_expsyms=$lt_include_expsyms_GCJ
18853
18854 # ### END LIBTOOL TAG CONFIG: $tagname
18855
18856 __EOF__
18857
18858
18859 else
18860   # If there is no Makefile yet, we rely on a make rule to execute
18861   # `config.status --recheck' to rerun these tests and create the
18862   # libtool script then.
18863   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18864   if test -f "$ltmain_in"; then
18865     test -f Makefile && make "$ltmain"
18866   fi
18867 fi
18868
18869
18870 ac_ext=c
18871 ac_cpp='$CPP $CPPFLAGS'
18872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18875
18876 CC="$lt_save_CC"
18877
18878         else
18879           tagname=""
18880         fi
18881         ;;
18882
18883       RC)
18884         
18885
18886 # Source file extension for RC test sources.
18887 ac_ext=rc
18888
18889 # Object file extension for compiled RC test sources.
18890 objext=o
18891 objext_RC=$objext
18892
18893 # Code to be used in simple compile tests
18894 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18895
18896 # Code to be used in simple link tests
18897 lt_simple_link_test_code="$lt_simple_compile_test_code"
18898
18899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18900
18901 # If no C compiler was specified, use CC.
18902 LTCC=${LTCC-"$CC"}
18903
18904 # If no C compiler flags were specified, use CFLAGS.
18905 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18906
18907 # Allow CC to be a program name with arguments.
18908 compiler=$CC
18909
18910
18911 # save warnings/boilerplate of simple test code
18912 ac_outfile=conftest.$ac_objext
18913 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18914 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18915 _lt_compiler_boilerplate=`cat conftest.err`
18916 $rm conftest*
18917
18918 ac_outfile=conftest.$ac_objext
18919 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18920 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18921 _lt_linker_boilerplate=`cat conftest.err`
18922 $rm conftest*
18923
18924
18925 # Allow CC to be a program name with arguments.
18926 lt_save_CC="$CC"
18927 CC=${RC-"windres"}
18928 compiler=$CC
18929 compiler_RC=$CC
18930 for cc_temp in $compiler""; do
18931   case $cc_temp in
18932     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18933     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18934     \-*) ;;
18935     *) break;;
18936   esac
18937 done
18938 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18939
18940 lt_cv_prog_compiler_c_o_RC=yes
18941
18942 # The else clause should only fire when bootstrapping the
18943 # libtool distribution, otherwise you forgot to ship ltmain.sh
18944 # with your package, and you will get complaints that there are
18945 # no rules to generate ltmain.sh.
18946 if test -f "$ltmain"; then
18947   # See if we are running on zsh, and set the options which allow our commands through
18948   # without removal of \ escapes.
18949   if test -n "${ZSH_VERSION+set}" ; then
18950     setopt NO_GLOB_SUBST
18951   fi
18952   # Now quote all the things that may contain metacharacters while being
18953   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18954   # variables and quote the copies for generation of the libtool script.
18955   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18956     SED SHELL STRIP \
18957     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18958     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18959     deplibs_check_method reload_flag reload_cmds need_locks \
18960     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18961     lt_cv_sys_global_symbol_to_c_name_address \
18962     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18963     old_postinstall_cmds old_postuninstall_cmds \
18964     compiler_RC \
18965     CC_RC \
18966     LD_RC \
18967     lt_prog_compiler_wl_RC \
18968     lt_prog_compiler_pic_RC \
18969     lt_prog_compiler_static_RC \
18970     lt_prog_compiler_no_builtin_flag_RC \
18971     export_dynamic_flag_spec_RC \
18972     thread_safe_flag_spec_RC \
18973     whole_archive_flag_spec_RC \
18974     enable_shared_with_static_runtimes_RC \
18975     old_archive_cmds_RC \
18976     old_archive_from_new_cmds_RC \
18977     predep_objects_RC \
18978     postdep_objects_RC \
18979     predeps_RC \
18980     postdeps_RC \
18981     compiler_lib_search_path_RC \
18982     archive_cmds_RC \
18983     archive_expsym_cmds_RC \
18984     postinstall_cmds_RC \
18985     postuninstall_cmds_RC \
18986     old_archive_from_expsyms_cmds_RC \
18987     allow_undefined_flag_RC \
18988     no_undefined_flag_RC \
18989     export_symbols_cmds_RC \
18990     hardcode_libdir_flag_spec_RC \
18991     hardcode_libdir_flag_spec_ld_RC \
18992     hardcode_libdir_separator_RC \
18993     hardcode_automatic_RC \
18994     module_cmds_RC \
18995     module_expsym_cmds_RC \
18996     lt_cv_prog_compiler_c_o_RC \
18997     fix_srcfile_path_RC \
18998     exclude_expsyms_RC \
18999     include_expsyms_RC; do
19000
19001     case $var in
19002     old_archive_cmds_RC | \
19003     old_archive_from_new_cmds_RC | \
19004     archive_cmds_RC | \
19005     archive_expsym_cmds_RC | \
19006     module_cmds_RC | \
19007     module_expsym_cmds_RC | \
19008     old_archive_from_expsyms_cmds_RC | \
19009     export_symbols_cmds_RC | \
19010     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19011     postinstall_cmds | postuninstall_cmds | \
19012     old_postinstall_cmds | old_postuninstall_cmds | \
19013     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19014       # Double-quote double-evaled strings.
19015       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19016       ;;
19017     *)
19018       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19019       ;;
19020     esac
19021   done
19022
19023   case $lt_echo in
19024   *'\$0 --fallback-echo"')
19025     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19026     ;;
19027   esac
19028
19029 cfgfile="$ofile"
19030
19031   cat <<__EOF__ >> "$cfgfile"
19032 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19033
19034 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19035
19036 # Shell to use when invoking shell scripts.
19037 SHELL=$lt_SHELL
19038
19039 # Whether or not to build shared libraries.
19040 build_libtool_libs=$enable_shared
19041
19042 # Whether or not to build static libraries.
19043 build_old_libs=$enable_static
19044
19045 # Whether or not to add -lc for building shared libraries.
19046 build_libtool_need_lc=$archive_cmds_need_lc_RC
19047
19048 # Whether or not to disallow shared libs when runtime libs are static
19049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19050
19051 # Whether or not to optimize for fast installation.
19052 fast_install=$enable_fast_install
19053
19054 # The host system.
19055 host_alias=$host_alias
19056 host=$host
19057 host_os=$host_os
19058
19059 # The build system.
19060 build_alias=$build_alias
19061 build=$build
19062 build_os=$build_os
19063
19064 # An echo program that does not interpret backslashes.
19065 echo=$lt_echo
19066
19067 # The archiver.
19068 AR=$lt_AR
19069 AR_FLAGS=$lt_AR_FLAGS
19070
19071 # A C compiler.
19072 LTCC=$lt_LTCC
19073
19074 # LTCC compiler flags.
19075 LTCFLAGS=$lt_LTCFLAGS
19076
19077 # A language-specific compiler.
19078 CC=$lt_compiler_RC
19079
19080 # Is the compiler the GNU C compiler?
19081 with_gcc=$GCC_RC
19082
19083 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19084 gcc_ver=\`gcc -dumpversion\`
19085
19086 # An ERE matcher.
19087 EGREP=$lt_EGREP
19088
19089 # The linker used to build libraries.
19090 LD=$lt_LD_RC
19091
19092 # Whether we need hard or soft links.
19093 LN_S=$lt_LN_S
19094
19095 # A BSD-compatible nm program.
19096 NM=$lt_NM
19097
19098 # A symbol stripping program
19099 STRIP=$lt_STRIP
19100
19101 # Used to examine libraries when file_magic_cmd begins "file"
19102 MAGIC_CMD=$MAGIC_CMD
19103
19104 # Used on cygwin: DLL creation program.
19105 DLLTOOL="$DLLTOOL"
19106
19107 # Used on cygwin: object dumper.
19108 OBJDUMP="$OBJDUMP"
19109
19110 # Used on cygwin: assembler.
19111 AS="$AS"
19112
19113 # The name of the directory that contains temporary libtool files.
19114 objdir=$objdir
19115
19116 # How to create reloadable object files.
19117 reload_flag=$lt_reload_flag
19118 reload_cmds=$lt_reload_cmds
19119
19120 # How to pass a linker flag through the compiler.
19121 wl=$lt_lt_prog_compiler_wl_RC
19122
19123 # Object file suffix (normally "o").
19124 objext="$ac_objext"
19125
19126 # Old archive suffix (normally "a").
19127 libext="$libext"
19128
19129 # Shared library suffix (normally ".so").
19130 shrext_cmds='$shrext_cmds'
19131
19132 # Executable file suffix (normally "").
19133 exeext="$exeext"
19134
19135 # Additional compiler flags for building library objects.
19136 pic_flag=$lt_lt_prog_compiler_pic_RC
19137 pic_mode=$pic_mode
19138
19139 # What is the maximum length of a command?
19140 max_cmd_len=$lt_cv_sys_max_cmd_len
19141
19142 # Does compiler simultaneously support -c and -o options?
19143 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19144
19145 # Must we lock files when doing compilation?
19146 need_locks=$lt_need_locks
19147
19148 # Do we need the lib prefix for modules?
19149 need_lib_prefix=$need_lib_prefix
19150
19151 # Do we need a version for libraries?
19152 need_version=$need_version
19153
19154 # Whether dlopen is supported.
19155 dlopen_support=$enable_dlopen
19156
19157 # Whether dlopen of programs is supported.
19158 dlopen_self=$enable_dlopen_self
19159
19160 # Whether dlopen of statically linked programs is supported.
19161 dlopen_self_static=$enable_dlopen_self_static
19162
19163 # Compiler flag to prevent dynamic linking.
19164 link_static_flag=$lt_lt_prog_compiler_static_RC
19165
19166 # Compiler flag to turn off builtin functions.
19167 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19168
19169 # Compiler flag to allow reflexive dlopens.
19170 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19171
19172 # Compiler flag to generate shared objects directly from archives.
19173 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19174
19175 # Compiler flag to generate thread-safe objects.
19176 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19177
19178 # Library versioning type.
19179 version_type=$version_type
19180
19181 # Format of library name prefix.
19182 libname_spec=$lt_libname_spec
19183
19184 # List of archive names.  First name is the real one, the rest are links.
19185 # The last name is the one that the linker finds with -lNAME.
19186 library_names_spec=$lt_library_names_spec
19187
19188 # The coded name of the library, if different from the real name.
19189 soname_spec=$lt_soname_spec
19190
19191 # Commands used to build and install an old-style archive.
19192 RANLIB=$lt_RANLIB
19193 old_archive_cmds=$lt_old_archive_cmds_RC
19194 old_postinstall_cmds=$lt_old_postinstall_cmds
19195 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19196
19197 # Create an old-style archive from a shared archive.
19198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19199
19200 # Create a temporary old-style archive to link instead of a shared archive.
19201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19202
19203 # Commands used to build and install a shared archive.
19204 archive_cmds=$lt_archive_cmds_RC
19205 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19206 postinstall_cmds=$lt_postinstall_cmds
19207 postuninstall_cmds=$lt_postuninstall_cmds
19208
19209 # Commands used to build a loadable module (assumed same as above if empty)
19210 module_cmds=$lt_module_cmds_RC
19211 module_expsym_cmds=$lt_module_expsym_cmds_RC
19212
19213 # Commands to strip libraries.
19214 old_striplib=$lt_old_striplib
19215 striplib=$lt_striplib
19216
19217 # Dependencies to place before the objects being linked to create a
19218 # shared library.
19219 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19220
19221 # Dependencies to place after the objects being linked to create a
19222 # shared library.
19223 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19224
19225 # Dependencies to place before the objects being linked to create a
19226 # shared library.
19227 predeps=$lt_predeps_RC
19228
19229 # Dependencies to place after the objects being linked to create a
19230 # shared library.
19231 postdeps=$lt_postdeps_RC
19232
19233 # The library search path used internally by the compiler when linking
19234 # a shared library.
19235 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19236
19237 # Method to check whether dependent libraries are shared objects.
19238 deplibs_check_method=$lt_deplibs_check_method
19239
19240 # Command to use when deplibs_check_method == file_magic.
19241 file_magic_cmd=$lt_file_magic_cmd
19242
19243 # Flag that allows shared libraries with undefined symbols to be built.
19244 allow_undefined_flag=$lt_allow_undefined_flag_RC
19245
19246 # Flag that forces no undefined symbols.
19247 no_undefined_flag=$lt_no_undefined_flag_RC
19248
19249 # Commands used to finish a libtool library installation in a directory.
19250 finish_cmds=$lt_finish_cmds
19251
19252 # Same as above, but a single script fragment to be evaled but not shown.
19253 finish_eval=$lt_finish_eval
19254
19255 # Take the output of nm and produce a listing of raw symbols and C names.
19256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19257
19258 # Transform the output of nm in a proper C declaration
19259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19260
19261 # Transform the output of nm in a C name address pair
19262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19263
19264 # This is the shared library runtime path variable.
19265 runpath_var=$runpath_var
19266
19267 # This is the shared library path variable.
19268 shlibpath_var=$shlibpath_var
19269
19270 # Is shlibpath searched before the hard-coded library search path?
19271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19272
19273 # How to hardcode a shared library path into an executable.
19274 hardcode_action=$hardcode_action_RC
19275
19276 # Whether we should hardcode library paths into libraries.
19277 hardcode_into_libs=$hardcode_into_libs
19278
19279 # Flag to hardcode \$libdir into a binary during linking.
19280 # This must work even if \$libdir does not exist.
19281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19282
19283 # If ld is used when linking, flag to hardcode \$libdir into
19284 # a binary during linking. This must work even if \$libdir does
19285 # not exist.
19286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19287
19288 # Whether we need a single -rpath flag with a separated argument.
19289 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19290
19291 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19292 # resulting binary.
19293 hardcode_direct=$hardcode_direct_RC
19294
19295 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19296 # resulting binary.
19297 hardcode_minus_L=$hardcode_minus_L_RC
19298
19299 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19300 # the resulting binary.
19301 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19302
19303 # Set to yes if building a shared library automatically hardcodes DIR into the library
19304 # and all subsequent libraries and executables linked against it.
19305 hardcode_automatic=$hardcode_automatic_RC
19306
19307 # Variables whose values should be saved in libtool wrapper scripts and
19308 # restored at relink time.
19309 variables_saved_for_relink="$variables_saved_for_relink"
19310
19311 # Whether libtool must link a program against all its dependency libraries.
19312 link_all_deplibs=$link_all_deplibs_RC
19313
19314 # Compile-time system search path for libraries
19315 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19316
19317 # Run-time system search path for libraries
19318 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19319
19320 # Fix the shell variable \$srcfile for the compiler.
19321 fix_srcfile_path=$lt_fix_srcfile_path
19322
19323 # Set to yes if exported symbols are required.
19324 always_export_symbols=$always_export_symbols_RC
19325
19326 # The commands to list exported symbols.
19327 export_symbols_cmds=$lt_export_symbols_cmds_RC
19328
19329 # The commands to extract the exported symbol list from a shared archive.
19330 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19331
19332 # Symbols that should not be listed in the preloaded symbols.
19333 exclude_expsyms=$lt_exclude_expsyms_RC
19334
19335 # Symbols that must always be exported.
19336 include_expsyms=$lt_include_expsyms_RC
19337
19338 # ### END LIBTOOL TAG CONFIG: $tagname
19339
19340 __EOF__
19341
19342
19343 else
19344   # If there is no Makefile yet, we rely on a make rule to execute
19345   # `config.status --recheck' to rerun these tests and create the
19346   # libtool script then.
19347   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19348   if test -f "$ltmain_in"; then
19349     test -f Makefile && make "$ltmain"
19350   fi
19351 fi
19352
19353
19354 ac_ext=c
19355 ac_cpp='$CPP $CPPFLAGS'
19356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19359
19360 CC="$lt_save_CC"
19361
19362         ;;
19363
19364       *)
19365         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19366 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19367    { (exit 1); exit 1; }; }
19368         ;;
19369       esac
19370
19371       # Append the new tag name to the list of available tags.
19372       if test -n "$tagname" ; then
19373       available_tags="$available_tags $tagname"
19374     fi
19375     fi
19376   done
19377   IFS="$lt_save_ifs"
19378
19379   # Now substitute the updated list of available tags.
19380   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19381     mv "${ofile}T" "$ofile"
19382     chmod +x "$ofile"
19383   else
19384     rm -f "${ofile}T"
19385     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19386 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19387    { (exit 1); exit 1; }; }
19388   fi
19389 fi
19390
19391
19392
19393 # This can be used to rebuild libtool when needed
19394 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19395
19396 # Always use our own libtool.
19397 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19398
19399 # Prevent multiple expansion
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411   
19412
19413   
19414
19415
19416   
19417        
19418        
19419
19420
19421 ac_ext=c
19422 ac_cpp='$CPP $CPPFLAGS'
19423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19426
19427
19428 ac_ext=c
19429 ac_cpp='$CPP $CPPFLAGS'
19430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19433 if test -n "$ac_tool_prefix"; then
19434   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19438 if test "${ac_cv_prog_CC+set}" = set; then
19439   echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
19441   if test -n "$CC"; then
19442   ac_cv_prog_CC="$CC" # Let the user override the test.
19443 else
19444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19445 for as_dir in $PATH
19446 do
19447   IFS=$as_save_IFS
19448   test -z "$as_dir" && as_dir=.
19449   for ac_exec_ext in '' $ac_executable_extensions; do
19450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19451     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19453     break 2
19454   fi
19455 done
19456 done
19457 IFS=$as_save_IFS
19458
19459 fi
19460 fi
19461 CC=$ac_cv_prog_CC
19462 if test -n "$CC"; then
19463   { echo "$as_me:$LINENO: result: $CC" >&5
19464 echo "${ECHO_T}$CC" >&6; }
19465 else
19466   { echo "$as_me:$LINENO: result: no" >&5
19467 echo "${ECHO_T}no" >&6; }
19468 fi
19469
19470
19471 fi
19472 if test -z "$ac_cv_prog_CC"; then
19473   ac_ct_CC=$CC
19474   # Extract the first word of "gcc", so it can be a program name with args.
19475 set dummy gcc; ac_word=$2
19476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19479   echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481   if test -n "$ac_ct_CC"; then
19482   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19483 else
19484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19485 for as_dir in $PATH
19486 do
19487   IFS=$as_save_IFS
19488   test -z "$as_dir" && as_dir=.
19489   for ac_exec_ext in '' $ac_executable_extensions; do
19490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19491     ac_cv_prog_ac_ct_CC="gcc"
19492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19493     break 2
19494   fi
19495 done
19496 done
19497 IFS=$as_save_IFS
19498
19499 fi
19500 fi
19501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19502 if test -n "$ac_ct_CC"; then
19503   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19504 echo "${ECHO_T}$ac_ct_CC" >&6; }
19505 else
19506   { echo "$as_me:$LINENO: result: no" >&5
19507 echo "${ECHO_T}no" >&6; }
19508 fi
19509
19510   if test "x$ac_ct_CC" = x; then
19511     CC=""
19512   else
19513     case $cross_compiling:$ac_tool_warned in
19514 yes:)
19515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19516 whose name does not start with the host triplet.  If you think this
19517 configuration is useful to you, please write to autoconf@gnu.org." >&5
19518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19519 whose name does not start with the host triplet.  If you think this
19520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19521 ac_tool_warned=yes ;;
19522 esac
19523     CC=$ac_ct_CC
19524   fi
19525 else
19526   CC="$ac_cv_prog_CC"
19527 fi
19528
19529 if test -z "$CC"; then
19530           if test -n "$ac_tool_prefix"; then
19531     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19532 set dummy ${ac_tool_prefix}cc; ac_word=$2
19533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19535 if test "${ac_cv_prog_CC+set}" = set; then
19536   echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538   if test -n "$CC"; then
19539   ac_cv_prog_CC="$CC" # Let the user override the test.
19540 else
19541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19542 for as_dir in $PATH
19543 do
19544   IFS=$as_save_IFS
19545   test -z "$as_dir" && as_dir=.
19546   for ac_exec_ext in '' $ac_executable_extensions; do
19547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19548     ac_cv_prog_CC="${ac_tool_prefix}cc"
19549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19550     break 2
19551   fi
19552 done
19553 done
19554 IFS=$as_save_IFS
19555
19556 fi
19557 fi
19558 CC=$ac_cv_prog_CC
19559 if test -n "$CC"; then
19560   { echo "$as_me:$LINENO: result: $CC" >&5
19561 echo "${ECHO_T}$CC" >&6; }
19562 else
19563   { echo "$as_me:$LINENO: result: no" >&5
19564 echo "${ECHO_T}no" >&6; }
19565 fi
19566
19567
19568   fi
19569 fi
19570 if test -z "$CC"; then
19571   # Extract the first word of "cc", so it can be a program name with args.
19572 set dummy cc; ac_word=$2
19573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19575 if test "${ac_cv_prog_CC+set}" = set; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578   if test -n "$CC"; then
19579   ac_cv_prog_CC="$CC" # Let the user override the test.
19580 else
19581   ac_prog_rejected=no
19582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19583 for as_dir in $PATH
19584 do
19585   IFS=$as_save_IFS
19586   test -z "$as_dir" && as_dir=.
19587   for ac_exec_ext in '' $ac_executable_extensions; do
19588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19589     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19590        ac_prog_rejected=yes
19591        continue
19592      fi
19593     ac_cv_prog_CC="cc"
19594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19595     break 2
19596   fi
19597 done
19598 done
19599 IFS=$as_save_IFS
19600
19601 if test $ac_prog_rejected = yes; then
19602   # We found a bogon in the path, so make sure we never use it.
19603   set dummy $ac_cv_prog_CC
19604   shift
19605   if test $@%:@ != 0; then
19606     # We chose a different compiler from the bogus one.
19607     # However, it has the same basename, so the bogon will be chosen
19608     # first if we set CC to just the basename; use the full file name.
19609     shift
19610     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19611   fi
19612 fi
19613 fi
19614 fi
19615 CC=$ac_cv_prog_CC
19616 if test -n "$CC"; then
19617   { echo "$as_me:$LINENO: result: $CC" >&5
19618 echo "${ECHO_T}$CC" >&6; }
19619 else
19620   { echo "$as_me:$LINENO: result: no" >&5
19621 echo "${ECHO_T}no" >&6; }
19622 fi
19623
19624
19625 fi
19626 if test -z "$CC"; then
19627   if test -n "$ac_tool_prefix"; then
19628   for ac_prog in cl.exe
19629   do
19630     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19634 if test "${ac_cv_prog_CC+set}" = set; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637   if test -n "$CC"; then
19638   ac_cv_prog_CC="$CC" # Let the user override the test.
19639 else
19640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19641 for as_dir in $PATH
19642 do
19643   IFS=$as_save_IFS
19644   test -z "$as_dir" && as_dir=.
19645   for ac_exec_ext in '' $ac_executable_extensions; do
19646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19647     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19649     break 2
19650   fi
19651 done
19652 done
19653 IFS=$as_save_IFS
19654
19655 fi
19656 fi
19657 CC=$ac_cv_prog_CC
19658 if test -n "$CC"; then
19659   { echo "$as_me:$LINENO: result: $CC" >&5
19660 echo "${ECHO_T}$CC" >&6; }
19661 else
19662   { echo "$as_me:$LINENO: result: no" >&5
19663 echo "${ECHO_T}no" >&6; }
19664 fi
19665
19666
19667     test -n "$CC" && break
19668   done
19669 fi
19670 if test -z "$CC"; then
19671   ac_ct_CC=$CC
19672   for ac_prog in cl.exe
19673 do
19674   # Extract the first word of "$ac_prog", so it can be a program name with args.
19675 set dummy $ac_prog; ac_word=$2
19676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   if test -n "$ac_ct_CC"; then
19682   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19683 else
19684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19685 for as_dir in $PATH
19686 do
19687   IFS=$as_save_IFS
19688   test -z "$as_dir" && as_dir=.
19689   for ac_exec_ext in '' $ac_executable_extensions; do
19690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19691     ac_cv_prog_ac_ct_CC="$ac_prog"
19692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19693     break 2
19694   fi
19695 done
19696 done
19697 IFS=$as_save_IFS
19698
19699 fi
19700 fi
19701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19702 if test -n "$ac_ct_CC"; then
19703   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19704 echo "${ECHO_T}$ac_ct_CC" >&6; }
19705 else
19706   { echo "$as_me:$LINENO: result: no" >&5
19707 echo "${ECHO_T}no" >&6; }
19708 fi
19709
19710
19711   test -n "$ac_ct_CC" && break
19712 done
19713
19714   if test "x$ac_ct_CC" = x; then
19715     CC=""
19716   else
19717     case $cross_compiling:$ac_tool_warned in
19718 yes:)
19719 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19720 whose name does not start with the host triplet.  If you think this
19721 configuration is useful to you, please write to autoconf@gnu.org." >&5
19722 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19723 whose name does not start with the host triplet.  If you think this
19724 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19725 ac_tool_warned=yes ;;
19726 esac
19727     CC=$ac_ct_CC
19728   fi
19729 fi
19730
19731 fi
19732
19733
19734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19735 See \`config.log' for more details." >&5
19736 echo "$as_me: error: no acceptable C compiler found in \$PATH
19737 See \`config.log' for more details." >&2;}
19738    { (exit 1); exit 1; }; }
19739
19740 # Provide some information about the compiler.
19741 echo "$as_me:$LINENO: checking for C compiler version" >&5
19742 ac_compiler=`set X $ac_compile; echo $2`
19743 { (ac_try="$ac_compiler --version >&5"
19744 case "(($ac_try" in
19745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746   *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749   (eval "$ac_compiler --version >&5") 2>&5
19750   ac_status=$?
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); }
19753 { (ac_try="$ac_compiler -v >&5"
19754 case "(($ac_try" in
19755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756   *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759   (eval "$ac_compiler -v >&5") 2>&5
19760   ac_status=$?
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); }
19763 { (ac_try="$ac_compiler -V >&5"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_compiler -V >&5") 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); }
19773
19774 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19775 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19776 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785
19786 int
19787 main ()
19788 {
19789 #ifndef __GNUC__
19790        choke me
19791 #endif
19792
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext
19798 if { (ac_try="$ac_compile"
19799 case "(($ac_try" in
19800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801   *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804   (eval "$ac_compile") 2>conftest.er1
19805   ac_status=$?
19806   grep -v '^ *+' conftest.er1 >conftest.err
19807   rm -f conftest.er1
19808   cat conftest.err >&5
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } && {
19811          test -z "$ac_c_werror_flag" ||
19812          test ! -s conftest.err
19813        } && test -s conftest.$ac_objext; then
19814   ac_compiler_gnu=yes
19815 else
19816   echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19818
19819         ac_compiler_gnu=no
19820 fi
19821
19822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19824
19825 fi
19826 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19827 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19828 GCC=`test $ac_compiler_gnu = yes && echo yes`
19829 ac_test_CFLAGS=${CFLAGS+set}
19830 ac_save_CFLAGS=$CFLAGS
19831 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19832 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19833 if test "${ac_cv_prog_cc_g+set}" = set; then
19834   echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836   ac_save_c_werror_flag=$ac_c_werror_flag
19837    ac_c_werror_flag=yes
19838    ac_cv_prog_cc_g=no
19839    CFLAGS="-g"
19840    cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h.  */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h.  */
19846
19847 int
19848 main ()
19849 {
19850
19851   ;
19852   return 0;
19853 }
19854 _ACEOF
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_compile") 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } && {
19869          test -z "$ac_c_werror_flag" ||
19870          test ! -s conftest.err
19871        } && test -s conftest.$ac_objext; then
19872   ac_cv_prog_cc_g=yes
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877         CFLAGS=""
19878       cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884
19885 int
19886 main ()
19887 {
19888
19889   ;
19890   return 0;
19891 }
19892 _ACEOF
19893 rm -f conftest.$ac_objext
19894 if { (ac_try="$ac_compile"
19895 case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_compile") 2>conftest.er1
19901   ac_status=$?
19902   grep -v '^ *+' conftest.er1 >conftest.err
19903   rm -f conftest.er1
19904   cat conftest.err >&5
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); } && {
19907          test -z "$ac_c_werror_flag" ||
19908          test ! -s conftest.err
19909        } && test -s conftest.$ac_objext; then
19910   :
19911 else
19912   echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915         ac_c_werror_flag=$ac_save_c_werror_flag
19916          CFLAGS="-g"
19917          cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923
19924 int
19925 main ()
19926 {
19927
19928   ;
19929   return 0;
19930 }
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936   *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939   (eval "$ac_compile") 2>conftest.er1
19940   ac_status=$?
19941   grep -v '^ *+' conftest.er1 >conftest.err
19942   rm -f conftest.er1
19943   cat conftest.err >&5
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } && {
19946          test -z "$ac_c_werror_flag" ||
19947          test ! -s conftest.err
19948        } && test -s conftest.$ac_objext; then
19949   ac_cv_prog_cc_g=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954         
19955 fi
19956
19957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19961 fi
19962
19963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964    ac_c_werror_flag=$ac_save_c_werror_flag
19965 fi
19966 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19968 if test "$ac_test_CFLAGS" = set; then
19969   CFLAGS=$ac_save_CFLAGS
19970 elif test $ac_cv_prog_cc_g = yes; then
19971   if test "$GCC" = yes; then
19972     CFLAGS="-g -O2"
19973   else
19974     CFLAGS="-g"
19975   fi
19976 else
19977   if test "$GCC" = yes; then
19978     CFLAGS="-O2"
19979   else
19980     CFLAGS=
19981   fi
19982 fi
19983 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19984 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19985 if test "${ac_cv_prog_cc_c89+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988   ac_cv_prog_cc_c89=no
19989 ac_save_CC=$CC
19990 cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h.  */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h.  */
19996 #include <stdarg.h>
19997 #include <stdio.h>
19998 #include <sys/types.h>
19999 #include <sys/stat.h>
20000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20001 struct buf { int x; };
20002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20003 static char *e (p, i)
20004      char **p;
20005      int i;
20006 {
20007   return p[i];
20008 }
20009 static char *f (char * (*g) (char **, int), char **p, ...)
20010 {
20011   char *s;
20012   va_list v;
20013   va_start (v,p);
20014   s = g (p, va_arg (v,int));
20015   va_end (v);
20016   return s;
20017 }
20018
20019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20020    function prototypes and stuff, but not '\xHH' hex character constants.
20021    These don't provoke an error unfortunately, instead are silently treated
20022    as 'x'.  The following induces an error, until -std is added to get
20023    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20024    array size at least.  It's necessary to write '\x00'==0 to get something
20025    that's true only with -std.  */
20026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20027
20028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20029    inside strings and character constants.  */
20030 #define FOO(x) 'x'
20031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20032
20033 int test (int i, double x);
20034 struct s1 {int (*f) (int a);};
20035 struct s2 {int (*f) (double a);};
20036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20037 int argc;
20038 char **argv;
20039 int
20040 main ()
20041 {
20042 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20043   ;
20044   return 0;
20045 }
20046 _ACEOF
20047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20048         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20049 do
20050   CC="$ac_save_CC $ac_arg"
20051   rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058   (eval "$ac_compile") 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } && {
20065          test -z "$ac_c_werror_flag" ||
20066          test ! -s conftest.err
20067        } && test -s conftest.$ac_objext; then
20068   ac_cv_prog_cc_c89=$ac_arg
20069 else
20070   echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20072
20073         
20074 fi
20075
20076 rm -f core conftest.err conftest.$ac_objext 
20077   test "x$ac_cv_prog_cc_c89" != "xno" && break
20078 done
20079 rm -f conftest.$ac_ext
20080 CC=$ac_save_CC
20081
20082 fi
20083 # AC_CACHE_VAL
20084 case "x$ac_cv_prog_cc_c89" in
20085   x)
20086     { echo "$as_me:$LINENO: result: none needed" >&5
20087 echo "${ECHO_T}none needed" >&6; } ;;
20088   xno)
20089     { echo "$as_me:$LINENO: result: unsupported" >&5
20090 echo "${ECHO_T}unsupported" >&6; } ;;
20091   *)
20092     CC="$CC $ac_cv_prog_cc_c89"
20093     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20094 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20095 esac
20096
20097
20098 ac_ext=c
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20103
20104 depcc="$CC"   am_compiler_list=
20105
20106 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20107 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20108 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20112   # We make a subdir and do the tests there.  Otherwise we can end up
20113   # making bogus files that we don't know about and never remove.  For
20114   # instance it was reported that on HP-UX the gcc test will end up
20115   # making a dummy file named `D' -- because `-MD' means `put the output
20116   # in D'.
20117   mkdir conftest.dir
20118   # Copy depcomp to subdir because otherwise we won't find it if we're
20119   # using a relative directory.
20120   cp "$am_depcomp" conftest.dir
20121   cd conftest.dir
20122   # We will build objects and dependencies in a subdirectory because
20123   # it helps to detect inapplicable dependency modes.  For instance
20124   # both Tru64's cc and ICC support -MD to output dependencies as a
20125   # side effect of compilation, but ICC will put the dependencies in
20126   # the current directory while Tru64 will put them in the object
20127   # directory.
20128   mkdir sub
20129
20130   am_cv_CC_dependencies_compiler_type=none
20131   if test "$am_compiler_list" = ""; then
20132      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20133   fi
20134   for depmode in $am_compiler_list; do
20135     # Setup a source with many dependencies, because some compilers
20136     # like to wrap large dependency lists on column 80 (with \), and
20137     # we should not choose a depcomp mode which is confused by this.
20138     #
20139     # We need to recreate these files for each test, as the compiler may
20140     # overwrite some of them when testing with obscure command lines.
20141     # This happens at least with the AIX C compiler.
20142     : > sub/conftest.c
20143     for i in 1 2 3 4 5 6; do
20144       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20145       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20146       # Solaris 8's {/usr,}/bin/sh.
20147       touch sub/conftst$i.h
20148     done
20149     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20150
20151     case $depmode in
20152     nosideeffect)
20153       # after this tag, mechanisms are not by side-effect, so they'll
20154       # only be used when explicitly requested
20155       if test "x$enable_dependency_tracking" = xyes; then
20156         continue
20157       else
20158         break
20159       fi
20160       ;;
20161     none) break ;;
20162     esac
20163     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20164     # mode.  It turns out that the SunPro C++ compiler does not properly
20165     # handle `-M -o', and we need to detect this.
20166     if depmode=$depmode \
20167        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20168        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20169        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20170          >/dev/null 2>conftest.err &&
20171        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20172        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20173        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20174        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20175       # icc doesn't choke on unknown options, it will just issue warnings
20176       # or remarks (even with -Werror).  So we grep stderr for any message
20177       # that says an option was ignored or not supported.
20178       # When given -MP, icc 7.0 and 7.1 complain thusly:
20179       #   icc: Command line warning: ignoring option '-M'; no argument required
20180       # The diagnosis changed in icc 8.0:
20181       #   icc: Command line remark: option '-MP' not supported
20182       if (grep 'ignoring option' conftest.err ||
20183           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20184         am_cv_CC_dependencies_compiler_type=$depmode
20185         break
20186       fi
20187     fi
20188   done
20189
20190   cd ..
20191   rm -rf conftest.dir
20192 else
20193   am_cv_CC_dependencies_compiler_type=none
20194 fi
20195
20196 fi
20197 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20198 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20200
20201  if 
20202   test "x$enable_dependency_tracking" != xno \
20203   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20204   am__fastdepCC_TRUE=
20205   am__fastdepCC_FALSE='#'
20206 else
20207   am__fastdepCC_TRUE='#'
20208   am__fastdepCC_FALSE=
20209 fi
20210
20211
20212
20213 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20214 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20215 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20216 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20217   echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219   cat >conftest.make <<\_ACEOF
20220 SHELL = /bin/sh
20221 all:
20222         @echo '@@@%%%=$(MAKE)=@@@%%%'
20223 _ACEOF
20224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20226   *@@@%%%=?*=@@@%%%*)
20227     eval ac_cv_prog_make_${ac_make}_set=yes;;
20228   *)
20229     eval ac_cv_prog_make_${ac_make}_set=no;;
20230 esac
20231 rm -f conftest.make
20232 fi
20233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20234   { echo "$as_me:$LINENO: result: yes" >&5
20235 echo "${ECHO_T}yes" >&6; }
20236   SET_MAKE=
20237 else
20238   { echo "$as_me:$LINENO: result: no" >&5
20239 echo "${ECHO_T}no" >&6; }
20240   SET_MAKE="MAKE=${MAKE-make}"
20241 fi
20242
20243
20244 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20245 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20246 if test "${ac_cv_header_stdc+set}" = set; then
20247   echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249   cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 #include <stdlib.h>
20256 #include <stdarg.h>
20257 #include <string.h>
20258 #include <float.h>
20259
20260 int
20261 main ()
20262 {
20263
20264   ;
20265   return 0;
20266 }
20267 _ACEOF
20268 rm -f conftest.$ac_objext
20269 if { (ac_try="$ac_compile"
20270 case "(($ac_try" in
20271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272   *) ac_try_echo=$ac_try;;
20273 esac
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275   (eval "$ac_compile") 2>conftest.er1
20276   ac_status=$?
20277   grep -v '^ *+' conftest.er1 >conftest.err
20278   rm -f conftest.er1
20279   cat conftest.err >&5
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } && {
20282          test -z "$ac_c_werror_flag" ||
20283          test ! -s conftest.err
20284        } && test -s conftest.$ac_objext; then
20285   ac_cv_header_stdc=yes
20286 else
20287   echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290         ac_cv_header_stdc=no
20291 fi
20292
20293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294
20295 if test $ac_cv_header_stdc = yes; then
20296   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20297   cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303 #include <string.h>
20304
20305 _ACEOF
20306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20307   $EGREP "memchr" >/dev/null 2>&1; then
20308   :
20309 else
20310   ac_cv_header_stdc=no
20311 fi
20312 rm -f conftest*
20313
20314 fi
20315
20316 if test $ac_cv_header_stdc = yes; then
20317   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20318   cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h.  */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h.  */
20324 #include <stdlib.h>
20325
20326 _ACEOF
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328   $EGREP "free" >/dev/null 2>&1; then
20329   :
20330 else
20331   ac_cv_header_stdc=no
20332 fi
20333 rm -f conftest*
20334
20335 fi
20336
20337 if test $ac_cv_header_stdc = yes; then
20338   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20339   if test "$cross_compiling" = yes; then
20340   :
20341 else
20342   cat >conftest.$ac_ext <<_ACEOF
20343 /* confdefs.h.  */
20344 _ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h.  */
20348 #include <ctype.h>
20349 #include <stdlib.h>
20350 #if ((' ' & 0x0FF) == 0x020)
20351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20353 #else
20354 # define ISLOWER(c) \
20355                    (('a' <= (c) && (c) <= 'i') \
20356                      || ('j' <= (c) && (c) <= 'r') \
20357                      || ('s' <= (c) && (c) <= 'z'))
20358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20359 #endif
20360
20361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20362 int
20363 main ()
20364 {
20365   int i;
20366   for (i = 0; i < 256; i++)
20367     if (XOR (islower (i), ISLOWER (i))
20368         || toupper (i) != TOUPPER (i))
20369       return 2;
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_link") 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20384   { (case "(($ac_try" in
20385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386   *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389   (eval "$ac_try") 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; }; then
20393   :
20394 else
20395   echo "$as_me: program exited with status $ac_status" >&5
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399 ( exit $ac_status )
20400 ac_cv_header_stdc=no
20401 fi
20402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20403 fi
20404
20405
20406 fi
20407 fi
20408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20410 if test $ac_cv_header_stdc = yes; then
20411   
20412 cat >>confdefs.h <<\_ACEOF
20413 @%:@define STDC_HEADERS 1
20414 _ACEOF
20415
20416 fi
20417
20418
20419
20420
20421
20422
20423
20424 ac_header_dirent=no
20425 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20426   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20427 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20428 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20430   echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432   cat >conftest.$ac_ext <<_ACEOF
20433 /* confdefs.h.  */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h.  */
20438 #include <sys/types.h>
20439 #include <$ac_hdr>
20440
20441 int
20442 main ()
20443 {
20444 if ((DIR *) 0)
20445 return 0;
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest.$ac_objext
20451 if { (ac_try="$ac_compile"
20452 case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_compile") 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } && {
20464          test -z "$ac_c_werror_flag" ||
20465          test ! -s conftest.err
20466        } && test -s conftest.$ac_objext; then
20467   eval "$as_ac_Header=yes"
20468 else
20469   echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20471
20472         eval "$as_ac_Header=no"
20473 fi
20474
20475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 fi
20477 ac_res=`eval echo '${'$as_ac_Header'}'`
20478                { echo "$as_me:$LINENO: result: $ac_res" >&5
20479 echo "${ECHO_T}$ac_res" >&6; }
20480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20481   cat >>confdefs.h <<_ACEOF
20482 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20483 _ACEOF
20484
20485 ac_header_dirent=$ac_hdr; break
20486 fi
20487
20488 done
20489 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20490 if test $ac_header_dirent = dirent.h; then
20491   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20492 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20493 if test "${ac_cv_search_opendir+set}" = set; then
20494   echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496   ac_func_search_save_LIBS=$LIBS
20497 cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503
20504 /* Override any GCC internal prototype to avoid an error.
20505    Use char because int might match the return type of a GCC
20506    builtin and then its argument prototype would still apply.  */
20507 #ifdef __cplusplus
20508 extern "C"
20509 #endif
20510 char opendir ();
20511 int
20512 main ()
20513 {
20514 return opendir ();
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 for ac_lib in '' dir; do
20520   if test -z "$ac_lib"; then
20521     ac_res="none required"
20522   else
20523     ac_res=-l$ac_lib
20524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20525   fi
20526   rm -f conftest.$ac_objext conftest$ac_exeext
20527 if { (ac_try="$ac_link"
20528 case "(($ac_try" in
20529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530   *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533   (eval "$ac_link") 2>conftest.er1
20534   ac_status=$?
20535   grep -v '^ *+' conftest.er1 >conftest.err
20536   rm -f conftest.er1
20537   cat conftest.err >&5
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); } && {
20540          test -z "$ac_c_werror_flag" ||
20541          test ! -s conftest.err
20542        } && test -s conftest$ac_exeext &&
20543        $as_test_x conftest$ac_exeext; then
20544   ac_cv_search_opendir=$ac_res
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549         
20550 fi
20551
20552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20553       conftest$ac_exeext 
20554   if test "${ac_cv_search_opendir+set}" = set; then
20555   break
20556 fi
20557 done
20558 if test "${ac_cv_search_opendir+set}" = set; then
20559   :
20560 else
20561   ac_cv_search_opendir=no
20562 fi
20563 rm conftest.$ac_ext
20564 LIBS=$ac_func_search_save_LIBS
20565 fi
20566 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20567 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20568 ac_res=$ac_cv_search_opendir
20569 if test "$ac_res" != no; then
20570   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20571   
20572 fi
20573
20574 else
20575   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20577 if test "${ac_cv_search_opendir+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   ac_func_search_save_LIBS=$LIBS
20581 cat >conftest.$ac_ext <<_ACEOF
20582 /* confdefs.h.  */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h.  */
20587
20588 /* Override any GCC internal prototype to avoid an error.
20589    Use char because int might match the return type of a GCC
20590    builtin and then its argument prototype would still apply.  */
20591 #ifdef __cplusplus
20592 extern "C"
20593 #endif
20594 char opendir ();
20595 int
20596 main ()
20597 {
20598 return opendir ();
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 for ac_lib in '' x; do
20604   if test -z "$ac_lib"; then
20605     ac_res="none required"
20606   else
20607     ac_res=-l$ac_lib
20608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20609   fi
20610   rm -f conftest.$ac_objext conftest$ac_exeext
20611 if { (ac_try="$ac_link"
20612 case "(($ac_try" in
20613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614   *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617   (eval "$ac_link") 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } && {
20624          test -z "$ac_c_werror_flag" ||
20625          test ! -s conftest.err
20626        } && test -s conftest$ac_exeext &&
20627        $as_test_x conftest$ac_exeext; then
20628   ac_cv_search_opendir=$ac_res
20629 else
20630   echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633         
20634 fi
20635
20636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20637       conftest$ac_exeext 
20638   if test "${ac_cv_search_opendir+set}" = set; then
20639   break
20640 fi
20641 done
20642 if test "${ac_cv_search_opendir+set}" = set; then
20643   :
20644 else
20645   ac_cv_search_opendir=no
20646 fi
20647 rm conftest.$ac_ext
20648 LIBS=$ac_func_search_save_LIBS
20649 fi
20650 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20651 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20652 ac_res=$ac_cv_search_opendir
20653 if test "$ac_res" != no; then
20654   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20655   
20656 fi
20657
20658 fi
20659
20660
20661
20662 for ac_header in unistd.h
20663 do
20664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20669   echo $ECHO_N "(cached) $ECHO_C" >&6
20670 fi
20671 ac_res=`eval echo '${'$as_ac_Header'}'`
20672                { echo "$as_me:$LINENO: result: $ac_res" >&5
20673 echo "${ECHO_T}$ac_res" >&6; }
20674 else
20675   # Is the header compilable?
20676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 $ac_includes_default
20685 @%:@include <$ac_header>
20686 _ACEOF
20687 rm -f conftest.$ac_objext
20688 if { (ac_try="$ac_compile"
20689 case "(($ac_try" in
20690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691   *) ac_try_echo=$ac_try;;
20692 esac
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694   (eval "$ac_compile") 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } && {
20701          test -z "$ac_c_werror_flag" ||
20702          test ! -s conftest.err
20703        } && test -s conftest.$ac_objext; then
20704   ac_header_compiler=yes
20705 else
20706   echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709         ac_header_compiler=no
20710 fi
20711
20712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20714 echo "${ECHO_T}$ac_header_compiler" >&6; }
20715
20716 # Is the header present?
20717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20719 cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 @%:@include <$ac_header>
20726 _ACEOF
20727 if { (ac_try="$ac_cpp conftest.$ac_ext"
20728 case "(($ac_try" in
20729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730   *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20734   ac_status=$?
20735   grep -v '^ *+' conftest.er1 >conftest.err
20736   rm -f conftest.er1
20737   cat conftest.err >&5
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); } >/dev/null && {
20740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20741          test ! -s conftest.err
20742        }; then
20743   ac_header_preproc=yes
20744 else
20745   echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20747
20748   ac_header_preproc=no
20749 fi
20750
20751 rm -f conftest.err conftest.$ac_ext
20752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20753 echo "${ECHO_T}$ac_header_preproc" >&6; }
20754
20755 # So?  What about this header?
20756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20757   yes:no: )
20758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20762     ac_header_preproc=yes
20763     ;;
20764   no:yes:* )
20765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20777     
20778     ;;
20779 esac
20780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785   eval "$as_ac_Header=\$ac_header_preproc"
20786 fi
20787 ac_res=`eval echo '${'$as_ac_Header'}'`
20788                { echo "$as_me:$LINENO: result: $ac_res" >&5
20789 echo "${ECHO_T}$ac_res" >&6; }
20790
20791 fi
20792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20793   cat >>confdefs.h <<_ACEOF
20794 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20795 _ACEOF
20796  
20797 else
20798   { { echo "$as_me:$LINENO: error: required header file missing" >&5
20799 echo "$as_me: error: required header file missing" >&2;}
20800    { (exit 1); exit 1; }; }
20801 fi
20802
20803 done
20804
20805
20806
20807
20808
20809
20810 for ac_header in sys/stat.h sys/wait.h sys/time.h sys/timeb.h
20811 do
20812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20814   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20817   echo $ECHO_N "(cached) $ECHO_C" >&6
20818 fi
20819 ac_res=`eval echo '${'$as_ac_Header'}'`
20820                { echo "$as_me:$LINENO: result: $ac_res" >&5
20821 echo "${ECHO_T}$ac_res" >&6; }
20822 else
20823   # Is the header compilable?
20824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20826 cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832 $ac_includes_default
20833 @%:@include <$ac_header>
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839   *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842   (eval "$ac_compile") 2>conftest.er1
20843   ac_status=$?
20844   grep -v '^ *+' conftest.er1 >conftest.err
20845   rm -f conftest.er1
20846   cat conftest.err >&5
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } && {
20849          test -z "$ac_c_werror_flag" ||
20850          test ! -s conftest.err
20851        } && test -s conftest.$ac_objext; then
20852   ac_header_compiler=yes
20853 else
20854   echo "$as_me: failed program was:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20856
20857         ac_header_compiler=no
20858 fi
20859
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20862 echo "${ECHO_T}$ac_header_compiler" >&6; }
20863
20864 # Is the header present?
20865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 @%:@include <$ac_header>
20874 _ACEOF
20875 if { (ac_try="$ac_cpp conftest.$ac_ext"
20876 case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20882   ac_status=$?
20883   grep -v '^ *+' conftest.er1 >conftest.err
20884   rm -f conftest.er1
20885   cat conftest.err >&5
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); } >/dev/null && {
20888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20889          test ! -s conftest.err
20890        }; then
20891   ac_header_preproc=yes
20892 else
20893   echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896   ac_header_preproc=no
20897 fi
20898
20899 rm -f conftest.err conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20901 echo "${ECHO_T}$ac_header_preproc" >&6; }
20902
20903 # So?  What about this header?
20904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20905   yes:no: )
20906     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20910     ac_header_preproc=yes
20911     ;;
20912   no:yes:* )
20913     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20915     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20916 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20917     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20919     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20920 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20923     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20925     
20926     ;;
20927 esac
20928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933   eval "$as_ac_Header=\$ac_header_preproc"
20934 fi
20935 ac_res=`eval echo '${'$as_ac_Header'}'`
20936                { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20938
20939 fi
20940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20941   cat >>confdefs.h <<_ACEOF
20942 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20943 _ACEOF
20944  
20945 fi
20946
20947 done
20948
20949
20950 # Check whether --enable-lua was given.
20951 if test "${enable_lua+set}" = set; then
20952   enableval=$enable_lua; case "${enableval}" in
20953        yes) lua=true ;;
20954        no)  lua=false ;;
20955        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-lua" >&5
20956 echo "$as_me: error: bad value ${enableval} for --enable-lua" >&2;}
20957    { (exit 1); exit 1; }; } ;;
20958      esac
20959 else
20960   lua=false
20961 fi
20962
20963
20964
20965 for ac_header in lua.h
20966 do
20967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20973 fi
20974 ac_res=`eval echo '${'$as_ac_Header'}'`
20975                { echo "$as_me:$LINENO: result: $ac_res" >&5
20976 echo "${ECHO_T}$ac_res" >&6; }
20977 else
20978   # Is the header compilable?
20979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 $ac_includes_default
20988 @%:@include <$ac_header>
20989 _ACEOF
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994   *) ac_try_echo=$ac_try;;
20995 esac
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997   (eval "$ac_compile") 2>conftest.er1
20998   ac_status=$?
20999   grep -v '^ *+' conftest.er1 >conftest.err
21000   rm -f conftest.er1
21001   cat conftest.err >&5
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } && {
21004          test -z "$ac_c_werror_flag" ||
21005          test ! -s conftest.err
21006        } && test -s conftest.$ac_objext; then
21007   ac_header_compiler=yes
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012         ac_header_compiler=no
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21017 echo "${ECHO_T}$ac_header_compiler" >&6; }
21018
21019 # Is the header present?
21020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21022 cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h.  */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h.  */
21028 @%:@include <$ac_header>
21029 _ACEOF
21030 if { (ac_try="$ac_cpp conftest.$ac_ext"
21031 case "(($ac_try" in
21032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033   *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21037   ac_status=$?
21038   grep -v '^ *+' conftest.er1 >conftest.err
21039   rm -f conftest.er1
21040   cat conftest.err >&5
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } >/dev/null && {
21043          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21044          test ! -s conftest.err
21045        }; then
21046   ac_header_preproc=yes
21047 else
21048   echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21050
21051   ac_header_preproc=no
21052 fi
21053
21054 rm -f conftest.err conftest.$ac_ext
21055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21056 echo "${ECHO_T}$ac_header_preproc" >&6; }
21057
21058 # So?  What about this header?
21059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21060   yes:no: )
21061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21065     ac_header_preproc=yes
21066     ;;
21067   no:yes:* )
21068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21080     
21081     ;;
21082 esac
21083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21086   echo $ECHO_N "(cached) $ECHO_C" >&6
21087 else
21088   eval "$as_ac_Header=\$ac_header_preproc"
21089 fi
21090 ac_res=`eval echo '${'$as_ac_Header'}'`
21091                { echo "$as_me:$LINENO: result: $ac_res" >&5
21092 echo "${ECHO_T}$ac_res" >&6; }
21093
21094 fi
21095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21096   cat >>confdefs.h <<_ACEOF
21097 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21098 _ACEOF
21099  
21100 else
21101   lua=false
21102 fi
21103
21104 done
21105
21106
21107 if test x$lua = xtrue; then
21108   { echo "$as_me:$LINENO: Will build the Lua module" >&5
21109 echo "$as_me: Will build the Lua module" >&6;}
21110 else
21111   { echo "$as_me:$LINENO: Skipping the lua module" >&5
21112 echo "$as_me: Skipping the lua module" >&6;}
21113 fi
21114
21115
21116  if test x$lua = xtrue; then
21117   WITH_LUA_TRUE=
21118   WITH_LUA_FALSE='#'
21119 else
21120   WITH_LUA_TRUE='#'
21121   WITH_LUA_FALSE=
21122 fi
21123
21124
21125
21126
21127 for ac_func in access atoi
21128 do
21129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135   cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21143 #define $ac_func innocuous_$ac_func
21144
21145 /* System header to define __stub macros and hopefully few prototypes,
21146     which can conflict with char $ac_func (); below.
21147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21148     <limits.h> exists even on freestanding compilers.  */
21149
21150 #ifdef __STDC__
21151 # include <limits.h>
21152 #else
21153 # include <assert.h>
21154 #endif
21155
21156 #undef $ac_func
21157
21158 /* Override any GCC internal prototype to avoid an error.
21159    Use char because int might match the return type of a GCC
21160    builtin and then its argument prototype would still apply.  */
21161 #ifdef __cplusplus
21162 extern "C"
21163 #endif
21164 char $ac_func ();
21165 /* The GNU C library defines this for functions which it implements
21166     to always fail with ENOSYS.  Some functions are actually named
21167     something starting with __ and the normal name is an alias.  */
21168 #if defined __stub_$ac_func || defined __stub___$ac_func
21169 choke me
21170 #endif
21171
21172 int
21173 main ()
21174 {
21175 return $ac_func ();
21176   ;
21177   return 0;
21178 }
21179 _ACEOF
21180 rm -f conftest.$ac_objext conftest$ac_exeext
21181 if { (ac_try="$ac_link"
21182 case "(($ac_try" in
21183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184   *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187   (eval "$ac_link") 2>conftest.er1
21188   ac_status=$?
21189   grep -v '^ *+' conftest.er1 >conftest.err
21190   rm -f conftest.er1
21191   cat conftest.err >&5
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); } && {
21194          test -z "$ac_c_werror_flag" ||
21195          test ! -s conftest.err
21196        } && test -s conftest$ac_exeext &&
21197        $as_test_x conftest$ac_exeext; then
21198   eval "$as_ac_var=yes"
21199 else
21200   echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203         eval "$as_ac_var=no"
21204 fi
21205
21206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21207       conftest$ac_exeext conftest.$ac_ext
21208 fi
21209 ac_res=`eval echo '${'$as_ac_var'}'`
21210                { echo "$as_me:$LINENO: result: $ac_res" >&5
21211 echo "${ECHO_T}$ac_res" >&6; }
21212 if test `eval echo '${'$as_ac_var'}'` = yes; then
21213   cat >>confdefs.h <<_ACEOF
21214 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21215 _ACEOF
21216  
21217 else
21218   { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
21219 echo "$as_me: error: required standard library function missing" >&2;}
21220    { (exit 1); exit 1; }; }
21221 fi
21222 done
21223
21224
21225
21226
21227
21228
21229
21230 for ac_func in snprintf gettimeofday ftime mkstemp mktemp
21231 do
21232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21236   echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238   cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h.  */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h.  */
21244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21246 #define $ac_func innocuous_$ac_func
21247
21248 /* System header to define __stub macros and hopefully few prototypes,
21249     which can conflict with char $ac_func (); below.
21250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21251     <limits.h> exists even on freestanding compilers.  */
21252
21253 #ifdef __STDC__
21254 # include <limits.h>
21255 #else
21256 # include <assert.h>
21257 #endif
21258
21259 #undef $ac_func
21260
21261 /* Override any GCC internal prototype to avoid an error.
21262    Use char because int might match the return type of a GCC
21263    builtin and then its argument prototype would still apply.  */
21264 #ifdef __cplusplus
21265 extern "C"
21266 #endif
21267 char $ac_func ();
21268 /* The GNU C library defines this for functions which it implements
21269     to always fail with ENOSYS.  Some functions are actually named
21270     something starting with __ and the normal name is an alias.  */
21271 #if defined __stub_$ac_func || defined __stub___$ac_func
21272 choke me
21273 #endif
21274
21275 int
21276 main ()
21277 {
21278 return $ac_func ();
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext conftest$ac_exeext
21284 if { (ac_try="$ac_link"
21285 case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290   (eval "$ac_link") 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } && {
21297          test -z "$ac_c_werror_flag" ||
21298          test ! -s conftest.err
21299        } && test -s conftest$ac_exeext &&
21300        $as_test_x conftest$ac_exeext; then
21301   eval "$as_ac_var=yes"
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306         eval "$as_ac_var=no"
21307 fi
21308
21309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21310       conftest$ac_exeext conftest.$ac_ext
21311 fi
21312 ac_res=`eval echo '${'$as_ac_var'}'`
21313                { echo "$as_me:$LINENO: result: $ac_res" >&5
21314 echo "${ECHO_T}$ac_res" >&6; }
21315 if test `eval echo '${'$as_ac_var'}'` = yes; then
21316   cat >>confdefs.h <<_ACEOF
21317 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21318 _ACEOF
21319  
21320 fi
21321 done
21322
21323
21324
21325
21326 { echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
21327 echo $ECHO_N "checking for st_mtim in struct stat... $ECHO_C" >&6; }
21328 if test "${ac_cv_struct_st_mtim+set}" = set; then
21329   echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331   cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 #include <sys/types.h>
21338 #include <sys/stat.h>
21339 int
21340 main ()
21341 {
21342 struct stat s; s.st_mtim;
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest.$ac_objext
21348 if { (ac_try="$ac_compile"
21349 case "(($ac_try" in
21350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351   *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354   (eval "$ac_compile") 2>conftest.er1
21355   ac_status=$?
21356   grep -v '^ *+' conftest.er1 >conftest.err
21357   rm -f conftest.er1
21358   cat conftest.err >&5
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); } && {
21361          test -z "$ac_c_werror_flag" ||
21362          test ! -s conftest.err
21363        } && test -s conftest.$ac_objext; then
21364   ac_cv_struct_st_mtim=yes
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369         ac_cv_struct_st_mtim=no
21370 fi
21371
21372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21373 fi
21374 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
21375 echo "${ECHO_T}$ac_cv_struct_st_mtim" >&6; }
21376 if test $ac_cv_struct_st_mtim = yes; then
21377   
21378 cat >>confdefs.h <<\_ACEOF
21379 @%:@define HAVE_ST_MTIM 1
21380 _ACEOF
21381
21382 fi
21383
21384
21385
21386 ac_config_files="$ac_config_files Makefile"
21387
21388 cat >confcache <<\_ACEOF
21389 # This file is a shell script that caches the results of configure
21390 # tests run on this system so they can be shared between configure
21391 # scripts and configure runs, see configure's option --config-cache.
21392 # It is not useful on other systems.  If it contains results you don't
21393 # want to keep, you may remove or edit it.
21394 #
21395 # config.status only pays attention to the cache file if you give it
21396 # the --recheck option to rerun configure.
21397 #
21398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21400 # following values.
21401
21402 _ACEOF
21403
21404 # The following way of writing the cache mishandles newlines in values,
21405 # but we know of no workaround that is simple, portable, and efficient.
21406 # So, we kill variables containing newlines.
21407 # Ultrix sh set writes to stderr and can't be redirected directly,
21408 # and sets the high bit in the cache file unless we assign to the vars.
21409 (
21410   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21411     eval ac_val=\$$ac_var
21412     case $ac_val in #(
21413     *${as_nl}*)
21414       case $ac_var in #(
21415       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21416 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21417       esac
21418       case $ac_var in #(
21419       _ | IFS | as_nl) ;; #(
21420       *) $as_unset $ac_var ;;
21421       esac ;;
21422     esac
21423   done
21424
21425   (set) 2>&1 |
21426     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21427     *${as_nl}ac_space=\ *)
21428       # `set' does not quote correctly, so add quotes (double-quote
21429       # substitution turns \\\\ into \\, and sed turns \\ into \).
21430       sed -n \
21431         "s/'/'\\\\''/g;
21432           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21433       ;; #(
21434     *)
21435       # `set' quotes correctly as required by POSIX, so do not add quotes.
21436       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21437       ;;
21438     esac |
21439     sort
21440 ) |
21441   sed '
21442      /^ac_cv_env_/b end
21443      t clear
21444      :clear
21445      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21446      t end
21447      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21448      :end' >>confcache
21449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21450   if test -w "$cache_file"; then
21451     test "x$cache_file" != "x/dev/null" &&
21452       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21453 echo "$as_me: updating cache $cache_file" >&6;}
21454     cat confcache >$cache_file
21455   else
21456     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21457 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21458   fi
21459 fi
21460 rm -f confcache
21461
21462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21463 # Let make expand exec_prefix.
21464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21465
21466 DEFS=-DHAVE_CONFIG_H
21467
21468 ac_libobjs=
21469 ac_ltlibobjs=
21470 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21471   # 1. Remove the extension, and $U if already installed.
21472   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21473   ac_i=`echo "$ac_i" | sed "$ac_script"`
21474   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21475   #    will be set to the directory where LIBOBJS objects are built.
21476   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21477   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21478 done
21479 LIB@&t@OBJS=$ac_libobjs
21480
21481 LTLIBOBJS=$ac_ltlibobjs
21482
21483
21484 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21485   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21486 Usually this means the macro was only invoked conditionally." >&5
21487 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21488 Usually this means the macro was only invoked conditionally." >&2;}
21489    { (exit 1); exit 1; }; }
21490 fi
21491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21492   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21493 Usually this means the macro was only invoked conditionally." >&5
21494 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21495 Usually this means the macro was only invoked conditionally." >&2;}
21496    { (exit 1); exit 1; }; }
21497 fi
21498 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21499   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21500 Usually this means the macro was only invoked conditionally." >&5
21501 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&2;}
21503    { (exit 1); exit 1; }; }
21504 fi
21505 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21506   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21507 Usually this means the macro was only invoked conditionally." >&5
21508 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21509 Usually this means the macro was only invoked conditionally." >&2;}
21510    { (exit 1); exit 1; }; }
21511 fi
21512 if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
21513   { { echo "$as_me:$LINENO: error: conditional \"WITH_LUA\" was never defined.
21514 Usually this means the macro was only invoked conditionally." >&5
21515 echo "$as_me: error: conditional \"WITH_LUA\" was never defined.
21516 Usually this means the macro was only invoked conditionally." >&2;}
21517    { (exit 1); exit 1; }; }
21518 fi
21519
21520 : ${CONFIG_STATUS=./config.status}
21521 ac_clean_files_save=$ac_clean_files
21522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21523 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21524 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21525 cat >$CONFIG_STATUS <<_ACEOF
21526 #! $SHELL
21527 # Generated by $as_me.
21528 # Run this file to recreate the current configuration.
21529 # Compiler output produced by configure, useful for debugging
21530 # configure, is in config.log if it exists.
21531
21532 debug=false
21533 ac_cs_recheck=false
21534 ac_cs_silent=false
21535 SHELL=\${CONFIG_SHELL-$SHELL}
21536 _ACEOF
21537
21538 cat >>$CONFIG_STATUS <<\_ACEOF
21539 ## --------------------- ##
21540 ## M4sh Initialization.  ##
21541 ## --------------------- ##
21542
21543 # Be more Bourne compatible
21544 DUALCASE=1; export DUALCASE # for MKS sh
21545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21546   emulate sh
21547   NULLCMD=:
21548   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21549   # is contrary to our usage.  Disable this feature.
21550   alias -g '${1+"$@"}'='"$@"'
21551   setopt NO_GLOB_SUBST
21552 else
21553   case `(set -o) 2>/dev/null` in
21554   *posix*) set -o posix ;;
21555 esac
21556
21557 fi
21558
21559
21560
21561
21562 # PATH needs CR
21563 # Avoid depending upon Character Ranges.
21564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21567 as_cr_digits='0123456789'
21568 as_cr_alnum=$as_cr_Letters$as_cr_digits
21569
21570 # The user is always right.
21571 if test "${PATH_SEPARATOR+set}" != set; then
21572   echo "#! /bin/sh" >conf$$.sh
21573   echo  "exit 0"   >>conf$$.sh
21574   chmod +x conf$$.sh
21575   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21576     PATH_SEPARATOR=';'
21577   else
21578     PATH_SEPARATOR=:
21579   fi
21580   rm -f conf$$.sh
21581 fi
21582
21583 # Support unset when possible.
21584 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21585   as_unset=unset
21586 else
21587   as_unset=false
21588 fi
21589
21590
21591 # IFS
21592 # We need space, tab and new line, in precisely that order.  Quoting is
21593 # there to prevent editors from complaining about space-tab.
21594 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21595 # splitting by setting IFS to empty value.)
21596 as_nl='
21597 '
21598 IFS=" ""        $as_nl"
21599
21600 # Find who we are.  Look in the path if we contain no directory separator.
21601 case $0 in
21602   *[\\/]* ) as_myself=$0 ;;
21603   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21604 for as_dir in $PATH
21605 do
21606   IFS=$as_save_IFS
21607   test -z "$as_dir" && as_dir=.
21608   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21609 done
21610 IFS=$as_save_IFS
21611
21612      ;;
21613 esac
21614 # We did not find ourselves, most probably we were run as `sh COMMAND'
21615 # in which case we are not to be found in the path.
21616 if test "x$as_myself" = x; then
21617   as_myself=$0
21618 fi
21619 if test ! -f "$as_myself"; then
21620   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21621   { (exit 1); exit 1; }
21622 fi
21623
21624 # Work around bugs in pre-3.0 UWIN ksh.
21625 for as_var in ENV MAIL MAILPATH
21626 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21627 done
21628 PS1='$ '
21629 PS2='> '
21630 PS4='+ '
21631
21632 # NLS nuisances.
21633 for as_var in \
21634   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21635   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21636   LC_TELEPHONE LC_TIME
21637 do
21638   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21639     eval $as_var=C; export $as_var
21640   else
21641     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21642   fi
21643 done
21644
21645 # Required to use basename.
21646 if expr a : '\(a\)' >/dev/null 2>&1 &&
21647    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21648   as_expr=expr
21649 else
21650   as_expr=false
21651 fi
21652
21653 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21654   as_basename=basename
21655 else
21656   as_basename=false
21657 fi
21658
21659
21660 # Name of the executable.
21661 as_me=`$as_basename -- "$0" ||
21662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21663          X"$0" : 'X\(//\)$' \| \
21664          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21665 echo X/"$0" |
21666     sed '/^.*\/\([^/][^/]*\)\/*$/{
21667             s//\1/
21668             q
21669           }
21670           /^X\/\(\/\/\)$/{
21671             s//\1/
21672             q
21673           }
21674           /^X\/\(\/\).*/{
21675             s//\1/
21676             q
21677           }
21678           s/.*/./; q'`
21679
21680 # CDPATH.
21681 $as_unset CDPATH
21682
21683
21684
21685   as_lineno_1=$LINENO
21686   as_lineno_2=$LINENO
21687   test "x$as_lineno_1" != "x$as_lineno_2" &&
21688   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21689
21690   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21691   # uniformly replaced by the line number.  The first 'sed' inserts a
21692   # line-number line after each line using $LINENO; the second 'sed'
21693   # does the real work.  The second script uses 'N' to pair each
21694   # line-number line with the line containing $LINENO, and appends
21695   # trailing '-' during substitution so that $LINENO is not a special
21696   # case at line end.
21697   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21698   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21699   # E. McMahon (1931-1989) for sed's syntax.  :-)
21700   sed -n '
21701     p
21702     /[$]LINENO/=
21703   ' <$as_myself |
21704     sed '
21705       s/[$]LINENO.*/&-/
21706       t lineno
21707       b
21708       :lineno
21709       N
21710       :loop
21711       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21712       t loop
21713       s/-\n.*//
21714     ' >$as_me.lineno &&
21715   chmod +x "$as_me.lineno" ||
21716     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21717    { (exit 1); exit 1; }; }
21718
21719   # Don't try to exec as it changes $[0], causing all sort of problems
21720   # (the dirname of $[0] is not the place where we might find the
21721   # original and so on.  Autoconf is especially sensitive to this).
21722   . "./$as_me.lineno"
21723   # Exit status is that of the last command.
21724   exit
21725 }
21726
21727
21728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21729   as_dirname=dirname
21730 else
21731   as_dirname=false
21732 fi
21733
21734 ECHO_C= ECHO_N= ECHO_T=
21735 case `echo -n x` in
21736 -n*)
21737   case `echo 'x\c'` in
21738   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21739   *)   ECHO_C='\c';;
21740   esac;;
21741 *)
21742   ECHO_N='-n';;
21743 esac
21744
21745 if expr a : '\(a\)' >/dev/null 2>&1 &&
21746    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21747   as_expr=expr
21748 else
21749   as_expr=false
21750 fi
21751
21752 rm -f conf$$ conf$$.exe conf$$.file
21753 if test -d conf$$.dir; then
21754   rm -f conf$$.dir/conf$$.file
21755 else
21756   rm -f conf$$.dir
21757   mkdir conf$$.dir
21758 fi
21759 echo >conf$$.file
21760 if ln -s conf$$.file conf$$ 2>/dev/null; then
21761   as_ln_s='ln -s'
21762   # ... but there are two gotchas:
21763   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21764   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21765   # In both cases, we have to default to `cp -p'.
21766   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21767     as_ln_s='cp -p'
21768 elif ln conf$$.file conf$$ 2>/dev/null; then
21769   as_ln_s=ln
21770 else
21771   as_ln_s='cp -p'
21772 fi
21773 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21774 rmdir conf$$.dir 2>/dev/null
21775
21776 if mkdir -p . 2>/dev/null; then
21777   as_mkdir_p=:
21778 else
21779   test -d ./-p && rmdir ./-p
21780   as_mkdir_p=false
21781 fi
21782
21783 if test -x / >/dev/null 2>&1; then
21784   as_test_x='test -x'
21785 else
21786   if ls -dL / >/dev/null 2>&1; then
21787     as_ls_L_option=L
21788   else
21789     as_ls_L_option=
21790   fi
21791   as_test_x='
21792     eval sh -c '\''
21793       if test -d "$1"; then
21794         test -d "$1/.";
21795       else
21796         case $1 in
21797         -*)set "./$1";;
21798         esac;
21799         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21800         ???[sx]*):;;*)false;;esac;fi
21801     '\'' sh
21802   '
21803 fi
21804 as_executable_p=$as_test_x
21805
21806 # Sed expression to map a string onto a valid CPP name.
21807 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21808
21809 # Sed expression to map a string onto a valid variable name.
21810 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21811
21812
21813 exec 6>&1
21814
21815 # Save the log message, to keep $[0] and so on meaningful, and to
21816 # report actual input values of CONFIG_FILES etc. instead of their
21817 # values after options handling.
21818 ac_log="
21819 This file was extended by $as_me, which was
21820 generated by GNU Autoconf 2.61.  Invocation command line was
21821
21822   CONFIG_FILES    = $CONFIG_FILES
21823   CONFIG_HEADERS  = $CONFIG_HEADERS
21824   CONFIG_LINKS    = $CONFIG_LINKS
21825   CONFIG_COMMANDS = $CONFIG_COMMANDS
21826   $ $0 $@
21827
21828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21829 "
21830
21831 _ACEOF
21832
21833 cat >>$CONFIG_STATUS <<_ACEOF
21834 # Files that config.status was made for.
21835 config_files="$ac_config_files"
21836 config_headers="$ac_config_headers"
21837 config_commands="$ac_config_commands"
21838
21839 _ACEOF
21840
21841 cat >>$CONFIG_STATUS <<\_ACEOF
21842 ac_cs_usage="\
21843 \`$as_me' instantiates files from templates according to the
21844 current configuration.
21845
21846 Usage: $0 [OPTIONS] [FILE]...
21847
21848   -h, --help       print this help, then exit
21849   -V, --version    print version number and configuration settings, then exit
21850   -q, --quiet      do not print progress messages
21851   -d, --debug      don't remove temporary files
21852       --recheck    update $as_me by reconfiguring in the same conditions
21853   --file=FILE[:TEMPLATE]
21854                    instantiate the configuration file FILE
21855   --header=FILE[:TEMPLATE]
21856                    instantiate the configuration header FILE
21857
21858 Configuration files:
21859 $config_files
21860
21861 Configuration headers:
21862 $config_headers
21863
21864 Configuration commands:
21865 $config_commands
21866
21867 Report bugs to <bug-autoconf@gnu.org>."
21868
21869 _ACEOF
21870 cat >>$CONFIG_STATUS <<_ACEOF
21871 ac_cs_version="\\
21872 config.status
21873 configured by $0, generated by GNU Autoconf 2.61,
21874   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21875
21876 Copyright (C) 2006 Free Software Foundation, Inc.
21877 This config.status script is free software; the Free Software Foundation
21878 gives unlimited permission to copy, distribute and modify it."
21879
21880 ac_pwd='$ac_pwd'
21881 srcdir='$srcdir'
21882 INSTALL='$INSTALL'
21883 MKDIR_P='$MKDIR_P'
21884 _ACEOF
21885
21886 cat >>$CONFIG_STATUS <<\_ACEOF
21887 # If no file are specified by the user, then we need to provide default
21888 # value.  By we need to know if files were specified by the user.
21889 ac_need_defaults=:
21890 while test $# != 0
21891 do
21892   case $1 in
21893   --*=*)
21894     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21895     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21896     ac_shift=:
21897     ;;
21898   *)
21899     ac_option=$1
21900     ac_optarg=$2
21901     ac_shift=shift
21902     ;;
21903   esac
21904
21905   case $ac_option in
21906   # Handling of the options.
21907   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21908     ac_cs_recheck=: ;;
21909   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21910     echo "$ac_cs_version"; exit ;;
21911   --debug | --debu | --deb | --de | --d | -d )
21912     debug=: ;;
21913   --file | --fil | --fi | --f )
21914     $ac_shift
21915     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21916     ac_need_defaults=false;;
21917   --header | --heade | --head | --hea )
21918     $ac_shift
21919     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21920     ac_need_defaults=false;;
21921   --he | --h)
21922     # Conflict between --help and --header
21923     { echo "$as_me: error: ambiguous option: $1
21924 Try \`$0 --help' for more information." >&2
21925    { (exit 1); exit 1; }; };;
21926   --help | --hel | -h )
21927     echo "$ac_cs_usage"; exit ;;
21928   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21929   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21930     ac_cs_silent=: ;;
21931
21932   # This is an error.
21933   -*) { echo "$as_me: error: unrecognized option: $1
21934 Try \`$0 --help' for more information." >&2
21935    { (exit 1); exit 1; }; } ;;
21936
21937   *) ac_config_targets="$ac_config_targets $1"
21938      ac_need_defaults=false ;;
21939
21940   esac
21941   shift
21942 done
21943
21944 ac_configure_extra_args=
21945
21946 if $ac_cs_silent; then
21947   exec 6>/dev/null
21948   ac_configure_extra_args="$ac_configure_extra_args --silent"
21949 fi
21950
21951 _ACEOF
21952 cat >>$CONFIG_STATUS <<_ACEOF
21953 if \$ac_cs_recheck; then
21954   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21955   CONFIG_SHELL=$SHELL
21956   export CONFIG_SHELL
21957   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21958 fi
21959
21960 _ACEOF
21961 cat >>$CONFIG_STATUS <<\_ACEOF
21962 exec 5>>config.log
21963 {
21964   echo
21965   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21966 @%:@@%:@ Running $as_me. @%:@@%:@
21967 _ASBOX
21968   echo "$ac_log"
21969 } >&5
21970
21971 _ACEOF
21972 cat >>$CONFIG_STATUS <<_ACEOF
21973 #
21974 # INIT-COMMANDS
21975 #
21976 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21977
21978 _ACEOF
21979
21980 cat >>$CONFIG_STATUS <<\_ACEOF
21981
21982 # Handling of arguments.
21983 for ac_config_target in $ac_config_targets
21984 do
21985   case $ac_config_target in
21986     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21987     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21988     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21989
21990   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21991 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21992    { (exit 1); exit 1; }; };;
21993   esac
21994 done
21995
21996
21997 # If the user did not use the arguments to specify the items to instantiate,
21998 # then the envvar interface is used.  Set only those that are not.
21999 # We use the long form for the default assignment because of an extremely
22000 # bizarre bug on SunOS 4.1.3.
22001 if $ac_need_defaults; then
22002   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22003   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22004   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22005 fi
22006
22007 # Have a temporary directory for convenience.  Make it in the build tree
22008 # simply because there is no reason against having it here, and in addition,
22009 # creating and moving files from /tmp can sometimes cause problems.
22010 # Hook for its removal unless debugging.
22011 # Note that there is a small window in which the directory will not be cleaned:
22012 # after its creation but before its name has been assigned to `$tmp'.
22013 $debug ||
22014 {
22015   tmp=
22016   trap 'exit_status=$?
22017   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22018 ' 0
22019   trap '{ (exit 1); exit 1; }' 1 2 13 15
22020 }
22021 # Create a (secure) tmp directory for tmp files.
22022
22023 {
22024   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22025   test -n "$tmp" && test -d "$tmp"
22026 }  ||
22027 {
22028   tmp=./conf$$-$RANDOM
22029   (umask 077 && mkdir "$tmp")
22030 } ||
22031 {
22032    echo "$me: cannot create a temporary directory in ." >&2
22033    { (exit 1); exit 1; }
22034 }
22035
22036 #
22037 # Set up the sed scripts for CONFIG_FILES section.
22038 #
22039
22040 # No need to generate the scripts if there are no CONFIG_FILES.
22041 # This happens for instance when ./config.status config.h
22042 if test -n "$CONFIG_FILES"; then
22043
22044 _ACEOF
22045
22046
22047
22048 ac_delim='%!_!# '
22049 for ac_last_try in false false false false false :; do
22050   cat >conf$$subs.sed <<_ACEOF
22051 SHELL!$SHELL$ac_delim
22052 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22053 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22054 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22055 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22056 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22057 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22058 exec_prefix!$exec_prefix$ac_delim
22059 prefix!$prefix$ac_delim
22060 program_transform_name!$program_transform_name$ac_delim
22061 bindir!$bindir$ac_delim
22062 sbindir!$sbindir$ac_delim
22063 libexecdir!$libexecdir$ac_delim
22064 datarootdir!$datarootdir$ac_delim
22065 datadir!$datadir$ac_delim
22066 sysconfdir!$sysconfdir$ac_delim
22067 sharedstatedir!$sharedstatedir$ac_delim
22068 localstatedir!$localstatedir$ac_delim
22069 includedir!$includedir$ac_delim
22070 oldincludedir!$oldincludedir$ac_delim
22071 docdir!$docdir$ac_delim
22072 infodir!$infodir$ac_delim
22073 htmldir!$htmldir$ac_delim
22074 dvidir!$dvidir$ac_delim
22075 pdfdir!$pdfdir$ac_delim
22076 psdir!$psdir$ac_delim
22077 libdir!$libdir$ac_delim
22078 localedir!$localedir$ac_delim
22079 mandir!$mandir$ac_delim
22080 DEFS!$DEFS$ac_delim
22081 ECHO_C!$ECHO_C$ac_delim
22082 ECHO_N!$ECHO_N$ac_delim
22083 ECHO_T!$ECHO_T$ac_delim
22084 LIBS!$LIBS$ac_delim
22085 build_alias!$build_alias$ac_delim
22086 host_alias!$host_alias$ac_delim
22087 target_alias!$target_alias$ac_delim
22088 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22089 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22090 INSTALL_DATA!$INSTALL_DATA$ac_delim
22091 am__isrc!$am__isrc$ac_delim
22092 CYGPATH_W!$CYGPATH_W$ac_delim
22093 PACKAGE!$PACKAGE$ac_delim
22094 VERSION!$VERSION$ac_delim
22095 ACLOCAL!$ACLOCAL$ac_delim
22096 AUTOCONF!$AUTOCONF$ac_delim
22097 AUTOMAKE!$AUTOMAKE$ac_delim
22098 AUTOHEADER!$AUTOHEADER$ac_delim
22099 MAKEINFO!$MAKEINFO$ac_delim
22100 install_sh!$install_sh$ac_delim
22101 STRIP!$STRIP$ac_delim
22102 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22103 mkdir_p!$mkdir_p$ac_delim
22104 AWK!$AWK$ac_delim
22105 SET_MAKE!$SET_MAKE$ac_delim
22106 am__leading_dot!$am__leading_dot$ac_delim
22107 AMTAR!$AMTAR$ac_delim
22108 am__tar!$am__tar$ac_delim
22109 am__untar!$am__untar$ac_delim
22110 build!$build$ac_delim
22111 build_cpu!$build_cpu$ac_delim
22112 build_vendor!$build_vendor$ac_delim
22113 build_os!$build_os$ac_delim
22114 host!$host$ac_delim
22115 host_cpu!$host_cpu$ac_delim
22116 host_vendor!$host_vendor$ac_delim
22117 host_os!$host_os$ac_delim
22118 CC!$CC$ac_delim
22119 CFLAGS!$CFLAGS$ac_delim
22120 LDFLAGS!$LDFLAGS$ac_delim
22121 CPPFLAGS!$CPPFLAGS$ac_delim
22122 ac_ct_CC!$ac_ct_CC$ac_delim
22123 EXEEXT!$EXEEXT$ac_delim
22124 OBJEXT!$OBJEXT$ac_delim
22125 DEPDIR!$DEPDIR$ac_delim
22126 am__include!$am__include$ac_delim
22127 am__quote!$am__quote$ac_delim
22128 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22129 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22130 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22131 CCDEPMODE!$CCDEPMODE$ac_delim
22132 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22133 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22134 SED!$SED$ac_delim
22135 GREP!$GREP$ac_delim
22136 EGREP!$EGREP$ac_delim
22137 LN_S!$LN_S$ac_delim
22138 ECHO!$ECHO$ac_delim
22139 AR!$AR$ac_delim
22140 RANLIB!$RANLIB$ac_delim
22141 CPP!$CPP$ac_delim
22142 CXX!$CXX$ac_delim
22143 CXXFLAGS!$CXXFLAGS$ac_delim
22144 ac_ct_CXX!$ac_ct_CXX$ac_delim
22145 CXXDEPMODE!$CXXDEPMODE$ac_delim
22146 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22147 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22148 _ACEOF
22149
22150   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22151     break
22152   elif $ac_last_try; then
22153     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22154 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22155    { (exit 1); exit 1; }; }
22156   else
22157     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22158   fi
22159 done
22160
22161 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22162 if test -n "$ac_eof"; then
22163   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22164   ac_eof=`expr $ac_eof + 1`
22165 fi
22166
22167 cat >>$CONFIG_STATUS <<_ACEOF
22168 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22170 _ACEOF
22171 sed '
22172 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22173 s/^/s,@/; s/!/@,|#_!!_#|/
22174 :n
22175 t n
22176 s/'"$ac_delim"'$/,g/; t
22177 s/$/\\/; p
22178 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22179 ' >>$CONFIG_STATUS <conf$$subs.sed
22180 rm -f conf$$subs.sed
22181 cat >>$CONFIG_STATUS <<_ACEOF
22182 CEOF$ac_eof
22183 _ACEOF
22184
22185
22186 ac_delim='%!_!# '
22187 for ac_last_try in false false false false false :; do
22188   cat >conf$$subs.sed <<_ACEOF
22189 CXXCPP!$CXXCPP$ac_delim
22190 F77!$F77$ac_delim
22191 FFLAGS!$FFLAGS$ac_delim
22192 ac_ct_F77!$ac_ct_F77$ac_delim
22193 LIBTOOL!$LIBTOOL$ac_delim
22194 WITH_LUA_TRUE!$WITH_LUA_TRUE$ac_delim
22195 WITH_LUA_FALSE!$WITH_LUA_FALSE$ac_delim
22196 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
22197 LTLIBOBJS!$LTLIBOBJS$ac_delim
22198 _ACEOF
22199
22200   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22201     break
22202   elif $ac_last_try; then
22203     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22204 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22205    { (exit 1); exit 1; }; }
22206   else
22207     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22208   fi
22209 done
22210
22211 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22212 if test -n "$ac_eof"; then
22213   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22214   ac_eof=`expr $ac_eof + 1`
22215 fi
22216
22217 cat >>$CONFIG_STATUS <<_ACEOF
22218 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22220 _ACEOF
22221 sed '
22222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22223 s/^/s,@/; s/!/@,|#_!!_#|/
22224 :n
22225 t n
22226 s/'"$ac_delim"'$/,g/; t
22227 s/$/\\/; p
22228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22229 ' >>$CONFIG_STATUS <conf$$subs.sed
22230 rm -f conf$$subs.sed
22231 cat >>$CONFIG_STATUS <<_ACEOF
22232 :end
22233 s/|#_!!_#|//g
22234 CEOF$ac_eof
22235 _ACEOF
22236
22237
22238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22240 # trailing colons and then remove the whole line if VPATH becomes empty
22241 # (actually we leave an empty line to preserve line numbers).
22242 if test "x$srcdir" = x.; then
22243   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22244 s/:*\$(srcdir):*/:/
22245 s/:*\${srcdir}:*/:/
22246 s/:*@srcdir@:*/:/
22247 s/^\([^=]*=[     ]*\):*/\1/
22248 s/:*$//
22249 s/^[^=]*=[       ]*$//
22250 }'
22251 fi
22252
22253 cat >>$CONFIG_STATUS <<\_ACEOF
22254 fi # test -n "$CONFIG_FILES"
22255
22256
22257 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22258 do
22259   case $ac_tag in
22260   :[FHLC]) ac_mode=$ac_tag; continue;;
22261   esac
22262   case $ac_mode$ac_tag in
22263   :[FHL]*:*);;
22264   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22265 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22266    { (exit 1); exit 1; }; };;
22267   :[FH]-) ac_tag=-:-;;
22268   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22269   esac
22270   ac_save_IFS=$IFS
22271   IFS=:
22272   set x $ac_tag
22273   IFS=$ac_save_IFS
22274   shift
22275   ac_file=$1
22276   shift
22277
22278   case $ac_mode in
22279   :L) ac_source=$1;;
22280   :[FH])
22281     ac_file_inputs=
22282     for ac_f
22283     do
22284       case $ac_f in
22285       -) ac_f="$tmp/stdin";;
22286       *) # Look for the file first in the build tree, then in the source tree
22287          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22288          # because $ac_f cannot contain `:'.
22289          test -f "$ac_f" ||
22290            case $ac_f in
22291            [\\/$]*) false;;
22292            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22293            esac ||
22294            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22295 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22296    { (exit 1); exit 1; }; };;
22297       esac
22298       ac_file_inputs="$ac_file_inputs $ac_f"
22299     done
22300
22301     # Let's still pretend it is `configure' which instantiates (i.e., don't
22302     # use $as_me), people would be surprised to read:
22303     #    /* config.h.  Generated by config.status.  */
22304     configure_input="Generated from "`IFS=:
22305           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22306     if test x"$ac_file" != x-; then
22307       configure_input="$ac_file.  $configure_input"
22308       { echo "$as_me:$LINENO: creating $ac_file" >&5
22309 echo "$as_me: creating $ac_file" >&6;}
22310     fi
22311
22312     case $ac_tag in
22313     *:-:* | *:-) cat >"$tmp/stdin";;
22314     esac
22315     ;;
22316   esac
22317
22318   ac_dir=`$as_dirname -- "$ac_file" ||
22319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22320          X"$ac_file" : 'X\(//\)[^/]' \| \
22321          X"$ac_file" : 'X\(//\)$' \| \
22322          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22323 echo X"$ac_file" |
22324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22325             s//\1/
22326             q
22327           }
22328           /^X\(\/\/\)[^/].*/{
22329             s//\1/
22330             q
22331           }
22332           /^X\(\/\/\)$/{
22333             s//\1/
22334             q
22335           }
22336           /^X\(\/\).*/{
22337             s//\1/
22338             q
22339           }
22340           s/.*/./; q'`
22341   { as_dir="$ac_dir"
22342   case $as_dir in #(
22343   -*) as_dir=./$as_dir;;
22344   esac
22345   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22346     as_dirs=
22347     while :; do
22348       case $as_dir in #(
22349       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22350       *) as_qdir=$as_dir;;
22351       esac
22352       as_dirs="'$as_qdir' $as_dirs"
22353       as_dir=`$as_dirname -- "$as_dir" ||
22354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22355          X"$as_dir" : 'X\(//\)[^/]' \| \
22356          X"$as_dir" : 'X\(//\)$' \| \
22357          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22358 echo X"$as_dir" |
22359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22360             s//\1/
22361             q
22362           }
22363           /^X\(\/\/\)[^/].*/{
22364             s//\1/
22365             q
22366           }
22367           /^X\(\/\/\)$/{
22368             s//\1/
22369             q
22370           }
22371           /^X\(\/\).*/{
22372             s//\1/
22373             q
22374           }
22375           s/.*/./; q'`
22376       test -d "$as_dir" && break
22377     done
22378     test -z "$as_dirs" || eval "mkdir $as_dirs"
22379   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22381    { (exit 1); exit 1; }; }; }
22382   ac_builddir=.
22383
22384 case "$ac_dir" in
22385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22386 *)
22387   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22388   # A ".." for each directory in $ac_dir_suffix.
22389   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22390   case $ac_top_builddir_sub in
22391   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22392   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22393   esac ;;
22394 esac
22395 ac_abs_top_builddir=$ac_pwd
22396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22397 # for backward compatibility:
22398 ac_top_builddir=$ac_top_build_prefix
22399
22400 case $srcdir in
22401   .)  # We are building in place.
22402     ac_srcdir=.
22403     ac_top_srcdir=$ac_top_builddir_sub
22404     ac_abs_top_srcdir=$ac_pwd ;;
22405   [\\/]* | ?:[\\/]* )  # Absolute name.
22406     ac_srcdir=$srcdir$ac_dir_suffix;
22407     ac_top_srcdir=$srcdir
22408     ac_abs_top_srcdir=$srcdir ;;
22409   *) # Relative name.
22410     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22411     ac_top_srcdir=$ac_top_build_prefix$srcdir
22412     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22413 esac
22414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22415
22416
22417   case $ac_mode in
22418   :F)
22419   #
22420   # CONFIG_FILE
22421   #
22422
22423   case $INSTALL in
22424   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22425   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22426   esac
22427   ac_MKDIR_P=$MKDIR_P
22428   case $MKDIR_P in
22429   [\\/$]* | ?:[\\/]* ) ;;
22430   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22431   esac
22432 _ACEOF
22433
22434 cat >>$CONFIG_STATUS <<\_ACEOF
22435 # If the template does not know about datarootdir, expand it.
22436 # FIXME: This hack should be removed a few years after 2.60.
22437 ac_datarootdir_hack=; ac_datarootdir_seen=
22438
22439 case `sed -n '/datarootdir/ {
22440   p
22441   q
22442 }
22443 /@datadir@/p
22444 /@docdir@/p
22445 /@infodir@/p
22446 /@localedir@/p
22447 /@mandir@/p
22448 ' $ac_file_inputs` in
22449 *datarootdir*) ac_datarootdir_seen=yes;;
22450 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22451   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22452 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22453 _ACEOF
22454 cat >>$CONFIG_STATUS <<_ACEOF
22455   ac_datarootdir_hack='
22456   s&@datadir@&$datadir&g
22457   s&@docdir@&$docdir&g
22458   s&@infodir@&$infodir&g
22459   s&@localedir@&$localedir&g
22460   s&@mandir@&$mandir&g
22461     s&\\\${datarootdir}&$datarootdir&g' ;;
22462 esac
22463 _ACEOF
22464
22465 # Neutralize VPATH when `$srcdir' = `.'.
22466 # Shell code in configure.ac might set extrasub.
22467 # FIXME: do we really want to maintain this feature?
22468 cat >>$CONFIG_STATUS <<_ACEOF
22469   sed "$ac_vpsub
22470 $extrasub
22471 _ACEOF
22472 cat >>$CONFIG_STATUS <<\_ACEOF
22473 :t
22474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22475 s&@configure_input@&$configure_input&;t t
22476 s&@top_builddir@&$ac_top_builddir_sub&;t t
22477 s&@srcdir@&$ac_srcdir&;t t
22478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22479 s&@top_srcdir@&$ac_top_srcdir&;t t
22480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22481 s&@builddir@&$ac_builddir&;t t
22482 s&@abs_builddir@&$ac_abs_builddir&;t t
22483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22484 s&@INSTALL@&$ac_INSTALL&;t t
22485 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22486 $ac_datarootdir_hack
22487 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22488
22489 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22490   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22491   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22492   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22493 which seems to be undefined.  Please make sure it is defined." >&5
22494 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22495 which seems to be undefined.  Please make sure it is defined." >&2;}
22496
22497   rm -f "$tmp/stdin"
22498   case $ac_file in
22499   -) cat "$tmp/out"; rm -f "$tmp/out";;
22500   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22501   esac
22502  ;;
22503   :H)
22504   #
22505   # CONFIG_HEADER
22506   #
22507 _ACEOF
22508
22509 # Transform confdefs.h into a sed script `conftest.defines', that
22510 # substitutes the proper values into config.h.in to produce config.h.
22511 rm -f conftest.defines conftest.tail
22512 # First, append a space to every undef/define line, to ease matching.
22513 echo 's/$/ /' >conftest.defines
22514 # Then, protect against being on the right side of a sed subst, or in
22515 # an unquoted here document, in config.status.  If some macros were
22516 # called several times there might be several #defines for the same
22517 # symbol, which is useless.  But do not sort them, since the last
22518 # AC_DEFINE must be honored.
22519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22520 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22521 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22522 # PARAMS is the parameter list in the macro definition--in most cases, it's
22523 # just an empty string.
22524 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22525 ac_dB='\\)[      (].*,\\1define\\2'
22526 ac_dC=' '
22527 ac_dD=' ,'
22528
22529 uniq confdefs.h |
22530   sed -n '
22531         t rset
22532         :rset
22533         s/^[     ]*#[    ]*define[       ][      ]*//
22534         t ok
22535         d
22536         :ok
22537         s/[\\&,]/\\&/g
22538         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22539         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22540   ' >>conftest.defines
22541
22542 # Remove the space that was appended to ease matching.
22543 # Then replace #undef with comments.  This is necessary, for
22544 # example, in the case of _POSIX_SOURCE, which is predefined and required
22545 # on some systems where configure will not decide to define it.
22546 # (The regexp can be short, since the line contains either #define or #undef.)
22547 echo 's/ $//
22548 s,^[     #]*u.*,/* & */,' >>conftest.defines
22549
22550 # Break up conftest.defines:
22551 ac_max_sed_lines=50
22552
22553 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22554 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22555 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22556 # et cetera.
22557 ac_in='$ac_file_inputs'
22558 ac_out='"$tmp/out1"'
22559 ac_nxt='"$tmp/out2"'
22560
22561 while :
22562 do
22563   # Write a here document:
22564     cat >>$CONFIG_STATUS <<_ACEOF
22565     # First, check the format of the line:
22566     cat >"\$tmp/defines.sed" <<\\CEOF
22567 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22568 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22569 b
22570 :def
22571 _ACEOF
22572   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22573   echo 'CEOF
22574     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22575   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22576   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22577   grep . conftest.tail >/dev/null || break
22578   rm -f conftest.defines
22579   mv conftest.tail conftest.defines
22580 done
22581 rm -f conftest.defines conftest.tail
22582
22583 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22584 cat >>$CONFIG_STATUS <<\_ACEOF
22585   if test x"$ac_file" != x-; then
22586     echo "/* $configure_input  */" >"$tmp/config.h"
22587     cat "$ac_result" >>"$tmp/config.h"
22588     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22589       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22590 echo "$as_me: $ac_file is unchanged" >&6;}
22591     else
22592       rm -f $ac_file
22593       mv "$tmp/config.h" $ac_file
22594     fi
22595   else
22596     echo "/* $configure_input  */"
22597     cat "$ac_result"
22598   fi
22599   rm -f "$tmp/out12"
22600 # Compute $ac_file's index in $config_headers.
22601 _am_arg=$ac_file
22602 _am_stamp_count=1
22603 for _am_header in $config_headers :; do
22604   case $_am_header in
22605     $_am_arg | $_am_arg:* )
22606       break ;;
22607     * )
22608       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22609   esac
22610 done
22611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22613          X"$_am_arg" : 'X\(//\)[^/]' \| \
22614          X"$_am_arg" : 'X\(//\)$' \| \
22615          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22616 echo X"$_am_arg" |
22617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22618             s//\1/
22619             q
22620           }
22621           /^X\(\/\/\)[^/].*/{
22622             s//\1/
22623             q
22624           }
22625           /^X\(\/\/\)$/{
22626             s//\1/
22627             q
22628           }
22629           /^X\(\/\).*/{
22630             s//\1/
22631             q
22632           }
22633           s/.*/./; q'`/stamp-h$_am_stamp_count
22634  ;;
22635   
22636   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22637 echo "$as_me: executing $ac_file commands" >&6;}
22638  ;;
22639   esac
22640
22641
22642   case $ac_file$ac_mode in
22643     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22644   # Strip MF so we end up with the name of the file.
22645   mf=`echo "$mf" | sed -e 's/:.*$//'`
22646   # Check whether this is an Automake generated Makefile or not.
22647   # We used to match only the files named `Makefile.in', but
22648   # some people rename them; so instead we look at the file content.
22649   # Grep'ing the first line is not enough: some people post-process
22650   # each Makefile.in and add a new line on top of each file to say so.
22651   # Grep'ing the whole file is not good either: AIX grep has a line
22652   # limit of 2048, but all sed's we know have understand at least 4000.
22653   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22654     dirpart=`$as_dirname -- "$mf" ||
22655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22656          X"$mf" : 'X\(//\)[^/]' \| \
22657          X"$mf" : 'X\(//\)$' \| \
22658          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22659 echo X"$mf" |
22660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22661             s//\1/
22662             q
22663           }
22664           /^X\(\/\/\)[^/].*/{
22665             s//\1/
22666             q
22667           }
22668           /^X\(\/\/\)$/{
22669             s//\1/
22670             q
22671           }
22672           /^X\(\/\).*/{
22673             s//\1/
22674             q
22675           }
22676           s/.*/./; q'`
22677   else
22678     continue
22679   fi
22680   # Extract the definition of DEPDIR, am__include, and am__quote
22681   # from the Makefile without running `make'.
22682   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22683   test -z "$DEPDIR" && continue
22684   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22685   test -z "am__include" && continue
22686   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22687   # When using ansi2knr, U may be empty or an underscore; expand it
22688   U=`sed -n 's/^U = //p' < "$mf"`
22689   # Find all dependency output files, they are included files with
22690   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22691   # simplest approach to changing $(DEPDIR) to its actual value in the
22692   # expansion.
22693   for file in `sed -n "
22694     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22695        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22696     # Make sure the directory exists.
22697     test -f "$dirpart/$file" && continue
22698     fdir=`$as_dirname -- "$file" ||
22699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22700          X"$file" : 'X\(//\)[^/]' \| \
22701          X"$file" : 'X\(//\)$' \| \
22702          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22703 echo X"$file" |
22704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22705             s//\1/
22706             q
22707           }
22708           /^X\(\/\/\)[^/].*/{
22709             s//\1/
22710             q
22711           }
22712           /^X\(\/\/\)$/{
22713             s//\1/
22714             q
22715           }
22716           /^X\(\/\).*/{
22717             s//\1/
22718             q
22719           }
22720           s/.*/./; q'`
22721     { as_dir=$dirpart/$fdir
22722   case $as_dir in #(
22723   -*) as_dir=./$as_dir;;
22724   esac
22725   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22726     as_dirs=
22727     while :; do
22728       case $as_dir in #(
22729       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22730       *) as_qdir=$as_dir;;
22731       esac
22732       as_dirs="'$as_qdir' $as_dirs"
22733       as_dir=`$as_dirname -- "$as_dir" ||
22734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22735          X"$as_dir" : 'X\(//\)[^/]' \| \
22736          X"$as_dir" : 'X\(//\)$' \| \
22737          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22738 echo X"$as_dir" |
22739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22740             s//\1/
22741             q
22742           }
22743           /^X\(\/\/\)[^/].*/{
22744             s//\1/
22745             q
22746           }
22747           /^X\(\/\/\)$/{
22748             s//\1/
22749             q
22750           }
22751           /^X\(\/\).*/{
22752             s//\1/
22753             q
22754           }
22755           s/.*/./; q'`
22756       test -d "$as_dir" && break
22757     done
22758     test -z "$as_dirs" || eval "mkdir $as_dirs"
22759   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22760 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22761    { (exit 1); exit 1; }; }; }
22762     # echo "creating $dirpart/$file"
22763     echo '# dummy' > "$dirpart/$file"
22764   done
22765 done
22766  ;;
22767
22768   esac
22769 done # for ac_tag
22770
22771
22772 { (exit 0); exit 0; }
22773 _ACEOF
22774 chmod +x $CONFIG_STATUS
22775 ac_clean_files=$ac_clean_files_save
22776
22777
22778 # configure is writing to config.log, and then calls config.status.
22779 # config.status does its own redirection, appending to config.log.
22780 # Unfortunately, on DOS this fails, as config.log is still kept open
22781 # by configure, so config.status won't be able to write to it; its
22782 # output is simply discarded.  So we exec the FD to /dev/null,
22783 # effectively closing config.log, so it can be properly (re)opened and
22784 # appended to by config.status.  When coming back to configure, we
22785 # need to make the FD available again.
22786 if test "$no_create" != yes; then
22787   ac_cs_success=:
22788   ac_config_status_args=
22789   test "$silent" = yes &&
22790     ac_config_status_args="$ac_config_status_args --quiet"
22791   exec 5>/dev/null
22792   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22793   exec 5>>config.log
22794   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22795   # would make configure fail if this is the last instruction.
22796   $ac_cs_success || { (exit 1); exit 1; }
22797 fi
22798
22799