Fix memory leak issues
[platform/core/uifw/anthy.git] / configure
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 LIBOBJS=
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="src-main/main.c"
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 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 CC
829 CFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 CPP
845 build
846 build_cpu
847 build_vendor
848 build_os
849 host
850 host_cpu
851 host_vendor
852 host_os
853 GREP
854 EGREP
855 LN_S
856 ECHO
857 AR
858 RANLIB
859 CXX
860 CXXFLAGS
861 ac_ct_CXX
862 CXXDEPMODE
863 am__fastdepCXX_TRUE
864 am__fastdepCXX_FALSE
865 CXXCPP
866 F77
867 FFLAGS
868 ac_ct_F77
869 LIBTOOL
870 EMACS
871 EMACSLOADPATH
872 lispdir
873 ELISP_TRUE
874 ELISP_FALSE
875 LIBOBJS
876 LTLIBOBJS'
877 ac_subst_files=''
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CPP
887 CXX
888 CXXFLAGS
889 CCC
890 CXXCPP
891 F77
892 FFLAGS
893 EMACS
894 EMACSLOADPATH'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=no ;;
1005
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015
1016   -enable-* | --enable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=\$ac_optarg ;;
1024
1025   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027   | --exec | --exe | --ex)
1028     ac_prev=exec_prefix ;;
1029   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031   | --exec=* | --exe=* | --ex=*)
1032     exec_prefix=$ac_optarg ;;
1033
1034   -gas | --gas | --ga | --g)
1035     # Obsolete; use --with-gas.
1036     with_gas=yes ;;
1037
1038   -help | --help | --hel | --he | -h)
1039     ac_init_help=long ;;
1040   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041     ac_init_help=recursive ;;
1042   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043     ac_init_help=short ;;
1044
1045   -host | --host | --hos | --ho)
1046     ac_prev=host_alias ;;
1047   -host=* | --host=* | --hos=* | --ho=*)
1048     host_alias=$ac_optarg ;;
1049
1050   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051     ac_prev=htmldir ;;
1052   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053   | --ht=*)
1054     htmldir=$ac_optarg ;;
1055
1056   -includedir | --includedir | --includedi | --included | --include \
1057   | --includ | --inclu | --incl | --inc)
1058     ac_prev=includedir ;;
1059   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060   | --includ=* | --inclu=* | --incl=* | --inc=*)
1061     includedir=$ac_optarg ;;
1062
1063   -infodir | --infodir | --infodi | --infod | --info | --inf)
1064     ac_prev=infodir ;;
1065   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066     infodir=$ac_optarg ;;
1067
1068   -libdir | --libdir | --libdi | --libd)
1069     ac_prev=libdir ;;
1070   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071     libdir=$ac_optarg ;;
1072
1073   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074   | --libexe | --libex | --libe)
1075     ac_prev=libexecdir ;;
1076   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077   | --libexe=* | --libex=* | --libe=*)
1078     libexecdir=$ac_optarg ;;
1079
1080   -localedir | --localedir | --localedi | --localed | --locale)
1081     ac_prev=localedir ;;
1082   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083     localedir=$ac_optarg ;;
1084
1085   -localstatedir | --localstatedir | --localstatedi | --localstated \
1086   | --localstate | --localstat | --localsta | --localst | --locals)
1087     ac_prev=localstatedir ;;
1088   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090     localstatedir=$ac_optarg ;;
1091
1092   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093     ac_prev=mandir ;;
1094   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095     mandir=$ac_optarg ;;
1096
1097   -nfp | --nfp | --nf)
1098     # Obsolete; use --without-fp.
1099     with_fp=no ;;
1100
1101   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102   | --no-cr | --no-c | -n)
1103     no_create=yes ;;
1104
1105   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107     no_recursion=yes ;;
1108
1109   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111   | --oldin | --oldi | --old | --ol | --o)
1112     ac_prev=oldincludedir ;;
1113   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116     oldincludedir=$ac_optarg ;;
1117
1118   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119     ac_prev=prefix ;;
1120   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121     prefix=$ac_optarg ;;
1122
1123   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124   | --program-pre | --program-pr | --program-p)
1125     ac_prev=program_prefix ;;
1126   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128     program_prefix=$ac_optarg ;;
1129
1130   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131   | --program-suf | --program-su | --program-s)
1132     ac_prev=program_suffix ;;
1133   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135     program_suffix=$ac_optarg ;;
1136
1137   -program-transform-name | --program-transform-name \
1138   | --program-transform-nam | --program-transform-na \
1139   | --program-transform-n | --program-transform- \
1140   | --program-transform | --program-transfor \
1141   | --program-transfo | --program-transf \
1142   | --program-trans | --program-tran \
1143   | --progr-tra | --program-tr | --program-t)
1144     ac_prev=program_transform_name ;;
1145   -program-transform-name=* | --program-transform-name=* \
1146   | --program-transform-nam=* | --program-transform-na=* \
1147   | --program-transform-n=* | --program-transform-=* \
1148   | --program-transform=* | --program-transfor=* \
1149   | --program-transfo=* | --program-transf=* \
1150   | --program-trans=* | --program-tran=* \
1151   | --progr-tra=* | --program-tr=* | --program-t=*)
1152     program_transform_name=$ac_optarg ;;
1153
1154   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155     ac_prev=pdfdir ;;
1156   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157     pdfdir=$ac_optarg ;;
1158
1159   -psdir | --psdir | --psdi | --psd | --ps)
1160     ac_prev=psdir ;;
1161   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162     psdir=$ac_optarg ;;
1163
1164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165   | -silent | --silent | --silen | --sile | --sil)
1166     silent=yes ;;
1167
1168   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169     ac_prev=sbindir ;;
1170   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171   | --sbi=* | --sb=*)
1172     sbindir=$ac_optarg ;;
1173
1174   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176   | --sharedst | --shareds | --shared | --share | --shar \
1177   | --sha | --sh)
1178     ac_prev=sharedstatedir ;;
1179   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182   | --sha=* | --sh=*)
1183     sharedstatedir=$ac_optarg ;;
1184
1185   -site | --site | --sit)
1186     ac_prev=site ;;
1187   -site=* | --site=* | --sit=*)
1188     site=$ac_optarg ;;
1189
1190   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191     ac_prev=srcdir ;;
1192   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193     srcdir=$ac_optarg ;;
1194
1195   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196   | --syscon | --sysco | --sysc | --sys | --sy)
1197     ac_prev=sysconfdir ;;
1198   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200     sysconfdir=$ac_optarg ;;
1201
1202   -target | --target | --targe | --targ | --tar | --ta | --t)
1203     ac_prev=target_alias ;;
1204   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205     target_alias=$ac_optarg ;;
1206
1207   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208     verbose=yes ;;
1209
1210   -version | --version | --versio | --versi | --vers | -V)
1211     ac_init_version=: ;;
1212
1213   -with-* | --with-*)
1214     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid package name: $ac_package" >&2
1227    { (exit 1); exit 1; }; }
1228     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229     eval with_$ac_package=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { echo "$as_me: error: Working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$0" : 'X\(//\)[^/]' \| \
1336          X"$0" : 'X\(//\)$' \| \
1337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR           user executables [EPREFIX/bin]
1432   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR       program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR           object code libraries [EPREFIX/lib]
1438   --includedir=DIR       C header files [PREFIX/include]
1439   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR          info documentation [DATAROOTDIR/info]
1443   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR           man documentation [DATAROOTDIR/man]
1445   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1446   --htmldir=DIR          html documentation [DOCDIR]
1447   --dvidir=DIR           dvi documentation [DOCDIR]
1448   --pdfdir=DIR           pdf documentation [DOCDIR]
1449   --psdir=DIR            ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 Program names:
1455   --program-prefix=PREFIX            prepend PREFIX to installed program names
1456   --program-suffix=SUFFIX            append SUFFIX to installed program names
1457   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1458
1459 System types:
1460   --build=BUILD     configure for building on BUILD [guessed]
1461   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466
1467   cat <<\_ACEOF
1468
1469 Optional Features:
1470   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472   --disable-dependency-tracking  speeds up one-time build
1473   --enable-dependency-tracking   do not reject slow dependency extractors
1474   --enable-shared[=PKGS]  build shared libraries [default=yes]
1475   --enable-static[=PKGS]  build static libraries [default=yes]
1476   --enable-fast-install[=PKGS]
1477                           optimize for fast installation [default=yes]
1478   --disable-libtool-lock  avoid locking (might break parallel builds)
1479
1480 Optional Packages:
1481   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484   --with-pic              try to use only PIC/non-PIC objects [default=use
1485                           both]
1486   --with-tags[=TAGS]      include additional configurations [automatic]
1487   --with-lispdir          override the default lisp directory
1488
1489 Some influential environment variables:
1490   CC          C compiler command
1491   CFLAGS      C compiler flags
1492   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1493               nonstandard directory <lib dir>
1494   LIBS        libraries to pass to the linker, e.g. -l<library>
1495   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CPP         C preprocessor
1498   CXX         C++ compiler command
1499   CXXFLAGS    C++ compiler flags
1500   CXXCPP      C++ preprocessor
1501   F77         Fortran 77 compiler command
1502   FFLAGS      Fortran 77 compiler flags
1503   EMACS       the Emacs editor command
1504   EMACSLOADPATH
1505               the Emacs library search path
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515   # If there are subdirs, report their specific --help.
1516   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517     test -d "$ac_dir" || continue
1518     ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524   # A ".." for each directory in $ac_dir_suffix.
1525   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526   case $ac_top_builddir_sub in
1527   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529   esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537   .)  # We are building in place.
1538     ac_srcdir=.
1539     ac_top_srcdir=$ac_top_builddir_sub
1540     ac_abs_top_srcdir=$ac_pwd ;;
1541   [\\/]* | ?:[\\/]* )  # Absolute name.
1542     ac_srcdir=$srcdir$ac_dir_suffix;
1543     ac_top_srcdir=$srcdir
1544     ac_abs_top_srcdir=$srcdir ;;
1545   *) # Relative name.
1546     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547     ac_top_srcdir=$ac_top_build_prefix$srcdir
1548     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552     cd "$ac_dir" || { ac_status=$?; continue; }
1553     # Check for guested configure.
1554     if test -f "$ac_srcdir/configure.gnu"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557     elif test -f "$ac_srcdir/configure"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure" --help=recursive
1560     else
1561       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562     fi || ac_status=$?
1563     cd "$ac_pwd" || { ac_status=$?; break; }
1564   done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569   cat <<\_ACEOF
1570 configure
1571 generated by GNU Autoconf 2.61
1572
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578   exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by $as_me, which was
1585 generated by GNU Autoconf 2.61.  Invocation command line was
1586
1587   $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1605
1606 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1607 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1610 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1611 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1612 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648   for ac_arg
1649   do
1650     case $ac_arg in
1651     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653     | -silent | --silent | --silen | --sile | --sil)
1654       continue ;;
1655     *\'*)
1656       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657     esac
1658     case $ac_pass in
1659     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660     2)
1661       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662       if test $ac_must_keep_next = true; then
1663         ac_must_keep_next=false # Got value, back to normal.
1664       else
1665         case $ac_arg in
1666           *=* | --config-cache | -C | -disable-* | --disable-* \
1667           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669           | -with-* | --with-* | -without-* | --without-* | --x)
1670             case "$ac_configure_args0 " in
1671               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672             esac
1673             ;;
1674           -* ) ac_must_keep_next=true ;;
1675         esac
1676       fi
1677       ac_configure_args="$ac_configure_args '$ac_arg'"
1678       ;;
1679     esac
1680   done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log.  We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691   # Save into config.log some information that might help in debugging.
1692   {
1693     echo
1694
1695     cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700     echo
1701     # The following way of writing the cache mishandles newlines in values,
1702 (
1703   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704     eval ac_val=\$$ac_var
1705     case $ac_val in #(
1706     *${as_nl}*)
1707       case $ac_var in #(
1708       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710       esac
1711       case $ac_var in #(
1712       _ | IFS | as_nl) ;; #(
1713       *) $as_unset $ac_var ;;
1714       esac ;;
1715     esac
1716   done
1717   (set) 2>&1 |
1718     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719     *${as_nl}ac_space=\ *)
1720       sed -n \
1721         "s/'\''/'\''\\\\'\'''\''/g;
1722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723       ;; #(
1724     *)
1725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726       ;;
1727     esac |
1728     sort
1729 )
1730     echo
1731
1732     cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737     echo
1738     for ac_var in $ac_subst_vars
1739     do
1740       eval ac_val=\$$ac_var
1741       case $ac_val in
1742       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743       esac
1744       echo "$ac_var='\''$ac_val'\''"
1745     done | sort
1746     echo
1747
1748     if test -n "$ac_subst_files"; then
1749       cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754       echo
1755       for ac_var in $ac_subst_files
1756       do
1757         eval ac_val=\$$ac_var
1758         case $ac_val in
1759         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760         esac
1761         echo "$ac_var='\''$ac_val'\''"
1762       done | sort
1763       echo
1764     fi
1765
1766     if test -s confdefs.h; then
1767       cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772       echo
1773       cat confdefs.h
1774       echo
1775     fi
1776     test "$ac_signal" != 0 &&
1777       echo "$as_me: caught signal $ac_signal"
1778     echo "$as_me: exit $exit_status"
1779   } >&5
1780   rm -f core *.core core.conftest.* &&
1781     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782     exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822   set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826   set x "$ac_default_prefix/share/config.site" \
1827         "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832   if test -r "$ac_site_file"; then
1833     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835     sed 's/^/| /' "$ac_site_file" >&5
1836     . "$ac_site_file"
1837   fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841   # Some versions of bash will fail to source /dev/null (special
1842   # files actually), so we avoid doing that.
1843   if test -f "$cache_file"; then
1844     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846     case $cache_file in
1847       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848       *)                      . "./$cache_file";;
1849     esac
1850   fi
1851 else
1852   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854   >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862   eval ac_new_set=\$ac_env_${ac_var}_set
1863   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864   eval ac_new_val=\$ac_env_${ac_var}_value
1865   case $ac_old_set,$ac_new_set in
1866     set,)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,set)
1871       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873       ac_cache_corrupted=: ;;
1874     ,);;
1875     *)
1876       if test "x$ac_old_val" != "x$ac_new_val"; then
1877         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1880 echo "$as_me:   former value:  $ac_old_val" >&2;}
1881         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1882 echo "$as_me:   current value: $ac_new_val" >&2;}
1883         ac_cache_corrupted=:
1884       fi;;
1885   esac
1886   # Pass precious variables to config.status.
1887   if test "$ac_new_set" = set; then
1888     case $ac_new_val in
1889     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890     *) ac_arg=$ac_var=$ac_new_val ;;
1891     esac
1892     case " $ac_configure_args " in
1893       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1894       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895     esac
1896   fi
1897 done
1898 if $ac_cache_corrupted; then
1899   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929
1930 am__api_version="1.9"
1931 ac_aux_dir=
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933   if test -f "$ac_dir/install-sh"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/install-sh -c"
1936     break
1937   elif test -f "$ac_dir/install.sh"; then
1938     ac_aux_dir=$ac_dir
1939     ac_install_sh="$ac_aux_dir/install.sh -c"
1940     break
1941   elif test -f "$ac_dir/shtool"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/shtool install -c"
1944     break
1945   fi
1946 done
1947 if test -z "$ac_aux_dir"; then
1948   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1960
1961
1962 # Find a good install program.  We prefer a C program (faster),
1963 # so one script is as good as another.  But avoid the broken or
1964 # incompatible versions:
1965 # SysV /etc/install, /usr/sbin/install
1966 # SunOS /usr/etc/install
1967 # IRIX /sbin/install
1968 # AIX /bin/install
1969 # AmigaOS /C/install, which installs bootblocks on floppy discs
1970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973 # OS/2's system install, which has a completely different semantic
1974 # ./install, which can be erroneously created by make from ./install.sh.
1975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1977 if test -z "$INSTALL"; then
1978 if test "${ac_cv_path_install+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   # Account for people who put trailing slashes in PATH elements.
1987 case $as_dir/ in
1988   ./ | .// | /cC/* | \
1989   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1991   /usr/ucb/* ) ;;
1992   *)
1993     # OSF1 and SCO ODT 3.0 have their own names for install.
1994     # Don't use installbsd from OSF since it installs stuff as root
1995     # by default.
1996     for ac_prog in ginstall scoinst install; do
1997       for ac_exec_ext in '' $ac_executable_extensions; do
1998         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1999           if test $ac_prog = install &&
2000             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001             # AIX install.  It has an incompatible calling convention.
2002             :
2003           elif test $ac_prog = install &&
2004             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005             # program-specific install script used by HP pwplus--don't use.
2006             :
2007           else
2008             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2009             break 3
2010           fi
2011         fi
2012       done
2013     done
2014     ;;
2015 esac
2016 done
2017 IFS=$as_save_IFS
2018
2019
2020 fi
2021   if test "${ac_cv_path_install+set}" = set; then
2022     INSTALL=$ac_cv_path_install
2023   else
2024     # As a last resort, use the slow shell script.  Don't cache a
2025     # value for INSTALL within a source directory, because that will
2026     # break other packages using the cache if that directory is
2027     # removed, or if the value is a relative name.
2028     INSTALL=$ac_install_sh
2029   fi
2030 fi
2031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2032 echo "${ECHO_T}$INSTALL" >&6; }
2033
2034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035 # It thinks the first close brace ends the variable substitution.
2036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2037
2038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2039
2040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2041
2042 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2044 # Just in case
2045 sleep 1
2046 echo timestamp > conftest.file
2047 # Do `set' in a subshell so we don't clobber the current shell's
2048 # arguments.  Must try -L first in case configure is actually a
2049 # symlink; some systems play weird games with the mod time of symlinks
2050 # (eg FreeBSD returns the mod time of the symlink's containing
2051 # directory).
2052 if (
2053    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2054    if test "$*" = "X"; then
2055       # -L didn't work.
2056       set X `ls -t $srcdir/configure conftest.file`
2057    fi
2058    rm -f conftest.file
2059    if test "$*" != "X $srcdir/configure conftest.file" \
2060       && test "$*" != "X conftest.file $srcdir/configure"; then
2061
2062       # If neither matched, then we have a broken ls.  This can happen
2063       # if, for instance, CONFIG_SHELL is bash and it inherits a
2064       # broken ls alias from the environment.  This has actually
2065       # happened.  Such a system could not be considered "sane".
2066       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2067 alias in your environment" >&5
2068 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2069 alias in your environment" >&2;}
2070    { (exit 1); exit 1; }; }
2071    fi
2072
2073    test "$2" = conftest.file
2074    )
2075 then
2076    # Ok.
2077    :
2078 else
2079    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080 Check your system clock" >&5
2081 echo "$as_me: error: newly created file is older than distributed files!
2082 Check your system clock" >&2;}
2083    { (exit 1); exit 1; }; }
2084 fi
2085 { echo "$as_me:$LINENO: result: yes" >&5
2086 echo "${ECHO_T}yes" >&6; }
2087 test "$program_prefix" != NONE &&
2088   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089 # Use a double $ so make ignores it.
2090 test "$program_suffix" != NONE &&
2091   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092 # Double any \ or $.  echo might interpret backslashes.
2093 # By default was `s,x,x', remove it if useless.
2094 cat <<\_ACEOF >conftest.sed
2095 s/[\\$]/&&/g;s/;s,x,x,$//
2096 _ACEOF
2097 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2098 rm -f conftest.sed
2099
2100 # expand $ac_aux_dir to an absolute path
2101 am_aux_dir=`cd $ac_aux_dir && pwd`
2102
2103 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2104 # Use eval to expand $SHELL
2105 if eval "$MISSING --run true"; then
2106   am_missing_run="$MISSING --run "
2107 else
2108   am_missing_run=
2109   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2111 fi
2112
2113 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2114   # We used to keeping the `.' as first argument, in order to
2115   # allow $(mkdir_p) to be used without argument.  As in
2116   #   $(mkdir_p) $(somedir)
2117   # where $(somedir) is conditionally defined.  However this is wrong
2118   # for two reasons:
2119   #  1. if the package is installed by a user who cannot write `.'
2120   #     make install will fail,
2121   #  2. the above comment should most certainly read
2122   #     $(mkdir_p) $(DESTDIR)$(somedir)
2123   #     so it does not work when $(somedir) is undefined and
2124   #     $(DESTDIR) is not.
2125   #  To support the latter case, we have to write
2126   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2127   #  so the `.' trick is pointless.
2128   mkdir_p='mkdir -p --'
2129 else
2130   # On NextStep and OpenStep, the `mkdir' command does not
2131   # recognize any option.  It will interpret all options as
2132   # directories to create, and then abort because `.' already
2133   # exists.
2134   for d in ./-p ./--version;
2135   do
2136     test -d $d && rmdir $d
2137   done
2138   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2139   if test -f "$ac_aux_dir/mkinstalldirs"; then
2140     mkdir_p='$(mkinstalldirs)'
2141   else
2142     mkdir_p='$(install_sh) -d'
2143   fi
2144 fi
2145
2146 for ac_prog in gawk mawk nawk awk
2147 do
2148   # Extract the first word of "$ac_prog", so it can be a program name with args.
2149 set dummy $ac_prog; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_AWK+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$AWK"; then
2156   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165     ac_cv_prog_AWK="$ac_prog"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171 IFS=$as_save_IFS
2172
2173 fi
2174 fi
2175 AWK=$ac_cv_prog_AWK
2176 if test -n "$AWK"; then
2177   { echo "$as_me:$LINENO: result: $AWK" >&5
2178 echo "${ECHO_T}$AWK" >&6; }
2179 else
2180   { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2182 fi
2183
2184
2185   test -n "$AWK" && break
2186 done
2187
2188 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2189 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2190 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2191 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   cat >conftest.make <<\_ACEOF
2195 SHELL = /bin/sh
2196 all:
2197         @echo '@@@%%%=$(MAKE)=@@@%%%'
2198 _ACEOF
2199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2201   *@@@%%%=?*=@@@%%%*)
2202     eval ac_cv_prog_make_${ac_make}_set=yes;;
2203   *)
2204     eval ac_cv_prog_make_${ac_make}_set=no;;
2205 esac
2206 rm -f conftest.make
2207 fi
2208 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2209   { echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6; }
2211   SET_MAKE=
2212 else
2213   { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215   SET_MAKE="MAKE=${MAKE-make}"
2216 fi
2217
2218 rm -rf .tst 2>/dev/null
2219 mkdir .tst 2>/dev/null
2220 if test -d .tst; then
2221   am__leading_dot=.
2222 else
2223   am__leading_dot=_
2224 fi
2225 rmdir .tst 2>/dev/null
2226
2227 # test to see if srcdir already configured
2228 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2229    test -f $srcdir/config.status; then
2230   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2231 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234
2235 # test whether we have cygpath
2236 if test -z "$CYGPATH_W"; then
2237   if (cygpath --version) >/dev/null 2>/dev/null; then
2238     CYGPATH_W='cygpath -w'
2239   else
2240     CYGPATH_W=echo
2241   fi
2242 fi
2243
2244
2245 # Define the identity of the package.
2246  PACKAGE=anthy
2247  VERSION=9100h
2248
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE "$PACKAGE"
2252 _ACEOF
2253
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define VERSION "$VERSION"
2257 _ACEOF
2258
2259 # Some tools Automake needs.
2260
2261 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2262
2263
2264 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2265
2266
2267 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2268
2269
2270 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2271
2272
2273 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2274
2275 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2276
2277 # Installed binaries are usually stripped using `strip' when the user
2278 # run `make install-strip'.  However `strip' might not be the right
2279 # tool to use in cross-compilation environments, therefore Automake
2280 # will honor the `STRIP' environment variable to overrule this program.
2281 if test "$cross_compiling" != no; then
2282   if test -n "$ac_tool_prefix"; then
2283   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}strip; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_STRIP+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$STRIP"; then
2291   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309 fi
2310 STRIP=$ac_cv_prog_STRIP
2311 if test -n "$STRIP"; then
2312   { echo "$as_me:$LINENO: result: $STRIP" >&5
2313 echo "${ECHO_T}$STRIP" >&6; }
2314 else
2315   { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2317 fi
2318
2319
2320 fi
2321 if test -z "$ac_cv_prog_STRIP"; then
2322   ac_ct_STRIP=$STRIP
2323   # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$ac_ct_STRIP"; then
2331   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_ac_ct_STRIP="strip"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2351 if test -n "$ac_ct_STRIP"; then
2352   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2353 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359   if test "x$ac_ct_STRIP" = x; then
2360     STRIP=":"
2361   else
2362     case $cross_compiling:$ac_tool_warned in
2363 yes:)
2364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet.  If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&5
2367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet.  If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2370 ac_tool_warned=yes ;;
2371 esac
2372     STRIP=$ac_ct_STRIP
2373   fi
2374 else
2375   STRIP="$ac_cv_prog_STRIP"
2376 fi
2377
2378 fi
2379 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2380
2381 # We need awk for the "check" target.  The system "awk" is bad on
2382 # some platforms.
2383 # Always define AMTAR for backward compatibility.
2384
2385 AMTAR=${AMTAR-"${am_missing_run}tar"}
2386
2387 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2388
2389
2390
2391
2392
2393 ac_config_headers="$ac_config_headers config.h"
2394
2395
2396 ac_ext=c
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 if test -n "$ac_tool_prefix"; then
2402   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   if test -n "$CC"; then
2410   ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415   IFS=$as_save_IFS
2416   test -z "$as_dir" && as_dir=.
2417   for ac_exec_ext in '' $ac_executable_extensions; do
2418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421     break 2
2422   fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 CC=$ac_cv_prog_CC
2430 if test -n "$CC"; then
2431   { echo "$as_me:$LINENO: result: $CC" >&5
2432 echo "${ECHO_T}$CC" >&6; }
2433 else
2434   { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2436 fi
2437
2438
2439 fi
2440 if test -z "$ac_cv_prog_CC"; then
2441   ac_ct_CC=$CC
2442   # Extract the first word of "gcc", so it can be a program name with args.
2443 set dummy gcc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$ac_ct_CC"; then
2450   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459     ac_cv_prog_ac_ct_CC="gcc"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470 if test -n "$ac_ct_CC"; then
2471   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472 echo "${ECHO_T}$ac_ct_CC" >&6; }
2473 else
2474   { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2476 fi
2477
2478   if test "x$ac_ct_CC" = x; then
2479     CC=""
2480   else
2481     case $cross_compiling:$ac_tool_warned in
2482 yes:)
2483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet.  If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&5
2486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet.  If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2489 ac_tool_warned=yes ;;
2490 esac
2491     CC=$ac_ct_CC
2492   fi
2493 else
2494   CC="$ac_cv_prog_CC"
2495 fi
2496
2497 if test -z "$CC"; then
2498           if test -n "$ac_tool_prefix"; then
2499     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$CC"; then
2507   ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     ac_cv_prog_CC="${ac_tool_prefix}cc"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528   { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2530 else
2531   { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2533 fi
2534
2535
2536   fi
2537 fi
2538 if test -z "$CC"; then
2539   # Extract the first word of "cc", so it can be a program name with args.
2540 set dummy cc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   if test -n "$CC"; then
2547   ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549   ac_prog_rejected=no
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555   for ac_exec_ext in '' $ac_executable_extensions; do
2556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2558        ac_prog_rejected=yes
2559        continue
2560      fi
2561     ac_cv_prog_CC="cc"
2562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563     break 2
2564   fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 if test $ac_prog_rejected = yes; then
2570   # We found a bogon in the path, so make sure we never use it.
2571   set dummy $ac_cv_prog_CC
2572   shift
2573   if test $# != 0; then
2574     # We chose a different compiler from the bogus one.
2575     # However, it has the same basename, so the bogon will be chosen
2576     # first if we set CC to just the basename; use the full file name.
2577     shift
2578     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579   fi
2580 fi
2581 fi
2582 fi
2583 CC=$ac_cv_prog_CC
2584 if test -n "$CC"; then
2585   { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592
2593 fi
2594 if test -z "$CC"; then
2595   if test -n "$ac_tool_prefix"; then
2596   for ac_prog in cl.exe
2597   do
2598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   if test -n "$CC"; then
2606   ac_cv_prog_CC="$CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613   for ac_exec_ext in '' $ac_executable_extensions; do
2614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617     break 2
2618   fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 CC=$ac_cv_prog_CC
2626 if test -n "$CC"; then
2627   { echo "$as_me:$LINENO: result: $CC" >&5
2628 echo "${ECHO_T}$CC" >&6; }
2629 else
2630   { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2632 fi
2633
2634
2635     test -n "$CC" && break
2636   done
2637 fi
2638 if test -z "$CC"; then
2639   ac_ct_CC=$CC
2640   for ac_prog in cl.exe
2641 do
2642   # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   if test -n "$ac_ct_CC"; then
2650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657   for ac_exec_ext in '' $ac_executable_extensions; do
2658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659     ac_cv_prog_ac_ct_CC="$ac_prog"
2660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661     break 2
2662   fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670 if test -n "$ac_ct_CC"; then
2671   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2672 echo "${ECHO_T}$ac_ct_CC" >&6; }
2673 else
2674   { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2676 fi
2677
2678
2679   test -n "$ac_ct_CC" && break
2680 done
2681
2682   if test "x$ac_ct_CC" = x; then
2683     CC=""
2684   else
2685     case $cross_compiling:$ac_tool_warned in
2686 yes:)
2687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet.  If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&5
2690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet.  If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2693 ac_tool_warned=yes ;;
2694 esac
2695     CC=$ac_ct_CC
2696   fi
2697 fi
2698
2699 fi
2700
2701
2702 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." >&2;}
2706    { (exit 1); exit 1; }; }
2707
2708 # Provide some information about the compiler.
2709 echo "$as_me:$LINENO: checking for C compiler version" >&5
2710 ac_compiler=`set X $ac_compile; echo $2`
2711 { (ac_try="$ac_compiler --version >&5"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compiler --version >&5") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }
2721 { (ac_try="$ac_compiler -v >&5"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compiler -v >&5") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }
2731 { (ac_try="$ac_compiler -V >&5"
2732 case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_compiler -V >&5") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }
2741
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748
2749 int
2750 main ()
2751 {
2752
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 ac_clean_files_save=$ac_clean_files
2758 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2759 # Try to create an executable without -o first, disregard a.out.
2760 # It will help us diagnose broken compilers, and finding out an intuition
2761 # of exeext.
2762 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2763 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2764 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2765 #
2766 # List of possible output files, starting from the most likely.
2767 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2768 # only as a last resort.  b.out is created by i960 compilers.
2769 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2770 #
2771 # The IRIX 6 linker writes into existing files which may not be
2772 # executable, retaining their permissions.  Remove them first so a
2773 # subsequent execution test works.
2774 ac_rmfiles=
2775 for ac_file in $ac_files
2776 do
2777   case $ac_file in
2778     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2779     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2780   esac
2781 done
2782 rm -f $ac_rmfiles
2783
2784 if { (ac_try="$ac_link_default"
2785 case "(($ac_try" in
2786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787   *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790   (eval "$ac_link_default") 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; then
2794   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2795 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2796 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2797 # so that the user can short-circuit this test for compilers unknown to
2798 # Autoconf.
2799 for ac_file in $ac_files ''
2800 do
2801   test -f "$ac_file" || continue
2802   case $ac_file in
2803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2804         ;;
2805     [ab].out )
2806         # We found the default executable, but exeext='' is most
2807         # certainly right.
2808         break;;
2809     *.* )
2810         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2811         then :; else
2812            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2813         fi
2814         # We set ac_cv_exeext here because the later test for it is not
2815         # safe: cross compilers may not add the suffix if given an `-o'
2816         # argument, so we may need to know it at that point already.
2817         # Even if this section looks crufty: it has the advantage of
2818         # actually working.
2819         break;;
2820     * )
2821         break;;
2822   esac
2823 done
2824 test "$ac_cv_exeext" = no && ac_cv_exeext=
2825
2826 else
2827   ac_file=''
2828 fi
2829
2830 { echo "$as_me:$LINENO: result: $ac_file" >&5
2831 echo "${ECHO_T}$ac_file" >&6; }
2832 if test -z "$ac_file"; then
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: C compiler cannot create executables
2839 See \`config.log' for more details." >&2;}
2840    { (exit 77); exit 77; }; }
2841 fi
2842
2843 ac_exeext=$ac_cv_exeext
2844
2845 # Check that the compiler produces executables we can run.  If not, either
2846 # the compiler is broken, or we cross compile.
2847 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2848 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2850 # If not cross compiling, check that we can run a simple program.
2851 if test "$cross_compiling" != yes; then
2852   if { ac_try='./$ac_file'
2853   { (case "(($ac_try" in
2854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855   *) ac_try_echo=$ac_try;;
2856 esac
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858   (eval "$ac_try") 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; }; then
2862     cross_compiling=no
2863   else
2864     if test "$cross_compiling" = maybe; then
2865         cross_compiling=yes
2866     else
2867         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874     fi
2875   fi
2876 fi
2877 { echo "$as_me:$LINENO: result: yes" >&5
2878 echo "${ECHO_T}yes" >&6; }
2879
2880 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2881 ac_clean_files=$ac_clean_files_save
2882 # Check that the compiler produces executables we can run.  If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2885 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2886 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2887 echo "${ECHO_T}$cross_compiling" >&6; }
2888
2889 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2890 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2891 if { (ac_try="$ac_link"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_link") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; then
2901   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2902 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2903 # work properly (i.e., refer to `conftest.exe'), while it won't with
2904 # `rm'.
2905 for ac_file in conftest.exe conftest conftest.*; do
2906   test -f "$ac_file" || continue
2907   case $ac_file in
2908     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2909     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910           break;;
2911     * ) break;;
2912   esac
2913 done
2914 else
2915   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2918 See \`config.log' for more details." >&2;}
2919    { (exit 1); exit 1; }; }
2920 fi
2921
2922 rm -f conftest$ac_cv_exeext
2923 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2924 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2925
2926 rm -f conftest.$ac_ext
2927 EXEEXT=$ac_cv_exeext
2928 ac_exeext=$EXEEXT
2929 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2930 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2931 if test "${ac_cv_objext+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940
2941 int
2942 main ()
2943 {
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.o conftest.obj
2950 if { (ac_try="$ac_compile"
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_compile") 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; then
2960   for ac_file in conftest.o conftest.obj conftest.*; do
2961   test -f "$ac_file" || continue;
2962   case $ac_file in
2963     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2964     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2965        break;;
2966   esac
2967 done
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977 fi
2978
2979 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2980 fi
2981 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2982 echo "${ECHO_T}$ac_cv_objext" >&6; }
2983 OBJEXT=$ac_cv_objext
2984 ac_objext=$OBJEXT
2985 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2986 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2987 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000 #ifndef __GNUC__
3001        choke me
3002 #endif
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_compile") 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } && {
3022          test -z "$ac_c_werror_flag" ||
3023          test ! -s conftest.err
3024        } && test -s conftest.$ac_objext; then
3025   ac_compiler_gnu=yes
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030         ac_compiler_gnu=no
3031 fi
3032
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3035
3036 fi
3037 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3038 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3039 GCC=`test $ac_compiler_gnu = yes && echo yes`
3040 ac_test_CFLAGS=${CFLAGS+set}
3041 ac_save_CFLAGS=$CFLAGS
3042 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_cc_g+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   ac_save_c_werror_flag=$ac_c_werror_flag
3048    ac_c_werror_flag=yes
3049    ac_cv_prog_cc_g=no
3050    CFLAGS="-g"
3051    cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_compile") 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } && {
3080          test -z "$ac_c_werror_flag" ||
3081          test ! -s conftest.err
3082        } && test -s conftest.$ac_objext; then
3083   ac_cv_prog_cc_g=yes
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088         CFLAGS=""
3089       cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h.  */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h.  */
3095
3096 int
3097 main ()
3098 {
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_compile") 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } && {
3118          test -z "$ac_c_werror_flag" ||
3119          test ! -s conftest.err
3120        } && test -s conftest.$ac_objext; then
3121   :
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126         ac_c_werror_flag=$ac_save_c_werror_flag
3127          CFLAGS="-g"
3128          cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compile") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } && {
3157          test -z "$ac_c_werror_flag" ||
3158          test ! -s conftest.err
3159        } && test -s conftest.$ac_objext; then
3160   ac_cv_prog_cc_g=yes
3161 else
3162   echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 fi
3170
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175    ac_c_werror_flag=$ac_save_c_werror_flag
3176 fi
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3179 if test "$ac_test_CFLAGS" = set; then
3180   CFLAGS=$ac_save_CFLAGS
3181 elif test $ac_cv_prog_cc_g = yes; then
3182   if test "$GCC" = yes; then
3183     CFLAGS="-g -O2"
3184   else
3185     CFLAGS="-g"
3186   fi
3187 else
3188   if test "$GCC" = yes; then
3189     CFLAGS="-O2"
3190   else
3191     CFLAGS=
3192   fi
3193 fi
3194 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3195 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3196 if test "${ac_cv_prog_cc_c89+set}" = set; then
3197   echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199   ac_cv_prog_cc_c89=no
3200 ac_save_CC=$CC
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207 #include <stdarg.h>
3208 #include <stdio.h>
3209 #include <sys/types.h>
3210 #include <sys/stat.h>
3211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3212 struct buf { int x; };
3213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3214 static char *e (p, i)
3215      char **p;
3216      int i;
3217 {
3218   return p[i];
3219 }
3220 static char *f (char * (*g) (char **, int), char **p, ...)
3221 {
3222   char *s;
3223   va_list v;
3224   va_start (v,p);
3225   s = g (p, va_arg (v,int));
3226   va_end (v);
3227   return s;
3228 }
3229
3230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3231    function prototypes and stuff, but not '\xHH' hex character constants.
3232    These don't provoke an error unfortunately, instead are silently treated
3233    as 'x'.  The following induces an error, until -std is added to get
3234    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3235    array size at least.  It's necessary to write '\x00'==0 to get something
3236    that's true only with -std.  */
3237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3238
3239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3240    inside strings and character constants.  */
3241 #define FOO(x) 'x'
3242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3243
3244 int test (int i, double x);
3245 struct s1 {int (*f) (int a);};
3246 struct s2 {int (*f) (double a);};
3247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3248 int argc;
3249 char **argv;
3250 int
3251 main ()
3252 {
3253 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3259         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3260 do
3261   CC="$ac_save_CC $ac_arg"
3262   rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3264 case "(($ac_try" in
3265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266   *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269   (eval "$ac_compile") 2>conftest.er1
3270   ac_status=$?
3271   grep -v '^ *+' conftest.er1 >conftest.err
3272   rm -f conftest.er1
3273   cat conftest.err >&5
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); } && {
3276          test -z "$ac_c_werror_flag" ||
3277          test ! -s conftest.err
3278        } && test -s conftest.$ac_objext; then
3279   ac_cv_prog_cc_c89=$ac_arg
3280 else
3281   echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284
3285 fi
3286
3287 rm -f core conftest.err conftest.$ac_objext
3288   test "x$ac_cv_prog_cc_c89" != "xno" && break
3289 done
3290 rm -f conftest.$ac_ext
3291 CC=$ac_save_CC
3292
3293 fi
3294 # AC_CACHE_VAL
3295 case "x$ac_cv_prog_cc_c89" in
3296   x)
3297     { echo "$as_me:$LINENO: result: none needed" >&5
3298 echo "${ECHO_T}none needed" >&6; } ;;
3299   xno)
3300     { echo "$as_me:$LINENO: result: unsupported" >&5
3301 echo "${ECHO_T}unsupported" >&6; } ;;
3302   *)
3303     CC="$CC $ac_cv_prog_cc_c89"
3304     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3305 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3306 esac
3307
3308
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 DEPDIR="${am__leading_dot}deps"
3315
3316 ac_config_commands="$ac_config_commands depfiles"
3317
3318
3319 am_make=${MAKE-make}
3320 cat > confinc << 'END'
3321 am__doit:
3322         @echo done
3323 .PHONY: am__doit
3324 END
3325 # If we don't find an include directive, just comment out the code.
3326 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3327 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3328 am__include="#"
3329 am__quote=
3330 _am_result=none
3331 # First try GNU make style include.
3332 echo "include confinc" > confmf
3333 # We grep out `Entering directory' and `Leaving directory'
3334 # messages which can occur if `w' ends up in MAKEFLAGS.
3335 # In particular we don't look at `^make:' because GNU make might
3336 # be invoked under some other name (usually "gmake"), in which
3337 # case it prints its new name instead of `make'.
3338 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3339    am__include=include
3340    am__quote=
3341    _am_result=GNU
3342 fi
3343 # Now try BSD make style include.
3344 if test "$am__include" = "#"; then
3345    echo '.include "confinc"' > confmf
3346    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3347       am__include=.include
3348       am__quote="\""
3349       _am_result=BSD
3350    fi
3351 fi
3352
3353
3354 { echo "$as_me:$LINENO: result: $_am_result" >&5
3355 echo "${ECHO_T}$_am_result" >&6; }
3356 rm -f confinc confmf
3357
3358 # Check whether --enable-dependency-tracking was given.
3359 if test "${enable_dependency_tracking+set}" = set; then
3360   enableval=$enable_dependency_tracking;
3361 fi
3362
3363 if test "x$enable_dependency_tracking" != xno; then
3364   am_depcomp="$ac_aux_dir/depcomp"
3365   AMDEPBACKSLASH='\'
3366 fi
3367
3368
3369 if test "x$enable_dependency_tracking" != xno; then
3370   AMDEP_TRUE=
3371   AMDEP_FALSE='#'
3372 else
3373   AMDEP_TRUE='#'
3374   AMDEP_FALSE=
3375 fi
3376
3377
3378
3379
3380 depcc="$CC"   am_compiler_list=
3381
3382 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3383 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3384 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3388   # We make a subdir and do the tests there.  Otherwise we can end up
3389   # making bogus files that we don't know about and never remove.  For
3390   # instance it was reported that on HP-UX the gcc test will end up
3391   # making a dummy file named `D' -- because `-MD' means `put the output
3392   # in D'.
3393   mkdir conftest.dir
3394   # Copy depcomp to subdir because otherwise we won't find it if we're
3395   # using a relative directory.
3396   cp "$am_depcomp" conftest.dir
3397   cd conftest.dir
3398   # We will build objects and dependencies in a subdirectory because
3399   # it helps to detect inapplicable dependency modes.  For instance
3400   # both Tru64's cc and ICC support -MD to output dependencies as a
3401   # side effect of compilation, but ICC will put the dependencies in
3402   # the current directory while Tru64 will put them in the object
3403   # directory.
3404   mkdir sub
3405
3406   am_cv_CC_dependencies_compiler_type=none
3407   if test "$am_compiler_list" = ""; then
3408      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3409   fi
3410   for depmode in $am_compiler_list; do
3411     # Setup a source with many dependencies, because some compilers
3412     # like to wrap large dependency lists on column 80 (with \), and
3413     # we should not choose a depcomp mode which is confused by this.
3414     #
3415     # We need to recreate these files for each test, as the compiler may
3416     # overwrite some of them when testing with obscure command lines.
3417     # This happens at least with the AIX C compiler.
3418     : > sub/conftest.c
3419     for i in 1 2 3 4 5 6; do
3420       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3421       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3422       # Solaris 8's {/usr,}/bin/sh.
3423       touch sub/conftst$i.h
3424     done
3425     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3426
3427     case $depmode in
3428     nosideeffect)
3429       # after this tag, mechanisms are not by side-effect, so they'll
3430       # only be used when explicitly requested
3431       if test "x$enable_dependency_tracking" = xyes; then
3432         continue
3433       else
3434         break
3435       fi
3436       ;;
3437     none) break ;;
3438     esac
3439     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3440     # mode.  It turns out that the SunPro C++ compiler does not properly
3441     # handle `-M -o', and we need to detect this.
3442     if depmode=$depmode \
3443        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3444        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3445        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3446          >/dev/null 2>conftest.err &&
3447        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3448        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3449        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3450       # icc doesn't choke on unknown options, it will just issue warnings
3451       # or remarks (even with -Werror).  So we grep stderr for any message
3452       # that says an option was ignored or not supported.
3453       # When given -MP, icc 7.0 and 7.1 complain thusly:
3454       #   icc: Command line warning: ignoring option '-M'; no argument required
3455       # The diagnosis changed in icc 8.0:
3456       #   icc: Command line remark: option '-MP' not supported
3457       if (grep 'ignoring option' conftest.err ||
3458           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3459         am_cv_CC_dependencies_compiler_type=$depmode
3460         break
3461       fi
3462     fi
3463   done
3464
3465   cd ..
3466   rm -rf conftest.dir
3467 else
3468   am_cv_CC_dependencies_compiler_type=none
3469 fi
3470
3471 fi
3472 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3473 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3474 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3475
3476
3477
3478 if
3479   test "x$enable_dependency_tracking" != xno \
3480   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3481   am__fastdepCC_TRUE=
3482   am__fastdepCC_FALSE='#'
3483 else
3484   am__fastdepCC_TRUE='#'
3485   am__fastdepCC_FALSE=
3486 fi
3487
3488
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3495 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3496 # On Suns, sometimes $CPP names a directory.
3497 if test -n "$CPP" && test -d "$CPP"; then
3498   CPP=
3499 fi
3500 if test -z "$CPP"; then
3501   if test "${ac_cv_prog_CPP+set}" = set; then
3502   echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504       # Double quotes because CPP needs to be expanded
3505     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3506     do
3507       ac_preproc_ok=false
3508 for ac_c_preproc_warn_flag in '' yes
3509 do
3510   # Use a header file that comes with gcc, so configuring glibc
3511   # with a fresh cross-compiler works.
3512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513   # <limits.h> exists even on freestanding compilers.
3514   # On the NeXT, cc -E runs the code through the compiler's parser,
3515   # not just through cpp. "Syntax error" is here to catch this case.
3516   cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522 #ifdef __STDC__
3523 # include <limits.h>
3524 #else
3525 # include <assert.h>
3526 #endif
3527                      Syntax error
3528 _ACEOF
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } >/dev/null && {
3542          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3543          test ! -s conftest.err
3544        }; then
3545   :
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550   # Broken: fails on valid input.
3551 continue
3552 fi
3553
3554 rm -f conftest.err conftest.$ac_ext
3555
3556   # OK, works on sane cases.  Now check whether nonexistent headers
3557   # can be detected and how.
3558   cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564 #include <ac_nonexistent.h>
3565 _ACEOF
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573   ac_status=$?
3574   grep -v '^ *+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } >/dev/null && {
3579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3580          test ! -s conftest.err
3581        }; then
3582   # Broken: success on invalid input.
3583 continue
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588   # Passes both tests.
3589 ac_preproc_ok=:
3590 break
3591 fi
3592
3593 rm -f conftest.err conftest.$ac_ext
3594
3595 done
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.err conftest.$ac_ext
3598 if $ac_preproc_ok; then
3599   break
3600 fi
3601
3602     done
3603     ac_cv_prog_CPP=$CPP
3604
3605 fi
3606   CPP=$ac_cv_prog_CPP
3607 else
3608   ac_cv_prog_CPP=$CPP
3609 fi
3610 { echo "$as_me:$LINENO: result: $CPP" >&5
3611 echo "${ECHO_T}$CPP" >&6; }
3612 ac_preproc_ok=false
3613 for ac_c_preproc_warn_flag in '' yes
3614 do
3615   # Use a header file that comes with gcc, so configuring glibc
3616   # with a fresh cross-compiler works.
3617   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3618   # <limits.h> exists even on freestanding compilers.
3619   # On the NeXT, cc -E runs the code through the compiler's parser,
3620   # not just through cpp. "Syntax error" is here to catch this case.
3621   cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h.  */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h.  */
3627 #ifdef __STDC__
3628 # include <limits.h>
3629 #else
3630 # include <assert.h>
3631 #endif
3632                      Syntax error
3633 _ACEOF
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641   ac_status=$?
3642   grep -v '^ *+' conftest.er1 >conftest.err
3643   rm -f conftest.er1
3644   cat conftest.err >&5
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } >/dev/null && {
3647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3648          test ! -s conftest.err
3649        }; then
3650   :
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655   # Broken: fails on valid input.
3656 continue
3657 fi
3658
3659 rm -f conftest.err conftest.$ac_ext
3660
3661   # OK, works on sane cases.  Now check whether nonexistent headers
3662   # can be detected and how.
3663   cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #include <ac_nonexistent.h>
3670 _ACEOF
3671 if { (ac_try="$ac_cpp conftest.$ac_ext"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3678   ac_status=$?
3679   grep -v '^ *+' conftest.er1 >conftest.err
3680   rm -f conftest.er1
3681   cat conftest.err >&5
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } >/dev/null && {
3684          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3685          test ! -s conftest.err
3686        }; then
3687   # Broken: success on invalid input.
3688 continue
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693   # Passes both tests.
3694 ac_preproc_ok=:
3695 break
3696 fi
3697
3698 rm -f conftest.err conftest.$ac_ext
3699
3700 done
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3702 rm -f conftest.err conftest.$ac_ext
3703 if $ac_preproc_ok; then
3704   :
3705 else
3706   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3709 See \`config.log' for more details." >&2;}
3710    { (exit 1); exit 1; }; }
3711 fi
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
3719 # Check whether --enable-shared was given.
3720 if test "${enable_shared+set}" = set; then
3721   enableval=$enable_shared; p=${PACKAGE-default}
3722     case $enableval in
3723     yes) enable_shared=yes ;;
3724     no) enable_shared=no ;;
3725     *)
3726       enable_shared=no
3727       # Look at the argument we got.  We use all the common list separators.
3728       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3729       for pkg in $enableval; do
3730         IFS="$lt_save_ifs"
3731         if test "X$pkg" = "X$p"; then
3732           enable_shared=yes
3733         fi
3734       done
3735       IFS="$lt_save_ifs"
3736       ;;
3737     esac
3738 else
3739   enable_shared=yes
3740 fi
3741
3742
3743 # Check whether --enable-static was given.
3744 if test "${enable_static+set}" = set; then
3745   enableval=$enable_static; p=${PACKAGE-default}
3746     case $enableval in
3747     yes) enable_static=yes ;;
3748     no) enable_static=no ;;
3749     *)
3750      enable_static=no
3751       # Look at the argument we got.  We use all the common list separators.
3752       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3753       for pkg in $enableval; do
3754         IFS="$lt_save_ifs"
3755         if test "X$pkg" = "X$p"; then
3756           enable_static=yes
3757         fi
3758       done
3759       IFS="$lt_save_ifs"
3760       ;;
3761     esac
3762 else
3763   enable_static=yes
3764 fi
3765
3766
3767 # Check whether --enable-fast-install was given.
3768 if test "${enable_fast_install+set}" = set; then
3769   enableval=$enable_fast_install; p=${PACKAGE-default}
3770     case $enableval in
3771     yes) enable_fast_install=yes ;;
3772     no) enable_fast_install=no ;;
3773     *)
3774       enable_fast_install=no
3775       # Look at the argument we got.  We use all the common list separators.
3776       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3777       for pkg in $enableval; do
3778         IFS="$lt_save_ifs"
3779         if test "X$pkg" = "X$p"; then
3780           enable_fast_install=yes
3781         fi
3782       done
3783       IFS="$lt_save_ifs"
3784       ;;
3785     esac
3786 else
3787   enable_fast_install=yes
3788 fi
3789
3790
3791 # Make sure we can run config.sub.
3792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3793   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3794 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3795    { (exit 1); exit 1; }; }
3796
3797 { echo "$as_me:$LINENO: checking build system type" >&5
3798 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3799 if test "${ac_cv_build+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   ac_build_alias=$build_alias
3803 test "x$ac_build_alias" = x &&
3804   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3805 test "x$ac_build_alias" = x &&
3806   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3808    { (exit 1); exit 1; }; }
3809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3810   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3811 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3812    { (exit 1); exit 1; }; }
3813
3814 fi
3815 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3816 echo "${ECHO_T}$ac_cv_build" >&6; }
3817 case $ac_cv_build in
3818 *-*-*) ;;
3819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3820 echo "$as_me: error: invalid value of canonical build" >&2;}
3821    { (exit 1); exit 1; }; };;
3822 esac
3823 build=$ac_cv_build
3824 ac_save_IFS=$IFS; IFS='-'
3825 set x $ac_cv_build
3826 shift
3827 build_cpu=$1
3828 build_vendor=$2
3829 shift; shift
3830 # Remember, the first character of IFS is used to create $*,
3831 # except with old shells:
3832 build_os=$*
3833 IFS=$ac_save_IFS
3834 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3835
3836
3837 { echo "$as_me:$LINENO: checking host system type" >&5
3838 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3839 if test "${ac_cv_host+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   if test "x$host_alias" = x; then
3843   ac_cv_host=$ac_cv_build
3844 else
3845   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3846     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3847 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3848    { (exit 1); exit 1; }; }
3849 fi
3850
3851 fi
3852 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3853 echo "${ECHO_T}$ac_cv_host" >&6; }
3854 case $ac_cv_host in
3855 *-*-*) ;;
3856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3857 echo "$as_me: error: invalid value of canonical host" >&2;}
3858    { (exit 1); exit 1; }; };;
3859 esac
3860 host=$ac_cv_host
3861 ac_save_IFS=$IFS; IFS='-'
3862 set x $ac_cv_host
3863 shift
3864 host_cpu=$1
3865 host_vendor=$2
3866 shift; shift
3867 # Remember, the first character of IFS is used to create $*,
3868 # except with old shells:
3869 host_os=$*
3870 IFS=$ac_save_IFS
3871 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3872
3873
3874 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3875 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3876 if test "${lt_cv_path_SED+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   # Loop through the user's path and test for sed and gsed.
3880 # Then use that list of sed's as ones to test for truncation.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for lt_ac_prog in sed gsed; do
3887     for ac_exec_ext in '' $ac_executable_extensions; do
3888       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3889         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3890       fi
3891     done
3892   done
3893 done
3894 lt_ac_max=0
3895 lt_ac_count=0
3896 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3897 # along with /bin/sed that truncates output.
3898 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3899   test ! -f $lt_ac_sed && continue
3900   cat /dev/null > conftest.in
3901   lt_ac_count=0
3902   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3903   # Check for GNU sed and select it if it is found.
3904   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3905     lt_cv_path_SED=$lt_ac_sed
3906     break
3907   fi
3908   while true; do
3909     cat conftest.in conftest.in >conftest.tmp
3910     mv conftest.tmp conftest.in
3911     cp conftest.in conftest.nl
3912     echo >>conftest.nl
3913     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3914     cmp -s conftest.out conftest.nl || break
3915     # 10000 chars as input seems more than enough
3916     test $lt_ac_count -gt 10 && break
3917     lt_ac_count=`expr $lt_ac_count + 1`
3918     if test $lt_ac_count -gt $lt_ac_max; then
3919       lt_ac_max=$lt_ac_count
3920       lt_cv_path_SED=$lt_ac_sed
3921     fi
3922   done
3923 done
3924
3925 fi
3926
3927 SED=$lt_cv_path_SED
3928 { echo "$as_me:$LINENO: result: $SED" >&5
3929 echo "${ECHO_T}$SED" >&6; }
3930
3931 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3932 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3933 if test "${ac_cv_path_GREP+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   # Extract the first word of "grep ggrep" to use in msg output
3937 if test -z "$GREP"; then
3938 set dummy grep ggrep; ac_prog_name=$2
3939 if test "${ac_cv_path_GREP+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   ac_path_GREP_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949   for ac_prog in grep ggrep; do
3950   for ac_exec_ext in '' $ac_executable_extensions; do
3951     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3952     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3953     # Check for GNU ac_path_GREP and select it if it is found.
3954   # Check for GNU $ac_path_GREP
3955 case `"$ac_path_GREP" --version 2>&1` in
3956 *GNU*)
3957   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3958 *)
3959   ac_count=0
3960   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3961   while :
3962   do
3963     cat "conftest.in" "conftest.in" >"conftest.tmp"
3964     mv "conftest.tmp" "conftest.in"
3965     cp "conftest.in" "conftest.nl"
3966     echo 'GREP' >> "conftest.nl"
3967     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969     ac_count=`expr $ac_count + 1`
3970     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3971       # Best one so far, save it but keep looking for a better one
3972       ac_cv_path_GREP="$ac_path_GREP"
3973       ac_path_GREP_max=$ac_count
3974     fi
3975     # 10*(2^10) chars as input seems more than enough
3976     test $ac_count -gt 10 && break
3977   done
3978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 esac
3980
3981
3982     $ac_path_GREP_found && break 3
3983   done
3984 done
3985
3986 done
3987 IFS=$as_save_IFS
3988
3989
3990 fi
3991
3992 GREP="$ac_cv_path_GREP"
3993 if test -z "$GREP"; then
3994   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3995 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3996    { (exit 1); exit 1; }; }
3997 fi
3998
3999 else
4000   ac_cv_path_GREP=$GREP
4001 fi
4002
4003
4004 fi
4005 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4006 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4007  GREP="$ac_cv_path_GREP"
4008
4009
4010 { echo "$as_me:$LINENO: checking for egrep" >&5
4011 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4012 if test "${ac_cv_path_EGREP+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4016    then ac_cv_path_EGREP="$GREP -E"
4017    else
4018      # Extract the first word of "egrep" to use in msg output
4019 if test -z "$EGREP"; then
4020 set dummy egrep; ac_prog_name=$2
4021 if test "${ac_cv_path_EGREP+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   ac_path_EGREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031   for ac_prog in egrep; do
4032   for ac_exec_ext in '' $ac_executable_extensions; do
4033     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4034     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4035     # Check for GNU ac_path_EGREP and select it if it is found.
4036   # Check for GNU $ac_path_EGREP
4037 case `"$ac_path_EGREP" --version 2>&1` in
4038 *GNU*)
4039   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4040 *)
4041   ac_count=0
4042   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4043   while :
4044   do
4045     cat "conftest.in" "conftest.in" >"conftest.tmp"
4046     mv "conftest.tmp" "conftest.in"
4047     cp "conftest.in" "conftest.nl"
4048     echo 'EGREP' >> "conftest.nl"
4049     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051     ac_count=`expr $ac_count + 1`
4052     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4053       # Best one so far, save it but keep looking for a better one
4054       ac_cv_path_EGREP="$ac_path_EGREP"
4055       ac_path_EGREP_max=$ac_count
4056     fi
4057     # 10*(2^10) chars as input seems more than enough
4058     test $ac_count -gt 10 && break
4059   done
4060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063
4064     $ac_path_EGREP_found && break 3
4065   done
4066 done
4067
4068 done
4069 IFS=$as_save_IFS
4070
4071
4072 fi
4073
4074 EGREP="$ac_cv_path_EGREP"
4075 if test -z "$EGREP"; then
4076   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4077 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4078    { (exit 1); exit 1; }; }
4079 fi
4080
4081 else
4082   ac_cv_path_EGREP=$EGREP
4083 fi
4084
4085
4086    fi
4087 fi
4088 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4089 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4090  EGREP="$ac_cv_path_EGREP"
4091
4092
4093
4094 # Check whether --with-gnu-ld was given.
4095 if test "${with_gnu_ld+set}" = set; then
4096   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4097 else
4098   with_gnu_ld=no
4099 fi
4100
4101 ac_prog=ld
4102 if test "$GCC" = yes; then
4103   # Check if gcc -print-prog-name=ld gives a path.
4104   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4105 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4106   case $host in
4107   *-*-mingw*)
4108     # gcc leaves a trailing carriage return which upsets mingw
4109     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4110   *)
4111     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4112   esac
4113   case $ac_prog in
4114     # Accept absolute paths.
4115     [\\/]* | ?:[\\/]*)
4116       re_direlt='/[^/][^/]*/\.\./'
4117       # Canonicalize the pathname of ld
4118       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4119       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4120         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4121       done
4122       test -z "$LD" && LD="$ac_prog"
4123       ;;
4124   "")
4125     # If it fails, then pretend we aren't using GCC.
4126     ac_prog=ld
4127     ;;
4128   *)
4129     # If it is relative, then search for the first ld in PATH.
4130     with_gnu_ld=unknown
4131     ;;
4132   esac
4133 elif test "$with_gnu_ld" = yes; then
4134   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4135 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4136 else
4137   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4138 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4139 fi
4140 if test "${lt_cv_path_LD+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   if test -z "$LD"; then
4144   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4145   for ac_dir in $PATH; do
4146     IFS="$lt_save_ifs"
4147     test -z "$ac_dir" && ac_dir=.
4148     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4149       lt_cv_path_LD="$ac_dir/$ac_prog"
4150       # Check to see if the program is GNU ld.  I'd rather use --version,
4151       # but apparently some variants of GNU ld only accept -v.
4152       # Break only if it was the GNU/non-GNU ld that we prefer.
4153       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4154       *GNU* | *'with BFD'*)
4155         test "$with_gnu_ld" != no && break
4156         ;;
4157       *)
4158         test "$with_gnu_ld" != yes && break
4159         ;;
4160       esac
4161     fi
4162   done
4163   IFS="$lt_save_ifs"
4164 else
4165   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4166 fi
4167 fi
4168
4169 LD="$lt_cv_path_LD"
4170 if test -n "$LD"; then
4171   { echo "$as_me:$LINENO: result: $LD" >&5
4172 echo "${ECHO_T}$LD" >&6; }
4173 else
4174   { echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6; }
4176 fi
4177 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4178 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4179    { (exit 1); exit 1; }; }
4180 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4181 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4182 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4186 case `$LD -v 2>&1 </dev/null` in
4187 *GNU* | *'with BFD'*)
4188   lt_cv_prog_gnu_ld=yes
4189   ;;
4190 *)
4191   lt_cv_prog_gnu_ld=no
4192   ;;
4193 esac
4194 fi
4195 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4196 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4197 with_gnu_ld=$lt_cv_prog_gnu_ld
4198
4199
4200 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4201 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4202 if test "${lt_cv_ld_reload_flag+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   lt_cv_ld_reload_flag='-r'
4206 fi
4207 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4208 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4209 reload_flag=$lt_cv_ld_reload_flag
4210 case $reload_flag in
4211 "" | " "*) ;;
4212 *) reload_flag=" $reload_flag" ;;
4213 esac
4214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4215 case $host_os in
4216   darwin*)
4217     if test "$GCC" = yes; then
4218       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4219     else
4220       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4221     fi
4222     ;;
4223 esac
4224
4225 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4226 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4227 if test "${lt_cv_path_NM+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   if test -n "$NM"; then
4231   # Let the user override the test.
4232   lt_cv_path_NM="$NM"
4233 else
4234   lt_nm_to_check="${ac_tool_prefix}nm"
4235   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4236     lt_nm_to_check="$lt_nm_to_check nm"
4237   fi
4238   for lt_tmp_nm in $lt_nm_to_check; do
4239     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4240     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4241       IFS="$lt_save_ifs"
4242       test -z "$ac_dir" && ac_dir=.
4243       tmp_nm="$ac_dir/$lt_tmp_nm"
4244       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4245         # Check to see if the nm accepts a BSD-compat flag.
4246         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4247         #   nm: unknown option "B" ignored
4248         # Tru64's nm complains that /dev/null is an invalid object file
4249         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4250         */dev/null* | *'Invalid file or object type'*)
4251           lt_cv_path_NM="$tmp_nm -B"
4252           break
4253           ;;
4254         *)
4255           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4256           */dev/null*)
4257             lt_cv_path_NM="$tmp_nm -p"
4258             break
4259             ;;
4260           *)
4261             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4262             continue # so that we can try to find one that supports BSD flags
4263             ;;
4264           esac
4265           ;;
4266         esac
4267       fi
4268     done
4269     IFS="$lt_save_ifs"
4270   done
4271   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4272 fi
4273 fi
4274 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4275 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4276 NM="$lt_cv_path_NM"
4277
4278 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4279 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4280 LN_S=$as_ln_s
4281 if test "$LN_S" = "ln -s"; then
4282   { echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6; }
4284 else
4285   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4286 echo "${ECHO_T}no, using $LN_S" >&6; }
4287 fi
4288
4289 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4290 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4291 if test "${lt_cv_deplibs_check_method+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   lt_cv_file_magic_cmd='$MAGIC_CMD'
4295 lt_cv_file_magic_test_file=
4296 lt_cv_deplibs_check_method='unknown'
4297 # Need to set the preceding variable on all platforms that support
4298 # interlibrary dependencies.
4299 # 'none' -- dependencies not supported.
4300 # `unknown' -- same as none, but documents that we really don't know.
4301 # 'pass_all' -- all dependencies passed with no checks.
4302 # 'test_compile' -- check by making test program.
4303 # 'file_magic [[regex]]' -- check by looking for files in library path
4304 # which responds to the $file_magic_cmd with a given extended regex.
4305 # If you have `file' or equivalent on your system and you're not sure
4306 # whether `pass_all' will *always* work, you probably want this one.
4307
4308 case $host_os in
4309 aix4* | aix5*)
4310   lt_cv_deplibs_check_method=pass_all
4311   ;;
4312
4313 beos*)
4314   lt_cv_deplibs_check_method=pass_all
4315   ;;
4316
4317 bsdi[45]*)
4318   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4319   lt_cv_file_magic_cmd='/usr/bin/file -L'
4320   lt_cv_file_magic_test_file=/shlib/libc.so
4321   ;;
4322
4323 cygwin*)
4324   # func_win32_libid is a shell function defined in ltmain.sh
4325   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4326   lt_cv_file_magic_cmd='func_win32_libid'
4327   ;;
4328
4329 mingw* | pw32*)
4330   # Base MSYS/MinGW do not provide the 'file' command needed by
4331   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4332   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4333   lt_cv_file_magic_cmd='$OBJDUMP -f'
4334   ;;
4335
4336 darwin* | rhapsody*)
4337   lt_cv_deplibs_check_method=pass_all
4338   ;;
4339
4340 freebsd* | dragonfly*)
4341   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4342     case $host_cpu in
4343     i*86 )
4344       # Not sure whether the presence of OpenBSD here was a mistake.
4345       # Let's accept both of them until this is cleared up.
4346       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4347       lt_cv_file_magic_cmd=/usr/bin/file
4348       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4349       ;;
4350     esac
4351   else
4352     lt_cv_deplibs_check_method=pass_all
4353   fi
4354   ;;
4355
4356 gnu*)
4357   lt_cv_deplibs_check_method=pass_all
4358   ;;
4359
4360 hpux10.20* | hpux11*)
4361   lt_cv_file_magic_cmd=/usr/bin/file
4362   case $host_cpu in
4363   ia64*)
4364     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4365     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4366     ;;
4367   hppa*64*)
4368     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]'
4369     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4370     ;;
4371   *)
4372     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4373     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4374     ;;
4375   esac
4376   ;;
4377
4378 interix3*)
4379   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4380   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4381   ;;
4382
4383 irix5* | irix6* | nonstopux*)
4384   case $LD in
4385   *-32|*"-32 ") libmagic=32-bit;;
4386   *-n32|*"-n32 ") libmagic=N32;;
4387   *-64|*"-64 ") libmagic=64-bit;;
4388   *) libmagic=never-match;;
4389   esac
4390   lt_cv_deplibs_check_method=pass_all
4391   ;;
4392
4393 # This must be Linux ELF.
4394 linux* | k*bsd*-gnu)
4395   lt_cv_deplibs_check_method=pass_all
4396   ;;
4397
4398 netbsd* | netbsdelf*-gnu)
4399   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4400     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4401   else
4402     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4403   fi
4404   ;;
4405
4406 newos6*)
4407   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4408   lt_cv_file_magic_cmd=/usr/bin/file
4409   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4410   ;;
4411
4412 nto-qnx*)
4413   lt_cv_deplibs_check_method=unknown
4414   ;;
4415
4416 openbsd*)
4417   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4418     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4419   else
4420     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4421   fi
4422   ;;
4423
4424 osf3* | osf4* | osf5*)
4425   lt_cv_deplibs_check_method=pass_all
4426   ;;
4427
4428 solaris*)
4429   lt_cv_deplibs_check_method=pass_all
4430   ;;
4431
4432 sysv4 | sysv4.3*)
4433   case $host_vendor in
4434   motorola)
4435     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]'
4436     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4437     ;;
4438   ncr)
4439     lt_cv_deplibs_check_method=pass_all
4440     ;;
4441   sequent)
4442     lt_cv_file_magic_cmd='/bin/file'
4443     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4444     ;;
4445   sni)
4446     lt_cv_file_magic_cmd='/bin/file'
4447     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4448     lt_cv_file_magic_test_file=/lib/libc.so
4449     ;;
4450   siemens)
4451     lt_cv_deplibs_check_method=pass_all
4452     ;;
4453   pc)
4454     lt_cv_deplibs_check_method=pass_all
4455     ;;
4456   esac
4457   ;;
4458
4459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4460   lt_cv_deplibs_check_method=pass_all
4461   ;;
4462 esac
4463
4464 fi
4465 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4466 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4467 file_magic_cmd=$lt_cv_file_magic_cmd
4468 deplibs_check_method=$lt_cv_deplibs_check_method
4469 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4470
4471
4472
4473
4474 # If no C compiler was specified, use CC.
4475 LTCC=${LTCC-"$CC"}
4476
4477 # If no C compiler flags were specified, use CFLAGS.
4478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4479
4480 # Allow CC to be a program name with arguments.
4481 compiler=$CC
4482
4483
4484 # Check whether --enable-libtool-lock was given.
4485 if test "${enable_libtool_lock+set}" = set; then
4486   enableval=$enable_libtool_lock;
4487 fi
4488
4489 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4490
4491 # Some flags need to be propagated to the compiler or linker for good
4492 # libtool support.
4493 case $host in
4494 ia64-*-hpux*)
4495   # Find out which ABI we are using.
4496   echo 'int i;' > conftest.$ac_ext
4497   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498   (eval $ac_compile) 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; then
4502     case `/usr/bin/file conftest.$ac_objext` in
4503     *ELF-32*)
4504       HPUX_IA64_MODE="32"
4505       ;;
4506     *ELF-64*)
4507       HPUX_IA64_MODE="64"
4508       ;;
4509     esac
4510   fi
4511   rm -rf conftest*
4512   ;;
4513 *-*-irix6*)
4514   # Find out which ABI we are using.
4515   echo '#line 4515 "configure"' > conftest.$ac_ext
4516   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517   (eval $ac_compile) 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; then
4521    if test "$lt_cv_prog_gnu_ld" = yes; then
4522     case `/usr/bin/file conftest.$ac_objext` in
4523     *32-bit*)
4524       LD="${LD-ld} -melf32bsmip"
4525       ;;
4526     *N32*)
4527       LD="${LD-ld} -melf32bmipn32"
4528       ;;
4529     *64-bit*)
4530       LD="${LD-ld} -melf64bmip"
4531       ;;
4532     esac
4533    else
4534     case `/usr/bin/file conftest.$ac_objext` in
4535     *32-bit*)
4536       LD="${LD-ld} -32"
4537       ;;
4538     *N32*)
4539       LD="${LD-ld} -n32"
4540       ;;
4541     *64-bit*)
4542       LD="${LD-ld} -64"
4543       ;;
4544     esac
4545    fi
4546   fi
4547   rm -rf conftest*
4548   ;;
4549
4550 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4551   # Find out which ABI we are using.
4552   echo 'int i;' > conftest.$ac_ext
4553   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554   (eval $ac_compile) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; then
4558     case `/usr/bin/file conftest.o` in
4559     *32-bit*)
4560       case $host in
4561         x86_64-*linux*)
4562           LD="${LD-ld} -m elf_i386"
4563           ;;
4564         ppc64-*linux*|powerpc64-*linux*)
4565           LD="${LD-ld} -m elf32ppclinux"
4566           ;;
4567         s390x-*linux*)
4568           LD="${LD-ld} -m elf_s390"
4569           ;;
4570         sparc64-*linux*)
4571           LD="${LD-ld} -m elf32_sparc"
4572           ;;
4573       esac
4574       ;;
4575     *64-bit*)
4576       case $host in
4577         x86_64-*linux*)
4578           LD="${LD-ld} -m elf_x86_64"
4579           ;;
4580         ppc*-*linux*|powerpc*-*linux*)
4581           LD="${LD-ld} -m elf64ppc"
4582           ;;
4583         s390*-*linux*)
4584           LD="${LD-ld} -m elf64_s390"
4585           ;;
4586         sparc*-*linux*)
4587           LD="${LD-ld} -m elf64_sparc"
4588           ;;
4589       esac
4590       ;;
4591     esac
4592   fi
4593   rm -rf conftest*
4594   ;;
4595
4596 *-*-sco3.2v5*)
4597   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4598   SAVE_CFLAGS="$CFLAGS"
4599   CFLAGS="$CFLAGS -belf"
4600   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4601 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4602 if test "${lt_cv_cc_needs_belf+set}" = set; then
4603   echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605   ac_ext=c
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610
4611      cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h.  */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h.  */
4617
4618 int
4619 main ()
4620 {
4621
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 rm -f conftest.$ac_objext conftest$ac_exeext
4627 if { (ac_try="$ac_link"
4628 case "(($ac_try" in
4629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630   *) ac_try_echo=$ac_try;;
4631 esac
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633   (eval "$ac_link") 2>conftest.er1
4634   ac_status=$?
4635   grep -v '^ *+' conftest.er1 >conftest.err
4636   rm -f conftest.er1
4637   cat conftest.err >&5
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); } && {
4640          test -z "$ac_c_werror_flag" ||
4641          test ! -s conftest.err
4642        } && test -s conftest$ac_exeext &&
4643        $as_test_x conftest$ac_exeext; then
4644   lt_cv_cc_needs_belf=yes
4645 else
4646   echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649         lt_cv_cc_needs_belf=no
4650 fi
4651
4652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4653       conftest$ac_exeext conftest.$ac_ext
4654      ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660 fi
4661 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4662 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4663   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4664     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4665     CFLAGS="$SAVE_CFLAGS"
4666   fi
4667   ;;
4668 sparc*-*solaris*)
4669   # Find out which ABI we are using.
4670   echo 'int i;' > conftest.$ac_ext
4671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672   (eval $ac_compile) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; then
4676     case `/usr/bin/file conftest.o` in
4677     *64-bit*)
4678       case $lt_cv_prog_gnu_ld in
4679       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4680       *)    LD="${LD-ld} -64" ;;
4681       esac
4682       ;;
4683     esac
4684   fi
4685   rm -rf conftest*
4686   ;;
4687
4688
4689 esac
4690
4691 need_locks="$enable_libtool_lock"
4692
4693
4694
4695 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4697 if test "${ac_cv_header_stdc+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706 #include <stdlib.h>
4707 #include <stdarg.h>
4708 #include <string.h>
4709 #include <float.h>
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4721 case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726   (eval "$ac_compile") 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } && {
4733          test -z "$ac_c_werror_flag" ||
4734          test ! -s conftest.err
4735        } && test -s conftest.$ac_objext; then
4736   ac_cv_header_stdc=yes
4737 else
4738   echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741         ac_cv_header_stdc=no
4742 fi
4743
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745
4746 if test $ac_cv_header_stdc = yes; then
4747   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4748   cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h.  */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h.  */
4754 #include <string.h>
4755
4756 _ACEOF
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758   $EGREP "memchr" >/dev/null 2>&1; then
4759   :
4760 else
4761   ac_cv_header_stdc=no
4762 fi
4763 rm -f conftest*
4764
4765 fi
4766
4767 if test $ac_cv_header_stdc = yes; then
4768   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4769   cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775 #include <stdlib.h>
4776
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779   $EGREP "free" >/dev/null 2>&1; then
4780   :
4781 else
4782   ac_cv_header_stdc=no
4783 fi
4784 rm -f conftest*
4785
4786 fi
4787
4788 if test $ac_cv_header_stdc = yes; then
4789   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4790   if test "$cross_compiling" = yes; then
4791   :
4792 else
4793   cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 #include <ctype.h>
4800 #include <stdlib.h>
4801 #if ((' ' & 0x0FF) == 0x020)
4802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4804 #else
4805 # define ISLOWER(c) \
4806                    (('a' <= (c) && (c) <= 'i') \
4807                      || ('j' <= (c) && (c) <= 'r') \
4808                      || ('s' <= (c) && (c) <= 'z'))
4809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4810 #endif
4811
4812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4813 int
4814 main ()
4815 {
4816   int i;
4817   for (i = 0; i < 256; i++)
4818     if (XOR (islower (i), ISLOWER (i))
4819         || toupper (i) != TOUPPER (i))
4820       return 2;
4821   return 0;
4822 }
4823 _ACEOF
4824 rm -f conftest$ac_exeext
4825 if { (ac_try="$ac_link"
4826 case "(($ac_try" in
4827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828   *) ac_try_echo=$ac_try;;
4829 esac
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831   (eval "$ac_link") 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4835   { (case "(($ac_try" in
4836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837   *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840   (eval "$ac_try") 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; }; then
4844   :
4845 else
4846   echo "$as_me: program exited with status $ac_status" >&5
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 ( exit $ac_status )
4851 ac_cv_header_stdc=no
4852 fi
4853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4854 fi
4855
4856
4857 fi
4858 fi
4859 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4860 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4861 if test $ac_cv_header_stdc = yes; then
4862
4863 cat >>confdefs.h <<\_ACEOF
4864 #define STDC_HEADERS 1
4865 _ACEOF
4866
4867 fi
4868
4869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4880                   inttypes.h stdint.h unistd.h
4881 do
4882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4886   echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888   cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894 $ac_includes_default
4895
4896 #include <$ac_header>
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4900 case "(($ac_try" in
4901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902   *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905   (eval "$ac_compile") 2>conftest.er1
4906   ac_status=$?
4907   grep -v '^ *+' conftest.er1 >conftest.err
4908   rm -f conftest.er1
4909   cat conftest.err >&5
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); } && {
4912          test -z "$ac_c_werror_flag" ||
4913          test ! -s conftest.err
4914        } && test -s conftest.$ac_objext; then
4915   eval "$as_ac_Header=yes"
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920         eval "$as_ac_Header=no"
4921 fi
4922
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 fi
4925 ac_res=`eval echo '${'$as_ac_Header'}'`
4926                { echo "$as_me:$LINENO: result: $ac_res" >&5
4927 echo "${ECHO_T}$ac_res" >&6; }
4928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4929   cat >>confdefs.h <<_ACEOF
4930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4931 _ACEOF
4932
4933 fi
4934
4935 done
4936
4937
4938
4939 for ac_header in dlfcn.h
4940 do
4941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4943   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 fi
4948 ac_res=`eval echo '${'$as_ac_Header'}'`
4949                { echo "$as_me:$LINENO: result: $ac_res" >&5
4950 echo "${ECHO_T}$ac_res" >&6; }
4951 else
4952   # Is the header compilable?
4953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h.  */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h.  */
4961 $ac_includes_default
4962 #include <$ac_header>
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4966 case "(($ac_try" in
4967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968   *) ac_try_echo=$ac_try;;
4969 esac
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971   (eval "$ac_compile") 2>conftest.er1
4972   ac_status=$?
4973   grep -v '^ *+' conftest.er1 >conftest.err
4974   rm -f conftest.er1
4975   cat conftest.err >&5
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); } && {
4978          test -z "$ac_c_werror_flag" ||
4979          test ! -s conftest.err
4980        } && test -s conftest.$ac_objext; then
4981   ac_header_compiler=yes
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986         ac_header_compiler=no
4987 fi
4988
4989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4991 echo "${ECHO_T}$ac_header_compiler" >&6; }
4992
4993 # Is the header present?
4994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #include <$ac_header>
5003 _ACEOF
5004 if { (ac_try="$ac_cpp conftest.$ac_ext"
5005 case "(($ac_try" in
5006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007   *) ac_try_echo=$ac_try;;
5008 esac
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } >/dev/null && {
5017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5018          test ! -s conftest.err
5019        }; then
5020   ac_header_preproc=yes
5021 else
5022   echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025   ac_header_preproc=no
5026 fi
5027
5028 rm -f conftest.err conftest.$ac_ext
5029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5030 echo "${ECHO_T}$ac_header_preproc" >&6; }
5031
5032 # So?  What about this header?
5033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5034   yes:no: )
5035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5039     ac_header_preproc=yes
5040     ;;
5041   no:yes:* )
5042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5054
5055     ;;
5056 esac
5057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   eval "$as_ac_Header=\$ac_header_preproc"
5063 fi
5064 ac_res=`eval echo '${'$as_ac_Header'}'`
5065                { echo "$as_me:$LINENO: result: $ac_res" >&5
5066 echo "${ECHO_T}$ac_res" >&6; }
5067
5068 fi
5069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5070   cat >>confdefs.h <<_ACEOF
5071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5072 _ACEOF
5073
5074 fi
5075
5076 done
5077
5078 ac_ext=cpp
5079 ac_cpp='$CXXCPP $CPPFLAGS'
5080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5083 if test -z "$CXX"; then
5084   if test -n "$CCC"; then
5085     CXX=$CCC
5086   else
5087     if test -n "$ac_tool_prefix"; then
5088   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5089   do
5090     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094 if test "${ac_cv_prog_CXX+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   if test -n "$CXX"; then
5098   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_exec_ext in '' $ac_executable_extensions; do
5106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112 done
5113 IFS=$as_save_IFS
5114
5115 fi
5116 fi
5117 CXX=$ac_cv_prog_CXX
5118 if test -n "$CXX"; then
5119   { echo "$as_me:$LINENO: result: $CXX" >&5
5120 echo "${ECHO_T}$CXX" >&6; }
5121 else
5122   { echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6; }
5124 fi
5125
5126
5127     test -n "$CXX" && break
5128   done
5129 fi
5130 if test -z "$CXX"; then
5131   ac_ct_CXX=$CXX
5132   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5133 do
5134   # Extract the first word of "$ac_prog", so it can be a program name with args.
5135 set dummy $ac_prog; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   if test -n "$ac_ct_CXX"; then
5142   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147   IFS=$as_save_IFS
5148   test -z "$as_dir" && as_dir=.
5149   for ac_exec_ext in '' $ac_executable_extensions; do
5150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151     ac_cv_prog_ac_ct_CXX="$ac_prog"
5152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153     break 2
5154   fi
5155 done
5156 done
5157 IFS=$as_save_IFS
5158
5159 fi
5160 fi
5161 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5162 if test -n "$ac_ct_CXX"; then
5163   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5164 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5165 else
5166   { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5168 fi
5169
5170
5171   test -n "$ac_ct_CXX" && break
5172 done
5173
5174   if test "x$ac_ct_CXX" = x; then
5175     CXX="g++"
5176   else
5177     case $cross_compiling:$ac_tool_warned in
5178 yes:)
5179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5180 whose name does not start with the host triplet.  If you think this
5181 configuration is useful to you, please write to autoconf@gnu.org." >&5
5182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet.  If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5185 ac_tool_warned=yes ;;
5186 esac
5187     CXX=$ac_ct_CXX
5188   fi
5189 fi
5190
5191   fi
5192 fi
5193 # Provide some information about the compiler.
5194 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5195 ac_compiler=`set X $ac_compile; echo $2`
5196 { (ac_try="$ac_compiler --version >&5"
5197 case "(($ac_try" in
5198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199   *) ac_try_echo=$ac_try;;
5200 esac
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202   (eval "$ac_compiler --version >&5") 2>&5
5203   ac_status=$?
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); }
5206 { (ac_try="$ac_compiler -v >&5"
5207 case "(($ac_try" in
5208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209   *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212   (eval "$ac_compiler -v >&5") 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }
5216 { (ac_try="$ac_compiler -V >&5"
5217 case "(($ac_try" in
5218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219   *) ac_try_echo=$ac_try;;
5220 esac
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222   (eval "$ac_compiler -V >&5") 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }
5226
5227 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5228 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5229 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238
5239 int
5240 main ()
5241 {
5242 #ifndef __GNUC__
5243        choke me
5244 #endif
5245
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_compile") 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } && {
5264          test -z "$ac_cxx_werror_flag" ||
5265          test ! -s conftest.err
5266        } && test -s conftest.$ac_objext; then
5267   ac_compiler_gnu=yes
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272         ac_compiler_gnu=no
5273 fi
5274
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5277
5278 fi
5279 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5280 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5281 GXX=`test $ac_compiler_gnu = yes && echo yes`
5282 ac_test_CXXFLAGS=${CXXFLAGS+set}
5283 ac_save_CXXFLAGS=$CXXFLAGS
5284 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5285 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5286 if test "${ac_cv_prog_cxx_g+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5290    ac_cxx_werror_flag=yes
5291    ac_cv_prog_cxx_g=no
5292    CXXFLAGS="-g"
5293    cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299
5300 int
5301 main ()
5302 {
5303
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (ac_try="$ac_compile"
5310 case "(($ac_try" in
5311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312   *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315   (eval "$ac_compile") 2>conftest.er1
5316   ac_status=$?
5317   grep -v '^ *+' conftest.er1 >conftest.err
5318   rm -f conftest.er1
5319   cat conftest.err >&5
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); } && {
5322          test -z "$ac_cxx_werror_flag" ||
5323          test ! -s conftest.err
5324        } && test -s conftest.$ac_objext; then
5325   ac_cv_prog_cxx_g=yes
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330         CXXFLAGS=""
5331       cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337
5338 int
5339 main ()
5340 {
5341
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_compile") 2>conftest.er1
5354   ac_status=$?
5355   grep -v '^ *+' conftest.er1 >conftest.err
5356   rm -f conftest.er1
5357   cat conftest.err >&5
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } && {
5360          test -z "$ac_cxx_werror_flag" ||
5361          test ! -s conftest.err
5362        } && test -s conftest.$ac_objext; then
5363   :
5364 else
5365   echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5369          CXXFLAGS="-g"
5370          cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376
5377 int
5378 main ()
5379 {
5380
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5387 case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_compile") 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } && {
5399          test -z "$ac_cxx_werror_flag" ||
5400          test ! -s conftest.err
5401        } && test -s conftest.$ac_objext; then
5402   ac_cv_prog_cxx_g=yes
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407
5408 fi
5409
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 fi
5412
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 fi
5415
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5418 fi
5419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5420 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5421 if test "$ac_test_CXXFLAGS" = set; then
5422   CXXFLAGS=$ac_save_CXXFLAGS
5423 elif test $ac_cv_prog_cxx_g = yes; then
5424   if test "$GXX" = yes; then
5425     CXXFLAGS="-g -O2"
5426   else
5427     CXXFLAGS="-g"
5428   fi
5429 else
5430   if test "$GXX" = yes; then
5431     CXXFLAGS="-O2"
5432   else
5433     CXXFLAGS=
5434   fi
5435 fi
5436 ac_ext=cpp
5437 ac_cpp='$CXXCPP $CPPFLAGS'
5438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5441
5442 depcc="$CXX"  am_compiler_list=
5443
5444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5446 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5450   # We make a subdir and do the tests there.  Otherwise we can end up
5451   # making bogus files that we don't know about and never remove.  For
5452   # instance it was reported that on HP-UX the gcc test will end up
5453   # making a dummy file named `D' -- because `-MD' means `put the output
5454   # in D'.
5455   mkdir conftest.dir
5456   # Copy depcomp to subdir because otherwise we won't find it if we're
5457   # using a relative directory.
5458   cp "$am_depcomp" conftest.dir
5459   cd conftest.dir
5460   # We will build objects and dependencies in a subdirectory because
5461   # it helps to detect inapplicable dependency modes.  For instance
5462   # both Tru64's cc and ICC support -MD to output dependencies as a
5463   # side effect of compilation, but ICC will put the dependencies in
5464   # the current directory while Tru64 will put them in the object
5465   # directory.
5466   mkdir sub
5467
5468   am_cv_CXX_dependencies_compiler_type=none
5469   if test "$am_compiler_list" = ""; then
5470      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5471   fi
5472   for depmode in $am_compiler_list; do
5473     # Setup a source with many dependencies, because some compilers
5474     # like to wrap large dependency lists on column 80 (with \), and
5475     # we should not choose a depcomp mode which is confused by this.
5476     #
5477     # We need to recreate these files for each test, as the compiler may
5478     # overwrite some of them when testing with obscure command lines.
5479     # This happens at least with the AIX C compiler.
5480     : > sub/conftest.c
5481     for i in 1 2 3 4 5 6; do
5482       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5483       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5484       # Solaris 8's {/usr,}/bin/sh.
5485       touch sub/conftst$i.h
5486     done
5487     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5488
5489     case $depmode in
5490     nosideeffect)
5491       # after this tag, mechanisms are not by side-effect, so they'll
5492       # only be used when explicitly requested
5493       if test "x$enable_dependency_tracking" = xyes; then
5494         continue
5495       else
5496         break
5497       fi
5498       ;;
5499     none) break ;;
5500     esac
5501     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5502     # mode.  It turns out that the SunPro C++ compiler does not properly
5503     # handle `-M -o', and we need to detect this.
5504     if depmode=$depmode \
5505        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5507        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5508          >/dev/null 2>conftest.err &&
5509        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5510        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5511        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5512       # icc doesn't choke on unknown options, it will just issue warnings
5513       # or remarks (even with -Werror).  So we grep stderr for any message
5514       # that says an option was ignored or not supported.
5515       # When given -MP, icc 7.0 and 7.1 complain thusly:
5516       #   icc: Command line warning: ignoring option '-M'; no argument required
5517       # The diagnosis changed in icc 8.0:
5518       #   icc: Command line remark: option '-MP' not supported
5519       if (grep 'ignoring option' conftest.err ||
5520           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5521         am_cv_CXX_dependencies_compiler_type=$depmode
5522         break
5523       fi
5524     fi
5525   done
5526
5527   cd ..
5528   rm -rf conftest.dir
5529 else
5530   am_cv_CXX_dependencies_compiler_type=none
5531 fi
5532
5533 fi
5534 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5535 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5536 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5537
5538
5539
5540 if
5541   test "x$enable_dependency_tracking" != xno \
5542   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5543   am__fastdepCXX_TRUE=
5544   am__fastdepCXX_FALSE='#'
5545 else
5546   am__fastdepCXX_TRUE='#'
5547   am__fastdepCXX_FALSE=
5548 fi
5549
5550
5551
5552
5553 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5554     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5555     (test "X$CXX" != "Xg++"))) ; then
5556   ac_ext=cpp
5557 ac_cpp='$CXXCPP $CPPFLAGS'
5558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5561 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5562 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5563 if test -z "$CXXCPP"; then
5564   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567       # Double quotes because CXXCPP needs to be expanded
5568     for CXXCPP in "$CXX -E" "/lib/cpp"
5569     do
5570       ac_preproc_ok=false
5571 for ac_cxx_preproc_warn_flag in '' yes
5572 do
5573   # Use a header file that comes with gcc, so configuring glibc
5574   # with a fresh cross-compiler works.
5575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5576   # <limits.h> exists even on freestanding compilers.
5577   # On the NeXT, cc -E runs the code through the compiler's parser,
5578   # not just through cpp. "Syntax error" is here to catch this case.
5579   cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h.  */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h.  */
5585 #ifdef __STDC__
5586 # include <limits.h>
5587 #else
5588 # include <assert.h>
5589 #endif
5590                      Syntax error
5591 _ACEOF
5592 if { (ac_try="$ac_cpp conftest.$ac_ext"
5593 case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } >/dev/null && {
5605          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5606          test ! -s conftest.err
5607        }; then
5608   :
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613   # Broken: fails on valid input.
5614 continue
5615 fi
5616
5617 rm -f conftest.err conftest.$ac_ext
5618
5619   # OK, works on sane cases.  Now check whether nonexistent headers
5620   # can be detected and how.
5621   cat >conftest.$ac_ext <<_ACEOF
5622 /* confdefs.h.  */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h.  */
5627 #include <ac_nonexistent.h>
5628 _ACEOF
5629 if { (ac_try="$ac_cpp conftest.$ac_ext"
5630 case "(($ac_try" in
5631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632   *) ac_try_echo=$ac_try;;
5633 esac
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } >/dev/null && {
5642          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5643          test ! -s conftest.err
5644        }; then
5645   # Broken: success on invalid input.
5646 continue
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651   # Passes both tests.
5652 ac_preproc_ok=:
5653 break
5654 fi
5655
5656 rm -f conftest.err conftest.$ac_ext
5657
5658 done
5659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660 rm -f conftest.err conftest.$ac_ext
5661 if $ac_preproc_ok; then
5662   break
5663 fi
5664
5665     done
5666     ac_cv_prog_CXXCPP=$CXXCPP
5667
5668 fi
5669   CXXCPP=$ac_cv_prog_CXXCPP
5670 else
5671   ac_cv_prog_CXXCPP=$CXXCPP
5672 fi
5673 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5674 echo "${ECHO_T}$CXXCPP" >&6; }
5675 ac_preproc_ok=false
5676 for ac_cxx_preproc_warn_flag in '' yes
5677 do
5678   # Use a header file that comes with gcc, so configuring glibc
5679   # with a fresh cross-compiler works.
5680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681   # <limits.h> exists even on freestanding compilers.
5682   # On the NeXT, cc -E runs the code through the compiler's parser,
5683   # not just through cpp. "Syntax error" is here to catch this case.
5684   cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 #ifdef __STDC__
5691 # include <limits.h>
5692 #else
5693 # include <assert.h>
5694 #endif
5695                      Syntax error
5696 _ACEOF
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } >/dev/null && {
5710          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5711          test ! -s conftest.err
5712        }; then
5713   :
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718   # Broken: fails on valid input.
5719 continue
5720 fi
5721
5722 rm -f conftest.err conftest.$ac_ext
5723
5724   # OK, works on sane cases.  Now check whether nonexistent headers
5725   # can be detected and how.
5726   cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 #include <ac_nonexistent.h>
5733 _ACEOF
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5735 case "(($ac_try" in
5736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737   *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5741   ac_status=$?
5742   grep -v '^ *+' conftest.er1 >conftest.err
5743   rm -f conftest.er1
5744   cat conftest.err >&5
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } >/dev/null && {
5747          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5748          test ! -s conftest.err
5749        }; then
5750   # Broken: success on invalid input.
5751 continue
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756   # Passes both tests.
5757 ac_preproc_ok=:
5758 break
5759 fi
5760
5761 rm -f conftest.err conftest.$ac_ext
5762
5763 done
5764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765 rm -f conftest.err conftest.$ac_ext
5766 if $ac_preproc_ok; then
5767   :
5768 else
5769   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5770 See \`config.log' for more details." >&5
5771 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5772 See \`config.log' for more details." >&2;}
5773    { (exit 1); exit 1; }; }
5774 fi
5775
5776 ac_ext=cpp
5777 ac_cpp='$CXXCPP $CPPFLAGS'
5778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5781
5782 fi
5783
5784
5785 ac_ext=f
5786 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5787 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5789 if test -n "$ac_tool_prefix"; then
5790   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
5791   do
5792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_prog_F77+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   if test -n "$F77"; then
5800   ac_cv_prog_F77="$F77" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 F77=$ac_cv_prog_F77
5820 if test -n "$F77"; then
5821   { echo "$as_me:$LINENO: result: $F77" >&5
5822 echo "${ECHO_T}$F77" >&6; }
5823 else
5824   { echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6; }
5826 fi
5827
5828
5829     test -n "$F77" && break
5830   done
5831 fi
5832 if test -z "$F77"; then
5833   ac_ct_F77=$F77
5834   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
5835 do
5836   # Extract the first word of "$ac_prog", so it can be a program name with args.
5837 set dummy $ac_prog; ac_word=$2
5838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   if test -n "$ac_ct_F77"; then
5844   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851   for ac_exec_ext in '' $ac_executable_extensions; do
5852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853     ac_cv_prog_ac_ct_F77="$ac_prog"
5854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5864 if test -n "$ac_ct_F77"; then
5865   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5866 echo "${ECHO_T}$ac_ct_F77" >&6; }
5867 else
5868   { echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6; }
5870 fi
5871
5872
5873   test -n "$ac_ct_F77" && break
5874 done
5875
5876   if test "x$ac_ct_F77" = x; then
5877     F77=""
5878   else
5879     case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5882 whose name does not start with the host triplet.  If you think this
5883 configuration is useful to you, please write to autoconf@gnu.org." >&5
5884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5885 whose name does not start with the host triplet.  If you think this
5886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5887 ac_tool_warned=yes ;;
5888 esac
5889     F77=$ac_ct_F77
5890   fi
5891 fi
5892
5893
5894 # Provide some information about the compiler.
5895 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5896 ac_compiler=`set X $ac_compile; echo $2`
5897 { (ac_try="$ac_compiler --version >&5"
5898 case "(($ac_try" in
5899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900   *) ac_try_echo=$ac_try;;
5901 esac
5902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903   (eval "$ac_compiler --version >&5") 2>&5
5904   ac_status=$?
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); }
5907 { (ac_try="$ac_compiler -v >&5"
5908 case "(($ac_try" in
5909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910   *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913   (eval "$ac_compiler -v >&5") 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }
5917 { (ac_try="$ac_compiler -V >&5"
5918 case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_compiler -V >&5") 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }
5927 rm -f a.out
5928
5929 # If we don't use `.F' as extension, the preprocessor is not run on the
5930 # input file.  (Note that this only needs to work for GNU compilers.)
5931 ac_save_ext=$ac_ext
5932 ac_ext=F
5933 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5934 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5935 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   cat >conftest.$ac_ext <<_ACEOF
5939       program main
5940 #ifndef __GNUC__
5941        choke me
5942 #endif
5943
5944       end
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953   (eval "$ac_compile") 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } && {
5960          test -z "$ac_f77_werror_flag" ||
5961          test ! -s conftest.err
5962        } && test -s conftest.$ac_objext; then
5963   ac_compiler_gnu=yes
5964 else
5965   echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968         ac_compiler_gnu=no
5969 fi
5970
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5973
5974 fi
5975 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5976 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5977 ac_ext=$ac_save_ext
5978 ac_test_FFLAGS=${FFLAGS+set}
5979 ac_save_FFLAGS=$FFLAGS
5980 FFLAGS=
5981 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5982 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5983 if test "${ac_cv_prog_f77_g+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   FFLAGS=-g
5987 cat >conftest.$ac_ext <<_ACEOF
5988       program main
5989
5990       end
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5994 case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_compile") 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } && {
6006          test -z "$ac_f77_werror_flag" ||
6007          test ! -s conftest.err
6008        } && test -s conftest.$ac_objext; then
6009   ac_cv_prog_f77_g=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014         ac_cv_prog_f77_g=no
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018
6019 fi
6020 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6021 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6022 if test "$ac_test_FFLAGS" = set; then
6023   FFLAGS=$ac_save_FFLAGS
6024 elif test $ac_cv_prog_f77_g = yes; then
6025   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6026     FFLAGS="-g -O2"
6027   else
6028     FFLAGS="-g"
6029   fi
6030 else
6031   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6032     FFLAGS="-O2"
6033   else
6034     FFLAGS=
6035   fi
6036 fi
6037
6038 G77=`test $ac_compiler_gnu = yes && echo yes`
6039 ac_ext=c
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045
6046
6047 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6048
6049 # find the maximum length of command line arguments
6050 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6051 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6052 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055     i=0
6056   teststring="ABCD"
6057
6058   case $build_os in
6059   msdosdjgpp*)
6060     # On DJGPP, this test can blow up pretty badly due to problems in libc
6061     # (any single argument exceeding 2000 bytes causes a buffer overrun
6062     # during glob expansion).  Even if it were fixed, the result of this
6063     # check would be larger than it should be.
6064     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6065     ;;
6066
6067   gnu*)
6068     # Under GNU Hurd, this test is not required because there is
6069     # no limit to the length of command line arguments.
6070     # Libtool will interpret -1 as no limit whatsoever
6071     lt_cv_sys_max_cmd_len=-1;
6072     ;;
6073
6074   cygwin* | mingw*)
6075     # On Win9x/ME, this test blows up -- it succeeds, but takes
6076     # about 5 minutes as the teststring grows exponentially.
6077     # Worse, since 9x/ME are not pre-emptively multitasking,
6078     # you end up with a "frozen" computer, even though with patience
6079     # the test eventually succeeds (with a max line length of 256k).
6080     # Instead, let's just punt: use the minimum linelength reported by
6081     # all of the supported platforms: 8192 (on NT/2K/XP).
6082     lt_cv_sys_max_cmd_len=8192;
6083     ;;
6084
6085   amigaos*)
6086     # On AmigaOS with pdksh, this test takes hours, literally.
6087     # So we just punt and use a minimum line length of 8192.
6088     lt_cv_sys_max_cmd_len=8192;
6089     ;;
6090
6091   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6092     # This has been around since 386BSD, at least.  Likely further.
6093     if test -x /sbin/sysctl; then
6094       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6095     elif test -x /usr/sbin/sysctl; then
6096       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6097     else
6098       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6099     fi
6100     # And add a safety zone
6101     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6102     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6103     ;;
6104
6105   interix*)
6106     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6107     lt_cv_sys_max_cmd_len=196608
6108     ;;
6109
6110   osf*)
6111     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6112     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6113     # nice to cause kernel panics so lets avoid the loop below.
6114     # First set a reasonable default.
6115     lt_cv_sys_max_cmd_len=16384
6116     #
6117     if test -x /sbin/sysconfig; then
6118       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6119         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6120       esac
6121     fi
6122     ;;
6123   sco3.2v5*)
6124     lt_cv_sys_max_cmd_len=102400
6125     ;;
6126   sysv5* | sco5v6* | sysv4.2uw2*)
6127     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6128     if test -n "$kargmax"; then
6129       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6130     else
6131       lt_cv_sys_max_cmd_len=32768
6132     fi
6133     ;;
6134   *)
6135     # If test is not a shell built-in, we'll probably end up computing a
6136     # maximum length that is only half of the actual maximum length, but
6137     # we can't tell.
6138     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6139     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6140                = "XX$teststring") >/dev/null 2>&1 &&
6141             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6142             lt_cv_sys_max_cmd_len=$new_result &&
6143             test $i != 17 # 1/2 MB should be enough
6144     do
6145       i=`expr $i + 1`
6146       teststring=$teststring$teststring
6147     done
6148     teststring=
6149     # Add a significant safety factor because C++ compilers can tack on massive
6150     # amounts of additional arguments before passing them to the linker.
6151     # It appears as though 1/2 is a usable value.
6152     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6153     ;;
6154   esac
6155
6156 fi
6157
6158 if test -n $lt_cv_sys_max_cmd_len ; then
6159   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6160 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6161 else
6162   { echo "$as_me:$LINENO: result: none" >&5
6163 echo "${ECHO_T}none" >&6; }
6164 fi
6165
6166
6167
6168
6169 # Check for command to grab the raw symbol name followed by C symbol from nm.
6170 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6171 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6172 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175
6176 # These are sane defaults that work on at least a few old systems.
6177 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6178
6179 # Character class describing NM global symbol codes.
6180 symcode='[BCDEGRST]'
6181
6182 # Regexp to match symbols that can be accessed directly from C.
6183 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6184
6185 # Transform an extracted symbol line into a proper C declaration
6186 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6187
6188 # Transform an extracted symbol line into symbol name and symbol address
6189 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'"
6190
6191 # Define system-specific variables.
6192 case $host_os in
6193 aix*)
6194   symcode='[BCDT]'
6195   ;;
6196 cygwin* | mingw* | pw32*)
6197   symcode='[ABCDGISTW]'
6198   ;;
6199 hpux*) # Its linker distinguishes data from code symbols
6200   if test "$host_cpu" = ia64; then
6201     symcode='[ABCDEGRST]'
6202   fi
6203   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6204   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'"
6205   ;;
6206 linux* | k*bsd*-gnu)
6207   if test "$host_cpu" = ia64; then
6208     symcode='[ABCDGIRSTW]'
6209     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6210     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'"
6211   fi
6212   ;;
6213 irix* | nonstopux*)
6214   symcode='[BCDEGRST]'
6215   ;;
6216 osf*)
6217   symcode='[BCDEGQRST]'
6218   ;;
6219 solaris*)
6220   symcode='[BDRT]'
6221   ;;
6222 sco3.2v5*)
6223   symcode='[DT]'
6224   ;;
6225 sysv4.2uw2*)
6226   symcode='[DT]'
6227   ;;
6228 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6229   symcode='[ABDT]'
6230   ;;
6231 sysv4)
6232   symcode='[DFNSTU]'
6233   ;;
6234 esac
6235
6236 # Handle CRLF in mingw tool chain
6237 opt_cr=
6238 case $build_os in
6239 mingw*)
6240   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6241   ;;
6242 esac
6243
6244 # If we're using GNU nm, then use its standard symbol codes.
6245 case `$NM -V 2>&1` in
6246 *GNU* | *'with BFD'*)
6247   symcode='[ABCDGIRSTW]' ;;
6248 esac
6249
6250 # Try without a prefix undercore, then with it.
6251 for ac_symprfx in "" "_"; do
6252
6253   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6254   symxfrm="\\1 $ac_symprfx\\2 \\2"
6255
6256   # Write the raw and C identifiers.
6257   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6258
6259   # Check to see that the pipe works correctly.
6260   pipe_works=no
6261
6262   rm -f conftest*
6263   cat > conftest.$ac_ext <<EOF
6264 #ifdef __cplusplus
6265 extern "C" {
6266 #endif
6267 char nm_test_var;
6268 void nm_test_func(){}
6269 #ifdef __cplusplus
6270 }
6271 #endif
6272 int main(){nm_test_var='a';nm_test_func();return(0);}
6273 EOF
6274
6275   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276   (eval $ac_compile) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; then
6280     # Now try to grab the symbols.
6281     nlist=conftest.nm
6282     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6283   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && test -s "$nlist"; then
6287       # Try sorting and uniquifying the output.
6288       if sort "$nlist" | uniq > "$nlist"T; then
6289         mv -f "$nlist"T "$nlist"
6290       else
6291         rm -f "$nlist"T
6292       fi
6293
6294       # Make sure that we snagged all the symbols we need.
6295       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6296         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6297           cat <<EOF > conftest.$ac_ext
6298 #ifdef __cplusplus
6299 extern "C" {
6300 #endif
6301
6302 EOF
6303           # Now generate the symbol file.
6304           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6305
6306           cat <<EOF >> conftest.$ac_ext
6307 #if defined (__STDC__) && __STDC__
6308 # define lt_ptr_t void *
6309 #else
6310 # define lt_ptr_t char *
6311 # define const
6312 #endif
6313
6314 /* The mapping between symbol names and symbols. */
6315 const struct {
6316   const char *name;
6317   lt_ptr_t address;
6318 }
6319 lt_preloaded_symbols[] =
6320 {
6321 EOF
6322           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6323           cat <<\EOF >> conftest.$ac_ext
6324   {0, (lt_ptr_t) 0}
6325 };
6326
6327 #ifdef __cplusplus
6328 }
6329 #endif
6330 EOF
6331           # Now try linking the two files.
6332           mv conftest.$ac_objext conftstm.$ac_objext
6333           lt_save_LIBS="$LIBS"
6334           lt_save_CFLAGS="$CFLAGS"
6335           LIBS="conftstm.$ac_objext"
6336           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6337           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338   (eval $ac_link) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6342             pipe_works=yes
6343           fi
6344           LIBS="$lt_save_LIBS"
6345           CFLAGS="$lt_save_CFLAGS"
6346         else
6347           echo "cannot find nm_test_func in $nlist" >&5
6348         fi
6349       else
6350         echo "cannot find nm_test_var in $nlist" >&5
6351       fi
6352     else
6353       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6354     fi
6355   else
6356     echo "$progname: failed program was:" >&5
6357     cat conftest.$ac_ext >&5
6358   fi
6359   rm -f conftest* conftst*
6360
6361   # Do not use the global_symbol_pipe unless it works.
6362   if test "$pipe_works" = yes; then
6363     break
6364   else
6365     lt_cv_sys_global_symbol_pipe=
6366   fi
6367 done
6368
6369 fi
6370
6371 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6372   lt_cv_sys_global_symbol_to_cdecl=
6373 fi
6374 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6375   { echo "$as_me:$LINENO: result: failed" >&5
6376 echo "${ECHO_T}failed" >&6; }
6377 else
6378   { echo "$as_me:$LINENO: result: ok" >&5
6379 echo "${ECHO_T}ok" >&6; }
6380 fi
6381
6382 { echo "$as_me:$LINENO: checking for objdir" >&5
6383 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6384 if test "${lt_cv_objdir+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   rm -f .libs 2>/dev/null
6388 mkdir .libs 2>/dev/null
6389 if test -d .libs; then
6390   lt_cv_objdir=.libs
6391 else
6392   # MS-DOS does not allow filenames that begin with a dot.
6393   lt_cv_objdir=_libs
6394 fi
6395 rmdir .libs 2>/dev/null
6396 fi
6397 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6398 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6399 objdir=$lt_cv_objdir
6400
6401
6402
6403
6404
6405 case $host_os in
6406 aix3*)
6407   # AIX sometimes has problems with the GCC collect2 program.  For some
6408   # reason, if we set the COLLECT_NAMES environment variable, the problems
6409   # vanish in a puff of smoke.
6410   if test "X${COLLECT_NAMES+set}" != Xset; then
6411     COLLECT_NAMES=
6412     export COLLECT_NAMES
6413   fi
6414   ;;
6415 esac
6416
6417 # Sed substitution that helps us do robust quoting.  It backslashifies
6418 # metacharacters that are still active within double-quoted strings.
6419 Xsed='sed -e 1s/^X//'
6420 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6421
6422 # Same as above, but do not quote variable references.
6423 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6424
6425 # Sed substitution to delay expansion of an escaped shell variable in a
6426 # double_quote_subst'ed string.
6427 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6428
6429 # Sed substitution to avoid accidental globbing in evaled expressions
6430 no_glob_subst='s/\*/\\\*/g'
6431
6432 # Constants:
6433 rm="rm -f"
6434
6435 # Global variables:
6436 default_ofile=libtool
6437 can_build_shared=yes
6438
6439 # All known linkers require a `.a' archive for static linking (except MSVC,
6440 # which needs '.lib').
6441 libext=a
6442 ltmain="$ac_aux_dir/ltmain.sh"
6443 ofile="$default_ofile"
6444 with_gnu_ld="$lt_cv_prog_gnu_ld"
6445
6446 if test -n "$ac_tool_prefix"; then
6447   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}ar; ac_word=$2
6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451 if test "${ac_cv_prog_AR+set}" = set; then
6452   echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454   if test -n "$AR"; then
6455   ac_cv_prog_AR="$AR" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462   for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_prog_AR="${ac_tool_prefix}ar"
6465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 AR=$ac_cv_prog_AR
6475 if test -n "$AR"; then
6476   { echo "$as_me:$LINENO: result: $AR" >&5
6477 echo "${ECHO_T}$AR" >&6; }
6478 else
6479   { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482
6483
6484 fi
6485 if test -z "$ac_cv_prog_AR"; then
6486   ac_ct_AR=$AR
6487   # Extract the first word of "ar", so it can be a program name with args.
6488 set dummy ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   if test -n "$ac_ct_AR"; then
6495   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_ac_ct_AR="ar"
6505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6515 if test -n "$ac_ct_AR"; then
6516   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6517 echo "${ECHO_T}$ac_ct_AR" >&6; }
6518 else
6519   { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6521 fi
6522
6523   if test "x$ac_ct_AR" = x; then
6524     AR="false"
6525   else
6526     case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet.  If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&5
6531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6532 whose name does not start with the host triplet.  If you think this
6533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536     AR=$ac_ct_AR
6537   fi
6538 else
6539   AR="$ac_cv_prog_AR"
6540 fi
6541
6542 if test -n "$ac_tool_prefix"; then
6543   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_prog_RANLIB+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   if test -n "$RANLIB"; then
6551   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558   for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 RANLIB=$ac_cv_prog_RANLIB
6571 if test -n "$RANLIB"; then
6572   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6573 echo "${ECHO_T}$RANLIB" >&6; }
6574 else
6575   { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_prog_RANLIB"; then
6582   ac_ct_RANLIB=$RANLIB
6583   # Extract the first word of "ranlib", so it can be a program name with args.
6584 set dummy ranlib; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   if test -n "$ac_ct_RANLIB"; then
6591   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_prog_ac_ct_RANLIB="ranlib"
6601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6611 if test -n "$ac_ct_RANLIB"; then
6612   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6613 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6614 else
6615   { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6617 fi
6618
6619   if test "x$ac_ct_RANLIB" = x; then
6620     RANLIB=":"
6621   else
6622     case $cross_compiling:$ac_tool_warned in
6623 yes:)
6624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6625 whose name does not start with the host triplet.  If you think this
6626 configuration is useful to you, please write to autoconf@gnu.org." >&5
6627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6628 whose name does not start with the host triplet.  If you think this
6629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6630 ac_tool_warned=yes ;;
6631 esac
6632     RANLIB=$ac_ct_RANLIB
6633   fi
6634 else
6635   RANLIB="$ac_cv_prog_RANLIB"
6636 fi
6637
6638 if test -n "$ac_tool_prefix"; then
6639   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}strip; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_prog_STRIP+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   if test -n "$STRIP"; then
6647   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 STRIP=$ac_cv_prog_STRIP
6667 if test -n "$STRIP"; then
6668   { echo "$as_me:$LINENO: result: $STRIP" >&5
6669 echo "${ECHO_T}$STRIP" >&6; }
6670 else
6671   { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_STRIP"; then
6678   ac_ct_STRIP=$STRIP
6679   # Extract the first word of "strip", so it can be a program name with args.
6680 set dummy strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   if test -n "$ac_ct_STRIP"; then
6687   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_ac_ct_STRIP="strip"
6697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6707 if test -n "$ac_ct_STRIP"; then
6708   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6709 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6710 else
6711   { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715   if test "x$ac_ct_STRIP" = x; then
6716     STRIP=":"
6717   else
6718     case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet.  If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&5
6723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6724 whose name does not start with the host triplet.  If you think this
6725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728     STRIP=$ac_ct_STRIP
6729   fi
6730 else
6731   STRIP="$ac_cv_prog_STRIP"
6732 fi
6733
6734
6735 old_CC="$CC"
6736 old_CFLAGS="$CFLAGS"
6737
6738 # Set sane defaults for various variables
6739 test -z "$AR" && AR=ar
6740 test -z "$AR_FLAGS" && AR_FLAGS=cru
6741 test -z "$AS" && AS=as
6742 test -z "$CC" && CC=cc
6743 test -z "$LTCC" && LTCC=$CC
6744 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6745 test -z "$DLLTOOL" && DLLTOOL=dlltool
6746 test -z "$LD" && LD=ld
6747 test -z "$LN_S" && LN_S="ln -s"
6748 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6749 test -z "$NM" && NM=nm
6750 test -z "$SED" && SED=sed
6751 test -z "$OBJDUMP" && OBJDUMP=objdump
6752 test -z "$RANLIB" && RANLIB=:
6753 test -z "$STRIP" && STRIP=:
6754 test -z "$ac_objext" && ac_objext=o
6755
6756 # Determine commands to create old-style static archives.
6757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6758 old_postinstall_cmds='chmod 644 $oldlib'
6759 old_postuninstall_cmds=
6760
6761 if test -n "$RANLIB"; then
6762   case $host_os in
6763   openbsd*)
6764     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6765     ;;
6766   *)
6767     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6768     ;;
6769   esac
6770   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6771 fi
6772
6773 for cc_temp in $compiler""; do
6774   case $cc_temp in
6775     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6776     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6777     \-*) ;;
6778     *) break;;
6779   esac
6780 done
6781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6782
6783
6784 # Only perform the check for file, if the check method requires it
6785 case $deplibs_check_method in
6786 file_magic*)
6787   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6788     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6789 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6790 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   case $MAGIC_CMD in
6794 [\\/*] |  ?:[\\/]*)
6795   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6796   ;;
6797 *)
6798   lt_save_MAGIC_CMD="$MAGIC_CMD"
6799   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6800   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6801   for ac_dir in $ac_dummy; do
6802     IFS="$lt_save_ifs"
6803     test -z "$ac_dir" && ac_dir=.
6804     if test -f $ac_dir/${ac_tool_prefix}file; then
6805       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6806       if test -n "$file_magic_test_file"; then
6807         case $deplibs_check_method in
6808         "file_magic "*)
6809           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6810           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6811           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6812             $EGREP "$file_magic_regex" > /dev/null; then
6813             :
6814           else
6815             cat <<EOF 1>&2
6816
6817 *** Warning: the command libtool uses to detect shared libraries,
6818 *** $file_magic_cmd, produces output that libtool cannot recognize.
6819 *** The result is that libtool may fail to recognize shared libraries
6820 *** as such.  This will affect the creation of libtool libraries that
6821 *** depend on shared libraries, but programs linked with such libtool
6822 *** libraries will work regardless of this problem.  Nevertheless, you
6823 *** may want to report the problem to your system manager and/or to
6824 *** bug-libtool@gnu.org
6825
6826 EOF
6827           fi ;;
6828         esac
6829       fi
6830       break
6831     fi
6832   done
6833   IFS="$lt_save_ifs"
6834   MAGIC_CMD="$lt_save_MAGIC_CMD"
6835   ;;
6836 esac
6837 fi
6838
6839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6840 if test -n "$MAGIC_CMD"; then
6841   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6842 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6843 else
6844   { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6846 fi
6847
6848 if test -z "$lt_cv_path_MAGIC_CMD"; then
6849   if test -n "$ac_tool_prefix"; then
6850     { echo "$as_me:$LINENO: checking for file" >&5
6851 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   case $MAGIC_CMD in
6856 [\\/*] |  ?:[\\/]*)
6857   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6858   ;;
6859 *)
6860   lt_save_MAGIC_CMD="$MAGIC_CMD"
6861   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6862   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6863   for ac_dir in $ac_dummy; do
6864     IFS="$lt_save_ifs"
6865     test -z "$ac_dir" && ac_dir=.
6866     if test -f $ac_dir/file; then
6867       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6868       if test -n "$file_magic_test_file"; then
6869         case $deplibs_check_method in
6870         "file_magic "*)
6871           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6872           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6873           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6874             $EGREP "$file_magic_regex" > /dev/null; then
6875             :
6876           else
6877             cat <<EOF 1>&2
6878
6879 *** Warning: the command libtool uses to detect shared libraries,
6880 *** $file_magic_cmd, produces output that libtool cannot recognize.
6881 *** The result is that libtool may fail to recognize shared libraries
6882 *** as such.  This will affect the creation of libtool libraries that
6883 *** depend on shared libraries, but programs linked with such libtool
6884 *** libraries will work regardless of this problem.  Nevertheless, you
6885 *** may want to report the problem to your system manager and/or to
6886 *** bug-libtool@gnu.org
6887
6888 EOF
6889           fi ;;
6890         esac
6891       fi
6892       break
6893     fi
6894   done
6895   IFS="$lt_save_ifs"
6896   MAGIC_CMD="$lt_save_MAGIC_CMD"
6897   ;;
6898 esac
6899 fi
6900
6901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6902 if test -n "$MAGIC_CMD"; then
6903   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6904 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6905 else
6906   { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6908 fi
6909
6910   else
6911     MAGIC_CMD=:
6912   fi
6913 fi
6914
6915   fi
6916   ;;
6917 esac
6918
6919 enable_dlopen=no
6920 enable_win32_dll=no
6921
6922 # Check whether --enable-libtool-lock was given.
6923 if test "${enable_libtool_lock+set}" = set; then
6924   enableval=$enable_libtool_lock;
6925 fi
6926
6927 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6928
6929
6930 # Check whether --with-pic was given.
6931 if test "${with_pic+set}" = set; then
6932   withval=$with_pic; pic_mode="$withval"
6933 else
6934   pic_mode=default
6935 fi
6936
6937 test -z "$pic_mode" && pic_mode=default
6938
6939 # Use C for the default configuration in the libtool script
6940 tagname=
6941 lt_save_CC="$CC"
6942 ac_ext=c
6943 ac_cpp='$CPP $CPPFLAGS'
6944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6947
6948
6949 # Source file extension for C test sources.
6950 ac_ext=c
6951
6952 # Object file extension for compiled C test sources.
6953 objext=o
6954 objext=$objext
6955
6956 # Code to be used in simple compile tests
6957 lt_simple_compile_test_code="int some_variable = 0;\n"
6958
6959 # Code to be used in simple link tests
6960 lt_simple_link_test_code='int main(){return(0);}\n'
6961
6962
6963 # If no C compiler was specified, use CC.
6964 LTCC=${LTCC-"$CC"}
6965
6966 # If no C compiler flags were specified, use CFLAGS.
6967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6968
6969 # Allow CC to be a program name with arguments.
6970 compiler=$CC
6971
6972
6973 # save warnings/boilerplate of simple test code
6974 ac_outfile=conftest.$ac_objext
6975 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6977 _lt_compiler_boilerplate=`cat conftest.err`
6978 $rm conftest*
6979
6980 ac_outfile=conftest.$ac_objext
6981 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6983 _lt_linker_boilerplate=`cat conftest.err`
6984 $rm conftest*
6985
6986
6987
6988 lt_prog_compiler_no_builtin_flag=
6989
6990 if test "$GCC" = yes; then
6991   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6992
6993
6994 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6995 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6996 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   lt_cv_prog_compiler_rtti_exceptions=no
7000   ac_outfile=conftest.$ac_objext
7001    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7002    lt_compiler_flag="-fno-rtti -fno-exceptions"
7003    # Insert the option either (1) after the last *FLAGS variable, or
7004    # (2) before a word containing "conftest.", or (3) at the end.
7005    # Note that $ac_compile itself does not contain backslashes and begins
7006    # with a dollar sign (not a hyphen), so the echo should work correctly.
7007    # The option is referenced via a variable to avoid confusing sed.
7008    lt_compile=`echo "$ac_compile" | $SED \
7009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7011    -e 's:$: $lt_compiler_flag:'`
7012    (eval echo "\"\$as_me:7012: $lt_compile\"" >&5)
7013    (eval "$lt_compile" 2>conftest.err)
7014    ac_status=$?
7015    cat conftest.err >&5
7016    echo "$as_me:7016: \$? = $ac_status" >&5
7017    if (exit $ac_status) && test -s "$ac_outfile"; then
7018      # The compiler can only warn and ignore the option if not recognized
7019      # So say no if there are warnings other than the usual output.
7020      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7021      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7022      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7023        lt_cv_prog_compiler_rtti_exceptions=yes
7024      fi
7025    fi
7026    $rm conftest*
7027
7028 fi
7029 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7030 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7031
7032 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7033     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7034 else
7035     :
7036 fi
7037
7038 fi
7039
7040 lt_prog_compiler_wl=
7041 lt_prog_compiler_pic=
7042 lt_prog_compiler_static=
7043
7044 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7045 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7046
7047   if test "$GCC" = yes; then
7048     lt_prog_compiler_wl='-Wl,'
7049     lt_prog_compiler_static='-static'
7050
7051     case $host_os in
7052       aix*)
7053       # All AIX code is PIC.
7054       if test "$host_cpu" = ia64; then
7055         # AIX 5 now supports IA64 processor
7056         lt_prog_compiler_static='-Bstatic'
7057       fi
7058       ;;
7059
7060     amigaos*)
7061       # FIXME: we need at least 68020 code to build shared libraries, but
7062       # adding the `-m68020' flag to GCC prevents building anything better,
7063       # like `-m68040'.
7064       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7065       ;;
7066
7067     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7068       # PIC is the default for these OSes.
7069       ;;
7070
7071     mingw* | pw32* | os2*)
7072       # This hack is so that the source file can tell whether it is being
7073       # built for inclusion in a dll (and should export symbols for example).
7074       lt_prog_compiler_pic='-DDLL_EXPORT'
7075       ;;
7076
7077     darwin* | rhapsody*)
7078       # PIC is the default on this platform
7079       # Common symbols not allowed in MH_DYLIB files
7080       lt_prog_compiler_pic='-fno-common'
7081       ;;
7082
7083     interix3*)
7084       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7085       # Instead, we relocate shared libraries at runtime.
7086       ;;
7087
7088     msdosdjgpp*)
7089       # Just because we use GCC doesn't mean we suddenly get shared libraries
7090       # on systems that don't support them.
7091       lt_prog_compiler_can_build_shared=no
7092       enable_shared=no
7093       ;;
7094
7095     sysv4*MP*)
7096       if test -d /usr/nec; then
7097         lt_prog_compiler_pic=-Kconform_pic
7098       fi
7099       ;;
7100
7101     hpux*)
7102       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7103       # not for PA HP-UX.
7104       case $host_cpu in
7105       hppa*64*|ia64*)
7106         # +Z the default
7107         ;;
7108       *)
7109         lt_prog_compiler_pic='-fPIC'
7110         ;;
7111       esac
7112       ;;
7113
7114     *)
7115       lt_prog_compiler_pic='-fPIC'
7116       ;;
7117     esac
7118   else
7119     # PORTME Check for flag to pass linker flags through the system compiler.
7120     case $host_os in
7121     aix*)
7122       lt_prog_compiler_wl='-Wl,'
7123       if test "$host_cpu" = ia64; then
7124         # AIX 5 now supports IA64 processor
7125         lt_prog_compiler_static='-Bstatic'
7126       else
7127         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7128       fi
7129       ;;
7130       darwin*)
7131         # PIC is the default on this platform
7132         # Common symbols not allowed in MH_DYLIB files
7133        case $cc_basename in
7134          xlc*)
7135          lt_prog_compiler_pic='-qnocommon'
7136          lt_prog_compiler_wl='-Wl,'
7137          ;;
7138        esac
7139        ;;
7140
7141     mingw* | pw32* | os2*)
7142       # This hack is so that the source file can tell whether it is being
7143       # built for inclusion in a dll (and should export symbols for example).
7144       lt_prog_compiler_pic='-DDLL_EXPORT'
7145       ;;
7146
7147     hpux9* | hpux10* | hpux11*)
7148       lt_prog_compiler_wl='-Wl,'
7149       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7150       # not for PA HP-UX.
7151       case $host_cpu in
7152       hppa*64*|ia64*)
7153         # +Z the default
7154         ;;
7155       *)
7156         lt_prog_compiler_pic='+Z'
7157         ;;
7158       esac
7159       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7160       lt_prog_compiler_static='${wl}-a ${wl}archive'
7161       ;;
7162
7163     irix5* | irix6* | nonstopux*)
7164       lt_prog_compiler_wl='-Wl,'
7165       # PIC (with -KPIC) is the default.
7166       lt_prog_compiler_static='-non_shared'
7167       ;;
7168
7169     newsos6)
7170       lt_prog_compiler_pic='-KPIC'
7171       lt_prog_compiler_static='-Bstatic'
7172       ;;
7173
7174     linux* | k*bsd*-gnu)
7175       case $cc_basename in
7176       icc* | ecc*)
7177         lt_prog_compiler_wl='-Wl,'
7178         lt_prog_compiler_pic='-KPIC'
7179         lt_prog_compiler_static='-static'
7180         ;;
7181       pgcc* | pgf77* | pgf90* | pgf95*)
7182         # Portland Group compilers (*not* the Pentium gcc compiler,
7183         # which looks to be a dead project)
7184         lt_prog_compiler_wl='-Wl,'
7185         lt_prog_compiler_pic='-fpic'
7186         lt_prog_compiler_static='-Bstatic'
7187         ;;
7188       ccc*)
7189         lt_prog_compiler_wl='-Wl,'
7190         # All Alpha code is PIC.
7191         lt_prog_compiler_static='-non_shared'
7192         ;;
7193       esac
7194       ;;
7195
7196     osf3* | osf4* | osf5*)
7197       lt_prog_compiler_wl='-Wl,'
7198       # All OSF/1 code is PIC.
7199       lt_prog_compiler_static='-non_shared'
7200       ;;
7201
7202     solaris*)
7203       lt_prog_compiler_pic='-KPIC'
7204       lt_prog_compiler_static='-Bstatic'
7205       case $cc_basename in
7206       f77* | f90* | f95*)
7207         lt_prog_compiler_wl='-Qoption ld ';;
7208       *)
7209         lt_prog_compiler_wl='-Wl,';;
7210       esac
7211       ;;
7212
7213     sunos4*)
7214       lt_prog_compiler_wl='-Qoption ld '
7215       lt_prog_compiler_pic='-PIC'
7216       lt_prog_compiler_static='-Bstatic'
7217       ;;
7218
7219     sysv4 | sysv4.2uw2* | sysv4.3*)
7220       lt_prog_compiler_wl='-Wl,'
7221       lt_prog_compiler_pic='-KPIC'
7222       lt_prog_compiler_static='-Bstatic'
7223       ;;
7224
7225     sysv4*MP*)
7226       if test -d /usr/nec ;then
7227         lt_prog_compiler_pic='-Kconform_pic'
7228         lt_prog_compiler_static='-Bstatic'
7229       fi
7230       ;;
7231
7232     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7233       lt_prog_compiler_wl='-Wl,'
7234       lt_prog_compiler_pic='-KPIC'
7235       lt_prog_compiler_static='-Bstatic'
7236       ;;
7237
7238     unicos*)
7239       lt_prog_compiler_wl='-Wl,'
7240       lt_prog_compiler_can_build_shared=no
7241       ;;
7242
7243     uts4*)
7244       lt_prog_compiler_pic='-pic'
7245       lt_prog_compiler_static='-Bstatic'
7246       ;;
7247
7248     *)
7249       lt_prog_compiler_can_build_shared=no
7250       ;;
7251     esac
7252   fi
7253
7254 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7255 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7256
7257 #
7258 # Check to make sure the PIC flag actually works.
7259 #
7260 if test -n "$lt_prog_compiler_pic"; then
7261
7262 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7263 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7264 if test "${lt_prog_compiler_pic_works+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   lt_prog_compiler_pic_works=no
7268   ac_outfile=conftest.$ac_objext
7269    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7270    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7271    # Insert the option either (1) after the last *FLAGS variable, or
7272    # (2) before a word containing "conftest.", or (3) at the end.
7273    # Note that $ac_compile itself does not contain backslashes and begins
7274    # with a dollar sign (not a hyphen), so the echo should work correctly.
7275    # The option is referenced via a variable to avoid confusing sed.
7276    lt_compile=`echo "$ac_compile" | $SED \
7277    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7278    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7279    -e 's:$: $lt_compiler_flag:'`
7280    (eval echo "\"\$as_me:7280: $lt_compile\"" >&5)
7281    (eval "$lt_compile" 2>conftest.err)
7282    ac_status=$?
7283    cat conftest.err >&5
7284    echo "$as_me:7284: \$? = $ac_status" >&5
7285    if (exit $ac_status) && test -s "$ac_outfile"; then
7286      # The compiler can only warn and ignore the option if not recognized
7287      # So say no if there are warnings other than the usual output.
7288      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7289      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7290      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7291        lt_prog_compiler_pic_works=yes
7292      fi
7293    fi
7294    $rm conftest*
7295
7296 fi
7297 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7298 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7299
7300 if test x"$lt_prog_compiler_pic_works" = xyes; then
7301     case $lt_prog_compiler_pic in
7302      "" | " "*) ;;
7303      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7304      esac
7305 else
7306     lt_prog_compiler_pic=
7307      lt_prog_compiler_can_build_shared=no
7308 fi
7309
7310 fi
7311 case $host_os in
7312   # For platforms which do not support PIC, -DPIC is meaningless:
7313   *djgpp*)
7314     lt_prog_compiler_pic=
7315     ;;
7316   *)
7317     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7318     ;;
7319 esac
7320
7321 #
7322 # Check to make sure the static flag actually works.
7323 #
7324 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7325 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7326 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7327 if test "${lt_prog_compiler_static_works+set}" = set; then
7328   echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330   lt_prog_compiler_static_works=no
7331    save_LDFLAGS="$LDFLAGS"
7332    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7333    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7334    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7335      # The linker can only warn and ignore the option if not recognized
7336      # So say no if there are warnings
7337      if test -s conftest.err; then
7338        # Append any errors to the config.log.
7339        cat conftest.err 1>&5
7340        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7341        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7342        if diff conftest.exp conftest.er2 >/dev/null; then
7343          lt_prog_compiler_static_works=yes
7344        fi
7345      else
7346        lt_prog_compiler_static_works=yes
7347      fi
7348    fi
7349    $rm conftest*
7350    LDFLAGS="$save_LDFLAGS"
7351
7352 fi
7353 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7354 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7355
7356 if test x"$lt_prog_compiler_static_works" = xyes; then
7357     :
7358 else
7359     lt_prog_compiler_static=
7360 fi
7361
7362
7363 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7364 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   lt_cv_prog_compiler_c_o=no
7369    $rm -r conftest 2>/dev/null
7370    mkdir conftest
7371    cd conftest
7372    mkdir out
7373    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7374
7375    lt_compiler_flag="-o out/conftest2.$ac_objext"
7376    # Insert the option either (1) after the last *FLAGS variable, or
7377    # (2) before a word containing "conftest.", or (3) at the end.
7378    # Note that $ac_compile itself does not contain backslashes and begins
7379    # with a dollar sign (not a hyphen), so the echo should work correctly.
7380    lt_compile=`echo "$ac_compile" | $SED \
7381    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383    -e 's:$: $lt_compiler_flag:'`
7384    (eval echo "\"\$as_me:7384: $lt_compile\"" >&5)
7385    (eval "$lt_compile" 2>out/conftest.err)
7386    ac_status=$?
7387    cat out/conftest.err >&5
7388    echo "$as_me:7388: \$? = $ac_status" >&5
7389    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7390    then
7391      # The compiler can only warn and ignore the option if not recognized
7392      # So say no if there are warnings
7393      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7394      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7395      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7396        lt_cv_prog_compiler_c_o=yes
7397      fi
7398    fi
7399    chmod u+w . 2>&5
7400    $rm conftest*
7401    # SGI C++ compiler will create directory out/ii_files/ for
7402    # template instantiation
7403    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7404    $rm out/* && rmdir out
7405    cd ..
7406    rmdir conftest
7407    $rm conftest*
7408
7409 fi
7410 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7411 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7412
7413
7414 hard_links="nottested"
7415 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7416   # do not overwrite the value of need_locks provided by the user
7417   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7418 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7419   hard_links=yes
7420   $rm conftest*
7421   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7422   touch conftest.a
7423   ln conftest.a conftest.b 2>&5 || hard_links=no
7424   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7425   { echo "$as_me:$LINENO: result: $hard_links" >&5
7426 echo "${ECHO_T}$hard_links" >&6; }
7427   if test "$hard_links" = no; then
7428     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7429 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7430     need_locks=warn
7431   fi
7432 else
7433   need_locks=no
7434 fi
7435
7436 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7438
7439   runpath_var=
7440   allow_undefined_flag=
7441   enable_shared_with_static_runtimes=no
7442   archive_cmds=
7443   archive_expsym_cmds=
7444   old_archive_From_new_cmds=
7445   old_archive_from_expsyms_cmds=
7446   export_dynamic_flag_spec=
7447   whole_archive_flag_spec=
7448   thread_safe_flag_spec=
7449   hardcode_libdir_flag_spec=
7450   hardcode_libdir_flag_spec_ld=
7451   hardcode_libdir_separator=
7452   hardcode_direct=no
7453   hardcode_minus_L=no
7454   hardcode_shlibpath_var=unsupported
7455   link_all_deplibs=unknown
7456   hardcode_automatic=no
7457   module_cmds=
7458   module_expsym_cmds=
7459   always_export_symbols=no
7460   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7461   # include_expsyms should be a list of space-separated symbols to be *always*
7462   # included in the symbol list
7463   include_expsyms=
7464   # exclude_expsyms can be an extended regexp of symbols to exclude
7465   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7466   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7467   # as well as any symbol that contains `d'.
7468   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7469   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7470   # platforms (ab)use it in PIC code, but their linkers get confused if
7471   # the symbol is explicitly referenced.  Since portable code cannot
7472   # rely on this symbol name, it's probably fine to never include it in
7473   # preloaded symbol tables.
7474   extract_expsyms_cmds=
7475   # Just being paranoid about ensuring that cc_basename is set.
7476   for cc_temp in $compiler""; do
7477   case $cc_temp in
7478     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7479     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7480     \-*) ;;
7481     *) break;;
7482   esac
7483 done
7484 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7485
7486   case $host_os in
7487   cygwin* | mingw* | pw32*)
7488     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7489     # When not using gcc, we currently assume that we are using
7490     # Microsoft Visual C++.
7491     if test "$GCC" != yes; then
7492       with_gnu_ld=no
7493     fi
7494     ;;
7495   interix*)
7496     # we just hope/assume this is gcc and not c89 (= MSVC++)
7497     with_gnu_ld=yes
7498     ;;
7499   openbsd*)
7500     with_gnu_ld=no
7501     ;;
7502   esac
7503
7504   ld_shlibs=yes
7505   if test "$with_gnu_ld" = yes; then
7506     # If archive_cmds runs LD, not CC, wlarc should be empty
7507     wlarc='${wl}'
7508
7509     # Set some defaults for GNU ld with shared library support. These
7510     # are reset later if shared libraries are not supported. Putting them
7511     # here allows them to be overridden if necessary.
7512     runpath_var=LD_RUN_PATH
7513     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7514     export_dynamic_flag_spec='${wl}--export-dynamic'
7515     # ancient GNU ld didn't support --whole-archive et. al.
7516     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7517         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7518       else
7519         whole_archive_flag_spec=
7520     fi
7521     supports_anon_versioning=no
7522     case `$LD -v 2>/dev/null` in
7523       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7524       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7525       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7526       *\ 2.11.*) ;; # other 2.11 versions
7527       *) supports_anon_versioning=yes ;;
7528     esac
7529
7530     # See if GNU ld supports shared libraries.
7531     case $host_os in
7532     aix3* | aix4* | aix5*)
7533       # On AIX/PPC, the GNU linker is very broken
7534       if test "$host_cpu" != ia64; then
7535         ld_shlibs=no
7536         cat <<EOF 1>&2
7537
7538 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7539 *** to be unable to reliably create shared libraries on AIX.
7540 *** Therefore, libtool is disabling shared libraries support.  If you
7541 *** really care for shared libraries, you may want to modify your PATH
7542 *** so that a non-GNU linker is found, and then restart.
7543
7544 EOF
7545       fi
7546       ;;
7547
7548     amigaos*)
7549       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)'
7550       hardcode_libdir_flag_spec='-L$libdir'
7551       hardcode_minus_L=yes
7552
7553       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7554       # that the semantics of dynamic libraries on AmigaOS, at least up
7555       # to version 4, is to share data among multiple programs linked
7556       # with the same dynamic library.  Since this doesn't match the
7557       # behavior of shared libraries on other platforms, we can't use
7558       # them.
7559       ld_shlibs=no
7560       ;;
7561
7562     beos*)
7563       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7564         allow_undefined_flag=unsupported
7565         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7566         # support --undefined.  This deserves some investigation.  FIXME
7567         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7568       else
7569         ld_shlibs=no
7570       fi
7571       ;;
7572
7573     cygwin* | mingw* | pw32*)
7574       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7575       # as there is no search path for DLLs.
7576       hardcode_libdir_flag_spec='-L$libdir'
7577       allow_undefined_flag=unsupported
7578       always_export_symbols=no
7579       enable_shared_with_static_runtimes=yes
7580       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7581
7582       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7583         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7584         # If the export-symbols file already is a .def file (1st line
7585         # is EXPORTS), use it as is; otherwise, prepend...
7586         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7587           cp $export_symbols $output_objdir/$soname.def;
7588         else
7589           echo EXPORTS > $output_objdir/$soname.def;
7590           cat $export_symbols >> $output_objdir/$soname.def;
7591         fi~
7592         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7593       else
7594         ld_shlibs=no
7595       fi
7596       ;;
7597
7598     interix3*)
7599       hardcode_direct=no
7600       hardcode_shlibpath_var=no
7601       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7602       export_dynamic_flag_spec='${wl}-E'
7603       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7604       # Instead, shared libraries are loaded at an image base (0x10000000 by
7605       # default) and relocated if they conflict, which is a slow very memory
7606       # consuming and fragmenting process.  To avoid this, we pick a random,
7607       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7608       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7609       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7610       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'
7611       ;;
7612
7613     linux* | k*bsd*-gnu)
7614       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7615         tmp_addflag=
7616         case $cc_basename,$host_cpu in
7617         pgcc*)                          # Portland Group C compiler
7618           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'
7619           tmp_addflag=' $pic_flag'
7620           ;;
7621         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7622           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'
7623           tmp_addflag=' $pic_flag -Mnomain' ;;
7624         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7625           tmp_addflag=' -i_dynamic' ;;
7626         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7627           tmp_addflag=' -i_dynamic -nofor_main' ;;
7628         ifc* | ifort*)                  # Intel Fortran compiler
7629           tmp_addflag=' -nofor_main' ;;
7630         esac
7631         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7632
7633         if test $supports_anon_versioning = yes; then
7634           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7635   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7636   $echo "local: *; };" >> $output_objdir/$libname.ver~
7637           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7638         fi
7639         link_all_deplibs=no
7640       else
7641         ld_shlibs=no
7642       fi
7643       ;;
7644
7645     netbsd* | netbsdelf*-gnu)
7646       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7647         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7648         wlarc=
7649       else
7650         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7651         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7652       fi
7653       ;;
7654
7655     solaris*)
7656       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7657         ld_shlibs=no
7658         cat <<EOF 1>&2
7659
7660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7661 *** create shared libraries on Solaris systems.  Therefore, libtool
7662 *** is disabling shared libraries support.  We urge you to upgrade GNU
7663 *** binutils to release 2.9.1 or newer.  Another option is to modify
7664 *** your PATH or compiler configuration so that the native linker is
7665 *** used, and then restart.
7666
7667 EOF
7668       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7669         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7670         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7671       else
7672         ld_shlibs=no
7673       fi
7674       ;;
7675
7676     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7677       case `$LD -v 2>&1` in
7678         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7679         ld_shlibs=no
7680         cat <<_LT_EOF 1>&2
7681
7682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7683 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7684 *** is disabling shared libraries support.  We urge you to upgrade GNU
7685 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7686 *** your PATH or compiler configuration so that the native linker is
7687 *** used, and then restart.
7688
7689 _LT_EOF
7690         ;;
7691         *)
7692           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7693             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7694             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7695             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7696           else
7697             ld_shlibs=no
7698           fi
7699         ;;
7700       esac
7701       ;;
7702
7703     sunos4*)
7704       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7705       wlarc=
7706       hardcode_direct=yes
7707       hardcode_shlibpath_var=no
7708       ;;
7709
7710     *)
7711       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7712         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7713         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7714       else
7715         ld_shlibs=no
7716       fi
7717       ;;
7718     esac
7719
7720     if test "$ld_shlibs" = no; then
7721       runpath_var=
7722       hardcode_libdir_flag_spec=
7723       export_dynamic_flag_spec=
7724       whole_archive_flag_spec=
7725     fi
7726   else
7727     # PORTME fill in a description of your system's linker (not GNU ld)
7728     case $host_os in
7729     aix3*)
7730       allow_undefined_flag=unsupported
7731       always_export_symbols=yes
7732       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'
7733       # Note: this linker hardcodes the directories in LIBPATH if there
7734       # are no directories specified by -L.
7735       hardcode_minus_L=yes
7736       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7737         # Neither direct hardcoding nor static linking is supported with a
7738         # broken collect2.
7739         hardcode_direct=unsupported
7740       fi
7741       ;;
7742
7743     aix4* | aix5*)
7744       if test "$host_cpu" = ia64; then
7745         # On IA64, the linker does run time linking by default, so we don't
7746         # have to do anything special.
7747         aix_use_runtimelinking=no
7748         exp_sym_flag='-Bexport'
7749         no_entry_flag=""
7750       else
7751         # If we're using GNU nm, then we don't want the "-C" option.
7752         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7753         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7754           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'
7755         else
7756           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'
7757         fi
7758         aix_use_runtimelinking=no
7759
7760         # Test if we are trying to use run time linking or normal
7761         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7762         # need to do runtime linking.
7763         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7764           for ld_flag in $LDFLAGS; do
7765           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7766             aix_use_runtimelinking=yes
7767             break
7768           fi
7769           done
7770           ;;
7771         esac
7772
7773         exp_sym_flag='-bexport'
7774         no_entry_flag='-bnoentry'
7775       fi
7776
7777       # When large executables or shared objects are built, AIX ld can
7778       # have problems creating the table of contents.  If linking a library
7779       # or program results in "error TOC overflow" add -mminimal-toc to
7780       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7781       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7782
7783       archive_cmds=''
7784       hardcode_direct=yes
7785       hardcode_libdir_separator=':'
7786       link_all_deplibs=yes
7787
7788       if test "$GCC" = yes; then
7789         case $host_os in aix4.[012]|aix4.[012].*)
7790         # We only want to do this on AIX 4.2 and lower, the check
7791         # below for broken collect2 doesn't work under 4.3+
7792           collect2name=`${CC} -print-prog-name=collect2`
7793           if test -f "$collect2name" && \
7794            strings "$collect2name" | grep resolve_lib_name >/dev/null
7795           then
7796           # We have reworked collect2
7797           hardcode_direct=yes
7798           else
7799           # We have old collect2
7800           hardcode_direct=unsupported
7801           # It fails to find uninstalled libraries when the uninstalled
7802           # path is not listed in the libpath.  Setting hardcode_minus_L
7803           # to unsupported forces relinking
7804           hardcode_minus_L=yes
7805           hardcode_libdir_flag_spec='-L$libdir'
7806           hardcode_libdir_separator=
7807           fi
7808           ;;
7809         esac
7810         shared_flag='-shared'
7811         if test "$aix_use_runtimelinking" = yes; then
7812           shared_flag="$shared_flag "'${wl}-G'
7813         fi
7814       else
7815         # not using gcc
7816         if test "$host_cpu" = ia64; then
7817         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7818         # chokes on -Wl,-G. The following line is correct:
7819           shared_flag='-G'
7820         else
7821           if test "$aix_use_runtimelinking" = yes; then
7822             shared_flag='${wl}-G'
7823           else
7824             shared_flag='${wl}-bM:SRE'
7825           fi
7826         fi
7827       fi
7828
7829       # It seems that -bexpall does not export symbols beginning with
7830       # underscore (_), so it is better to generate a list of symbols to export.
7831       always_export_symbols=yes
7832       if test "$aix_use_runtimelinking" = yes; then
7833         # Warning - without using the other runtime loading flags (-brtl),
7834         # -berok will link without error, but may produce a broken library.
7835         allow_undefined_flag='-berok'
7836        # Determine the default libpath from the value encoded in an empty executable.
7837        cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7854 case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_link") 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } && {
7866          test -z "$ac_c_werror_flag" ||
7867          test ! -s conftest.err
7868        } && test -s conftest$ac_exeext &&
7869        $as_test_x conftest$ac_exeext; then
7870
7871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7872 }'`
7873 # Check for a 64-bit object if we didn't find anything.
7874 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7875 }'`; fi
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880
7881 fi
7882
7883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7884       conftest$ac_exeext conftest.$ac_ext
7885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7886
7887        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7888         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"
7889        else
7890         if test "$host_cpu" = ia64; then
7891           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7892           allow_undefined_flag="-z nodefs"
7893           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"
7894         else
7895          # Determine the default libpath from the value encoded in an empty executable.
7896          cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902
7903 int
7904 main ()
7905 {
7906
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext conftest$ac_exeext
7912 if { (ac_try="$ac_link"
7913 case "(($ac_try" in
7914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915   *) ac_try_echo=$ac_try;;
7916 esac
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918   (eval "$ac_link") 2>conftest.er1
7919   ac_status=$?
7920   grep -v '^ *+' conftest.er1 >conftest.err
7921   rm -f conftest.er1
7922   cat conftest.err >&5
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); } && {
7925          test -z "$ac_c_werror_flag" ||
7926          test ! -s conftest.err
7927        } && test -s conftest$ac_exeext &&
7928        $as_test_x conftest$ac_exeext; then
7929
7930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7931 }'`
7932 # Check for a 64-bit object if we didn't find anything.
7933 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7934 }'`; fi
7935 else
7936   echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939
7940 fi
7941
7942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7943       conftest$ac_exeext conftest.$ac_ext
7944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7945
7946          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7947           # Warning - without using the other run time loading flags,
7948           # -berok will link without error, but may produce a broken library.
7949           no_undefined_flag=' ${wl}-bernotok'
7950           allow_undefined_flag=' ${wl}-berok'
7951           # Exported symbols can be pulled into shared objects from archives
7952           whole_archive_flag_spec='$convenience'
7953           archive_cmds_need_lc=yes
7954           # This is similar to how AIX traditionally builds its shared libraries.
7955           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'
7956         fi
7957       fi
7958       ;;
7959
7960     amigaos*)
7961       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)'
7962       hardcode_libdir_flag_spec='-L$libdir'
7963       hardcode_minus_L=yes
7964       # see comment about different semantics on the GNU ld section
7965       ld_shlibs=no
7966       ;;
7967
7968     bsdi[45]*)
7969       export_dynamic_flag_spec=-rdynamic
7970       ;;
7971
7972     cygwin* | mingw* | pw32*)
7973       # When not using gcc, we currently assume that we are using
7974       # Microsoft Visual C++.
7975       # hardcode_libdir_flag_spec is actually meaningless, as there is
7976       # no search path for DLLs.
7977       hardcode_libdir_flag_spec=' '
7978       allow_undefined_flag=unsupported
7979       # Tell ltmain to make .lib files, not .a files.
7980       libext=lib
7981       # Tell ltmain to make .dll files, not .so files.
7982       shrext_cmds=".dll"
7983       # FIXME: Setting linknames here is a bad hack.
7984       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7985       # The linker will automatically build a .lib file if we build a DLL.
7986       old_archive_From_new_cmds='true'
7987       # FIXME: Should let the user specify the lib program.
7988       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7989       fix_srcfile_path='`cygpath -w "$srcfile"`'
7990       enable_shared_with_static_runtimes=yes
7991       ;;
7992
7993     darwin* | rhapsody*)
7994       case $host_os in
7995         rhapsody* | darwin1.[012])
7996          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7997          ;;
7998        *) # Darwin 1.3 on
7999          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8000            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8001          else
8002            case ${MACOSX_DEPLOYMENT_TARGET} in
8003              10.[012])
8004                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8005                ;;
8006              10.*)
8007                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8008                ;;
8009            esac
8010          fi
8011          ;;
8012       esac
8013       archive_cmds_need_lc=no
8014       hardcode_direct=no
8015       hardcode_automatic=yes
8016       hardcode_shlibpath_var=unsupported
8017       whole_archive_flag_spec=''
8018       link_all_deplibs=yes
8019     if test "$GCC" = yes ; then
8020         output_verbose_link_cmd='echo'
8021         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8022       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8023       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8024       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}'
8025       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}'
8026     else
8027       case $cc_basename in
8028         xlc*)
8029          output_verbose_link_cmd='echo'
8030          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8031          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8032           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8033          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8034           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}'
8035           ;;
8036        *)
8037          ld_shlibs=no
8038           ;;
8039       esac
8040     fi
8041       ;;
8042
8043     dgux*)
8044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8045       hardcode_libdir_flag_spec='-L$libdir'
8046       hardcode_shlibpath_var=no
8047       ;;
8048
8049     freebsd1*)
8050       ld_shlibs=no
8051       ;;
8052
8053     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8054     # support.  Future versions do this automatically, but an explicit c++rt0.o
8055     # does not break anything, and helps significantly (at the cost of a little
8056     # extra space).
8057     freebsd2.2*)
8058       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8059       hardcode_libdir_flag_spec='-R$libdir'
8060       hardcode_direct=yes
8061       hardcode_shlibpath_var=no
8062       ;;
8063
8064     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8065     freebsd2*)
8066       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8067       hardcode_direct=yes
8068       hardcode_minus_L=yes
8069       hardcode_shlibpath_var=no
8070       ;;
8071
8072     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8073     freebsd* | dragonfly*)
8074       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8075       hardcode_libdir_flag_spec='-R$libdir'
8076       hardcode_direct=yes
8077       hardcode_shlibpath_var=no
8078       ;;
8079
8080     hpux9*)
8081       if test "$GCC" = yes; then
8082         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'
8083       else
8084         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'
8085       fi
8086       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8087       hardcode_libdir_separator=:
8088       hardcode_direct=yes
8089
8090       # hardcode_minus_L: Not really in the search PATH,
8091       # but as the default location of the library.
8092       hardcode_minus_L=yes
8093       export_dynamic_flag_spec='${wl}-E'
8094       ;;
8095
8096     hpux10*)
8097       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8098         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8099       else
8100         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8101       fi
8102       if test "$with_gnu_ld" = no; then
8103         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8104         hardcode_libdir_separator=:
8105
8106         hardcode_direct=yes
8107         export_dynamic_flag_spec='${wl}-E'
8108
8109         # hardcode_minus_L: Not really in the search PATH,
8110         # but as the default location of the library.
8111         hardcode_minus_L=yes
8112       fi
8113       ;;
8114
8115     hpux11*)
8116       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8117         case $host_cpu in
8118         hppa*64*)
8119           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8120           ;;
8121         ia64*)
8122           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8123           ;;
8124         *)
8125           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8126           ;;
8127         esac
8128       else
8129         case $host_cpu in
8130         hppa*64*)
8131           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8132           ;;
8133         ia64*)
8134           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8135           ;;
8136         *)
8137           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8138           ;;
8139         esac
8140       fi
8141       if test "$with_gnu_ld" = no; then
8142         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8143         hardcode_libdir_separator=:
8144
8145         case $host_cpu in
8146         hppa*64*|ia64*)
8147           hardcode_libdir_flag_spec_ld='+b $libdir'
8148           hardcode_direct=no
8149           hardcode_shlibpath_var=no
8150           ;;
8151         *)
8152           hardcode_direct=yes
8153           export_dynamic_flag_spec='${wl}-E'
8154
8155           # hardcode_minus_L: Not really in the search PATH,
8156           # but as the default location of the library.
8157           hardcode_minus_L=yes
8158           ;;
8159         esac
8160       fi
8161       ;;
8162
8163     irix5* | irix6* | nonstopux*)
8164       if test "$GCC" = yes; then
8165         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'
8166       else
8167         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'
8168         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8169       fi
8170       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8171       hardcode_libdir_separator=:
8172       link_all_deplibs=yes
8173       ;;
8174
8175     netbsd* | netbsdelf*-gnu)
8176       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8177         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8178       else
8179         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8180       fi
8181       hardcode_libdir_flag_spec='-R$libdir'
8182       hardcode_direct=yes
8183       hardcode_shlibpath_var=no
8184       ;;
8185
8186     newsos6)
8187       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8188       hardcode_direct=yes
8189       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8190       hardcode_libdir_separator=:
8191       hardcode_shlibpath_var=no
8192       ;;
8193
8194     openbsd*)
8195       hardcode_direct=yes
8196       hardcode_shlibpath_var=no
8197       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8198         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8199         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8200         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8201         export_dynamic_flag_spec='${wl}-E'
8202       else
8203        case $host_os in
8204          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8205            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8206            hardcode_libdir_flag_spec='-R$libdir'
8207            ;;
8208          *)
8209            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8210            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8211            ;;
8212        esac
8213       fi
8214       ;;
8215
8216     os2*)
8217       hardcode_libdir_flag_spec='-L$libdir'
8218       hardcode_minus_L=yes
8219       allow_undefined_flag=unsupported
8220       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'
8221       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8222       ;;
8223
8224     osf3*)
8225       if test "$GCC" = yes; then
8226         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8227         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'
8228       else
8229         allow_undefined_flag=' -expect_unresolved \*'
8230         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'
8231       fi
8232       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8233       hardcode_libdir_separator=:
8234       ;;
8235
8236     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8237       if test "$GCC" = yes; then
8238         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8239         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'
8240         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8241       else
8242         allow_undefined_flag=' -expect_unresolved \*'
8243         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'
8244         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8245         $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'
8246
8247         # Both c and cxx compiler support -rpath directly
8248         hardcode_libdir_flag_spec='-rpath $libdir'
8249       fi
8250       hardcode_libdir_separator=:
8251       ;;
8252
8253     solaris*)
8254       no_undefined_flag=' -z text'
8255       if test "$GCC" = yes; then
8256         wlarc='${wl}'
8257         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8258         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8259           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8260       else
8261         wlarc=''
8262         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8263         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8264         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8265       fi
8266       hardcode_libdir_flag_spec='-R$libdir'
8267       hardcode_shlibpath_var=no
8268       case $host_os in
8269       solaris2.[0-5] | solaris2.[0-5].*) ;;
8270       *)
8271         # The compiler driver will combine linker options so we
8272         # cannot just pass the convience library names through
8273         # without $wl, iff we do not link with $LD.
8274         # Luckily, gcc supports the same syntax we need for Sun Studio.
8275         # Supported since Solaris 2.6 (maybe 2.5.1?)
8276         case $wlarc in
8277         '')
8278           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8279         *)
8280           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8281         esac ;;
8282       esac
8283       link_all_deplibs=yes
8284       ;;
8285
8286     sunos4*)
8287       if test "x$host_vendor" = xsequent; then
8288         # Use $CC to link under sequent, because it throws in some extra .o
8289         # files that make .init and .fini sections work.
8290         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8291       else
8292         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8293       fi
8294       hardcode_libdir_flag_spec='-L$libdir'
8295       hardcode_direct=yes
8296       hardcode_minus_L=yes
8297       hardcode_shlibpath_var=no
8298       ;;
8299
8300     sysv4)
8301       case $host_vendor in
8302         sni)
8303           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304           hardcode_direct=yes # is this really true???
8305         ;;
8306         siemens)
8307           ## LD is ld it makes a PLAMLIB
8308           ## CC just makes a GrossModule.
8309           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8310           reload_cmds='$CC -r -o $output$reload_objs'
8311           hardcode_direct=no
8312         ;;
8313         motorola)
8314           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8316         ;;
8317       esac
8318       runpath_var='LD_RUN_PATH'
8319       hardcode_shlibpath_var=no
8320       ;;
8321
8322     sysv4.3*)
8323       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8324       hardcode_shlibpath_var=no
8325       export_dynamic_flag_spec='-Bexport'
8326       ;;
8327
8328     sysv4*MP*)
8329       if test -d /usr/nec; then
8330         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8331         hardcode_shlibpath_var=no
8332         runpath_var=LD_RUN_PATH
8333         hardcode_runpath_var=yes
8334         ld_shlibs=yes
8335       fi
8336       ;;
8337
8338     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8339       no_undefined_flag='${wl}-z,text'
8340       archive_cmds_need_lc=no
8341       hardcode_shlibpath_var=no
8342       runpath_var='LD_RUN_PATH'
8343
8344       if test "$GCC" = yes; then
8345         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8346         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8347       else
8348         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8349         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8350       fi
8351       ;;
8352
8353     sysv5* | sco3.2v5* | sco5v6*)
8354       # Note: We can NOT use -z defs as we might desire, because we do not
8355       # link with -lc, and that would cause any symbols used from libc to
8356       # always be unresolved, which means just about no library would
8357       # ever link correctly.  If we're not using GNU ld we use -z text
8358       # though, which does catch some bad symbols but isn't as heavy-handed
8359       # as -z defs.
8360       no_undefined_flag='${wl}-z,text'
8361       allow_undefined_flag='${wl}-z,nodefs'
8362       archive_cmds_need_lc=no
8363       hardcode_shlibpath_var=no
8364       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8365       hardcode_libdir_separator=':'
8366       link_all_deplibs=yes
8367       export_dynamic_flag_spec='${wl}-Bexport'
8368       runpath_var='LD_RUN_PATH'
8369
8370       if test "$GCC" = yes; then
8371         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8372         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8373       else
8374         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8375         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8376       fi
8377       ;;
8378
8379     uts4*)
8380       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381       hardcode_libdir_flag_spec='-L$libdir'
8382       hardcode_shlibpath_var=no
8383       ;;
8384
8385     *)
8386       ld_shlibs=no
8387       ;;
8388     esac
8389   fi
8390
8391 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8392 echo "${ECHO_T}$ld_shlibs" >&6; }
8393 test "$ld_shlibs" = no && can_build_shared=no
8394
8395 #
8396 # Do we need to explicitly link libc?
8397 #
8398 case "x$archive_cmds_need_lc" in
8399 x|xyes)
8400   # Assume -lc should be added
8401   archive_cmds_need_lc=yes
8402
8403   if test "$enable_shared" = yes && test "$GCC" = yes; then
8404     case $archive_cmds in
8405     *'~'*)
8406       # FIXME: we may have to deal with multi-command sequences.
8407       ;;
8408     '$CC '*)
8409       # Test whether the compiler implicitly links with -lc since on some
8410       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8411       # to ld, don't add -lc before -lgcc.
8412       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8413 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8414       $rm conftest*
8415       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8416
8417       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418   (eval $ac_compile) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } 2>conftest.err; then
8422         soname=conftest
8423         lib=conftest
8424         libobjs=conftest.$ac_objext
8425         deplibs=
8426         wl=$lt_prog_compiler_wl
8427         pic_flag=$lt_prog_compiler_pic
8428         compiler_flags=-v
8429         linker_flags=-v
8430         verstring=
8431         output_objdir=.
8432         libname=conftest
8433         lt_save_allow_undefined_flag=$allow_undefined_flag
8434         allow_undefined_flag=
8435         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8436   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); }
8440         then
8441           archive_cmds_need_lc=no
8442         else
8443           archive_cmds_need_lc=yes
8444         fi
8445         allow_undefined_flag=$lt_save_allow_undefined_flag
8446       else
8447         cat conftest.err 1>&5
8448       fi
8449       $rm conftest*
8450       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8451 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8452       ;;
8453     esac
8454   fi
8455   ;;
8456 esac
8457
8458 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8459 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8460 library_names_spec=
8461 libname_spec='lib$name'
8462 soname_spec=
8463 shrext_cmds=".so"
8464 postinstall_cmds=
8465 postuninstall_cmds=
8466 finish_cmds=
8467 finish_eval=
8468 shlibpath_var=
8469 shlibpath_overrides_runpath=unknown
8470 version_type=none
8471 dynamic_linker="$host_os ld.so"
8472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8473 if test "$GCC" = yes; then
8474   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8475   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8476     # if the path contains ";" then we assume it to be the separator
8477     # otherwise default to the standard path separator (i.e. ":") - it is
8478     # assumed that no part of a normal pathname contains ";" but that should
8479     # okay in the real world where ";" in dirpaths is itself problematic.
8480     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8481   else
8482     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8483   fi
8484 else
8485   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8486 fi
8487 need_lib_prefix=unknown
8488 hardcode_into_libs=no
8489
8490 # when you set need_version to no, make sure it does not cause -set_version
8491 # flags to be left without arguments
8492 need_version=unknown
8493
8494 case $host_os in
8495 aix3*)
8496   version_type=linux
8497   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8498   shlibpath_var=LIBPATH
8499
8500   # AIX 3 has no versioning support, so we append a major version to the name.
8501   soname_spec='${libname}${release}${shared_ext}$major'
8502   ;;
8503
8504 aix4* | aix5*)
8505   version_type=linux
8506   need_lib_prefix=no
8507   need_version=no
8508   hardcode_into_libs=yes
8509   if test "$host_cpu" = ia64; then
8510     # AIX 5 supports IA64
8511     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8512     shlibpath_var=LD_LIBRARY_PATH
8513   else
8514     # With GCC up to 2.95.x, collect2 would create an import file
8515     # for dependence libraries.  The import file would start with
8516     # the line `#! .'.  This would cause the generated library to
8517     # depend on `.', always an invalid library.  This was fixed in
8518     # development snapshots of GCC prior to 3.0.
8519     case $host_os in
8520       aix4 | aix4.[01] | aix4.[01].*)
8521       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8522            echo ' yes '
8523            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8524         :
8525       else
8526         can_build_shared=no
8527       fi
8528       ;;
8529     esac
8530     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8531     # soname into executable. Probably we can add versioning support to
8532     # collect2, so additional links can be useful in future.
8533     if test "$aix_use_runtimelinking" = yes; then
8534       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8535       # instead of lib<name>.a to let people know that these are not
8536       # typical AIX shared libraries.
8537       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8538     else
8539       # We preserve .a as extension for shared libraries through AIX4.2
8540       # and later when we are not doing run time linking.
8541       library_names_spec='${libname}${release}.a $libname.a'
8542       soname_spec='${libname}${release}${shared_ext}$major'
8543     fi
8544     shlibpath_var=LIBPATH
8545   fi
8546   ;;
8547
8548 amigaos*)
8549   library_names_spec='$libname.ixlibrary $libname.a'
8550   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8551   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'
8552   ;;
8553
8554 beos*)
8555   library_names_spec='${libname}${shared_ext}'
8556   dynamic_linker="$host_os ld.so"
8557   shlibpath_var=LIBRARY_PATH
8558   ;;
8559
8560 bsdi[45]*)
8561   version_type=linux
8562   need_version=no
8563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8564   soname_spec='${libname}${release}${shared_ext}$major'
8565   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8566   shlibpath_var=LD_LIBRARY_PATH
8567   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8568   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8569   # the default ld.so.conf also contains /usr/contrib/lib and
8570   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8571   # libtool to hard-code these into programs
8572   ;;
8573
8574 cygwin* | mingw* | pw32*)
8575   version_type=windows
8576   shrext_cmds=".dll"
8577   need_version=no
8578   need_lib_prefix=no
8579
8580   case $GCC,$host_os in
8581   yes,cygwin* | yes,mingw* | yes,pw32*)
8582     library_names_spec='$libname.dll.a'
8583     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8584     postinstall_cmds='base_file=`basename \${file}`~
8585       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8586       dldir=$destdir/`dirname \$dlpath`~
8587       test -d \$dldir || mkdir -p \$dldir~
8588       $install_prog $dir/$dlname \$dldir/$dlname~
8589       chmod a+x \$dldir/$dlname'
8590     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8591       dlpath=$dir/\$dldll~
8592        $rm \$dlpath'
8593     shlibpath_overrides_runpath=yes
8594
8595     case $host_os in
8596     cygwin*)
8597       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8598       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8599       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8600       ;;
8601     mingw*)
8602       # MinGW DLLs use traditional 'lib' prefix
8603       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8604       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8605       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8606         # It is most probably a Windows format PATH printed by
8607         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8608         # path with ; separators, and with drive letters. We can handle the
8609         # drive letters (cygwin fileutils understands them), so leave them,
8610         # especially as we might pass files found there to a mingw objdump,
8611         # which wouldn't understand a cygwinified path. Ahh.
8612         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8613       else
8614         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8615       fi
8616       ;;
8617     pw32*)
8618       # pw32 DLLs use 'pw' prefix rather than 'lib'
8619       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8620       ;;
8621     esac
8622     ;;
8623
8624   *)
8625     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8626     ;;
8627   esac
8628   dynamic_linker='Win32 ld.exe'
8629   # FIXME: first we should search . and the directory the executable is in
8630   shlibpath_var=PATH
8631   ;;
8632
8633 darwin* | rhapsody*)
8634   dynamic_linker="$host_os dyld"
8635   version_type=darwin
8636   need_lib_prefix=no
8637   need_version=no
8638   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8639   soname_spec='${libname}${release}${major}$shared_ext'
8640   shlibpath_overrides_runpath=yes
8641   shlibpath_var=DYLD_LIBRARY_PATH
8642   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8643   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8644   if test "$GCC" = yes; then
8645     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8646   else
8647     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8648   fi
8649   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8650   ;;
8651
8652 dgux*)
8653   version_type=linux
8654   need_lib_prefix=no
8655   need_version=no
8656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8657   soname_spec='${libname}${release}${shared_ext}$major'
8658   shlibpath_var=LD_LIBRARY_PATH
8659   ;;
8660
8661 freebsd1*)
8662   dynamic_linker=no
8663   ;;
8664
8665 freebsd* | dragonfly*)
8666   # DragonFly does not have aout.  When/if they implement a new
8667   # versioning mechanism, adjust this.
8668   if test -x /usr/bin/objformat; then
8669     objformat=`/usr/bin/objformat`
8670   else
8671     case $host_os in
8672     freebsd[123]*) objformat=aout ;;
8673     *) objformat=elf ;;
8674     esac
8675   fi
8676   version_type=freebsd-$objformat
8677   case $version_type in
8678     freebsd-elf*)
8679       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8680       need_version=no
8681       need_lib_prefix=no
8682       ;;
8683     freebsd-*)
8684       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8685       need_version=yes
8686       ;;
8687   esac
8688   shlibpath_var=LD_LIBRARY_PATH
8689   case $host_os in
8690   freebsd2*)
8691     shlibpath_overrides_runpath=yes
8692     ;;
8693   freebsd3.[01]* | freebsdelf3.[01]*)
8694     shlibpath_overrides_runpath=yes
8695     hardcode_into_libs=yes
8696     ;;
8697   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8698   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8699     shlibpath_overrides_runpath=no
8700     hardcode_into_libs=yes
8701     ;;
8702   freebsd*) # from 4.6 on
8703     shlibpath_overrides_runpath=yes
8704     hardcode_into_libs=yes
8705     ;;
8706   esac
8707   ;;
8708
8709 gnu*)
8710   version_type=linux
8711   need_lib_prefix=no
8712   need_version=no
8713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8714   soname_spec='${libname}${release}${shared_ext}$major'
8715   shlibpath_var=LD_LIBRARY_PATH
8716   hardcode_into_libs=yes
8717   ;;
8718
8719 hpux9* | hpux10* | hpux11*)
8720   # Give a soname corresponding to the major version so that dld.sl refuses to
8721   # link against other versions.
8722   version_type=sunos
8723   need_lib_prefix=no
8724   need_version=no
8725   case $host_cpu in
8726   ia64*)
8727     shrext_cmds='.so'
8728     hardcode_into_libs=yes
8729     dynamic_linker="$host_os dld.so"
8730     shlibpath_var=LD_LIBRARY_PATH
8731     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733     soname_spec='${libname}${release}${shared_ext}$major'
8734     if test "X$HPUX_IA64_MODE" = X32; then
8735       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8736     else
8737       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8738     fi
8739     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8740     ;;
8741    hppa*64*)
8742      shrext_cmds='.sl'
8743      hardcode_into_libs=yes
8744      dynamic_linker="$host_os dld.sl"
8745      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8746      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8747      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8748      soname_spec='${libname}${release}${shared_ext}$major'
8749      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8750      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8751      ;;
8752    *)
8753     shrext_cmds='.sl'
8754     dynamic_linker="$host_os dld.sl"
8755     shlibpath_var=SHLIB_PATH
8756     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758     soname_spec='${libname}${release}${shared_ext}$major'
8759     ;;
8760   esac
8761   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8762   postinstall_cmds='chmod 555 $lib'
8763   ;;
8764
8765 interix3*)
8766   version_type=linux
8767   need_lib_prefix=no
8768   need_version=no
8769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8770   soname_spec='${libname}${release}${shared_ext}$major'
8771   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8772   shlibpath_var=LD_LIBRARY_PATH
8773   shlibpath_overrides_runpath=no
8774   hardcode_into_libs=yes
8775   ;;
8776
8777 irix5* | irix6* | nonstopux*)
8778   case $host_os in
8779     nonstopux*) version_type=nonstopux ;;
8780     *)
8781         if test "$lt_cv_prog_gnu_ld" = yes; then
8782                 version_type=linux
8783         else
8784                 version_type=irix
8785         fi ;;
8786   esac
8787   need_lib_prefix=no
8788   need_version=no
8789   soname_spec='${libname}${release}${shared_ext}$major'
8790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8791   case $host_os in
8792   irix5* | nonstopux*)
8793     libsuff= shlibsuff=
8794     ;;
8795   *)
8796     case $LD in # libtool.m4 will add one of these switches to LD
8797     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8798       libsuff= shlibsuff= libmagic=32-bit;;
8799     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8800       libsuff=32 shlibsuff=N32 libmagic=N32;;
8801     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8802       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8803     *) libsuff= shlibsuff= libmagic=never-match;;
8804     esac
8805     ;;
8806   esac
8807   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8808   shlibpath_overrides_runpath=no
8809   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8810   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8811   hardcode_into_libs=yes
8812   ;;
8813
8814 # No shared lib support for Linux oldld, aout, or coff.
8815 linux*oldld* | linux*aout* | linux*coff*)
8816   dynamic_linker=no
8817   ;;
8818
8819 # This must be Linux ELF.
8820 linux* | k*bsd*-gnu)
8821   version_type=linux
8822   need_lib_prefix=no
8823   need_version=no
8824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825   soname_spec='${libname}${release}${shared_ext}$major'
8826   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8827   shlibpath_var=LD_LIBRARY_PATH
8828   shlibpath_overrides_runpath=no
8829   # This implies no fast_install, which is unacceptable.
8830   # Some rework will be needed to allow for fast_install
8831   # before this can be enabled.
8832   hardcode_into_libs=yes
8833
8834   # Append ld.so.conf contents to the search path
8835   if test -f /etc/ld.so.conf; then
8836     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8837     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8838   fi
8839
8840   # We used to test for /lib/ld.so.1 and disable shared libraries on
8841   # powerpc, because MkLinux only supported shared libraries with the
8842   # GNU dynamic linker.  Since this was broken with cross compilers,
8843   # most powerpc-linux boxes support dynamic linking these days and
8844   # people can always --disable-shared, the test was removed, and we
8845   # assume the GNU/Linux dynamic linker is in use.
8846   dynamic_linker='GNU/Linux ld.so'
8847   ;;
8848
8849 netbsdelf*-gnu)
8850   version_type=linux
8851   need_lib_prefix=no
8852   need_version=no
8853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8854   soname_spec='${libname}${release}${shared_ext}$major'
8855   shlibpath_var=LD_LIBRARY_PATH
8856   shlibpath_overrides_runpath=no
8857   hardcode_into_libs=yes
8858   dynamic_linker='NetBSD ld.elf_so'
8859   ;;
8860
8861 netbsd*)
8862   version_type=sunos
8863   need_lib_prefix=no
8864   need_version=no
8865   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8867     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8868     dynamic_linker='NetBSD (a.out) ld.so'
8869   else
8870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8871     soname_spec='${libname}${release}${shared_ext}$major'
8872     dynamic_linker='NetBSD ld.elf_so'
8873   fi
8874   shlibpath_var=LD_LIBRARY_PATH
8875   shlibpath_overrides_runpath=yes
8876   hardcode_into_libs=yes
8877   ;;
8878
8879 newsos6)
8880   version_type=linux
8881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882   shlibpath_var=LD_LIBRARY_PATH
8883   shlibpath_overrides_runpath=yes
8884   ;;
8885
8886 nto-qnx*)
8887   version_type=linux
8888   need_lib_prefix=no
8889   need_version=no
8890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891   soname_spec='${libname}${release}${shared_ext}$major'
8892   shlibpath_var=LD_LIBRARY_PATH
8893   shlibpath_overrides_runpath=yes
8894   ;;
8895
8896 openbsd*)
8897   version_type=sunos
8898   sys_lib_dlsearch_path_spec="/usr/lib"
8899   need_lib_prefix=no
8900   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8901   case $host_os in
8902     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8903     *)                         need_version=no  ;;
8904   esac
8905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8906   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8907   shlibpath_var=LD_LIBRARY_PATH
8908   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8909     case $host_os in
8910       openbsd2.[89] | openbsd2.[89].*)
8911         shlibpath_overrides_runpath=no
8912         ;;
8913       *)
8914         shlibpath_overrides_runpath=yes
8915         ;;
8916       esac
8917   else
8918     shlibpath_overrides_runpath=yes
8919   fi
8920   ;;
8921
8922 os2*)
8923   libname_spec='$name'
8924   shrext_cmds=".dll"
8925   need_lib_prefix=no
8926   library_names_spec='$libname${shared_ext} $libname.a'
8927   dynamic_linker='OS/2 ld.exe'
8928   shlibpath_var=LIBPATH
8929   ;;
8930
8931 osf3* | osf4* | osf5*)
8932   version_type=osf
8933   need_lib_prefix=no
8934   need_version=no
8935   soname_spec='${libname}${release}${shared_ext}$major'
8936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937   shlibpath_var=LD_LIBRARY_PATH
8938   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8939   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8940   ;;
8941
8942 solaris*)
8943   version_type=linux
8944   need_lib_prefix=no
8945   need_version=no
8946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947   soname_spec='${libname}${release}${shared_ext}$major'
8948   shlibpath_var=LD_LIBRARY_PATH
8949   shlibpath_overrides_runpath=yes
8950   hardcode_into_libs=yes
8951   # ldd complains unless libraries are executable
8952   postinstall_cmds='chmod +x $lib'
8953   ;;
8954
8955 sunos4*)
8956   version_type=sunos
8957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8958   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8959   shlibpath_var=LD_LIBRARY_PATH
8960   shlibpath_overrides_runpath=yes
8961   if test "$with_gnu_ld" = yes; then
8962     need_lib_prefix=no
8963   fi
8964   need_version=yes
8965   ;;
8966
8967 sysv4 | sysv4.3*)
8968   version_type=linux
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   case $host_vendor in
8973     sni)
8974       shlibpath_overrides_runpath=no
8975       need_lib_prefix=no
8976       export_dynamic_flag_spec='${wl}-Blargedynsym'
8977       runpath_var=LD_RUN_PATH
8978       ;;
8979     siemens)
8980       need_lib_prefix=no
8981       ;;
8982     motorola)
8983       need_lib_prefix=no
8984       need_version=no
8985       shlibpath_overrides_runpath=no
8986       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8987       ;;
8988   esac
8989   ;;
8990
8991 sysv4*MP*)
8992   if test -d /usr/nec ;then
8993     version_type=linux
8994     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8995     soname_spec='$libname${shared_ext}.$major'
8996     shlibpath_var=LD_LIBRARY_PATH
8997   fi
8998   ;;
8999
9000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9001   version_type=freebsd-elf
9002   need_lib_prefix=no
9003   need_version=no
9004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005   soname_spec='${libname}${release}${shared_ext}$major'
9006   shlibpath_var=LD_LIBRARY_PATH
9007   hardcode_into_libs=yes
9008   if test "$with_gnu_ld" = yes; then
9009     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9010     shlibpath_overrides_runpath=no
9011   else
9012     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9013     shlibpath_overrides_runpath=yes
9014     case $host_os in
9015       sco3.2v5*)
9016         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9017         ;;
9018     esac
9019   fi
9020   sys_lib_dlsearch_path_spec='/usr/lib'
9021   ;;
9022
9023 uts4*)
9024   version_type=linux
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026   soname_spec='${libname}${release}${shared_ext}$major'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   ;;
9029
9030 *)
9031   dynamic_linker=no
9032   ;;
9033 esac
9034 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9035 echo "${ECHO_T}$dynamic_linker" >&6; }
9036 test "$dynamic_linker" = no && can_build_shared=no
9037
9038 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9039 if test "$GCC" = yes; then
9040   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9041 fi
9042
9043 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9044 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9045 hardcode_action=
9046 if test -n "$hardcode_libdir_flag_spec" || \
9047    test -n "$runpath_var" || \
9048    test "X$hardcode_automatic" = "Xyes" ; then
9049
9050   # We can hardcode non-existant directories.
9051   if test "$hardcode_direct" != no &&
9052      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9053      # have to relink, otherwise we might link with an installed library
9054      # when we should be linking with a yet-to-be-installed one
9055      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9056      test "$hardcode_minus_L" != no; then
9057     # Linking always hardcodes the temporary library directory.
9058     hardcode_action=relink
9059   else
9060     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9061     hardcode_action=immediate
9062   fi
9063 else
9064   # We cannot hardcode anything, or else we can only hardcode existing
9065   # directories.
9066   hardcode_action=unsupported
9067 fi
9068 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9069 echo "${ECHO_T}$hardcode_action" >&6; }
9070
9071 if test "$hardcode_action" = relink; then
9072   # Fast installation is not supported
9073   enable_fast_install=no
9074 elif test "$shlibpath_overrides_runpath" = yes ||
9075      test "$enable_shared" = no; then
9076   # Fast installation is not necessary
9077   enable_fast_install=needless
9078 fi
9079
9080 striplib=
9081 old_striplib=
9082 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9083 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9084 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9085   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9086   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9087   { echo "$as_me:$LINENO: result: yes" >&5
9088 echo "${ECHO_T}yes" >&6; }
9089 else
9090 # FIXME - insert some real tests, host_os isn't really good enough
9091   case $host_os in
9092    darwin*)
9093        if test -n "$STRIP" ; then
9094          striplib="$STRIP -x"
9095          { echo "$as_me:$LINENO: result: yes" >&5
9096 echo "${ECHO_T}yes" >&6; }
9097        else
9098   { echo "$as_me:$LINENO: result: no" >&5
9099 echo "${ECHO_T}no" >&6; }
9100 fi
9101        ;;
9102    *)
9103   { echo "$as_me:$LINENO: result: no" >&5
9104 echo "${ECHO_T}no" >&6; }
9105     ;;
9106   esac
9107 fi
9108
9109 if test "x$enable_dlopen" != xyes; then
9110   enable_dlopen=unknown
9111   enable_dlopen_self=unknown
9112   enable_dlopen_self_static=unknown
9113 else
9114   lt_cv_dlopen=no
9115   lt_cv_dlopen_libs=
9116
9117   case $host_os in
9118   beos*)
9119     lt_cv_dlopen="load_add_on"
9120     lt_cv_dlopen_libs=
9121     lt_cv_dlopen_self=yes
9122     ;;
9123
9124   mingw* | pw32*)
9125     lt_cv_dlopen="LoadLibrary"
9126     lt_cv_dlopen_libs=
9127    ;;
9128
9129   cygwin*)
9130     lt_cv_dlopen="dlopen"
9131     lt_cv_dlopen_libs=
9132    ;;
9133
9134   darwin*)
9135   # if libdl is installed we need to link against it
9136     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9137 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9139   echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141   ac_check_lib_save_LIBS=$LIBS
9142 LIBS="-ldl  $LIBS"
9143 cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h.  */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h.  */
9149
9150 /* Override any GCC internal prototype to avoid an error.
9151    Use char because int might match the return type of a GCC
9152    builtin and then its argument prototype would still apply.  */
9153 #ifdef __cplusplus
9154 extern "C"
9155 #endif
9156 char dlopen ();
9157 int
9158 main ()
9159 {
9160 return dlopen ();
9161   ;
9162   return 0;
9163 }
9164 _ACEOF
9165 rm -f conftest.$ac_objext conftest$ac_exeext
9166 if { (ac_try="$ac_link"
9167 case "(($ac_try" in
9168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169   *) ac_try_echo=$ac_try;;
9170 esac
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172   (eval "$ac_link") 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } && {
9179          test -z "$ac_c_werror_flag" ||
9180          test ! -s conftest.err
9181        } && test -s conftest$ac_exeext &&
9182        $as_test_x conftest$ac_exeext; then
9183   ac_cv_lib_dl_dlopen=yes
9184 else
9185   echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188         ac_cv_lib_dl_dlopen=no
9189 fi
9190
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192       conftest$ac_exeext conftest.$ac_ext
9193 LIBS=$ac_check_lib_save_LIBS
9194 fi
9195 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9197 if test $ac_cv_lib_dl_dlopen = yes; then
9198   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9199 else
9200
9201     lt_cv_dlopen="dyld"
9202     lt_cv_dlopen_libs=
9203     lt_cv_dlopen_self=yes
9204
9205 fi
9206
9207    ;;
9208
9209   *)
9210     { echo "$as_me:$LINENO: checking for shl_load" >&5
9211 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9212 if test "${ac_cv_func_shl_load+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9223 #define shl_load innocuous_shl_load
9224
9225 /* System header to define __stub macros and hopefully few prototypes,
9226     which can conflict with char shl_load (); below.
9227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228     <limits.h> exists even on freestanding compilers.  */
9229
9230 #ifdef __STDC__
9231 # include <limits.h>
9232 #else
9233 # include <assert.h>
9234 #endif
9235
9236 #undef shl_load
9237
9238 /* Override any GCC internal prototype to avoid an error.
9239    Use char because int might match the return type of a GCC
9240    builtin and then its argument prototype would still apply.  */
9241 #ifdef __cplusplus
9242 extern "C"
9243 #endif
9244 char shl_load ();
9245 /* The GNU C library defines this for functions which it implements
9246     to always fail with ENOSYS.  Some functions are actually named
9247     something starting with __ and the normal name is an alias.  */
9248 #if defined __stub_shl_load || defined __stub___shl_load
9249 choke me
9250 #endif
9251
9252 int
9253 main ()
9254 {
9255 return shl_load ();
9256   ;
9257   return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (ac_try="$ac_link"
9262 case "(($ac_try" in
9263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264   *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267   (eval "$ac_link") 2>conftest.er1
9268   ac_status=$?
9269   grep -v '^ *+' conftest.er1 >conftest.err
9270   rm -f conftest.er1
9271   cat conftest.err >&5
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); } && {
9274          test -z "$ac_c_werror_flag" ||
9275          test ! -s conftest.err
9276        } && test -s conftest$ac_exeext &&
9277        $as_test_x conftest$ac_exeext; then
9278   ac_cv_func_shl_load=yes
9279 else
9280   echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9282
9283         ac_cv_func_shl_load=no
9284 fi
9285
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287       conftest$ac_exeext conftest.$ac_ext
9288 fi
9289 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9290 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9291 if test $ac_cv_func_shl_load = yes; then
9292   lt_cv_dlopen="shl_load"
9293 else
9294   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9295 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9296 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   ac_check_lib_save_LIBS=$LIBS
9300 LIBS="-ldld  $LIBS"
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307
9308 /* Override any GCC internal prototype to avoid an error.
9309    Use char because int might match the return type of a GCC
9310    builtin and then its argument prototype would still apply.  */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 char shl_load ();
9315 int
9316 main ()
9317 {
9318 return shl_load ();
9319   ;
9320   return 0;
9321 }
9322 _ACEOF
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (ac_try="$ac_link"
9325 case "(($ac_try" in
9326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327   *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330   (eval "$ac_link") 2>conftest.er1
9331   ac_status=$?
9332   grep -v '^ *+' conftest.er1 >conftest.err
9333   rm -f conftest.er1
9334   cat conftest.err >&5
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); } && {
9337          test -z "$ac_c_werror_flag" ||
9338          test ! -s conftest.err
9339        } && test -s conftest$ac_exeext &&
9340        $as_test_x conftest$ac_exeext; then
9341   ac_cv_lib_dld_shl_load=yes
9342 else
9343   echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346         ac_cv_lib_dld_shl_load=no
9347 fi
9348
9349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9350       conftest$ac_exeext conftest.$ac_ext
9351 LIBS=$ac_check_lib_save_LIBS
9352 fi
9353 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9354 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9355 if test $ac_cv_lib_dld_shl_load = yes; then
9356   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9357 else
9358   { echo "$as_me:$LINENO: checking for dlopen" >&5
9359 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9360 if test "${ac_cv_func_dlopen+set}" = set; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363   cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9371 #define dlopen innocuous_dlopen
9372
9373 /* System header to define __stub macros and hopefully few prototypes,
9374     which can conflict with char dlopen (); below.
9375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9376     <limits.h> exists even on freestanding compilers.  */
9377
9378 #ifdef __STDC__
9379 # include <limits.h>
9380 #else
9381 # include <assert.h>
9382 #endif
9383
9384 #undef dlopen
9385
9386 /* Override any GCC internal prototype to avoid an error.
9387    Use char because int might match the return type of a GCC
9388    builtin and then its argument prototype would still apply.  */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 char dlopen ();
9393 /* The GNU C library defines this for functions which it implements
9394     to always fail with ENOSYS.  Some functions are actually named
9395     something starting with __ and the normal name is an alias.  */
9396 #if defined __stub_dlopen || defined __stub___dlopen
9397 choke me
9398 #endif
9399
9400 int
9401 main ()
9402 {
9403 return dlopen ();
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9410 case "(($ac_try" in
9411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412   *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415   (eval "$ac_link") 2>conftest.er1
9416   ac_status=$?
9417   grep -v '^ *+' conftest.er1 >conftest.err
9418   rm -f conftest.er1
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } && {
9422          test -z "$ac_c_werror_flag" ||
9423          test ! -s conftest.err
9424        } && test -s conftest$ac_exeext &&
9425        $as_test_x conftest$ac_exeext; then
9426   ac_cv_func_dlopen=yes
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431         ac_cv_func_dlopen=no
9432 fi
9433
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435       conftest$ac_exeext conftest.$ac_ext
9436 fi
9437 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9438 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9439 if test $ac_cv_func_dlopen = yes; then
9440   lt_cv_dlopen="dlopen"
9441 else
9442   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9443 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9444 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9445   echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447   ac_check_lib_save_LIBS=$LIBS
9448 LIBS="-ldl  $LIBS"
9449 cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h.  */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h.  */
9455
9456 /* Override any GCC internal prototype to avoid an error.
9457    Use char because int might match the return type of a GCC
9458    builtin and then its argument prototype would still apply.  */
9459 #ifdef __cplusplus
9460 extern "C"
9461 #endif
9462 char dlopen ();
9463 int
9464 main ()
9465 {
9466 return dlopen ();
9467   ;
9468   return 0;
9469 }
9470 _ACEOF
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9473 case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478   (eval "$ac_link") 2>conftest.er1
9479   ac_status=$?
9480   grep -v '^ *+' conftest.er1 >conftest.err
9481   rm -f conftest.er1
9482   cat conftest.err >&5
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); } && {
9485          test -z "$ac_c_werror_flag" ||
9486          test ! -s conftest.err
9487        } && test -s conftest$ac_exeext &&
9488        $as_test_x conftest$ac_exeext; then
9489   ac_cv_lib_dl_dlopen=yes
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494         ac_cv_lib_dl_dlopen=no
9495 fi
9496
9497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9498       conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9500 fi
9501 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9503 if test $ac_cv_lib_dl_dlopen = yes; then
9504   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9505 else
9506   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9507 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9508 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   ac_check_lib_save_LIBS=$LIBS
9512 LIBS="-lsvld  $LIBS"
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h.  */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h.  */
9519
9520 /* Override any GCC internal prototype to avoid an error.
9521    Use char because int might match the return type of a GCC
9522    builtin and then its argument prototype would still apply.  */
9523 #ifdef __cplusplus
9524 extern "C"
9525 #endif
9526 char dlopen ();
9527 int
9528 main ()
9529 {
9530 return dlopen ();
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539   *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542   (eval "$ac_link") 2>conftest.er1
9543   ac_status=$?
9544   grep -v '^ *+' conftest.er1 >conftest.err
9545   rm -f conftest.er1
9546   cat conftest.err >&5
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } && {
9549          test -z "$ac_c_werror_flag" ||
9550          test ! -s conftest.err
9551        } && test -s conftest$ac_exeext &&
9552        $as_test_x conftest$ac_exeext; then
9553   ac_cv_lib_svld_dlopen=yes
9554 else
9555   echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558         ac_cv_lib_svld_dlopen=no
9559 fi
9560
9561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9562       conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9564 fi
9565 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9566 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9567 if test $ac_cv_lib_svld_dlopen = yes; then
9568   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9569 else
9570   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9571 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9572 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   ac_check_lib_save_LIBS=$LIBS
9576 LIBS="-ldld  $LIBS"
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h.  */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h.  */
9583
9584 /* Override any GCC internal prototype to avoid an error.
9585    Use char because int might match the return type of a GCC
9586    builtin and then its argument prototype would still apply.  */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 char dld_link ();
9591 int
9592 main ()
9593 {
9594 return dld_link ();
9595   ;
9596   return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9601 case "(($ac_try" in
9602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603   *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606   (eval "$ac_link") 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && {
9613          test -z "$ac_c_werror_flag" ||
9614          test ! -s conftest.err
9615        } && test -s conftest$ac_exeext &&
9616        $as_test_x conftest$ac_exeext; then
9617   ac_cv_lib_dld_dld_link=yes
9618 else
9619   echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9621
9622         ac_cv_lib_dld_dld_link=no
9623 fi
9624
9625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9626       conftest$ac_exeext conftest.$ac_ext
9627 LIBS=$ac_check_lib_save_LIBS
9628 fi
9629 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9630 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9631 if test $ac_cv_lib_dld_dld_link = yes; then
9632   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9633 fi
9634
9635
9636 fi
9637
9638
9639 fi
9640
9641
9642 fi
9643
9644
9645 fi
9646
9647
9648 fi
9649
9650     ;;
9651   esac
9652
9653   if test "x$lt_cv_dlopen" != xno; then
9654     enable_dlopen=yes
9655   else
9656     enable_dlopen=no
9657   fi
9658
9659   case $lt_cv_dlopen in
9660   dlopen)
9661     save_CPPFLAGS="$CPPFLAGS"
9662     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9663
9664     save_LDFLAGS="$LDFLAGS"
9665     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9666
9667     save_LIBS="$LIBS"
9668     LIBS="$lt_cv_dlopen_libs $LIBS"
9669
9670     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9671 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9672 if test "${lt_cv_dlopen_self+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675           if test "$cross_compiling" = yes; then :
9676   lt_cv_dlopen_self=cross
9677 else
9678   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9679   lt_status=$lt_dlunknown
9680   cat > conftest.$ac_ext <<EOF
9681 #line 9681 "configure"
9682 #include "confdefs.h"
9683
9684 #if HAVE_DLFCN_H
9685 #include <dlfcn.h>
9686 #endif
9687
9688 #include <stdio.h>
9689
9690 #ifdef RTLD_GLOBAL
9691 #  define LT_DLGLOBAL           RTLD_GLOBAL
9692 #else
9693 #  ifdef DL_GLOBAL
9694 #    define LT_DLGLOBAL         DL_GLOBAL
9695 #  else
9696 #    define LT_DLGLOBAL         0
9697 #  endif
9698 #endif
9699
9700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9701    find out it does not work in some platform. */
9702 #ifndef LT_DLLAZY_OR_NOW
9703 #  ifdef RTLD_LAZY
9704 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9705 #  else
9706 #    ifdef DL_LAZY
9707 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9708 #    else
9709 #      ifdef RTLD_NOW
9710 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9711 #      else
9712 #        ifdef DL_NOW
9713 #          define LT_DLLAZY_OR_NOW      DL_NOW
9714 #        else
9715 #          define LT_DLLAZY_OR_NOW      0
9716 #        endif
9717 #      endif
9718 #    endif
9719 #  endif
9720 #endif
9721
9722 #ifdef __cplusplus
9723 extern "C" void exit (int);
9724 #endif
9725
9726 void fnord() { int i=42;}
9727 int main ()
9728 {
9729   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9730   int status = $lt_dlunknown;
9731
9732   if (self)
9733     {
9734       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9735       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9736       /* dlclose (self); */
9737     }
9738   else
9739     puts (dlerror ());
9740
9741     exit (status);
9742 }
9743 EOF
9744   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745   (eval $ac_link) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9749     (./conftest; exit; ) >&5 2>/dev/null
9750     lt_status=$?
9751     case x$lt_status in
9752       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9753       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9754       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9755     esac
9756   else :
9757     # compilation failed
9758     lt_cv_dlopen_self=no
9759   fi
9760 fi
9761 rm -fr conftest*
9762
9763
9764 fi
9765 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9766 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9767
9768     if test "x$lt_cv_dlopen_self" = xyes; then
9769       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9770       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9771 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9772 if test "${lt_cv_dlopen_self_static+set}" = set; then
9773   echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775           if test "$cross_compiling" = yes; then :
9776   lt_cv_dlopen_self_static=cross
9777 else
9778   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9779   lt_status=$lt_dlunknown
9780   cat > conftest.$ac_ext <<EOF
9781 #line 9781 "configure"
9782 #include "confdefs.h"
9783
9784 #if HAVE_DLFCN_H
9785 #include <dlfcn.h>
9786 #endif
9787
9788 #include <stdio.h>
9789
9790 #ifdef RTLD_GLOBAL
9791 #  define LT_DLGLOBAL           RTLD_GLOBAL
9792 #else
9793 #  ifdef DL_GLOBAL
9794 #    define LT_DLGLOBAL         DL_GLOBAL
9795 #  else
9796 #    define LT_DLGLOBAL         0
9797 #  endif
9798 #endif
9799
9800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9801    find out it does not work in some platform. */
9802 #ifndef LT_DLLAZY_OR_NOW
9803 #  ifdef RTLD_LAZY
9804 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9805 #  else
9806 #    ifdef DL_LAZY
9807 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9808 #    else
9809 #      ifdef RTLD_NOW
9810 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9811 #      else
9812 #        ifdef DL_NOW
9813 #          define LT_DLLAZY_OR_NOW      DL_NOW
9814 #        else
9815 #          define LT_DLLAZY_OR_NOW      0
9816 #        endif
9817 #      endif
9818 #    endif
9819 #  endif
9820 #endif
9821
9822 #ifdef __cplusplus
9823 extern "C" void exit (int);
9824 #endif
9825
9826 void fnord() { int i=42;}
9827 int main ()
9828 {
9829   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9830   int status = $lt_dlunknown;
9831
9832   if (self)
9833     {
9834       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9835       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9836       /* dlclose (self); */
9837     }
9838   else
9839     puts (dlerror ());
9840
9841     exit (status);
9842 }
9843 EOF
9844   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845   (eval $ac_link) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9849     (./conftest; exit; ) >&5 2>/dev/null
9850     lt_status=$?
9851     case x$lt_status in
9852       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9853       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9854       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9855     esac
9856   else :
9857     # compilation failed
9858     lt_cv_dlopen_self_static=no
9859   fi
9860 fi
9861 rm -fr conftest*
9862
9863
9864 fi
9865 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9866 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9867     fi
9868
9869     CPPFLAGS="$save_CPPFLAGS"
9870     LDFLAGS="$save_LDFLAGS"
9871     LIBS="$save_LIBS"
9872     ;;
9873   esac
9874
9875   case $lt_cv_dlopen_self in
9876   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9877   *) enable_dlopen_self=unknown ;;
9878   esac
9879
9880   case $lt_cv_dlopen_self_static in
9881   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9882   *) enable_dlopen_self_static=unknown ;;
9883   esac
9884 fi
9885
9886
9887 # Report which library types will actually be built
9888 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9889 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9890 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9891 echo "${ECHO_T}$can_build_shared" >&6; }
9892
9893 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9894 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9895 test "$can_build_shared" = "no" && enable_shared=no
9896
9897 # On AIX, shared libraries and static libraries use the same namespace, and
9898 # are all built from PIC.
9899 case $host_os in
9900 aix3*)
9901   test "$enable_shared" = yes && enable_static=no
9902   if test -n "$RANLIB"; then
9903     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9904     postinstall_cmds='$RANLIB $lib'
9905   fi
9906   ;;
9907
9908 aix4* | aix5*)
9909   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9910     test "$enable_shared" = yes && enable_static=no
9911   fi
9912     ;;
9913 esac
9914 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9915 echo "${ECHO_T}$enable_shared" >&6; }
9916
9917 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9918 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9919 # Make sure either enable_shared or enable_static is yes.
9920 test "$enable_shared" = yes || enable_static=yes
9921 { echo "$as_me:$LINENO: result: $enable_static" >&5
9922 echo "${ECHO_T}$enable_static" >&6; }
9923
9924 # The else clause should only fire when bootstrapping the
9925 # libtool distribution, otherwise you forgot to ship ltmain.sh
9926 # with your package, and you will get complaints that there are
9927 # no rules to generate ltmain.sh.
9928 if test -f "$ltmain"; then
9929   # See if we are running on zsh, and set the options which allow our commands through
9930   # without removal of \ escapes.
9931   if test -n "${ZSH_VERSION+set}" ; then
9932     setopt NO_GLOB_SUBST
9933   fi
9934   # Now quote all the things that may contain metacharacters while being
9935   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9936   # variables and quote the copies for generation of the libtool script.
9937   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9938     SED SHELL STRIP \
9939     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9940     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9941     deplibs_check_method reload_flag reload_cmds need_locks \
9942     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9943     lt_cv_sys_global_symbol_to_c_name_address \
9944     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9945     old_postinstall_cmds old_postuninstall_cmds \
9946     compiler \
9947     CC \
9948     LD \
9949     lt_prog_compiler_wl \
9950     lt_prog_compiler_pic \
9951     lt_prog_compiler_static \
9952     lt_prog_compiler_no_builtin_flag \
9953     export_dynamic_flag_spec \
9954     thread_safe_flag_spec \
9955     whole_archive_flag_spec \
9956     enable_shared_with_static_runtimes \
9957     old_archive_cmds \
9958     old_archive_from_new_cmds \
9959     predep_objects \
9960     postdep_objects \
9961     predeps \
9962     postdeps \
9963     compiler_lib_search_path \
9964     archive_cmds \
9965     archive_expsym_cmds \
9966     postinstall_cmds \
9967     postuninstall_cmds \
9968     old_archive_from_expsyms_cmds \
9969     allow_undefined_flag \
9970     no_undefined_flag \
9971     export_symbols_cmds \
9972     hardcode_libdir_flag_spec \
9973     hardcode_libdir_flag_spec_ld \
9974     hardcode_libdir_separator \
9975     hardcode_automatic \
9976     module_cmds \
9977     module_expsym_cmds \
9978     lt_cv_prog_compiler_c_o \
9979     exclude_expsyms \
9980     include_expsyms; do
9981
9982     case $var in
9983     old_archive_cmds | \
9984     old_archive_from_new_cmds | \
9985     archive_cmds | \
9986     archive_expsym_cmds | \
9987     module_cmds | \
9988     module_expsym_cmds | \
9989     old_archive_from_expsyms_cmds | \
9990     export_symbols_cmds | \
9991     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9992     postinstall_cmds | postuninstall_cmds | \
9993     old_postinstall_cmds | old_postuninstall_cmds | \
9994     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9995       # Double-quote double-evaled strings.
9996       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9997       ;;
9998     *)
9999       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10000       ;;
10001     esac
10002   done
10003
10004   case $lt_echo in
10005   *'\$0 --fallback-echo"')
10006     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10007     ;;
10008   esac
10009
10010 cfgfile="${ofile}T"
10011   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10012   $rm -f "$cfgfile"
10013   { echo "$as_me:$LINENO: creating $ofile" >&5
10014 echo "$as_me: creating $ofile" >&6;}
10015
10016   cat <<__EOF__ >> "$cfgfile"
10017 #! $SHELL
10018
10019 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10020 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10021 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10022 #
10023 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10024 # Free Software Foundation, Inc.
10025 #
10026 # This file is part of GNU Libtool:
10027 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10028 #
10029 # This program is free software; you can redistribute it and/or modify
10030 # it under the terms of the GNU General Public License as published by
10031 # the Free Software Foundation; either version 2 of the License, or
10032 # (at your option) any later version.
10033 #
10034 # This program is distributed in the hope that it will be useful, but
10035 # WITHOUT ANY WARRANTY; without even the implied warranty of
10036 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10037 # General Public License for more details.
10038 #
10039 # You should have received a copy of the GNU General Public License
10040 # along with this program; if not, write to the Free Software
10041 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10042 #
10043 # As a special exception to the GNU General Public License, if you
10044 # distribute this file as part of a program that contains a
10045 # configuration script generated by Autoconf, you may include it under
10046 # the same distribution terms that you use for the rest of that program.
10047
10048 # A sed program that does not truncate output.
10049 SED=$lt_SED
10050
10051 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10052 Xsed="$SED -e 1s/^X//"
10053
10054 # The HP-UX ksh and POSIX shell print the target directory to stdout
10055 # if CDPATH is set.
10056 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10057
10058 # The names of the tagged configurations supported by this script.
10059 available_tags=
10060
10061 # ### BEGIN LIBTOOL CONFIG
10062
10063 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10064
10065 # Shell to use when invoking shell scripts.
10066 SHELL=$lt_SHELL
10067
10068 # Whether or not to build shared libraries.
10069 build_libtool_libs=$enable_shared
10070
10071 # Whether or not to build static libraries.
10072 build_old_libs=$enable_static
10073
10074 # Whether or not to add -lc for building shared libraries.
10075 build_libtool_need_lc=$archive_cmds_need_lc
10076
10077 # Whether or not to disallow shared libs when runtime libs are static
10078 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10079
10080 # Whether or not to optimize for fast installation.
10081 fast_install=$enable_fast_install
10082
10083 # The host system.
10084 host_alias=$host_alias
10085 host=$host
10086 host_os=$host_os
10087
10088 # The build system.
10089 build_alias=$build_alias
10090 build=$build
10091 build_os=$build_os
10092
10093 # An echo program that does not interpret backslashes.
10094 echo=$lt_echo
10095
10096 # The archiver.
10097 AR=$lt_AR
10098 AR_FLAGS=$lt_AR_FLAGS
10099
10100 # A C compiler.
10101 LTCC=$lt_LTCC
10102
10103 # LTCC compiler flags.
10104 LTCFLAGS=$lt_LTCFLAGS
10105
10106 # A language-specific compiler.
10107 CC=$lt_compiler
10108
10109 # Is the compiler the GNU C compiler?
10110 with_gcc=$GCC
10111
10112 # An ERE matcher.
10113 EGREP=$lt_EGREP
10114
10115 # The linker used to build libraries.
10116 LD=$lt_LD
10117
10118 # Whether we need hard or soft links.
10119 LN_S=$lt_LN_S
10120
10121 # A BSD-compatible nm program.
10122 NM=$lt_NM
10123
10124 # A symbol stripping program
10125 STRIP=$lt_STRIP
10126
10127 # Used to examine libraries when file_magic_cmd begins "file"
10128 MAGIC_CMD=$MAGIC_CMD
10129
10130 # Used on cygwin: DLL creation program.
10131 DLLTOOL="$DLLTOOL"
10132
10133 # Used on cygwin: object dumper.
10134 OBJDUMP="$OBJDUMP"
10135
10136 # Used on cygwin: assembler.
10137 AS="$AS"
10138
10139 # The name of the directory that contains temporary libtool files.
10140 objdir=$objdir
10141
10142 # How to create reloadable object files.
10143 reload_flag=$lt_reload_flag
10144 reload_cmds=$lt_reload_cmds
10145
10146 # How to pass a linker flag through the compiler.
10147 wl=$lt_lt_prog_compiler_wl
10148
10149 # Object file suffix (normally "o").
10150 objext="$ac_objext"
10151
10152 # Old archive suffix (normally "a").
10153 libext="$libext"
10154
10155 # Shared library suffix (normally ".so").
10156 shrext_cmds='$shrext_cmds'
10157
10158 # Executable file suffix (normally "").
10159 exeext="$exeext"
10160
10161 # Additional compiler flags for building library objects.
10162 pic_flag=$lt_lt_prog_compiler_pic
10163 pic_mode=$pic_mode
10164
10165 # What is the maximum length of a command?
10166 max_cmd_len=$lt_cv_sys_max_cmd_len
10167
10168 # Does compiler simultaneously support -c and -o options?
10169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10170
10171 # Must we lock files when doing compilation?
10172 need_locks=$lt_need_locks
10173
10174 # Do we need the lib prefix for modules?
10175 need_lib_prefix=$need_lib_prefix
10176
10177 # Do we need a version for libraries?
10178 need_version=$need_version
10179
10180 # Whether dlopen is supported.
10181 dlopen_support=$enable_dlopen
10182
10183 # Whether dlopen of programs is supported.
10184 dlopen_self=$enable_dlopen_self
10185
10186 # Whether dlopen of statically linked programs is supported.
10187 dlopen_self_static=$enable_dlopen_self_static
10188
10189 # Compiler flag to prevent dynamic linking.
10190 link_static_flag=$lt_lt_prog_compiler_static
10191
10192 # Compiler flag to turn off builtin functions.
10193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10194
10195 # Compiler flag to allow reflexive dlopens.
10196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10197
10198 # Compiler flag to generate shared objects directly from archives.
10199 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10200
10201 # Compiler flag to generate thread-safe objects.
10202 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10203
10204 # Library versioning type.
10205 version_type=$version_type
10206
10207 # Format of library name prefix.
10208 libname_spec=$lt_libname_spec
10209
10210 # List of archive names.  First name is the real one, the rest are links.
10211 # The last name is the one that the linker finds with -lNAME.
10212 library_names_spec=$lt_library_names_spec
10213
10214 # The coded name of the library, if different from the real name.
10215 soname_spec=$lt_soname_spec
10216
10217 # Commands used to build and install an old-style archive.
10218 RANLIB=$lt_RANLIB
10219 old_archive_cmds=$lt_old_archive_cmds
10220 old_postinstall_cmds=$lt_old_postinstall_cmds
10221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10222
10223 # Create an old-style archive from a shared archive.
10224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10225
10226 # Create a temporary old-style archive to link instead of a shared archive.
10227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10228
10229 # Commands used to build and install a shared archive.
10230 archive_cmds=$lt_archive_cmds
10231 archive_expsym_cmds=$lt_archive_expsym_cmds
10232 postinstall_cmds=$lt_postinstall_cmds
10233 postuninstall_cmds=$lt_postuninstall_cmds
10234
10235 # Commands used to build a loadable module (assumed same as above if empty)
10236 module_cmds=$lt_module_cmds
10237 module_expsym_cmds=$lt_module_expsym_cmds
10238
10239 # Commands to strip libraries.
10240 old_striplib=$lt_old_striplib
10241 striplib=$lt_striplib
10242
10243 # Dependencies to place before the objects being linked to create a
10244 # shared library.
10245 predep_objects=$lt_predep_objects
10246
10247 # Dependencies to place after the objects being linked to create a
10248 # shared library.
10249 postdep_objects=$lt_postdep_objects
10250
10251 # Dependencies to place before the objects being linked to create a
10252 # shared library.
10253 predeps=$lt_predeps
10254
10255 # Dependencies to place after the objects being linked to create a
10256 # shared library.
10257 postdeps=$lt_postdeps
10258
10259 # The library search path used internally by the compiler when linking
10260 # a shared library.
10261 compiler_lib_search_path=$lt_compiler_lib_search_path
10262
10263 # Method to check whether dependent libraries are shared objects.
10264 deplibs_check_method=$lt_deplibs_check_method
10265
10266 # Command to use when deplibs_check_method == file_magic.
10267 file_magic_cmd=$lt_file_magic_cmd
10268
10269 # Flag that allows shared libraries with undefined symbols to be built.
10270 allow_undefined_flag=$lt_allow_undefined_flag
10271
10272 # Flag that forces no undefined symbols.
10273 no_undefined_flag=$lt_no_undefined_flag
10274
10275 # Commands used to finish a libtool library installation in a directory.
10276 finish_cmds=$lt_finish_cmds
10277
10278 # Same as above, but a single script fragment to be evaled but not shown.
10279 finish_eval=$lt_finish_eval
10280
10281 # Take the output of nm and produce a listing of raw symbols and C names.
10282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10283
10284 # Transform the output of nm in a proper C declaration
10285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10286
10287 # Transform the output of nm in a C name address pair
10288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10289
10290 # This is the shared library runtime path variable.
10291 runpath_var=$runpath_var
10292
10293 # This is the shared library path variable.
10294 shlibpath_var=$shlibpath_var
10295
10296 # Is shlibpath searched before the hard-coded library search path?
10297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10298
10299 # How to hardcode a shared library path into an executable.
10300 hardcode_action=$hardcode_action
10301
10302 # Whether we should hardcode library paths into libraries.
10303 hardcode_into_libs=$hardcode_into_libs
10304
10305 # Flag to hardcode \$libdir into a binary during linking.
10306 # This must work even if \$libdir does not exist.
10307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10308
10309 # If ld is used when linking, flag to hardcode \$libdir into
10310 # a binary during linking. This must work even if \$libdir does
10311 # not exist.
10312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10313
10314 # Whether we need a single -rpath flag with a separated argument.
10315 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10316
10317 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10318 # resulting binary.
10319 hardcode_direct=$hardcode_direct
10320
10321 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10322 # resulting binary.
10323 hardcode_minus_L=$hardcode_minus_L
10324
10325 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10326 # the resulting binary.
10327 hardcode_shlibpath_var=$hardcode_shlibpath_var
10328
10329 # Set to yes if building a shared library automatically hardcodes DIR into the library
10330 # and all subsequent libraries and executables linked against it.
10331 hardcode_automatic=$hardcode_automatic
10332
10333 # Variables whose values should be saved in libtool wrapper scripts and
10334 # restored at relink time.
10335 variables_saved_for_relink="$variables_saved_for_relink"
10336
10337 # Whether libtool must link a program against all its dependency libraries.
10338 link_all_deplibs=$link_all_deplibs
10339
10340 # Compile-time system search path for libraries
10341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10342
10343 # Run-time system search path for libraries
10344 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10345
10346 # Fix the shell variable \$srcfile for the compiler.
10347 fix_srcfile_path="$fix_srcfile_path"
10348
10349 # Set to yes if exported symbols are required.
10350 always_export_symbols=$always_export_symbols
10351
10352 # The commands to list exported symbols.
10353 export_symbols_cmds=$lt_export_symbols_cmds
10354
10355 # The commands to extract the exported symbol list from a shared archive.
10356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10357
10358 # Symbols that should not be listed in the preloaded symbols.
10359 exclude_expsyms=$lt_exclude_expsyms
10360
10361 # Symbols that must always be exported.
10362 include_expsyms=$lt_include_expsyms
10363
10364 # ### END LIBTOOL CONFIG
10365
10366 __EOF__
10367
10368
10369   case $host_os in
10370   aix3*)
10371     cat <<\EOF >> "$cfgfile"
10372
10373 # AIX sometimes has problems with the GCC collect2 program.  For some
10374 # reason, if we set the COLLECT_NAMES environment variable, the problems
10375 # vanish in a puff of smoke.
10376 if test "X${COLLECT_NAMES+set}" != Xset; then
10377   COLLECT_NAMES=
10378   export COLLECT_NAMES
10379 fi
10380 EOF
10381     ;;
10382   esac
10383
10384   # We use sed instead of cat because bash on DJGPP gets confused if
10385   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10386   # text mode, it properly converts lines to CR/LF.  This bash problem
10387   # is reportedly fixed, but why not run on old versions too?
10388   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10389
10390   mv -f "$cfgfile" "$ofile" || \
10391     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10392   chmod +x "$ofile"
10393
10394 else
10395   # If there is no Makefile yet, we rely on a make rule to execute
10396   # `config.status --recheck' to rerun these tests and create the
10397   # libtool script then.
10398   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10399   if test -f "$ltmain_in"; then
10400     test -f Makefile && make "$ltmain"
10401   fi
10402 fi
10403
10404
10405 ac_ext=c
10406 ac_cpp='$CPP $CPPFLAGS'
10407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10410
10411 CC="$lt_save_CC"
10412
10413
10414 # Check whether --with-tags was given.
10415 if test "${with_tags+set}" = set; then
10416   withval=$with_tags; tagnames="$withval"
10417 fi
10418
10419
10420 if test -f "$ltmain" && test -n "$tagnames"; then
10421   if test ! -f "${ofile}"; then
10422     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10423 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10424   fi
10425
10426   if test -z "$LTCC"; then
10427     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10428     if test -z "$LTCC"; then
10429       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10430 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10431     else
10432       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10433 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10434     fi
10435   fi
10436   if test -z "$LTCFLAGS"; then
10437     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10438   fi
10439
10440   # Extract list of available tagged configurations in $ofile.
10441   # Note that this assumes the entire list is on one line.
10442   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10443
10444   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10445   for tagname in $tagnames; do
10446     IFS="$lt_save_ifs"
10447     # Check whether tagname contains only valid characters
10448     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10449     "") ;;
10450     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10451 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10452    { (exit 1); exit 1; }; }
10453         ;;
10454     esac
10455
10456     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10457     then
10458       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10459 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10460    { (exit 1); exit 1; }; }
10461     fi
10462
10463     # Update the list of available tags.
10464     if test -n "$tagname"; then
10465       echo appending configuration tag \"$tagname\" to $ofile
10466
10467       case $tagname in
10468       CXX)
10469         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10470             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10471             (test "X$CXX" != "Xg++"))) ; then
10472           ac_ext=cpp
10473 ac_cpp='$CXXCPP $CPPFLAGS'
10474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10477
10478
10479
10480
10481 archive_cmds_need_lc_CXX=no
10482 allow_undefined_flag_CXX=
10483 always_export_symbols_CXX=no
10484 archive_expsym_cmds_CXX=
10485 export_dynamic_flag_spec_CXX=
10486 hardcode_direct_CXX=no
10487 hardcode_libdir_flag_spec_CXX=
10488 hardcode_libdir_flag_spec_ld_CXX=
10489 hardcode_libdir_separator_CXX=
10490 hardcode_minus_L_CXX=no
10491 hardcode_shlibpath_var_CXX=unsupported
10492 hardcode_automatic_CXX=no
10493 module_cmds_CXX=
10494 module_expsym_cmds_CXX=
10495 link_all_deplibs_CXX=unknown
10496 old_archive_cmds_CXX=$old_archive_cmds
10497 no_undefined_flag_CXX=
10498 whole_archive_flag_spec_CXX=
10499 enable_shared_with_static_runtimes_CXX=no
10500
10501 # Dependencies to place before and after the object being linked:
10502 predep_objects_CXX=
10503 postdep_objects_CXX=
10504 predeps_CXX=
10505 postdeps_CXX=
10506 compiler_lib_search_path_CXX=
10507
10508 # Source file extension for C++ test sources.
10509 ac_ext=cpp
10510
10511 # Object file extension for compiled C++ test sources.
10512 objext=o
10513 objext_CXX=$objext
10514
10515 # Code to be used in simple compile tests
10516 lt_simple_compile_test_code="int some_variable = 0;\n"
10517
10518 # Code to be used in simple link tests
10519 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10520
10521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10522
10523 # If no C compiler was specified, use CC.
10524 LTCC=${LTCC-"$CC"}
10525
10526 # If no C compiler flags were specified, use CFLAGS.
10527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10528
10529 # Allow CC to be a program name with arguments.
10530 compiler=$CC
10531
10532
10533 # save warnings/boilerplate of simple test code
10534 ac_outfile=conftest.$ac_objext
10535 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10537 _lt_compiler_boilerplate=`cat conftest.err`
10538 $rm conftest*
10539
10540 ac_outfile=conftest.$ac_objext
10541 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10543 _lt_linker_boilerplate=`cat conftest.err`
10544 $rm conftest*
10545
10546
10547 # Allow CC to be a program name with arguments.
10548 lt_save_CC=$CC
10549 lt_save_LD=$LD
10550 lt_save_GCC=$GCC
10551 GCC=$GXX
10552 lt_save_with_gnu_ld=$with_gnu_ld
10553 lt_save_path_LD=$lt_cv_path_LD
10554 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10555   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10556 else
10557   $as_unset lt_cv_prog_gnu_ld
10558 fi
10559 if test -n "${lt_cv_path_LDCXX+set}"; then
10560   lt_cv_path_LD=$lt_cv_path_LDCXX
10561 else
10562   $as_unset lt_cv_path_LD
10563 fi
10564 test -z "${LDCXX+set}" || LD=$LDCXX
10565 CC=${CXX-"c++"}
10566 compiler=$CC
10567 compiler_CXX=$CC
10568 for cc_temp in $compiler""; do
10569   case $cc_temp in
10570     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10571     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10572     \-*) ;;
10573     *) break;;
10574   esac
10575 done
10576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10577
10578
10579 # We don't want -fno-exception wen compiling C++ code, so set the
10580 # no_builtin_flag separately
10581 if test "$GXX" = yes; then
10582   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10583 else
10584   lt_prog_compiler_no_builtin_flag_CXX=
10585 fi
10586
10587 if test "$GXX" = yes; then
10588   # Set up default GNU C++ configuration
10589
10590
10591 # Check whether --with-gnu-ld was given.
10592 if test "${with_gnu_ld+set}" = set; then
10593   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10594 else
10595   with_gnu_ld=no
10596 fi
10597
10598 ac_prog=ld
10599 if test "$GCC" = yes; then
10600   # Check if gcc -print-prog-name=ld gives a path.
10601   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10602 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10603   case $host in
10604   *-*-mingw*)
10605     # gcc leaves a trailing carriage return which upsets mingw
10606     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10607   *)
10608     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10609   esac
10610   case $ac_prog in
10611     # Accept absolute paths.
10612     [\\/]* | ?:[\\/]*)
10613       re_direlt='/[^/][^/]*/\.\./'
10614       # Canonicalize the pathname of ld
10615       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10616       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10617         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10618       done
10619       test -z "$LD" && LD="$ac_prog"
10620       ;;
10621   "")
10622     # If it fails, then pretend we aren't using GCC.
10623     ac_prog=ld
10624     ;;
10625   *)
10626     # If it is relative, then search for the first ld in PATH.
10627     with_gnu_ld=unknown
10628     ;;
10629   esac
10630 elif test "$with_gnu_ld" = yes; then
10631   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10632 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10633 else
10634   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10635 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10636 fi
10637 if test "${lt_cv_path_LD+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   if test -z "$LD"; then
10641   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10642   for ac_dir in $PATH; do
10643     IFS="$lt_save_ifs"
10644     test -z "$ac_dir" && ac_dir=.
10645     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10646       lt_cv_path_LD="$ac_dir/$ac_prog"
10647       # Check to see if the program is GNU ld.  I'd rather use --version,
10648       # but apparently some variants of GNU ld only accept -v.
10649       # Break only if it was the GNU/non-GNU ld that we prefer.
10650       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10651       *GNU* | *'with BFD'*)
10652         test "$with_gnu_ld" != no && break
10653         ;;
10654       *)
10655         test "$with_gnu_ld" != yes && break
10656         ;;
10657       esac
10658     fi
10659   done
10660   IFS="$lt_save_ifs"
10661 else
10662   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10663 fi
10664 fi
10665
10666 LD="$lt_cv_path_LD"
10667 if test -n "$LD"; then
10668   { echo "$as_me:$LINENO: result: $LD" >&5
10669 echo "${ECHO_T}$LD" >&6; }
10670 else
10671   { echo "$as_me:$LINENO: result: no" >&5
10672 echo "${ECHO_T}no" >&6; }
10673 fi
10674 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10675 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10676    { (exit 1); exit 1; }; }
10677 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10678 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10679 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10683 case `$LD -v 2>&1 </dev/null` in
10684 *GNU* | *'with BFD'*)
10685   lt_cv_prog_gnu_ld=yes
10686   ;;
10687 *)
10688   lt_cv_prog_gnu_ld=no
10689   ;;
10690 esac
10691 fi
10692 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10693 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10694 with_gnu_ld=$lt_cv_prog_gnu_ld
10695
10696
10697
10698   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10699   # archiving commands below assume that GNU ld is being used.
10700   if test "$with_gnu_ld" = yes; then
10701     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10702     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'
10703
10704     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10705     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10706
10707     # If archive_cmds runs LD, not CC, wlarc should be empty
10708     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10709     #     investigate it a little bit more. (MM)
10710     wlarc='${wl}'
10711
10712     # ancient GNU ld didn't support --whole-archive et. al.
10713     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10714         grep 'no-whole-archive' > /dev/null; then
10715       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10716     else
10717       whole_archive_flag_spec_CXX=
10718     fi
10719   else
10720     with_gnu_ld=no
10721     wlarc=
10722
10723     # A generic and very simple default shared library creation
10724     # command for GNU C++ for the case where it uses the native
10725     # linker, instead of GNU ld.  If possible, this setting should
10726     # overridden to take advantage of the native linker features on
10727     # the platform it is being used on.
10728     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10729   fi
10730
10731   # Commands to make compiler produce verbose output that lists
10732   # what "hidden" libraries, object files and flags are used when
10733   # linking a shared library.
10734   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10735
10736 else
10737   GXX=no
10738   with_gnu_ld=no
10739   wlarc=
10740 fi
10741
10742 # PORTME: fill in a description of your system's C++ link characteristics
10743 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10744 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10745 ld_shlibs_CXX=yes
10746 case $host_os in
10747   aix3*)
10748     # FIXME: insert proper C++ library support
10749     ld_shlibs_CXX=no
10750     ;;
10751   aix4* | aix5*)
10752     if test "$host_cpu" = ia64; then
10753       # On IA64, the linker does run time linking by default, so we don't
10754       # have to do anything special.
10755       aix_use_runtimelinking=no
10756       exp_sym_flag='-Bexport'
10757       no_entry_flag=""
10758     else
10759       aix_use_runtimelinking=no
10760
10761       # Test if we are trying to use run time linking or normal
10762       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10763       # need to do runtime linking.
10764       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10765         for ld_flag in $LDFLAGS; do
10766           case $ld_flag in
10767           *-brtl*)
10768             aix_use_runtimelinking=yes
10769             break
10770             ;;
10771           esac
10772         done
10773         ;;
10774       esac
10775
10776       exp_sym_flag='-bexport'
10777       no_entry_flag='-bnoentry'
10778     fi
10779
10780     # When large executables or shared objects are built, AIX ld can
10781     # have problems creating the table of contents.  If linking a library
10782     # or program results in "error TOC overflow" add -mminimal-toc to
10783     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10784     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10785
10786     archive_cmds_CXX=''
10787     hardcode_direct_CXX=yes
10788     hardcode_libdir_separator_CXX=':'
10789     link_all_deplibs_CXX=yes
10790
10791     if test "$GXX" = yes; then
10792       case $host_os in aix4.[012]|aix4.[012].*)
10793       # We only want to do this on AIX 4.2 and lower, the check
10794       # below for broken collect2 doesn't work under 4.3+
10795         collect2name=`${CC} -print-prog-name=collect2`
10796         if test -f "$collect2name" && \
10797            strings "$collect2name" | grep resolve_lib_name >/dev/null
10798         then
10799           # We have reworked collect2
10800           hardcode_direct_CXX=yes
10801         else
10802           # We have old collect2
10803           hardcode_direct_CXX=unsupported
10804           # It fails to find uninstalled libraries when the uninstalled
10805           # path is not listed in the libpath.  Setting hardcode_minus_L
10806           # to unsupported forces relinking
10807           hardcode_minus_L_CXX=yes
10808           hardcode_libdir_flag_spec_CXX='-L$libdir'
10809           hardcode_libdir_separator_CXX=
10810         fi
10811         ;;
10812       esac
10813       shared_flag='-shared'
10814       if test "$aix_use_runtimelinking" = yes; then
10815         shared_flag="$shared_flag "'${wl}-G'
10816       fi
10817     else
10818       # not using gcc
10819       if test "$host_cpu" = ia64; then
10820         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10821         # chokes on -Wl,-G. The following line is correct:
10822         shared_flag='-G'
10823       else
10824         if test "$aix_use_runtimelinking" = yes; then
10825           shared_flag='${wl}-G'
10826         else
10827           shared_flag='${wl}-bM:SRE'
10828         fi
10829       fi
10830     fi
10831
10832     # It seems that -bexpall does not export symbols beginning with
10833     # underscore (_), so it is better to generate a list of symbols to export.
10834     always_export_symbols_CXX=yes
10835     if test "$aix_use_runtimelinking" = yes; then
10836       # Warning - without using the other runtime loading flags (-brtl),
10837       # -berok will link without error, but may produce a broken library.
10838       allow_undefined_flag_CXX='-berok'
10839       # Determine the default libpath from the value encoded in an empty executable.
10840       cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h.  */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h.  */
10846
10847 int
10848 main ()
10849 {
10850
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862   (eval "$ac_link") 2>conftest.er1
10863   ac_status=$?
10864   grep -v '^ *+' conftest.er1 >conftest.err
10865   rm -f conftest.er1
10866   cat conftest.err >&5
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); } && {
10869          test -z "$ac_cxx_werror_flag" ||
10870          test ! -s conftest.err
10871        } && test -s conftest$ac_exeext &&
10872        $as_test_x conftest$ac_exeext; then
10873
10874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10875 }'`
10876 # Check for a 64-bit object if we didn't find anything.
10877 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10878 }'`; fi
10879 else
10880   echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883
10884 fi
10885
10886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10887       conftest$ac_exeext conftest.$ac_ext
10888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10889
10890       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10891
10892       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"
10893      else
10894       if test "$host_cpu" = ia64; then
10895         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10896         allow_undefined_flag_CXX="-z nodefs"
10897         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"
10898       else
10899         # Determine the default libpath from the value encoded in an empty executable.
10900         cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906
10907 int
10908 main ()
10909 {
10910
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (ac_try="$ac_link"
10917 case "(($ac_try" in
10918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919   *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922   (eval "$ac_link") 2>conftest.er1
10923   ac_status=$?
10924   grep -v '^ *+' conftest.er1 >conftest.err
10925   rm -f conftest.er1
10926   cat conftest.err >&5
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } && {
10929          test -z "$ac_cxx_werror_flag" ||
10930          test ! -s conftest.err
10931        } && test -s conftest$ac_exeext &&
10932        $as_test_x conftest$ac_exeext; then
10933
10934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10935 }'`
10936 # Check for a 64-bit object if we didn't find anything.
10937 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10938 }'`; fi
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943
10944 fi
10945
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947       conftest$ac_exeext conftest.$ac_ext
10948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10949
10950         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10951         # Warning - without using the other run time loading flags,
10952         # -berok will link without error, but may produce a broken library.
10953         no_undefined_flag_CXX=' ${wl}-bernotok'
10954         allow_undefined_flag_CXX=' ${wl}-berok'
10955         # Exported symbols can be pulled into shared objects from archives
10956         whole_archive_flag_spec_CXX='$convenience'
10957         archive_cmds_need_lc_CXX=yes
10958         # This is similar to how AIX traditionally builds its shared libraries.
10959         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'
10960       fi
10961     fi
10962     ;;
10963
10964   beos*)
10965     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10966       allow_undefined_flag_CXX=unsupported
10967       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10968       # support --undefined.  This deserves some investigation.  FIXME
10969       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10970     else
10971       ld_shlibs_CXX=no
10972     fi
10973     ;;
10974
10975   chorus*)
10976     case $cc_basename in
10977       *)
10978         # FIXME: insert proper C++ library support
10979         ld_shlibs_CXX=no
10980         ;;
10981     esac
10982     ;;
10983
10984   cygwin* | mingw* | pw32*)
10985     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10986     # as there is no search path for DLLs.
10987     hardcode_libdir_flag_spec_CXX='-L$libdir'
10988     allow_undefined_flag_CXX=unsupported
10989     always_export_symbols_CXX=no
10990     enable_shared_with_static_runtimes_CXX=yes
10991
10992     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10993       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'
10994       # If the export-symbols file already is a .def file (1st line
10995       # is EXPORTS), use it as is; otherwise, prepend...
10996       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10997         cp $export_symbols $output_objdir/$soname.def;
10998       else
10999         echo EXPORTS > $output_objdir/$soname.def;
11000         cat $export_symbols >> $output_objdir/$soname.def;
11001       fi~
11002       $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'
11003     else
11004       ld_shlibs_CXX=no
11005     fi
11006   ;;
11007       darwin* | rhapsody*)
11008         case $host_os in
11009         rhapsody* | darwin1.[012])
11010          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11011          ;;
11012        *) # Darwin 1.3 on
11013          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11014            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11015          else
11016            case ${MACOSX_DEPLOYMENT_TARGET} in
11017              10.[012])
11018                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11019                ;;
11020              10.*)
11021                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11022                ;;
11023            esac
11024          fi
11025          ;;
11026         esac
11027       archive_cmds_need_lc_CXX=no
11028       hardcode_direct_CXX=no
11029       hardcode_automatic_CXX=yes
11030       hardcode_shlibpath_var_CXX=unsupported
11031       whole_archive_flag_spec_CXX=''
11032       link_all_deplibs_CXX=yes
11033
11034     if test "$GXX" = yes ; then
11035       lt_int_apple_cc_single_mod=no
11036       output_verbose_link_cmd='echo'
11037       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11038        lt_int_apple_cc_single_mod=yes
11039       fi
11040       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11041        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11042       else
11043           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'
11044         fi
11045         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11046         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11047           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11048             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}'
11049           else
11050             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}'
11051           fi
11052             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}'
11053       else
11054       case $cc_basename in
11055         xlc*)
11056          output_verbose_link_cmd='echo'
11057           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11058           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11059           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11060           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11061           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}'
11062           ;;
11063        *)
11064          ld_shlibs_CXX=no
11065           ;;
11066       esac
11067       fi
11068         ;;
11069
11070   dgux*)
11071     case $cc_basename in
11072       ec++*)
11073         # FIXME: insert proper C++ library support
11074         ld_shlibs_CXX=no
11075         ;;
11076       ghcx*)
11077         # Green Hills C++ Compiler
11078         # FIXME: insert proper C++ library support
11079         ld_shlibs_CXX=no
11080         ;;
11081       *)
11082         # FIXME: insert proper C++ library support
11083         ld_shlibs_CXX=no
11084         ;;
11085     esac
11086     ;;
11087   freebsd[12]*)
11088     # C++ shared libraries reported to be fairly broken before switch to ELF
11089     ld_shlibs_CXX=no
11090     ;;
11091   freebsd-elf*)
11092     archive_cmds_need_lc_CXX=no
11093     ;;
11094   freebsd* | dragonfly*)
11095     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11096     # conventions
11097     ld_shlibs_CXX=yes
11098     ;;
11099   gnu*)
11100     ;;
11101   hpux9*)
11102     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11103     hardcode_libdir_separator_CXX=:
11104     export_dynamic_flag_spec_CXX='${wl}-E'
11105     hardcode_direct_CXX=yes
11106     hardcode_minus_L_CXX=yes # Not in the search PATH,
11107                                 # but as the default
11108                                 # location of the library.
11109
11110     case $cc_basename in
11111     CC*)
11112       # FIXME: insert proper C++ library support
11113       ld_shlibs_CXX=no
11114       ;;
11115     aCC*)
11116       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'
11117       # Commands to make compiler produce verbose output that lists
11118       # what "hidden" libraries, object files and flags are used when
11119       # linking a shared library.
11120       #
11121       # There doesn't appear to be a way to prevent this compiler from
11122       # explicitly linking system object files so we need to strip them
11123       # from the output so that they don't get included in the library
11124       # dependencies.
11125       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'
11126       ;;
11127     *)
11128       if test "$GXX" = yes; then
11129         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'
11130       else
11131         # FIXME: insert proper C++ library support
11132         ld_shlibs_CXX=no
11133       fi
11134       ;;
11135     esac
11136     ;;
11137   hpux10*|hpux11*)
11138     if test $with_gnu_ld = no; then
11139       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11140       hardcode_libdir_separator_CXX=:
11141
11142       case $host_cpu in
11143       hppa*64*|ia64*)
11144         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11145         ;;
11146       *)
11147         export_dynamic_flag_spec_CXX='${wl}-E'
11148         ;;
11149       esac
11150     fi
11151     case $host_cpu in
11152     hppa*64*|ia64*)
11153       hardcode_direct_CXX=no
11154       hardcode_shlibpath_var_CXX=no
11155       ;;
11156     *)
11157       hardcode_direct_CXX=yes
11158       hardcode_minus_L_CXX=yes # Not in the search PATH,
11159                                               # but as the default
11160                                               # location of the library.
11161       ;;
11162     esac
11163
11164     case $cc_basename in
11165       CC*)
11166         # FIXME: insert proper C++ library support
11167         ld_shlibs_CXX=no
11168         ;;
11169       aCC*)
11170         case $host_cpu in
11171         hppa*64*)
11172           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11173           ;;
11174         ia64*)
11175           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11176           ;;
11177         *)
11178           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11179           ;;
11180         esac
11181         # Commands to make compiler produce verbose output that lists
11182         # what "hidden" libraries, object files and flags are used when
11183         # linking a shared library.
11184         #
11185         # There doesn't appear to be a way to prevent this compiler from
11186         # explicitly linking system object files so we need to strip them
11187         # from the output so that they don't get included in the library
11188         # dependencies.
11189         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'
11190         ;;
11191       *)
11192         if test "$GXX" = yes; then
11193           if test $with_gnu_ld = no; then
11194             case $host_cpu in
11195             hppa*64*)
11196               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11197               ;;
11198             ia64*)
11199               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11200               ;;
11201             *)
11202               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'
11203               ;;
11204             esac
11205           fi
11206         else
11207           # FIXME: insert proper C++ library support
11208           ld_shlibs_CXX=no
11209         fi
11210         ;;
11211     esac
11212     ;;
11213   interix3*)
11214     hardcode_direct_CXX=no
11215     hardcode_shlibpath_var_CXX=no
11216     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11217     export_dynamic_flag_spec_CXX='${wl}-E'
11218     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11219     # Instead, shared libraries are loaded at an image base (0x10000000 by
11220     # default) and relocated if they conflict, which is a slow very memory
11221     # consuming and fragmenting process.  To avoid this, we pick a random,
11222     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11223     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11224     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'
11225     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'
11226     ;;
11227   irix5* | irix6*)
11228     case $cc_basename in
11229       CC*)
11230         # SGI C++
11231         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'
11232
11233         # Archives containing C++ object files must be created using
11234         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11235         # necessary to make sure instantiated templates are included
11236         # in the archive.
11237         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11238         ;;
11239       *)
11240         if test "$GXX" = yes; then
11241           if test "$with_gnu_ld" = no; then
11242             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'
11243           else
11244             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'
11245           fi
11246         fi
11247         link_all_deplibs_CXX=yes
11248         ;;
11249     esac
11250     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11251     hardcode_libdir_separator_CXX=:
11252     ;;
11253   linux* | k*bsd*-gnu)
11254     case $cc_basename in
11255       KCC*)
11256         # Kuck and Associates, Inc. (KAI) C++ Compiler
11257
11258         # KCC will only create a shared library if the output file
11259         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11260         # to its proper name (with version) after linking.
11261         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'
11262         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'
11263         # Commands to make compiler produce verbose output that lists
11264         # what "hidden" libraries, object files and flags are used when
11265         # linking a shared library.
11266         #
11267         # There doesn't appear to be a way to prevent this compiler from
11268         # explicitly linking system object files so we need to strip them
11269         # from the output so that they don't get included in the library
11270         # dependencies.
11271         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'
11272
11273         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11274         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11275
11276         # Archives containing C++ object files must be created using
11277         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11278         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11279         ;;
11280       icpc*)
11281         # Intel C++
11282         with_gnu_ld=yes
11283         # version 8.0 and above of icpc choke on multiply defined symbols
11284         # if we add $predep_objects and $postdep_objects, however 7.1 and
11285         # earlier do not add the objects themselves.
11286         case `$CC -V 2>&1` in
11287         *"Version 7."*)
11288           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11289           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'
11290           ;;
11291         *)  # Version 8.0 or newer
11292           tmp_idyn=
11293           case $host_cpu in
11294             ia64*) tmp_idyn=' -i_dynamic';;
11295           esac
11296           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11297           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'
11298           ;;
11299         esac
11300         archive_cmds_need_lc_CXX=no
11301         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11302         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11303         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11304         ;;
11305       pgCC*)
11306         # Portland Group C++ compiler
11307         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11308         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'
11309
11310         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11311         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11312         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'
11313         ;;
11314       cxx*)
11315         # Compaq C++
11316         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317         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'
11318
11319         runpath_var=LD_RUN_PATH
11320         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11321         hardcode_libdir_separator_CXX=:
11322
11323         # Commands to make compiler produce verbose output that lists
11324         # what "hidden" libraries, object files and flags are used when
11325         # linking a shared library.
11326         #
11327         # There doesn't appear to be a way to prevent this compiler from
11328         # explicitly linking system object files so we need to strip them
11329         # from the output so that they don't get included in the library
11330         # dependencies.
11331         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'
11332         ;;
11333     esac
11334     ;;
11335   lynxos*)
11336     # FIXME: insert proper C++ library support
11337     ld_shlibs_CXX=no
11338     ;;
11339   m88k*)
11340     # FIXME: insert proper C++ library support
11341     ld_shlibs_CXX=no
11342     ;;
11343   mvs*)
11344     case $cc_basename in
11345       cxx*)
11346         # FIXME: insert proper C++ library support
11347         ld_shlibs_CXX=no
11348         ;;
11349       *)
11350         # FIXME: insert proper C++ library support
11351         ld_shlibs_CXX=no
11352         ;;
11353     esac
11354     ;;
11355   netbsd* | netbsdelf*-gnu)
11356     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11357       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11358       wlarc=
11359       hardcode_libdir_flag_spec_CXX='-R$libdir'
11360       hardcode_direct_CXX=yes
11361       hardcode_shlibpath_var_CXX=no
11362     fi
11363     # Workaround some broken pre-1.5 toolchains
11364     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11365     ;;
11366   openbsd2*)
11367     # C++ shared libraries are fairly broken
11368     ld_shlibs_CXX=no
11369     ;;
11370   openbsd*)
11371     hardcode_direct_CXX=yes
11372     hardcode_shlibpath_var_CXX=no
11373     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11374     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11375     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11376       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11377       export_dynamic_flag_spec_CXX='${wl}-E'
11378       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11379     fi
11380     output_verbose_link_cmd='echo'
11381     ;;
11382   osf3*)
11383     case $cc_basename in
11384       KCC*)
11385         # Kuck and Associates, Inc. (KAI) C++ Compiler
11386
11387         # KCC will only create a shared library if the output file
11388         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11389         # to its proper name (with version) after linking.
11390         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'
11391
11392         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11393         hardcode_libdir_separator_CXX=:
11394
11395         # Archives containing C++ object files must be created using
11396         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11397         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11398
11399         ;;
11400       RCC*)
11401         # Rational C++ 2.4.1
11402         # FIXME: insert proper C++ library support
11403         ld_shlibs_CXX=no
11404         ;;
11405       cxx*)
11406         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11407         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'
11408
11409         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11410         hardcode_libdir_separator_CXX=:
11411
11412         # Commands to make compiler produce verbose output that lists
11413         # what "hidden" libraries, object files and flags are used when
11414         # linking a shared library.
11415         #
11416         # There doesn't appear to be a way to prevent this compiler from
11417         # explicitly linking system object files so we need to strip them
11418         # from the output so that they don't get included in the library
11419         # dependencies.
11420         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'
11421         ;;
11422       *)
11423         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11424           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11425           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'
11426
11427           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11428           hardcode_libdir_separator_CXX=:
11429
11430           # Commands to make compiler produce verbose output that lists
11431           # what "hidden" libraries, object files and flags are used when
11432           # linking a shared library.
11433           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11434
11435         else
11436           # FIXME: insert proper C++ library support
11437           ld_shlibs_CXX=no
11438         fi
11439         ;;
11440     esac
11441     ;;
11442   osf4* | osf5*)
11443     case $cc_basename in
11444       KCC*)
11445         # Kuck and Associates, Inc. (KAI) C++ Compiler
11446
11447         # KCC will only create a shared library if the output file
11448         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11449         # to its proper name (with version) after linking.
11450         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'
11451
11452         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11453         hardcode_libdir_separator_CXX=:
11454
11455         # Archives containing C++ object files must be created using
11456         # the KAI C++ compiler.
11457         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11458         ;;
11459       RCC*)
11460         # Rational C++ 2.4.1
11461         # FIXME: insert proper C++ library support
11462         ld_shlibs_CXX=no
11463         ;;
11464       cxx*)
11465         allow_undefined_flag_CXX=' -expect_unresolved \*'
11466         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'
11467         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11468           echo "-hidden">> $lib.exp~
11469           $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~
11470           $rm $lib.exp'
11471
11472         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11473         hardcode_libdir_separator_CXX=:
11474
11475         # Commands to make compiler produce verbose output that lists
11476         # what "hidden" libraries, object files and flags are used when
11477         # linking a shared library.
11478         #
11479         # There doesn't appear to be a way to prevent this compiler from
11480         # explicitly linking system object files so we need to strip them
11481         # from the output so that they don't get included in the library
11482         # dependencies.
11483         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'
11484         ;;
11485       *)
11486         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11487           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11488          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'
11489
11490           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11491           hardcode_libdir_separator_CXX=:
11492
11493           # Commands to make compiler produce verbose output that lists
11494           # what "hidden" libraries, object files and flags are used when
11495           # linking a shared library.
11496           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11497
11498         else
11499           # FIXME: insert proper C++ library support
11500           ld_shlibs_CXX=no
11501         fi
11502         ;;
11503     esac
11504     ;;
11505   psos*)
11506     # FIXME: insert proper C++ library support
11507     ld_shlibs_CXX=no
11508     ;;
11509   sunos4*)
11510     case $cc_basename in
11511       CC*)
11512         # Sun C++ 4.x
11513         # FIXME: insert proper C++ library support
11514         ld_shlibs_CXX=no
11515         ;;
11516       lcc*)
11517         # Lucid
11518         # FIXME: insert proper C++ library support
11519         ld_shlibs_CXX=no
11520         ;;
11521       *)
11522         # FIXME: insert proper C++ library support
11523         ld_shlibs_CXX=no
11524         ;;
11525     esac
11526     ;;
11527   solaris*)
11528     case $cc_basename in
11529       CC*)
11530         # Sun C++ 4.2, 5.x and Centerline C++
11531         archive_cmds_need_lc_CXX=yes
11532         no_undefined_flag_CXX=' -zdefs'
11533         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11534         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11535         $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'
11536
11537         hardcode_libdir_flag_spec_CXX='-R$libdir'
11538         hardcode_shlibpath_var_CXX=no
11539         case $host_os in
11540           solaris2.[0-5] | solaris2.[0-5].*) ;;
11541           *)
11542             # The C++ compiler is used as linker so we must use $wl
11543             # flag to pass the commands to the underlying system
11544             # linker. We must also pass each convience library through
11545             # to the system linker between allextract/defaultextract.
11546             # The C++ compiler will combine linker options so we
11547             # cannot just pass the convience library names through
11548             # without $wl.
11549             # Supported since Solaris 2.6 (maybe 2.5.1?)
11550             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11551             ;;
11552         esac
11553         link_all_deplibs_CXX=yes
11554
11555         output_verbose_link_cmd='echo'
11556
11557         # Archives containing C++ object files must be created using
11558         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11559         # necessary to make sure instantiated templates are included
11560         # in the archive.
11561         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11562         ;;
11563       gcx*)
11564         # Green Hills C++ Compiler
11565         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11566
11567         # The C++ compiler must be used to create the archive.
11568         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11569         ;;
11570       *)
11571         # GNU C++ compiler with Solaris linker
11572         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11573           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11574           if $CC --version | grep -v '^2\.7' > /dev/null; then
11575             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11576             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11577                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11578
11579             # Commands to make compiler produce verbose output that lists
11580             # what "hidden" libraries, object files and flags are used when
11581             # linking a shared library.
11582             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11583           else
11584             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11585             # platform.
11586             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11587             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11588                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11589
11590             # Commands to make compiler produce verbose output that lists
11591             # what "hidden" libraries, object files and flags are used when
11592             # linking a shared library.
11593             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11594           fi
11595
11596           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11597         fi
11598         ;;
11599     esac
11600     ;;
11601   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11602     no_undefined_flag_CXX='${wl}-z,text'
11603     archive_cmds_need_lc_CXX=no
11604     hardcode_shlibpath_var_CXX=no
11605     runpath_var='LD_RUN_PATH'
11606
11607     case $cc_basename in
11608       CC*)
11609         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11610         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11611         ;;
11612       *)
11613         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11614         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11615         ;;
11616     esac
11617     ;;
11618   sysv5* | sco3.2v5* | sco5v6*)
11619     # Note: We can NOT use -z defs as we might desire, because we do not
11620     # link with -lc, and that would cause any symbols used from libc to
11621     # always be unresolved, which means just about no library would
11622     # ever link correctly.  If we're not using GNU ld we use -z text
11623     # though, which does catch some bad symbols but isn't as heavy-handed
11624     # as -z defs.
11625     # For security reasons, it is highly recommended that you always
11626     # use absolute paths for naming shared libraries, and exclude the
11627     # DT_RUNPATH tag from executables and libraries.  But doing so
11628     # requires that you compile everything twice, which is a pain.
11629     # So that behaviour is only enabled if SCOABSPATH is set to a
11630     # non-empty value in the environment.  Most likely only useful for
11631     # creating official distributions of packages.
11632     # This is a hack until libtool officially supports absolute path
11633     # names for shared libraries.
11634     no_undefined_flag_CXX='${wl}-z,text'
11635     allow_undefined_flag_CXX='${wl}-z,nodefs'
11636     archive_cmds_need_lc_CXX=no
11637     hardcode_shlibpath_var_CXX=no
11638     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11639     hardcode_libdir_separator_CXX=':'
11640     link_all_deplibs_CXX=yes
11641     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11642     runpath_var='LD_RUN_PATH'
11643
11644     case $cc_basename in
11645       CC*)
11646         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11647         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11648         ;;
11649       *)
11650         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11651         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11652         ;;
11653     esac
11654     ;;
11655   tandem*)
11656     case $cc_basename in
11657       NCC*)
11658         # NonStop-UX NCC 3.20
11659         # FIXME: insert proper C++ library support
11660         ld_shlibs_CXX=no
11661         ;;
11662       *)
11663         # FIXME: insert proper C++ library support
11664         ld_shlibs_CXX=no
11665         ;;
11666     esac
11667     ;;
11668   vxworks*)
11669     # FIXME: insert proper C++ library support
11670     ld_shlibs_CXX=no
11671     ;;
11672   *)
11673     # FIXME: insert proper C++ library support
11674     ld_shlibs_CXX=no
11675     ;;
11676 esac
11677 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11678 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11679 test "$ld_shlibs_CXX" = no && can_build_shared=no
11680
11681 GCC_CXX="$GXX"
11682 LD_CXX="$LD"
11683
11684
11685 cat > conftest.$ac_ext <<EOF
11686 class Foo
11687 {
11688 public:
11689   Foo (void) { a = 0; }
11690 private:
11691   int a;
11692 };
11693 EOF
11694
11695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696   (eval $ac_compile) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; then
11700   # Parse the compiler output and extract the necessary
11701   # objects, libraries and library flags.
11702
11703   # Sentinel used to keep track of whether or not we are before
11704   # the conftest object file.
11705   pre_test_object_deps_done=no
11706
11707   # The `*' in the case matches for architectures that use `case' in
11708   # $output_verbose_cmd can trigger glob expansion during the loop
11709   # eval without this substitution.
11710   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11711
11712   for p in `eval $output_verbose_link_cmd`; do
11713     case $p in
11714
11715     -L* | -R* | -l*)
11716        # Some compilers place space between "-{L,R}" and the path.
11717        # Remove the space.
11718        if test $p = "-L" \
11719           || test $p = "-R"; then
11720          prev=$p
11721          continue
11722        else
11723          prev=
11724        fi
11725
11726        if test "$pre_test_object_deps_done" = no; then
11727          case $p in
11728          -L* | -R*)
11729            # Internal compiler library paths should come after those
11730            # provided the user.  The postdeps already come after the
11731            # user supplied libs so there is no need to process them.
11732            if test -z "$compiler_lib_search_path_CXX"; then
11733              compiler_lib_search_path_CXX="${prev}${p}"
11734            else
11735              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11736            fi
11737            ;;
11738          # The "-l" case would never come before the object being
11739          # linked, so don't bother handling this case.
11740          esac
11741        else
11742          if test -z "$postdeps_CXX"; then
11743            postdeps_CXX="${prev}${p}"
11744          else
11745            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11746          fi
11747        fi
11748        ;;
11749
11750     *.$objext)
11751        # This assumes that the test object file only shows up
11752        # once in the compiler output.
11753        if test "$p" = "conftest.$objext"; then
11754          pre_test_object_deps_done=yes
11755          continue
11756        fi
11757
11758        if test "$pre_test_object_deps_done" = no; then
11759          if test -z "$predep_objects_CXX"; then
11760            predep_objects_CXX="$p"
11761          else
11762            predep_objects_CXX="$predep_objects_CXX $p"
11763          fi
11764        else
11765          if test -z "$postdep_objects_CXX"; then
11766            postdep_objects_CXX="$p"
11767          else
11768            postdep_objects_CXX="$postdep_objects_CXX $p"
11769          fi
11770        fi
11771        ;;
11772
11773     *) ;; # Ignore the rest.
11774
11775     esac
11776   done
11777
11778   # Clean up.
11779   rm -f a.out a.exe
11780 else
11781   echo "libtool.m4: error: problem compiling CXX test program"
11782 fi
11783
11784 $rm -f confest.$objext
11785
11786 # PORTME: override above test on systems where it is broken
11787 case $host_os in
11788 interix3*)
11789   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11790   # hack all around it, let's just trust "g++" to DTRT.
11791   predep_objects_CXX=
11792   postdep_objects_CXX=
11793   postdeps_CXX=
11794   ;;
11795
11796 solaris*)
11797   case $cc_basename in
11798   CC*)
11799     # Adding this requires a known-good setup of shared libraries for
11800     # Sun compiler versions before 5.6, else PIC objects from an old
11801     # archive will be linked into the output, leading to subtle bugs.
11802     postdeps_CXX='-lCstd -lCrun'
11803     ;;
11804   esac
11805   ;;
11806 esac
11807
11808
11809 case " $postdeps_CXX " in
11810 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11811 esac
11812
11813 lt_prog_compiler_wl_CXX=
11814 lt_prog_compiler_pic_CXX=
11815 lt_prog_compiler_static_CXX=
11816
11817 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11818 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11819
11820   # C++ specific cases for pic, static, wl, etc.
11821   if test "$GXX" = yes; then
11822     lt_prog_compiler_wl_CXX='-Wl,'
11823     lt_prog_compiler_static_CXX='-static'
11824
11825     case $host_os in
11826     aix*)
11827       # All AIX code is PIC.
11828       if test "$host_cpu" = ia64; then
11829         # AIX 5 now supports IA64 processor
11830         lt_prog_compiler_static_CXX='-Bstatic'
11831       fi
11832       ;;
11833     amigaos*)
11834       # FIXME: we need at least 68020 code to build shared libraries, but
11835       # adding the `-m68020' flag to GCC prevents building anything better,
11836       # like `-m68040'.
11837       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11838       ;;
11839     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11840       # PIC is the default for these OSes.
11841       ;;
11842     mingw* | os2* | pw32*)
11843       # This hack is so that the source file can tell whether it is being
11844       # built for inclusion in a dll (and should export symbols for example).
11845       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11846       ;;
11847     darwin* | rhapsody*)
11848       # PIC is the default on this platform
11849       # Common symbols not allowed in MH_DYLIB files
11850       lt_prog_compiler_pic_CXX='-fno-common'
11851       ;;
11852     *djgpp*)
11853       # DJGPP does not support shared libraries at all
11854       lt_prog_compiler_pic_CXX=
11855       ;;
11856     interix3*)
11857       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11858       # Instead, we relocate shared libraries at runtime.
11859       ;;
11860     sysv4*MP*)
11861       if test -d /usr/nec; then
11862         lt_prog_compiler_pic_CXX=-Kconform_pic
11863       fi
11864       ;;
11865     hpux*)
11866       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11867       # not for PA HP-UX.
11868       case $host_cpu in
11869       hppa*64*|ia64*)
11870         ;;
11871       *)
11872         lt_prog_compiler_pic_CXX='-fPIC'
11873         ;;
11874       esac
11875       ;;
11876     *)
11877       lt_prog_compiler_pic_CXX='-fPIC'
11878       ;;
11879     esac
11880   else
11881     case $host_os in
11882       aix4* | aix5*)
11883         # All AIX code is PIC.
11884         if test "$host_cpu" = ia64; then
11885           # AIX 5 now supports IA64 processor
11886           lt_prog_compiler_static_CXX='-Bstatic'
11887         else
11888           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11889         fi
11890         ;;
11891       chorus*)
11892         case $cc_basename in
11893         cxch68*)
11894           # Green Hills C++ Compiler
11895           # _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"
11896           ;;
11897         esac
11898         ;;
11899        darwin*)
11900          # PIC is the default on this platform
11901          # Common symbols not allowed in MH_DYLIB files
11902          case $cc_basename in
11903            xlc*)
11904            lt_prog_compiler_pic_CXX='-qnocommon'
11905            lt_prog_compiler_wl_CXX='-Wl,'
11906            ;;
11907          esac
11908        ;;
11909       dgux*)
11910         case $cc_basename in
11911           ec++*)
11912             lt_prog_compiler_pic_CXX='-KPIC'
11913             ;;
11914           ghcx*)
11915             # Green Hills C++ Compiler
11916             lt_prog_compiler_pic_CXX='-pic'
11917             ;;
11918           *)
11919             ;;
11920         esac
11921         ;;
11922       freebsd* | dragonfly*)
11923         # FreeBSD uses GNU C++
11924         ;;
11925       hpux9* | hpux10* | hpux11*)
11926         case $cc_basename in
11927           CC*)
11928             lt_prog_compiler_wl_CXX='-Wl,'
11929             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11930             if test "$host_cpu" != ia64; then
11931               lt_prog_compiler_pic_CXX='+Z'
11932             fi
11933             ;;
11934           aCC*)
11935             lt_prog_compiler_wl_CXX='-Wl,'
11936             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11937             case $host_cpu in
11938             hppa*64*|ia64*)
11939               # +Z the default
11940               ;;
11941             *)
11942               lt_prog_compiler_pic_CXX='+Z'
11943               ;;
11944             esac
11945             ;;
11946           *)
11947             ;;
11948         esac
11949         ;;
11950       interix*)
11951         # This is c89, which is MS Visual C++ (no shared libs)
11952         # Anyone wants to do a port?
11953         ;;
11954       irix5* | irix6* | nonstopux*)
11955         case $cc_basename in
11956           CC*)
11957             lt_prog_compiler_wl_CXX='-Wl,'
11958             lt_prog_compiler_static_CXX='-non_shared'
11959             # CC pic flag -KPIC is the default.
11960             ;;
11961           *)
11962             ;;
11963         esac
11964         ;;
11965       linux* | k*bsd*-gnu)
11966         case $cc_basename in
11967           KCC*)
11968             # KAI C++ Compiler
11969             lt_prog_compiler_wl_CXX='--backend -Wl,'
11970             lt_prog_compiler_pic_CXX='-fPIC'
11971             ;;
11972           icpc* | ecpc*)
11973             # Intel C++
11974             lt_prog_compiler_wl_CXX='-Wl,'
11975             lt_prog_compiler_pic_CXX='-KPIC'
11976             lt_prog_compiler_static_CXX='-static'
11977             ;;
11978           pgCC*)
11979             # Portland Group C++ compiler.
11980             lt_prog_compiler_wl_CXX='-Wl,'
11981             lt_prog_compiler_pic_CXX='-fpic'
11982             lt_prog_compiler_static_CXX='-Bstatic'
11983             ;;
11984           cxx*)
11985             # Compaq C++
11986             # Make sure the PIC flag is empty.  It appears that all Alpha
11987             # Linux and Compaq Tru64 Unix objects are PIC.
11988             lt_prog_compiler_pic_CXX=
11989             lt_prog_compiler_static_CXX='-non_shared'
11990             ;;
11991           *)
11992             ;;
11993         esac
11994         ;;
11995       lynxos*)
11996         ;;
11997       m88k*)
11998         ;;
11999       mvs*)
12000         case $cc_basename in
12001           cxx*)
12002             lt_prog_compiler_pic_CXX='-W c,exportall'
12003             ;;
12004           *)
12005             ;;
12006         esac
12007         ;;
12008       netbsd* | netbsdelf*-gnu)
12009         ;;
12010       osf3* | osf4* | osf5*)
12011         case $cc_basename in
12012           KCC*)
12013             lt_prog_compiler_wl_CXX='--backend -Wl,'
12014             ;;
12015           RCC*)
12016             # Rational C++ 2.4.1
12017             lt_prog_compiler_pic_CXX='-pic'
12018             ;;
12019           cxx*)
12020             # Digital/Compaq C++
12021             lt_prog_compiler_wl_CXX='-Wl,'
12022             # Make sure the PIC flag is empty.  It appears that all Alpha
12023             # Linux and Compaq Tru64 Unix objects are PIC.
12024             lt_prog_compiler_pic_CXX=
12025             lt_prog_compiler_static_CXX='-non_shared'
12026             ;;
12027           *)
12028             ;;
12029         esac
12030         ;;
12031       psos*)
12032         ;;
12033       solaris*)
12034         case $cc_basename in
12035           CC*)
12036             # Sun C++ 4.2, 5.x and Centerline C++
12037             lt_prog_compiler_pic_CXX='-KPIC'
12038             lt_prog_compiler_static_CXX='-Bstatic'
12039             lt_prog_compiler_wl_CXX='-Qoption ld '
12040             ;;
12041           gcx*)
12042             # Green Hills C++ Compiler
12043             lt_prog_compiler_pic_CXX='-PIC'
12044             ;;
12045           *)
12046             ;;
12047         esac
12048         ;;
12049       sunos4*)
12050         case $cc_basename in
12051           CC*)
12052             # Sun C++ 4.x
12053             lt_prog_compiler_pic_CXX='-pic'
12054             lt_prog_compiler_static_CXX='-Bstatic'
12055             ;;
12056           lcc*)
12057             # Lucid
12058             lt_prog_compiler_pic_CXX='-pic'
12059             ;;
12060           *)
12061             ;;
12062         esac
12063         ;;
12064       tandem*)
12065         case $cc_basename in
12066           NCC*)
12067             # NonStop-UX NCC 3.20
12068             lt_prog_compiler_pic_CXX='-KPIC'
12069             ;;
12070           *)
12071             ;;
12072         esac
12073         ;;
12074       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12075         case $cc_basename in
12076           CC*)
12077             lt_prog_compiler_wl_CXX='-Wl,'
12078             lt_prog_compiler_pic_CXX='-KPIC'
12079             lt_prog_compiler_static_CXX='-Bstatic'
12080             ;;
12081         esac
12082         ;;
12083       vxworks*)
12084         ;;
12085       *)
12086         lt_prog_compiler_can_build_shared_CXX=no
12087         ;;
12088     esac
12089   fi
12090
12091 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12092 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12093
12094 #
12095 # Check to make sure the PIC flag actually works.
12096 #
12097 if test -n "$lt_prog_compiler_pic_CXX"; then
12098
12099 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12101 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   lt_prog_compiler_pic_works_CXX=no
12105   ac_outfile=conftest.$ac_objext
12106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12107    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12108    # Insert the option either (1) after the last *FLAGS variable, or
12109    # (2) before a word containing "conftest.", or (3) at the end.
12110    # Note that $ac_compile itself does not contain backslashes and begins
12111    # with a dollar sign (not a hyphen), so the echo should work correctly.
12112    # The option is referenced via a variable to avoid confusing sed.
12113    lt_compile=`echo "$ac_compile" | $SED \
12114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12116    -e 's:$: $lt_compiler_flag:'`
12117    (eval echo "\"\$as_me:12117: $lt_compile\"" >&5)
12118    (eval "$lt_compile" 2>conftest.err)
12119    ac_status=$?
12120    cat conftest.err >&5
12121    echo "$as_me:12121: \$? = $ac_status" >&5
12122    if (exit $ac_status) && test -s "$ac_outfile"; then
12123      # The compiler can only warn and ignore the option if not recognized
12124      # So say no if there are warnings other than the usual output.
12125      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12126      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12127      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12128        lt_prog_compiler_pic_works_CXX=yes
12129      fi
12130    fi
12131    $rm conftest*
12132
12133 fi
12134 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12135 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12136
12137 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12138     case $lt_prog_compiler_pic_CXX in
12139      "" | " "*) ;;
12140      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12141      esac
12142 else
12143     lt_prog_compiler_pic_CXX=
12144      lt_prog_compiler_can_build_shared_CXX=no
12145 fi
12146
12147 fi
12148 case $host_os in
12149   # For platforms which do not support PIC, -DPIC is meaningless:
12150   *djgpp*)
12151     lt_prog_compiler_pic_CXX=
12152     ;;
12153   *)
12154     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12155     ;;
12156 esac
12157
12158 #
12159 # Check to make sure the static flag actually works.
12160 #
12161 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12162 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12163 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12164 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   lt_prog_compiler_static_works_CXX=no
12168    save_LDFLAGS="$LDFLAGS"
12169    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12170    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12171    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12172      # The linker can only warn and ignore the option if not recognized
12173      # So say no if there are warnings
12174      if test -s conftest.err; then
12175        # Append any errors to the config.log.
12176        cat conftest.err 1>&5
12177        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12178        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12179        if diff conftest.exp conftest.er2 >/dev/null; then
12180          lt_prog_compiler_static_works_CXX=yes
12181        fi
12182      else
12183        lt_prog_compiler_static_works_CXX=yes
12184      fi
12185    fi
12186    $rm conftest*
12187    LDFLAGS="$save_LDFLAGS"
12188
12189 fi
12190 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12191 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12192
12193 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12194     :
12195 else
12196     lt_prog_compiler_static_CXX=
12197 fi
12198
12199
12200 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12202 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12203   echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205   lt_cv_prog_compiler_c_o_CXX=no
12206    $rm -r conftest 2>/dev/null
12207    mkdir conftest
12208    cd conftest
12209    mkdir out
12210    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12211
12212    lt_compiler_flag="-o out/conftest2.$ac_objext"
12213    # Insert the option either (1) after the last *FLAGS variable, or
12214    # (2) before a word containing "conftest.", or (3) at the end.
12215    # Note that $ac_compile itself does not contain backslashes and begins
12216    # with a dollar sign (not a hyphen), so the echo should work correctly.
12217    lt_compile=`echo "$ac_compile" | $SED \
12218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12220    -e 's:$: $lt_compiler_flag:'`
12221    (eval echo "\"\$as_me:12221: $lt_compile\"" >&5)
12222    (eval "$lt_compile" 2>out/conftest.err)
12223    ac_status=$?
12224    cat out/conftest.err >&5
12225    echo "$as_me:12225: \$? = $ac_status" >&5
12226    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12227    then
12228      # The compiler can only warn and ignore the option if not recognized
12229      # So say no if there are warnings
12230      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12231      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12232      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12233        lt_cv_prog_compiler_c_o_CXX=yes
12234      fi
12235    fi
12236    chmod u+w . 2>&5
12237    $rm conftest*
12238    # SGI C++ compiler will create directory out/ii_files/ for
12239    # template instantiation
12240    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12241    $rm out/* && rmdir out
12242    cd ..
12243    rmdir conftest
12244    $rm conftest*
12245
12246 fi
12247 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12249
12250
12251 hard_links="nottested"
12252 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12253   # do not overwrite the value of need_locks provided by the user
12254   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12255 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12256   hard_links=yes
12257   $rm conftest*
12258   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12259   touch conftest.a
12260   ln conftest.a conftest.b 2>&5 || hard_links=no
12261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12262   { echo "$as_me:$LINENO: result: $hard_links" >&5
12263 echo "${ECHO_T}$hard_links" >&6; }
12264   if test "$hard_links" = no; then
12265     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12266 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12267     need_locks=warn
12268   fi
12269 else
12270   need_locks=no
12271 fi
12272
12273 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12274 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12275
12276   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12277   case $host_os in
12278   aix4* | aix5*)
12279     # If we're using GNU nm, then we don't want the "-C" option.
12280     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12281     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12282       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'
12283     else
12284       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'
12285     fi
12286     ;;
12287   pw32*)
12288     export_symbols_cmds_CXX="$ltdll_cmds"
12289   ;;
12290   cygwin* | mingw*)
12291     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'
12292   ;;
12293   linux* | k*bsd*-gnu)
12294     link_all_deplibs_CXX=no
12295   ;;
12296   *)
12297     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12298   ;;
12299   esac
12300
12301 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12302 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12303 test "$ld_shlibs_CXX" = no && can_build_shared=no
12304
12305 #
12306 # Do we need to explicitly link libc?
12307 #
12308 case "x$archive_cmds_need_lc_CXX" in
12309 x|xyes)
12310   # Assume -lc should be added
12311   archive_cmds_need_lc_CXX=yes
12312
12313   if test "$enable_shared" = yes && test "$GCC" = yes; then
12314     case $archive_cmds_CXX in
12315     *'~'*)
12316       # FIXME: we may have to deal with multi-command sequences.
12317       ;;
12318     '$CC '*)
12319       # Test whether the compiler implicitly links with -lc since on some
12320       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12321       # to ld, don't add -lc before -lgcc.
12322       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12323 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12324       $rm conftest*
12325       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12326
12327       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12328   (eval $ac_compile) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } 2>conftest.err; then
12332         soname=conftest
12333         lib=conftest
12334         libobjs=conftest.$ac_objext
12335         deplibs=
12336         wl=$lt_prog_compiler_wl_CXX
12337         pic_flag=$lt_prog_compiler_pic_CXX
12338         compiler_flags=-v
12339         linker_flags=-v
12340         verstring=
12341         output_objdir=.
12342         libname=conftest
12343         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12344         allow_undefined_flag_CXX=
12345         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12346   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }
12350         then
12351           archive_cmds_need_lc_CXX=no
12352         else
12353           archive_cmds_need_lc_CXX=yes
12354         fi
12355         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12356       else
12357         cat conftest.err 1>&5
12358       fi
12359       $rm conftest*
12360       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12361 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12362       ;;
12363     esac
12364   fi
12365   ;;
12366 esac
12367
12368 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12369 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12370 library_names_spec=
12371 libname_spec='lib$name'
12372 soname_spec=
12373 shrext_cmds=".so"
12374 postinstall_cmds=
12375 postuninstall_cmds=
12376 finish_cmds=
12377 finish_eval=
12378 shlibpath_var=
12379 shlibpath_overrides_runpath=unknown
12380 version_type=none
12381 dynamic_linker="$host_os ld.so"
12382 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12383 if test "$GCC" = yes; then
12384   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12385   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12386     # if the path contains ";" then we assume it to be the separator
12387     # otherwise default to the standard path separator (i.e. ":") - it is
12388     # assumed that no part of a normal pathname contains ";" but that should
12389     # okay in the real world where ";" in dirpaths is itself problematic.
12390     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12391   else
12392     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12393   fi
12394 else
12395   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12396 fi
12397 need_lib_prefix=unknown
12398 hardcode_into_libs=no
12399
12400 # when you set need_version to no, make sure it does not cause -set_version
12401 # flags to be left without arguments
12402 need_version=unknown
12403
12404 case $host_os in
12405 aix3*)
12406   version_type=linux
12407   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12408   shlibpath_var=LIBPATH
12409
12410   # AIX 3 has no versioning support, so we append a major version to the name.
12411   soname_spec='${libname}${release}${shared_ext}$major'
12412   ;;
12413
12414 aix4* | aix5*)
12415   version_type=linux
12416   need_lib_prefix=no
12417   need_version=no
12418   hardcode_into_libs=yes
12419   if test "$host_cpu" = ia64; then
12420     # AIX 5 supports IA64
12421     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12422     shlibpath_var=LD_LIBRARY_PATH
12423   else
12424     # With GCC up to 2.95.x, collect2 would create an import file
12425     # for dependence libraries.  The import file would start with
12426     # the line `#! .'.  This would cause the generated library to
12427     # depend on `.', always an invalid library.  This was fixed in
12428     # development snapshots of GCC prior to 3.0.
12429     case $host_os in
12430       aix4 | aix4.[01] | aix4.[01].*)
12431       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12432            echo ' yes '
12433            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12434         :
12435       else
12436         can_build_shared=no
12437       fi
12438       ;;
12439     esac
12440     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12441     # soname into executable. Probably we can add versioning support to
12442     # collect2, so additional links can be useful in future.
12443     if test "$aix_use_runtimelinking" = yes; then
12444       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12445       # instead of lib<name>.a to let people know that these are not
12446       # typical AIX shared libraries.
12447       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12448     else
12449       # We preserve .a as extension for shared libraries through AIX4.2
12450       # and later when we are not doing run time linking.
12451       library_names_spec='${libname}${release}.a $libname.a'
12452       soname_spec='${libname}${release}${shared_ext}$major'
12453     fi
12454     shlibpath_var=LIBPATH
12455   fi
12456   ;;
12457
12458 amigaos*)
12459   library_names_spec='$libname.ixlibrary $libname.a'
12460   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12461   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'
12462   ;;
12463
12464 beos*)
12465   library_names_spec='${libname}${shared_ext}'
12466   dynamic_linker="$host_os ld.so"
12467   shlibpath_var=LIBRARY_PATH
12468   ;;
12469
12470 bsdi[45]*)
12471   version_type=linux
12472   need_version=no
12473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12474   soname_spec='${libname}${release}${shared_ext}$major'
12475   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12476   shlibpath_var=LD_LIBRARY_PATH
12477   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12478   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12479   # the default ld.so.conf also contains /usr/contrib/lib and
12480   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12481   # libtool to hard-code these into programs
12482   ;;
12483
12484 cygwin* | mingw* | pw32*)
12485   version_type=windows
12486   shrext_cmds=".dll"
12487   need_version=no
12488   need_lib_prefix=no
12489
12490   case $GCC,$host_os in
12491   yes,cygwin* | yes,mingw* | yes,pw32*)
12492     library_names_spec='$libname.dll.a'
12493     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12494     postinstall_cmds='base_file=`basename \${file}`~
12495       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12496       dldir=$destdir/`dirname \$dlpath`~
12497       test -d \$dldir || mkdir -p \$dldir~
12498       $install_prog $dir/$dlname \$dldir/$dlname~
12499       chmod a+x \$dldir/$dlname'
12500     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12501       dlpath=$dir/\$dldll~
12502        $rm \$dlpath'
12503     shlibpath_overrides_runpath=yes
12504
12505     case $host_os in
12506     cygwin*)
12507       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12508       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12509       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12510       ;;
12511     mingw*)
12512       # MinGW DLLs use traditional 'lib' prefix
12513       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12514       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12515       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12516         # It is most probably a Windows format PATH printed by
12517         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12518         # path with ; separators, and with drive letters. We can handle the
12519         # drive letters (cygwin fileutils understands them), so leave them,
12520         # especially as we might pass files found there to a mingw objdump,
12521         # which wouldn't understand a cygwinified path. Ahh.
12522         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12523       else
12524         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12525       fi
12526       ;;
12527     pw32*)
12528       # pw32 DLLs use 'pw' prefix rather than 'lib'
12529       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12530       ;;
12531     esac
12532     ;;
12533
12534   *)
12535     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12536     ;;
12537   esac
12538   dynamic_linker='Win32 ld.exe'
12539   # FIXME: first we should search . and the directory the executable is in
12540   shlibpath_var=PATH
12541   ;;
12542
12543 darwin* | rhapsody*)
12544   dynamic_linker="$host_os dyld"
12545   version_type=darwin
12546   need_lib_prefix=no
12547   need_version=no
12548   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12549   soname_spec='${libname}${release}${major}$shared_ext'
12550   shlibpath_overrides_runpath=yes
12551   shlibpath_var=DYLD_LIBRARY_PATH
12552   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12553   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12554   if test "$GCC" = yes; then
12555     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12556   else
12557     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12558   fi
12559   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12560   ;;
12561
12562 dgux*)
12563   version_type=linux
12564   need_lib_prefix=no
12565   need_version=no
12566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12567   soname_spec='${libname}${release}${shared_ext}$major'
12568   shlibpath_var=LD_LIBRARY_PATH
12569   ;;
12570
12571 freebsd1*)
12572   dynamic_linker=no
12573   ;;
12574
12575 freebsd* | dragonfly*)
12576   # DragonFly does not have aout.  When/if they implement a new
12577   # versioning mechanism, adjust this.
12578   if test -x /usr/bin/objformat; then
12579     objformat=`/usr/bin/objformat`
12580   else
12581     case $host_os in
12582     freebsd[123]*) objformat=aout ;;
12583     *) objformat=elf ;;
12584     esac
12585   fi
12586   version_type=freebsd-$objformat
12587   case $version_type in
12588     freebsd-elf*)
12589       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12590       need_version=no
12591       need_lib_prefix=no
12592       ;;
12593     freebsd-*)
12594       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12595       need_version=yes
12596       ;;
12597   esac
12598   shlibpath_var=LD_LIBRARY_PATH
12599   case $host_os in
12600   freebsd2*)
12601     shlibpath_overrides_runpath=yes
12602     ;;
12603   freebsd3.[01]* | freebsdelf3.[01]*)
12604     shlibpath_overrides_runpath=yes
12605     hardcode_into_libs=yes
12606     ;;
12607   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12608   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12609     shlibpath_overrides_runpath=no
12610     hardcode_into_libs=yes
12611     ;;
12612   freebsd*) # from 4.6 on
12613     shlibpath_overrides_runpath=yes
12614     hardcode_into_libs=yes
12615     ;;
12616   esac
12617   ;;
12618
12619 gnu*)
12620   version_type=linux
12621   need_lib_prefix=no
12622   need_version=no
12623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12624   soname_spec='${libname}${release}${shared_ext}$major'
12625   shlibpath_var=LD_LIBRARY_PATH
12626   hardcode_into_libs=yes
12627   ;;
12628
12629 hpux9* | hpux10* | hpux11*)
12630   # Give a soname corresponding to the major version so that dld.sl refuses to
12631   # link against other versions.
12632   version_type=sunos
12633   need_lib_prefix=no
12634   need_version=no
12635   case $host_cpu in
12636   ia64*)
12637     shrext_cmds='.so'
12638     hardcode_into_libs=yes
12639     dynamic_linker="$host_os dld.so"
12640     shlibpath_var=LD_LIBRARY_PATH
12641     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643     soname_spec='${libname}${release}${shared_ext}$major'
12644     if test "X$HPUX_IA64_MODE" = X32; then
12645       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12646     else
12647       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12648     fi
12649     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12650     ;;
12651    hppa*64*)
12652      shrext_cmds='.sl'
12653      hardcode_into_libs=yes
12654      dynamic_linker="$host_os dld.sl"
12655      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12656      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12657      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658      soname_spec='${libname}${release}${shared_ext}$major'
12659      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12660      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12661      ;;
12662    *)
12663     shrext_cmds='.sl'
12664     dynamic_linker="$host_os dld.sl"
12665     shlibpath_var=SHLIB_PATH
12666     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12668     soname_spec='${libname}${release}${shared_ext}$major'
12669     ;;
12670   esac
12671   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12672   postinstall_cmds='chmod 555 $lib'
12673   ;;
12674
12675 interix3*)
12676   version_type=linux
12677   need_lib_prefix=no
12678   need_version=no
12679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12680   soname_spec='${libname}${release}${shared_ext}$major'
12681   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12682   shlibpath_var=LD_LIBRARY_PATH
12683   shlibpath_overrides_runpath=no
12684   hardcode_into_libs=yes
12685   ;;
12686
12687 irix5* | irix6* | nonstopux*)
12688   case $host_os in
12689     nonstopux*) version_type=nonstopux ;;
12690     *)
12691         if test "$lt_cv_prog_gnu_ld" = yes; then
12692                 version_type=linux
12693         else
12694                 version_type=irix
12695         fi ;;
12696   esac
12697   need_lib_prefix=no
12698   need_version=no
12699   soname_spec='${libname}${release}${shared_ext}$major'
12700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12701   case $host_os in
12702   irix5* | nonstopux*)
12703     libsuff= shlibsuff=
12704     ;;
12705   *)
12706     case $LD in # libtool.m4 will add one of these switches to LD
12707     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12708       libsuff= shlibsuff= libmagic=32-bit;;
12709     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12710       libsuff=32 shlibsuff=N32 libmagic=N32;;
12711     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12712       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12713     *) libsuff= shlibsuff= libmagic=never-match;;
12714     esac
12715     ;;
12716   esac
12717   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12718   shlibpath_overrides_runpath=no
12719   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12720   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12721   hardcode_into_libs=yes
12722   ;;
12723
12724 # No shared lib support for Linux oldld, aout, or coff.
12725 linux*oldld* | linux*aout* | linux*coff*)
12726   dynamic_linker=no
12727   ;;
12728
12729 # This must be Linux ELF.
12730 linux* | k*bsd*-gnu)
12731   version_type=linux
12732   need_lib_prefix=no
12733   need_version=no
12734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12735   soname_spec='${libname}${release}${shared_ext}$major'
12736   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12737   shlibpath_var=LD_LIBRARY_PATH
12738   shlibpath_overrides_runpath=no
12739   # This implies no fast_install, which is unacceptable.
12740   # Some rework will be needed to allow for fast_install
12741   # before this can be enabled.
12742   hardcode_into_libs=yes
12743
12744   # Append ld.so.conf contents to the search path
12745   if test -f /etc/ld.so.conf; then
12746     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12747     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12748   fi
12749
12750   # We used to test for /lib/ld.so.1 and disable shared libraries on
12751   # powerpc, because MkLinux only supported shared libraries with the
12752   # GNU dynamic linker.  Since this was broken with cross compilers,
12753   # most powerpc-linux boxes support dynamic linking these days and
12754   # people can always --disable-shared, the test was removed, and we
12755   # assume the GNU/Linux dynamic linker is in use.
12756   dynamic_linker='GNU/Linux ld.so'
12757   ;;
12758
12759 netbsdelf*-gnu)
12760   version_type=linux
12761   need_lib_prefix=no
12762   need_version=no
12763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12764   soname_spec='${libname}${release}${shared_ext}$major'
12765   shlibpath_var=LD_LIBRARY_PATH
12766   shlibpath_overrides_runpath=no
12767   hardcode_into_libs=yes
12768   dynamic_linker='NetBSD ld.elf_so'
12769   ;;
12770
12771 netbsd*)
12772   version_type=sunos
12773   need_lib_prefix=no
12774   need_version=no
12775   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12777     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12778     dynamic_linker='NetBSD (a.out) ld.so'
12779   else
12780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12781     soname_spec='${libname}${release}${shared_ext}$major'
12782     dynamic_linker='NetBSD ld.elf_so'
12783   fi
12784   shlibpath_var=LD_LIBRARY_PATH
12785   shlibpath_overrides_runpath=yes
12786   hardcode_into_libs=yes
12787   ;;
12788
12789 newsos6)
12790   version_type=linux
12791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12792   shlibpath_var=LD_LIBRARY_PATH
12793   shlibpath_overrides_runpath=yes
12794   ;;
12795
12796 nto-qnx*)
12797   version_type=linux
12798   need_lib_prefix=no
12799   need_version=no
12800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801   soname_spec='${libname}${release}${shared_ext}$major'
12802   shlibpath_var=LD_LIBRARY_PATH
12803   shlibpath_overrides_runpath=yes
12804   ;;
12805
12806 openbsd*)
12807   version_type=sunos
12808   sys_lib_dlsearch_path_spec="/usr/lib"
12809   need_lib_prefix=no
12810   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12811   case $host_os in
12812     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12813     *)                         need_version=no  ;;
12814   esac
12815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12816   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12817   shlibpath_var=LD_LIBRARY_PATH
12818   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12819     case $host_os in
12820       openbsd2.[89] | openbsd2.[89].*)
12821         shlibpath_overrides_runpath=no
12822         ;;
12823       *)
12824         shlibpath_overrides_runpath=yes
12825         ;;
12826       esac
12827   else
12828     shlibpath_overrides_runpath=yes
12829   fi
12830   ;;
12831
12832 os2*)
12833   libname_spec='$name'
12834   shrext_cmds=".dll"
12835   need_lib_prefix=no
12836   library_names_spec='$libname${shared_ext} $libname.a'
12837   dynamic_linker='OS/2 ld.exe'
12838   shlibpath_var=LIBPATH
12839   ;;
12840
12841 osf3* | osf4* | osf5*)
12842   version_type=osf
12843   need_lib_prefix=no
12844   need_version=no
12845   soname_spec='${libname}${release}${shared_ext}$major'
12846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847   shlibpath_var=LD_LIBRARY_PATH
12848   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12849   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12850   ;;
12851
12852 solaris*)
12853   version_type=linux
12854   need_lib_prefix=no
12855   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
12859   shlibpath_overrides_runpath=yes
12860   hardcode_into_libs=yes
12861   # ldd complains unless libraries are executable
12862   postinstall_cmds='chmod +x $lib'
12863   ;;
12864
12865 sunos4*)
12866   version_type=sunos
12867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12868   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12869   shlibpath_var=LD_LIBRARY_PATH
12870   shlibpath_overrides_runpath=yes
12871   if test "$with_gnu_ld" = yes; then
12872     need_lib_prefix=no
12873   fi
12874   need_version=yes
12875   ;;
12876
12877 sysv4 | sysv4.3*)
12878   version_type=linux
12879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880   soname_spec='${libname}${release}${shared_ext}$major'
12881   shlibpath_var=LD_LIBRARY_PATH
12882   case $host_vendor in
12883     sni)
12884       shlibpath_overrides_runpath=no
12885       need_lib_prefix=no
12886       export_dynamic_flag_spec='${wl}-Blargedynsym'
12887       runpath_var=LD_RUN_PATH
12888       ;;
12889     siemens)
12890       need_lib_prefix=no
12891       ;;
12892     motorola)
12893       need_lib_prefix=no
12894       need_version=no
12895       shlibpath_overrides_runpath=no
12896       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12897       ;;
12898   esac
12899   ;;
12900
12901 sysv4*MP*)
12902   if test -d /usr/nec ;then
12903     version_type=linux
12904     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12905     soname_spec='$libname${shared_ext}.$major'
12906     shlibpath_var=LD_LIBRARY_PATH
12907   fi
12908   ;;
12909
12910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12911   version_type=freebsd-elf
12912   need_lib_prefix=no
12913   need_version=no
12914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12915   soname_spec='${libname}${release}${shared_ext}$major'
12916   shlibpath_var=LD_LIBRARY_PATH
12917   hardcode_into_libs=yes
12918   if test "$with_gnu_ld" = yes; then
12919     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12920     shlibpath_overrides_runpath=no
12921   else
12922     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12923     shlibpath_overrides_runpath=yes
12924     case $host_os in
12925       sco3.2v5*)
12926         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12927         ;;
12928     esac
12929   fi
12930   sys_lib_dlsearch_path_spec='/usr/lib'
12931   ;;
12932
12933 uts4*)
12934   version_type=linux
12935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936   soname_spec='${libname}${release}${shared_ext}$major'
12937   shlibpath_var=LD_LIBRARY_PATH
12938   ;;
12939
12940 *)
12941   dynamic_linker=no
12942   ;;
12943 esac
12944 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12945 echo "${ECHO_T}$dynamic_linker" >&6; }
12946 test "$dynamic_linker" = no && can_build_shared=no
12947
12948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12949 if test "$GCC" = yes; then
12950   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12951 fi
12952
12953 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12954 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12955 hardcode_action_CXX=
12956 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12957    test -n "$runpath_var_CXX" || \
12958    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12959
12960   # We can hardcode non-existant directories.
12961   if test "$hardcode_direct_CXX" != no &&
12962      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12963      # have to relink, otherwise we might link with an installed library
12964      # when we should be linking with a yet-to-be-installed one
12965      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12966      test "$hardcode_minus_L_CXX" != no; then
12967     # Linking always hardcodes the temporary library directory.
12968     hardcode_action_CXX=relink
12969   else
12970     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12971     hardcode_action_CXX=immediate
12972   fi
12973 else
12974   # We cannot hardcode anything, or else we can only hardcode existing
12975   # directories.
12976   hardcode_action_CXX=unsupported
12977 fi
12978 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12979 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12980
12981 if test "$hardcode_action_CXX" = relink; then
12982   # Fast installation is not supported
12983   enable_fast_install=no
12984 elif test "$shlibpath_overrides_runpath" = yes ||
12985      test "$enable_shared" = no; then
12986   # Fast installation is not necessary
12987   enable_fast_install=needless
12988 fi
12989
12990
12991 # The else clause should only fire when bootstrapping the
12992 # libtool distribution, otherwise you forgot to ship ltmain.sh
12993 # with your package, and you will get complaints that there are
12994 # no rules to generate ltmain.sh.
12995 if test -f "$ltmain"; then
12996   # See if we are running on zsh, and set the options which allow our commands through
12997   # without removal of \ escapes.
12998   if test -n "${ZSH_VERSION+set}" ; then
12999     setopt NO_GLOB_SUBST
13000   fi
13001   # Now quote all the things that may contain metacharacters while being
13002   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13003   # variables and quote the copies for generation of the libtool script.
13004   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13005     SED SHELL STRIP \
13006     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13007     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13008     deplibs_check_method reload_flag reload_cmds need_locks \
13009     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13010     lt_cv_sys_global_symbol_to_c_name_address \
13011     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13012     old_postinstall_cmds old_postuninstall_cmds \
13013     compiler_CXX \
13014     CC_CXX \
13015     LD_CXX \
13016     lt_prog_compiler_wl_CXX \
13017     lt_prog_compiler_pic_CXX \
13018     lt_prog_compiler_static_CXX \
13019     lt_prog_compiler_no_builtin_flag_CXX \
13020     export_dynamic_flag_spec_CXX \
13021     thread_safe_flag_spec_CXX \
13022     whole_archive_flag_spec_CXX \
13023     enable_shared_with_static_runtimes_CXX \
13024     old_archive_cmds_CXX \
13025     old_archive_from_new_cmds_CXX \
13026     predep_objects_CXX \
13027     postdep_objects_CXX \
13028     predeps_CXX \
13029     postdeps_CXX \
13030     compiler_lib_search_path_CXX \
13031     archive_cmds_CXX \
13032     archive_expsym_cmds_CXX \
13033     postinstall_cmds_CXX \
13034     postuninstall_cmds_CXX \
13035     old_archive_from_expsyms_cmds_CXX \
13036     allow_undefined_flag_CXX \
13037     no_undefined_flag_CXX \
13038     export_symbols_cmds_CXX \
13039     hardcode_libdir_flag_spec_CXX \
13040     hardcode_libdir_flag_spec_ld_CXX \
13041     hardcode_libdir_separator_CXX \
13042     hardcode_automatic_CXX \
13043     module_cmds_CXX \
13044     module_expsym_cmds_CXX \
13045     lt_cv_prog_compiler_c_o_CXX \
13046     exclude_expsyms_CXX \
13047     include_expsyms_CXX; do
13048
13049     case $var in
13050     old_archive_cmds_CXX | \
13051     old_archive_from_new_cmds_CXX | \
13052     archive_cmds_CXX | \
13053     archive_expsym_cmds_CXX | \
13054     module_cmds_CXX | \
13055     module_expsym_cmds_CXX | \
13056     old_archive_from_expsyms_cmds_CXX | \
13057     export_symbols_cmds_CXX | \
13058     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13059     postinstall_cmds | postuninstall_cmds | \
13060     old_postinstall_cmds | old_postuninstall_cmds | \
13061     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13062       # Double-quote double-evaled strings.
13063       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13064       ;;
13065     *)
13066       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13067       ;;
13068     esac
13069   done
13070
13071   case $lt_echo in
13072   *'\$0 --fallback-echo"')
13073     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13074     ;;
13075   esac
13076
13077 cfgfile="$ofile"
13078
13079   cat <<__EOF__ >> "$cfgfile"
13080 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13081
13082 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13083
13084 # Shell to use when invoking shell scripts.
13085 SHELL=$lt_SHELL
13086
13087 # Whether or not to build shared libraries.
13088 build_libtool_libs=$enable_shared
13089
13090 # Whether or not to build static libraries.
13091 build_old_libs=$enable_static
13092
13093 # Whether or not to add -lc for building shared libraries.
13094 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13095
13096 # Whether or not to disallow shared libs when runtime libs are static
13097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13098
13099 # Whether or not to optimize for fast installation.
13100 fast_install=$enable_fast_install
13101
13102 # The host system.
13103 host_alias=$host_alias
13104 host=$host
13105 host_os=$host_os
13106
13107 # The build system.
13108 build_alias=$build_alias
13109 build=$build
13110 build_os=$build_os
13111
13112 # An echo program that does not interpret backslashes.
13113 echo=$lt_echo
13114
13115 # The archiver.
13116 AR=$lt_AR
13117 AR_FLAGS=$lt_AR_FLAGS
13118
13119 # A C compiler.
13120 LTCC=$lt_LTCC
13121
13122 # LTCC compiler flags.
13123 LTCFLAGS=$lt_LTCFLAGS
13124
13125 # A language-specific compiler.
13126 CC=$lt_compiler_CXX
13127
13128 # Is the compiler the GNU C compiler?
13129 with_gcc=$GCC_CXX
13130
13131 # An ERE matcher.
13132 EGREP=$lt_EGREP
13133
13134 # The linker used to build libraries.
13135 LD=$lt_LD_CXX
13136
13137 # Whether we need hard or soft links.
13138 LN_S=$lt_LN_S
13139
13140 # A BSD-compatible nm program.
13141 NM=$lt_NM
13142
13143 # A symbol stripping program
13144 STRIP=$lt_STRIP
13145
13146 # Used to examine libraries when file_magic_cmd begins "file"
13147 MAGIC_CMD=$MAGIC_CMD
13148
13149 # Used on cygwin: DLL creation program.
13150 DLLTOOL="$DLLTOOL"
13151
13152 # Used on cygwin: object dumper.
13153 OBJDUMP="$OBJDUMP"
13154
13155 # Used on cygwin: assembler.
13156 AS="$AS"
13157
13158 # The name of the directory that contains temporary libtool files.
13159 objdir=$objdir
13160
13161 # How to create reloadable object files.
13162 reload_flag=$lt_reload_flag
13163 reload_cmds=$lt_reload_cmds
13164
13165 # How to pass a linker flag through the compiler.
13166 wl=$lt_lt_prog_compiler_wl_CXX
13167
13168 # Object file suffix (normally "o").
13169 objext="$ac_objext"
13170
13171 # Old archive suffix (normally "a").
13172 libext="$libext"
13173
13174 # Shared library suffix (normally ".so").
13175 shrext_cmds='$shrext_cmds'
13176
13177 # Executable file suffix (normally "").
13178 exeext="$exeext"
13179
13180 # Additional compiler flags for building library objects.
13181 pic_flag=$lt_lt_prog_compiler_pic_CXX
13182 pic_mode=$pic_mode
13183
13184 # What is the maximum length of a command?
13185 max_cmd_len=$lt_cv_sys_max_cmd_len
13186
13187 # Does compiler simultaneously support -c and -o options?
13188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13189
13190 # Must we lock files when doing compilation?
13191 need_locks=$lt_need_locks
13192
13193 # Do we need the lib prefix for modules?
13194 need_lib_prefix=$need_lib_prefix
13195
13196 # Do we need a version for libraries?
13197 need_version=$need_version
13198
13199 # Whether dlopen is supported.
13200 dlopen_support=$enable_dlopen
13201
13202 # Whether dlopen of programs is supported.
13203 dlopen_self=$enable_dlopen_self
13204
13205 # Whether dlopen of statically linked programs is supported.
13206 dlopen_self_static=$enable_dlopen_self_static
13207
13208 # Compiler flag to prevent dynamic linking.
13209 link_static_flag=$lt_lt_prog_compiler_static_CXX
13210
13211 # Compiler flag to turn off builtin functions.
13212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13213
13214 # Compiler flag to allow reflexive dlopens.
13215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13216
13217 # Compiler flag to generate shared objects directly from archives.
13218 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13219
13220 # Compiler flag to generate thread-safe objects.
13221 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13222
13223 # Library versioning type.
13224 version_type=$version_type
13225
13226 # Format of library name prefix.
13227 libname_spec=$lt_libname_spec
13228
13229 # List of archive names.  First name is the real one, the rest are links.
13230 # The last name is the one that the linker finds with -lNAME.
13231 library_names_spec=$lt_library_names_spec
13232
13233 # The coded name of the library, if different from the real name.
13234 soname_spec=$lt_soname_spec
13235
13236 # Commands used to build and install an old-style archive.
13237 RANLIB=$lt_RANLIB
13238 old_archive_cmds=$lt_old_archive_cmds_CXX
13239 old_postinstall_cmds=$lt_old_postinstall_cmds
13240 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13241
13242 # Create an old-style archive from a shared archive.
13243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13244
13245 # Create a temporary old-style archive to link instead of a shared archive.
13246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13247
13248 # Commands used to build and install a shared archive.
13249 archive_cmds=$lt_archive_cmds_CXX
13250 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13251 postinstall_cmds=$lt_postinstall_cmds
13252 postuninstall_cmds=$lt_postuninstall_cmds
13253
13254 # Commands used to build a loadable module (assumed same as above if empty)
13255 module_cmds=$lt_module_cmds_CXX
13256 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13257
13258 # Commands to strip libraries.
13259 old_striplib=$lt_old_striplib
13260 striplib=$lt_striplib
13261
13262 # Dependencies to place before the objects being linked to create a
13263 # shared library.
13264 predep_objects=$lt_predep_objects_CXX
13265
13266 # Dependencies to place after the objects being linked to create a
13267 # shared library.
13268 postdep_objects=$lt_postdep_objects_CXX
13269
13270 # Dependencies to place before the objects being linked to create a
13271 # shared library.
13272 predeps=$lt_predeps_CXX
13273
13274 # Dependencies to place after the objects being linked to create a
13275 # shared library.
13276 postdeps=$lt_postdeps_CXX
13277
13278 # The library search path used internally by the compiler when linking
13279 # a shared library.
13280 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13281
13282 # Method to check whether dependent libraries are shared objects.
13283 deplibs_check_method=$lt_deplibs_check_method
13284
13285 # Command to use when deplibs_check_method == file_magic.
13286 file_magic_cmd=$lt_file_magic_cmd
13287
13288 # Flag that allows shared libraries with undefined symbols to be built.
13289 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13290
13291 # Flag that forces no undefined symbols.
13292 no_undefined_flag=$lt_no_undefined_flag_CXX
13293
13294 # Commands used to finish a libtool library installation in a directory.
13295 finish_cmds=$lt_finish_cmds
13296
13297 # Same as above, but a single script fragment to be evaled but not shown.
13298 finish_eval=$lt_finish_eval
13299
13300 # Take the output of nm and produce a listing of raw symbols and C names.
13301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13302
13303 # Transform the output of nm in a proper C declaration
13304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13305
13306 # Transform the output of nm in a C name address pair
13307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13308
13309 # This is the shared library runtime path variable.
13310 runpath_var=$runpath_var
13311
13312 # This is the shared library path variable.
13313 shlibpath_var=$shlibpath_var
13314
13315 # Is shlibpath searched before the hard-coded library search path?
13316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13317
13318 # How to hardcode a shared library path into an executable.
13319 hardcode_action=$hardcode_action_CXX
13320
13321 # Whether we should hardcode library paths into libraries.
13322 hardcode_into_libs=$hardcode_into_libs
13323
13324 # Flag to hardcode \$libdir into a binary during linking.
13325 # This must work even if \$libdir does not exist.
13326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13327
13328 # If ld is used when linking, flag to hardcode \$libdir into
13329 # a binary during linking. This must work even if \$libdir does
13330 # not exist.
13331 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13332
13333 # Whether we need a single -rpath flag with a separated argument.
13334 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13335
13336 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13337 # resulting binary.
13338 hardcode_direct=$hardcode_direct_CXX
13339
13340 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13341 # resulting binary.
13342 hardcode_minus_L=$hardcode_minus_L_CXX
13343
13344 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13345 # the resulting binary.
13346 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13347
13348 # Set to yes if building a shared library automatically hardcodes DIR into the library
13349 # and all subsequent libraries and executables linked against it.
13350 hardcode_automatic=$hardcode_automatic_CXX
13351
13352 # Variables whose values should be saved in libtool wrapper scripts and
13353 # restored at relink time.
13354 variables_saved_for_relink="$variables_saved_for_relink"
13355
13356 # Whether libtool must link a program against all its dependency libraries.
13357 link_all_deplibs=$link_all_deplibs_CXX
13358
13359 # Compile-time system search path for libraries
13360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13361
13362 # Run-time system search path for libraries
13363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13364
13365 # Fix the shell variable \$srcfile for the compiler.
13366 fix_srcfile_path="$fix_srcfile_path_CXX"
13367
13368 # Set to yes if exported symbols are required.
13369 always_export_symbols=$always_export_symbols_CXX
13370
13371 # The commands to list exported symbols.
13372 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13373
13374 # The commands to extract the exported symbol list from a shared archive.
13375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13376
13377 # Symbols that should not be listed in the preloaded symbols.
13378 exclude_expsyms=$lt_exclude_expsyms_CXX
13379
13380 # Symbols that must always be exported.
13381 include_expsyms=$lt_include_expsyms_CXX
13382
13383 # ### END LIBTOOL TAG CONFIG: $tagname
13384
13385 __EOF__
13386
13387
13388 else
13389   # If there is no Makefile yet, we rely on a make rule to execute
13390   # `config.status --recheck' to rerun these tests and create the
13391   # libtool script then.
13392   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13393   if test -f "$ltmain_in"; then
13394     test -f Makefile && make "$ltmain"
13395   fi
13396 fi
13397
13398
13399 ac_ext=c
13400 ac_cpp='$CPP $CPPFLAGS'
13401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13404
13405 CC=$lt_save_CC
13406 LDCXX=$LD
13407 LD=$lt_save_LD
13408 GCC=$lt_save_GCC
13409 with_gnu_ldcxx=$with_gnu_ld
13410 with_gnu_ld=$lt_save_with_gnu_ld
13411 lt_cv_path_LDCXX=$lt_cv_path_LD
13412 lt_cv_path_LD=$lt_save_path_LD
13413 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13414 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13415
13416         else
13417           tagname=""
13418         fi
13419         ;;
13420
13421       F77)
13422         if test -n "$F77" && test "X$F77" != "Xno"; then
13423
13424 ac_ext=f
13425 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13426 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13427 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13428
13429
13430 archive_cmds_need_lc_F77=no
13431 allow_undefined_flag_F77=
13432 always_export_symbols_F77=no
13433 archive_expsym_cmds_F77=
13434 export_dynamic_flag_spec_F77=
13435 hardcode_direct_F77=no
13436 hardcode_libdir_flag_spec_F77=
13437 hardcode_libdir_flag_spec_ld_F77=
13438 hardcode_libdir_separator_F77=
13439 hardcode_minus_L_F77=no
13440 hardcode_automatic_F77=no
13441 module_cmds_F77=
13442 module_expsym_cmds_F77=
13443 link_all_deplibs_F77=unknown
13444 old_archive_cmds_F77=$old_archive_cmds
13445 no_undefined_flag_F77=
13446 whole_archive_flag_spec_F77=
13447 enable_shared_with_static_runtimes_F77=no
13448
13449 # Source file extension for f77 test sources.
13450 ac_ext=f
13451
13452 # Object file extension for compiled f77 test sources.
13453 objext=o
13454 objext_F77=$objext
13455
13456 # Code to be used in simple compile tests
13457 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13458
13459 # Code to be used in simple link tests
13460 lt_simple_link_test_code="      program t\n      end\n"
13461
13462 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13463
13464 # If no C compiler was specified, use CC.
13465 LTCC=${LTCC-"$CC"}
13466
13467 # If no C compiler flags were specified, use CFLAGS.
13468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13469
13470 # Allow CC to be a program name with arguments.
13471 compiler=$CC
13472
13473
13474 # save warnings/boilerplate of simple test code
13475 ac_outfile=conftest.$ac_objext
13476 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13477 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13478 _lt_compiler_boilerplate=`cat conftest.err`
13479 $rm conftest*
13480
13481 ac_outfile=conftest.$ac_objext
13482 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13483 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13484 _lt_linker_boilerplate=`cat conftest.err`
13485 $rm conftest*
13486
13487
13488 # Allow CC to be a program name with arguments.
13489 lt_save_CC="$CC"
13490 CC=${F77-"f77"}
13491 compiler=$CC
13492 compiler_F77=$CC
13493 for cc_temp in $compiler""; do
13494   case $cc_temp in
13495     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13496     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13497     \-*) ;;
13498     *) break;;
13499   esac
13500 done
13501 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13502
13503
13504 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13505 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13506 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13507 echo "${ECHO_T}$can_build_shared" >&6; }
13508
13509 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13510 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13511 test "$can_build_shared" = "no" && enable_shared=no
13512
13513 # On AIX, shared libraries and static libraries use the same namespace, and
13514 # are all built from PIC.
13515 case $host_os in
13516 aix3*)
13517   test "$enable_shared" = yes && enable_static=no
13518   if test -n "$RANLIB"; then
13519     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13520     postinstall_cmds='$RANLIB $lib'
13521   fi
13522   ;;
13523 aix4* | aix5*)
13524   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13525     test "$enable_shared" = yes && enable_static=no
13526   fi
13527   ;;
13528 esac
13529 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13530 echo "${ECHO_T}$enable_shared" >&6; }
13531
13532 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13534 # Make sure either enable_shared or enable_static is yes.
13535 test "$enable_shared" = yes || enable_static=yes
13536 { echo "$as_me:$LINENO: result: $enable_static" >&5
13537 echo "${ECHO_T}$enable_static" >&6; }
13538
13539 GCC_F77="$G77"
13540 LD_F77="$LD"
13541
13542 lt_prog_compiler_wl_F77=
13543 lt_prog_compiler_pic_F77=
13544 lt_prog_compiler_static_F77=
13545
13546 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13547 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13548
13549   if test "$GCC" = yes; then
13550     lt_prog_compiler_wl_F77='-Wl,'
13551     lt_prog_compiler_static_F77='-static'
13552
13553     case $host_os in
13554       aix*)
13555       # All AIX code is PIC.
13556       if test "$host_cpu" = ia64; then
13557         # AIX 5 now supports IA64 processor
13558         lt_prog_compiler_static_F77='-Bstatic'
13559       fi
13560       ;;
13561
13562     amigaos*)
13563       # FIXME: we need at least 68020 code to build shared libraries, but
13564       # adding the `-m68020' flag to GCC prevents building anything better,
13565       # like `-m68040'.
13566       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13567       ;;
13568
13569     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13570       # PIC is the default for these OSes.
13571       ;;
13572
13573     mingw* | pw32* | os2*)
13574       # This hack is so that the source file can tell whether it is being
13575       # built for inclusion in a dll (and should export symbols for example).
13576       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13577       ;;
13578
13579     darwin* | rhapsody*)
13580       # PIC is the default on this platform
13581       # Common symbols not allowed in MH_DYLIB files
13582       lt_prog_compiler_pic_F77='-fno-common'
13583       ;;
13584
13585     interix3*)
13586       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13587       # Instead, we relocate shared libraries at runtime.
13588       ;;
13589
13590     msdosdjgpp*)
13591       # Just because we use GCC doesn't mean we suddenly get shared libraries
13592       # on systems that don't support them.
13593       lt_prog_compiler_can_build_shared_F77=no
13594       enable_shared=no
13595       ;;
13596
13597     sysv4*MP*)
13598       if test -d /usr/nec; then
13599         lt_prog_compiler_pic_F77=-Kconform_pic
13600       fi
13601       ;;
13602
13603     hpux*)
13604       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13605       # not for PA HP-UX.
13606       case $host_cpu in
13607       hppa*64*|ia64*)
13608         # +Z the default
13609         ;;
13610       *)
13611         lt_prog_compiler_pic_F77='-fPIC'
13612         ;;
13613       esac
13614       ;;
13615
13616     *)
13617       lt_prog_compiler_pic_F77='-fPIC'
13618       ;;
13619     esac
13620   else
13621     # PORTME Check for flag to pass linker flags through the system compiler.
13622     case $host_os in
13623     aix*)
13624       lt_prog_compiler_wl_F77='-Wl,'
13625       if test "$host_cpu" = ia64; then
13626         # AIX 5 now supports IA64 processor
13627         lt_prog_compiler_static_F77='-Bstatic'
13628       else
13629         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13630       fi
13631       ;;
13632       darwin*)
13633         # PIC is the default on this platform
13634         # Common symbols not allowed in MH_DYLIB files
13635        case $cc_basename in
13636          xlc*)
13637          lt_prog_compiler_pic_F77='-qnocommon'
13638          lt_prog_compiler_wl_F77='-Wl,'
13639          ;;
13640        esac
13641        ;;
13642
13643     mingw* | pw32* | os2*)
13644       # This hack is so that the source file can tell whether it is being
13645       # built for inclusion in a dll (and should export symbols for example).
13646       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13647       ;;
13648
13649     hpux9* | hpux10* | hpux11*)
13650       lt_prog_compiler_wl_F77='-Wl,'
13651       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13652       # not for PA HP-UX.
13653       case $host_cpu in
13654       hppa*64*|ia64*)
13655         # +Z the default
13656         ;;
13657       *)
13658         lt_prog_compiler_pic_F77='+Z'
13659         ;;
13660       esac
13661       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13662       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13663       ;;
13664
13665     irix5* | irix6* | nonstopux*)
13666       lt_prog_compiler_wl_F77='-Wl,'
13667       # PIC (with -KPIC) is the default.
13668       lt_prog_compiler_static_F77='-non_shared'
13669       ;;
13670
13671     newsos6)
13672       lt_prog_compiler_pic_F77='-KPIC'
13673       lt_prog_compiler_static_F77='-Bstatic'
13674       ;;
13675
13676     linux* | k*bsd*-gnu)
13677       case $cc_basename in
13678       icc* | ecc*)
13679         lt_prog_compiler_wl_F77='-Wl,'
13680         lt_prog_compiler_pic_F77='-KPIC'
13681         lt_prog_compiler_static_F77='-static'
13682         ;;
13683       pgcc* | pgf77* | pgf90* | pgf95*)
13684         # Portland Group compilers (*not* the Pentium gcc compiler,
13685         # which looks to be a dead project)
13686         lt_prog_compiler_wl_F77='-Wl,'
13687         lt_prog_compiler_pic_F77='-fpic'
13688         lt_prog_compiler_static_F77='-Bstatic'
13689         ;;
13690       ccc*)
13691         lt_prog_compiler_wl_F77='-Wl,'
13692         # All Alpha code is PIC.
13693         lt_prog_compiler_static_F77='-non_shared'
13694         ;;
13695       esac
13696       ;;
13697
13698     osf3* | osf4* | osf5*)
13699       lt_prog_compiler_wl_F77='-Wl,'
13700       # All OSF/1 code is PIC.
13701       lt_prog_compiler_static_F77='-non_shared'
13702       ;;
13703
13704     solaris*)
13705       lt_prog_compiler_pic_F77='-KPIC'
13706       lt_prog_compiler_static_F77='-Bstatic'
13707       case $cc_basename in
13708       f77* | f90* | f95*)
13709         lt_prog_compiler_wl_F77='-Qoption ld ';;
13710       *)
13711         lt_prog_compiler_wl_F77='-Wl,';;
13712       esac
13713       ;;
13714
13715     sunos4*)
13716       lt_prog_compiler_wl_F77='-Qoption ld '
13717       lt_prog_compiler_pic_F77='-PIC'
13718       lt_prog_compiler_static_F77='-Bstatic'
13719       ;;
13720
13721     sysv4 | sysv4.2uw2* | sysv4.3*)
13722       lt_prog_compiler_wl_F77='-Wl,'
13723       lt_prog_compiler_pic_F77='-KPIC'
13724       lt_prog_compiler_static_F77='-Bstatic'
13725       ;;
13726
13727     sysv4*MP*)
13728       if test -d /usr/nec ;then
13729         lt_prog_compiler_pic_F77='-Kconform_pic'
13730         lt_prog_compiler_static_F77='-Bstatic'
13731       fi
13732       ;;
13733
13734     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13735       lt_prog_compiler_wl_F77='-Wl,'
13736       lt_prog_compiler_pic_F77='-KPIC'
13737       lt_prog_compiler_static_F77='-Bstatic'
13738       ;;
13739
13740     unicos*)
13741       lt_prog_compiler_wl_F77='-Wl,'
13742       lt_prog_compiler_can_build_shared_F77=no
13743       ;;
13744
13745     uts4*)
13746       lt_prog_compiler_pic_F77='-pic'
13747       lt_prog_compiler_static_F77='-Bstatic'
13748       ;;
13749
13750     *)
13751       lt_prog_compiler_can_build_shared_F77=no
13752       ;;
13753     esac
13754   fi
13755
13756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13757 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13758
13759 #
13760 # Check to make sure the PIC flag actually works.
13761 #
13762 if test -n "$lt_prog_compiler_pic_F77"; then
13763
13764 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13766 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   lt_prog_compiler_pic_works_F77=no
13770   ac_outfile=conftest.$ac_objext
13771    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13772    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13773    # Insert the option either (1) after the last *FLAGS variable, or
13774    # (2) before a word containing "conftest.", or (3) at the end.
13775    # Note that $ac_compile itself does not contain backslashes and begins
13776    # with a dollar sign (not a hyphen), so the echo should work correctly.
13777    # The option is referenced via a variable to avoid confusing sed.
13778    lt_compile=`echo "$ac_compile" | $SED \
13779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13781    -e 's:$: $lt_compiler_flag:'`
13782    (eval echo "\"\$as_me:13782: $lt_compile\"" >&5)
13783    (eval "$lt_compile" 2>conftest.err)
13784    ac_status=$?
13785    cat conftest.err >&5
13786    echo "$as_me:13786: \$? = $ac_status" >&5
13787    if (exit $ac_status) && test -s "$ac_outfile"; then
13788      # The compiler can only warn and ignore the option if not recognized
13789      # So say no if there are warnings other than the usual output.
13790      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13793        lt_prog_compiler_pic_works_F77=yes
13794      fi
13795    fi
13796    $rm conftest*
13797
13798 fi
13799 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13800 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13801
13802 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13803     case $lt_prog_compiler_pic_F77 in
13804      "" | " "*) ;;
13805      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13806      esac
13807 else
13808     lt_prog_compiler_pic_F77=
13809      lt_prog_compiler_can_build_shared_F77=no
13810 fi
13811
13812 fi
13813 case $host_os in
13814   # For platforms which do not support PIC, -DPIC is meaningless:
13815   *djgpp*)
13816     lt_prog_compiler_pic_F77=
13817     ;;
13818   *)
13819     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13820     ;;
13821 esac
13822
13823 #
13824 # Check to make sure the static flag actually works.
13825 #
13826 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13827 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13828 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13829 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13830   echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832   lt_prog_compiler_static_works_F77=no
13833    save_LDFLAGS="$LDFLAGS"
13834    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13835    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13836    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13837      # The linker can only warn and ignore the option if not recognized
13838      # So say no if there are warnings
13839      if test -s conftest.err; then
13840        # Append any errors to the config.log.
13841        cat conftest.err 1>&5
13842        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13843        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13844        if diff conftest.exp conftest.er2 >/dev/null; then
13845          lt_prog_compiler_static_works_F77=yes
13846        fi
13847      else
13848        lt_prog_compiler_static_works_F77=yes
13849      fi
13850    fi
13851    $rm conftest*
13852    LDFLAGS="$save_LDFLAGS"
13853
13854 fi
13855 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13856 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13857
13858 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13859     :
13860 else
13861     lt_prog_compiler_static_F77=
13862 fi
13863
13864
13865 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13866 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13867 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13868   echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870   lt_cv_prog_compiler_c_o_F77=no
13871    $rm -r conftest 2>/dev/null
13872    mkdir conftest
13873    cd conftest
13874    mkdir out
13875    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13876
13877    lt_compiler_flag="-o out/conftest2.$ac_objext"
13878    # Insert the option either (1) after the last *FLAGS variable, or
13879    # (2) before a word containing "conftest.", or (3) at the end.
13880    # Note that $ac_compile itself does not contain backslashes and begins
13881    # with a dollar sign (not a hyphen), so the echo should work correctly.
13882    lt_compile=`echo "$ac_compile" | $SED \
13883    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13885    -e 's:$: $lt_compiler_flag:'`
13886    (eval echo "\"\$as_me:13886: $lt_compile\"" >&5)
13887    (eval "$lt_compile" 2>out/conftest.err)
13888    ac_status=$?
13889    cat out/conftest.err >&5
13890    echo "$as_me:13890: \$? = $ac_status" >&5
13891    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13892    then
13893      # The compiler can only warn and ignore the option if not recognized
13894      # So say no if there are warnings
13895      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13896      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13897      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13898        lt_cv_prog_compiler_c_o_F77=yes
13899      fi
13900    fi
13901    chmod u+w . 2>&5
13902    $rm conftest*
13903    # SGI C++ compiler will create directory out/ii_files/ for
13904    # template instantiation
13905    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13906    $rm out/* && rmdir out
13907    cd ..
13908    rmdir conftest
13909    $rm conftest*
13910
13911 fi
13912 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13914
13915
13916 hard_links="nottested"
13917 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13918   # do not overwrite the value of need_locks provided by the user
13919   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13921   hard_links=yes
13922   $rm conftest*
13923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13924   touch conftest.a
13925   ln conftest.a conftest.b 2>&5 || hard_links=no
13926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13927   { echo "$as_me:$LINENO: result: $hard_links" >&5
13928 echo "${ECHO_T}$hard_links" >&6; }
13929   if test "$hard_links" = no; then
13930     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13932     need_locks=warn
13933   fi
13934 else
13935   need_locks=no
13936 fi
13937
13938 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13940
13941   runpath_var=
13942   allow_undefined_flag_F77=
13943   enable_shared_with_static_runtimes_F77=no
13944   archive_cmds_F77=
13945   archive_expsym_cmds_F77=
13946   old_archive_From_new_cmds_F77=
13947   old_archive_from_expsyms_cmds_F77=
13948   export_dynamic_flag_spec_F77=
13949   whole_archive_flag_spec_F77=
13950   thread_safe_flag_spec_F77=
13951   hardcode_libdir_flag_spec_F77=
13952   hardcode_libdir_flag_spec_ld_F77=
13953   hardcode_libdir_separator_F77=
13954   hardcode_direct_F77=no
13955   hardcode_minus_L_F77=no
13956   hardcode_shlibpath_var_F77=unsupported
13957   link_all_deplibs_F77=unknown
13958   hardcode_automatic_F77=no
13959   module_cmds_F77=
13960   module_expsym_cmds_F77=
13961   always_export_symbols_F77=no
13962   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13963   # include_expsyms should be a list of space-separated symbols to be *always*
13964   # included in the symbol list
13965   include_expsyms_F77=
13966   # exclude_expsyms can be an extended regexp of symbols to exclude
13967   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13968   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13969   # as well as any symbol that contains `d'.
13970   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13971   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13972   # platforms (ab)use it in PIC code, but their linkers get confused if
13973   # the symbol is explicitly referenced.  Since portable code cannot
13974   # rely on this symbol name, it's probably fine to never include it in
13975   # preloaded symbol tables.
13976   extract_expsyms_cmds=
13977   # Just being paranoid about ensuring that cc_basename is set.
13978   for cc_temp in $compiler""; do
13979   case $cc_temp in
13980     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13981     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13982     \-*) ;;
13983     *) break;;
13984   esac
13985 done
13986 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13987
13988   case $host_os in
13989   cygwin* | mingw* | pw32*)
13990     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13991     # When not using gcc, we currently assume that we are using
13992     # Microsoft Visual C++.
13993     if test "$GCC" != yes; then
13994       with_gnu_ld=no
13995     fi
13996     ;;
13997   interix*)
13998     # we just hope/assume this is gcc and not c89 (= MSVC++)
13999     with_gnu_ld=yes
14000     ;;
14001   openbsd*)
14002     with_gnu_ld=no
14003     ;;
14004   esac
14005
14006   ld_shlibs_F77=yes
14007   if test "$with_gnu_ld" = yes; then
14008     # If archive_cmds runs LD, not CC, wlarc should be empty
14009     wlarc='${wl}'
14010
14011     # Set some defaults for GNU ld with shared library support. These
14012     # are reset later if shared libraries are not supported. Putting them
14013     # here allows them to be overridden if necessary.
14014     runpath_var=LD_RUN_PATH
14015     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14016     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14017     # ancient GNU ld didn't support --whole-archive et. al.
14018     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14019         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14020       else
14021         whole_archive_flag_spec_F77=
14022     fi
14023     supports_anon_versioning=no
14024     case `$LD -v 2>/dev/null` in
14025       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14026       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14027       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14028       *\ 2.11.*) ;; # other 2.11 versions
14029       *) supports_anon_versioning=yes ;;
14030     esac
14031
14032     # See if GNU ld supports shared libraries.
14033     case $host_os in
14034     aix3* | aix4* | aix5*)
14035       # On AIX/PPC, the GNU linker is very broken
14036       if test "$host_cpu" != ia64; then
14037         ld_shlibs_F77=no
14038         cat <<EOF 1>&2
14039
14040 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14041 *** to be unable to reliably create shared libraries on AIX.
14042 *** Therefore, libtool is disabling shared libraries support.  If you
14043 *** really care for shared libraries, you may want to modify your PATH
14044 *** so that a non-GNU linker is found, and then restart.
14045
14046 EOF
14047       fi
14048       ;;
14049
14050     amigaos*)
14051       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)'
14052       hardcode_libdir_flag_spec_F77='-L$libdir'
14053       hardcode_minus_L_F77=yes
14054
14055       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14056       # that the semantics of dynamic libraries on AmigaOS, at least up
14057       # to version 4, is to share data among multiple programs linked
14058       # with the same dynamic library.  Since this doesn't match the
14059       # behavior of shared libraries on other platforms, we can't use
14060       # them.
14061       ld_shlibs_F77=no
14062       ;;
14063
14064     beos*)
14065       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14066         allow_undefined_flag_F77=unsupported
14067         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14068         # support --undefined.  This deserves some investigation.  FIXME
14069         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070       else
14071         ld_shlibs_F77=no
14072       fi
14073       ;;
14074
14075     cygwin* | mingw* | pw32*)
14076       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14077       # as there is no search path for DLLs.
14078       hardcode_libdir_flag_spec_F77='-L$libdir'
14079       allow_undefined_flag_F77=unsupported
14080       always_export_symbols_F77=no
14081       enable_shared_with_static_runtimes_F77=yes
14082       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14083
14084       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14085         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14086         # If the export-symbols file already is a .def file (1st line
14087         # is EXPORTS), use it as is; otherwise, prepend...
14088         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14089           cp $export_symbols $output_objdir/$soname.def;
14090         else
14091           echo EXPORTS > $output_objdir/$soname.def;
14092           cat $export_symbols >> $output_objdir/$soname.def;
14093         fi~
14094         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14095       else
14096         ld_shlibs_F77=no
14097       fi
14098       ;;
14099
14100     interix3*)
14101       hardcode_direct_F77=no
14102       hardcode_shlibpath_var_F77=no
14103       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14104       export_dynamic_flag_spec_F77='${wl}-E'
14105       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14106       # Instead, shared libraries are loaded at an image base (0x10000000 by
14107       # default) and relocated if they conflict, which is a slow very memory
14108       # consuming and fragmenting process.  To avoid this, we pick a random,
14109       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14110       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14111       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'
14112       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'
14113       ;;
14114
14115     linux* | k*bsd*-gnu)
14116       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14117         tmp_addflag=
14118         case $cc_basename,$host_cpu in
14119         pgcc*)                          # Portland Group C compiler
14120           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'
14121           tmp_addflag=' $pic_flag'
14122           ;;
14123         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14124           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'
14125           tmp_addflag=' $pic_flag -Mnomain' ;;
14126         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14127           tmp_addflag=' -i_dynamic' ;;
14128         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14129           tmp_addflag=' -i_dynamic -nofor_main' ;;
14130         ifc* | ifort*)                  # Intel Fortran compiler
14131           tmp_addflag=' -nofor_main' ;;
14132         esac
14133         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14134
14135         if test $supports_anon_versioning = yes; then
14136           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14137   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14138   $echo "local: *; };" >> $output_objdir/$libname.ver~
14139           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14140         fi
14141         link_all_deplibs_F77=no
14142       else
14143         ld_shlibs_F77=no
14144       fi
14145       ;;
14146
14147     netbsd* | netbsdelf*-gnu)
14148       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14149         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14150         wlarc=
14151       else
14152         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14153         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14154       fi
14155       ;;
14156
14157     solaris*)
14158       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14159         ld_shlibs_F77=no
14160         cat <<EOF 1>&2
14161
14162 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14163 *** create shared libraries on Solaris systems.  Therefore, libtool
14164 *** is disabling shared libraries support.  We urge you to upgrade GNU
14165 *** binutils to release 2.9.1 or newer.  Another option is to modify
14166 *** your PATH or compiler configuration so that the native linker is
14167 *** used, and then restart.
14168
14169 EOF
14170       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14171         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14172         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14173       else
14174         ld_shlibs_F77=no
14175       fi
14176       ;;
14177
14178     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14179       case `$LD -v 2>&1` in
14180         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14181         ld_shlibs_F77=no
14182         cat <<_LT_EOF 1>&2
14183
14184 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14185 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14186 *** is disabling shared libraries support.  We urge you to upgrade GNU
14187 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14188 *** your PATH or compiler configuration so that the native linker is
14189 *** used, and then restart.
14190
14191 _LT_EOF
14192         ;;
14193         *)
14194           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14195             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14196             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14197             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14198           else
14199             ld_shlibs_F77=no
14200           fi
14201         ;;
14202       esac
14203       ;;
14204
14205     sunos4*)
14206       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14207       wlarc=
14208       hardcode_direct_F77=yes
14209       hardcode_shlibpath_var_F77=no
14210       ;;
14211
14212     *)
14213       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14214         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14215         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14216       else
14217         ld_shlibs_F77=no
14218       fi
14219       ;;
14220     esac
14221
14222     if test "$ld_shlibs_F77" = no; then
14223       runpath_var=
14224       hardcode_libdir_flag_spec_F77=
14225       export_dynamic_flag_spec_F77=
14226       whole_archive_flag_spec_F77=
14227     fi
14228   else
14229     # PORTME fill in a description of your system's linker (not GNU ld)
14230     case $host_os in
14231     aix3*)
14232       allow_undefined_flag_F77=unsupported
14233       always_export_symbols_F77=yes
14234       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'
14235       # Note: this linker hardcodes the directories in LIBPATH if there
14236       # are no directories specified by -L.
14237       hardcode_minus_L_F77=yes
14238       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14239         # Neither direct hardcoding nor static linking is supported with a
14240         # broken collect2.
14241         hardcode_direct_F77=unsupported
14242       fi
14243       ;;
14244
14245     aix4* | aix5*)
14246       if test "$host_cpu" = ia64; then
14247         # On IA64, the linker does run time linking by default, so we don't
14248         # have to do anything special.
14249         aix_use_runtimelinking=no
14250         exp_sym_flag='-Bexport'
14251         no_entry_flag=""
14252       else
14253         # If we're using GNU nm, then we don't want the "-C" option.
14254         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14255         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14256           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'
14257         else
14258           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'
14259         fi
14260         aix_use_runtimelinking=no
14261
14262         # Test if we are trying to use run time linking or normal
14263         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14264         # need to do runtime linking.
14265         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14266           for ld_flag in $LDFLAGS; do
14267           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14268             aix_use_runtimelinking=yes
14269             break
14270           fi
14271           done
14272           ;;
14273         esac
14274
14275         exp_sym_flag='-bexport'
14276         no_entry_flag='-bnoentry'
14277       fi
14278
14279       # When large executables or shared objects are built, AIX ld can
14280       # have problems creating the table of contents.  If linking a library
14281       # or program results in "error TOC overflow" add -mminimal-toc to
14282       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14283       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14284
14285       archive_cmds_F77=''
14286       hardcode_direct_F77=yes
14287       hardcode_libdir_separator_F77=':'
14288       link_all_deplibs_F77=yes
14289
14290       if test "$GCC" = yes; then
14291         case $host_os in aix4.[012]|aix4.[012].*)
14292         # We only want to do this on AIX 4.2 and lower, the check
14293         # below for broken collect2 doesn't work under 4.3+
14294           collect2name=`${CC} -print-prog-name=collect2`
14295           if test -f "$collect2name" && \
14296            strings "$collect2name" | grep resolve_lib_name >/dev/null
14297           then
14298           # We have reworked collect2
14299           hardcode_direct_F77=yes
14300           else
14301           # We have old collect2
14302           hardcode_direct_F77=unsupported
14303           # It fails to find uninstalled libraries when the uninstalled
14304           # path is not listed in the libpath.  Setting hardcode_minus_L
14305           # to unsupported forces relinking
14306           hardcode_minus_L_F77=yes
14307           hardcode_libdir_flag_spec_F77='-L$libdir'
14308           hardcode_libdir_separator_F77=
14309           fi
14310           ;;
14311         esac
14312         shared_flag='-shared'
14313         if test "$aix_use_runtimelinking" = yes; then
14314           shared_flag="$shared_flag "'${wl}-G'
14315         fi
14316       else
14317         # not using gcc
14318         if test "$host_cpu" = ia64; then
14319         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14320         # chokes on -Wl,-G. The following line is correct:
14321           shared_flag='-G'
14322         else
14323           if test "$aix_use_runtimelinking" = yes; then
14324             shared_flag='${wl}-G'
14325           else
14326             shared_flag='${wl}-bM:SRE'
14327           fi
14328         fi
14329       fi
14330
14331       # It seems that -bexpall does not export symbols beginning with
14332       # underscore (_), so it is better to generate a list of symbols to export.
14333       always_export_symbols_F77=yes
14334       if test "$aix_use_runtimelinking" = yes; then
14335         # Warning - without using the other runtime loading flags (-brtl),
14336         # -berok will link without error, but may produce a broken library.
14337         allow_undefined_flag_F77='-berok'
14338        # Determine the default libpath from the value encoded in an empty executable.
14339        cat >conftest.$ac_ext <<_ACEOF
14340       program main
14341
14342       end
14343 _ACEOF
14344 rm -f conftest.$ac_objext conftest$ac_exeext
14345 if { (ac_try="$ac_link"
14346 case "(($ac_try" in
14347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348   *) ac_try_echo=$ac_try;;
14349 esac
14350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351   (eval "$ac_link") 2>conftest.er1
14352   ac_status=$?
14353   grep -v '^ *+' conftest.er1 >conftest.err
14354   rm -f conftest.er1
14355   cat conftest.err >&5
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); } && {
14358          test -z "$ac_f77_werror_flag" ||
14359          test ! -s conftest.err
14360        } && test -s conftest$ac_exeext &&
14361        $as_test_x conftest$ac_exeext; then
14362
14363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14364 }'`
14365 # Check for a 64-bit object if we didn't find anything.
14366 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14367 }'`; fi
14368 else
14369   echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14371
14372
14373 fi
14374
14375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14376       conftest$ac_exeext conftest.$ac_ext
14377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14378
14379        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14380         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"
14381        else
14382         if test "$host_cpu" = ia64; then
14383           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14384           allow_undefined_flag_F77="-z nodefs"
14385           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"
14386         else
14387          # Determine the default libpath from the value encoded in an empty executable.
14388          cat >conftest.$ac_ext <<_ACEOF
14389       program main
14390
14391       end
14392 _ACEOF
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_link") 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } && {
14407          test -z "$ac_f77_werror_flag" ||
14408          test ! -s conftest.err
14409        } && test -s conftest$ac_exeext &&
14410        $as_test_x conftest$ac_exeext; then
14411
14412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14413 }'`
14414 # Check for a 64-bit object if we didn't find anything.
14415 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14416 }'`; fi
14417 else
14418   echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421
14422 fi
14423
14424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14425       conftest$ac_exeext conftest.$ac_ext
14426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14427
14428          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14429           # Warning - without using the other run time loading flags,
14430           # -berok will link without error, but may produce a broken library.
14431           no_undefined_flag_F77=' ${wl}-bernotok'
14432           allow_undefined_flag_F77=' ${wl}-berok'
14433           # Exported symbols can be pulled into shared objects from archives
14434           whole_archive_flag_spec_F77='$convenience'
14435           archive_cmds_need_lc_F77=yes
14436           # This is similar to how AIX traditionally builds its shared libraries.
14437           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'
14438         fi
14439       fi
14440       ;;
14441
14442     amigaos*)
14443       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)'
14444       hardcode_libdir_flag_spec_F77='-L$libdir'
14445       hardcode_minus_L_F77=yes
14446       # see comment about different semantics on the GNU ld section
14447       ld_shlibs_F77=no
14448       ;;
14449
14450     bsdi[45]*)
14451       export_dynamic_flag_spec_F77=-rdynamic
14452       ;;
14453
14454     cygwin* | mingw* | pw32*)
14455       # When not using gcc, we currently assume that we are using
14456       # Microsoft Visual C++.
14457       # hardcode_libdir_flag_spec is actually meaningless, as there is
14458       # no search path for DLLs.
14459       hardcode_libdir_flag_spec_F77=' '
14460       allow_undefined_flag_F77=unsupported
14461       # Tell ltmain to make .lib files, not .a files.
14462       libext=lib
14463       # Tell ltmain to make .dll files, not .so files.
14464       shrext_cmds=".dll"
14465       # FIXME: Setting linknames here is a bad hack.
14466       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14467       # The linker will automatically build a .lib file if we build a DLL.
14468       old_archive_From_new_cmds_F77='true'
14469       # FIXME: Should let the user specify the lib program.
14470       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14471       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14472       enable_shared_with_static_runtimes_F77=yes
14473       ;;
14474
14475     darwin* | rhapsody*)
14476       case $host_os in
14477         rhapsody* | darwin1.[012])
14478          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14479          ;;
14480        *) # Darwin 1.3 on
14481          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14482            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14483          else
14484            case ${MACOSX_DEPLOYMENT_TARGET} in
14485              10.[012])
14486                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14487                ;;
14488              10.*)
14489                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14490                ;;
14491            esac
14492          fi
14493          ;;
14494       esac
14495       archive_cmds_need_lc_F77=no
14496       hardcode_direct_F77=no
14497       hardcode_automatic_F77=yes
14498       hardcode_shlibpath_var_F77=unsupported
14499       whole_archive_flag_spec_F77=''
14500       link_all_deplibs_F77=yes
14501     if test "$GCC" = yes ; then
14502         output_verbose_link_cmd='echo'
14503         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14504       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14505       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14506       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}'
14507       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}'
14508     else
14509       case $cc_basename in
14510         xlc*)
14511          output_verbose_link_cmd='echo'
14512          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14513          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14514           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14515          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14516           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}'
14517           ;;
14518        *)
14519          ld_shlibs_F77=no
14520           ;;
14521       esac
14522     fi
14523       ;;
14524
14525     dgux*)
14526       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14527       hardcode_libdir_flag_spec_F77='-L$libdir'
14528       hardcode_shlibpath_var_F77=no
14529       ;;
14530
14531     freebsd1*)
14532       ld_shlibs_F77=no
14533       ;;
14534
14535     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14536     # support.  Future versions do this automatically, but an explicit c++rt0.o
14537     # does not break anything, and helps significantly (at the cost of a little
14538     # extra space).
14539     freebsd2.2*)
14540       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14541       hardcode_libdir_flag_spec_F77='-R$libdir'
14542       hardcode_direct_F77=yes
14543       hardcode_shlibpath_var_F77=no
14544       ;;
14545
14546     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14547     freebsd2*)
14548       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14549       hardcode_direct_F77=yes
14550       hardcode_minus_L_F77=yes
14551       hardcode_shlibpath_var_F77=no
14552       ;;
14553
14554     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14555     freebsd* | dragonfly*)
14556       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14557       hardcode_libdir_flag_spec_F77='-R$libdir'
14558       hardcode_direct_F77=yes
14559       hardcode_shlibpath_var_F77=no
14560       ;;
14561
14562     hpux9*)
14563       if test "$GCC" = yes; then
14564         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'
14565       else
14566         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'
14567       fi
14568       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14569       hardcode_libdir_separator_F77=:
14570       hardcode_direct_F77=yes
14571
14572       # hardcode_minus_L: Not really in the search PATH,
14573       # but as the default location of the library.
14574       hardcode_minus_L_F77=yes
14575       export_dynamic_flag_spec_F77='${wl}-E'
14576       ;;
14577
14578     hpux10*)
14579       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14580         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14581       else
14582         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14583       fi
14584       if test "$with_gnu_ld" = no; then
14585         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14586         hardcode_libdir_separator_F77=:
14587
14588         hardcode_direct_F77=yes
14589         export_dynamic_flag_spec_F77='${wl}-E'
14590
14591         # hardcode_minus_L: Not really in the search PATH,
14592         # but as the default location of the library.
14593         hardcode_minus_L_F77=yes
14594       fi
14595       ;;
14596
14597     hpux11*)
14598       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14599         case $host_cpu in
14600         hppa*64*)
14601           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14602           ;;
14603         ia64*)
14604           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14605           ;;
14606         *)
14607           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14608           ;;
14609         esac
14610       else
14611         case $host_cpu in
14612         hppa*64*)
14613           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14614           ;;
14615         ia64*)
14616           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14617           ;;
14618         *)
14619           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14620           ;;
14621         esac
14622       fi
14623       if test "$with_gnu_ld" = no; then
14624         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14625         hardcode_libdir_separator_F77=:
14626
14627         case $host_cpu in
14628         hppa*64*|ia64*)
14629           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14630           hardcode_direct_F77=no
14631           hardcode_shlibpath_var_F77=no
14632           ;;
14633         *)
14634           hardcode_direct_F77=yes
14635           export_dynamic_flag_spec_F77='${wl}-E'
14636
14637           # hardcode_minus_L: Not really in the search PATH,
14638           # but as the default location of the library.
14639           hardcode_minus_L_F77=yes
14640           ;;
14641         esac
14642       fi
14643       ;;
14644
14645     irix5* | irix6* | nonstopux*)
14646       if test "$GCC" = yes; then
14647         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'
14648       else
14649         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'
14650         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14651       fi
14652       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14653       hardcode_libdir_separator_F77=:
14654       link_all_deplibs_F77=yes
14655       ;;
14656
14657     netbsd* | netbsdelf*-gnu)
14658       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14659         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14660       else
14661         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14662       fi
14663       hardcode_libdir_flag_spec_F77='-R$libdir'
14664       hardcode_direct_F77=yes
14665       hardcode_shlibpath_var_F77=no
14666       ;;
14667
14668     newsos6)
14669       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14670       hardcode_direct_F77=yes
14671       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14672       hardcode_libdir_separator_F77=:
14673       hardcode_shlibpath_var_F77=no
14674       ;;
14675
14676     openbsd*)
14677       hardcode_direct_F77=yes
14678       hardcode_shlibpath_var_F77=no
14679       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14680         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14681         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14682         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14683         export_dynamic_flag_spec_F77='${wl}-E'
14684       else
14685        case $host_os in
14686          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14687            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14688            hardcode_libdir_flag_spec_F77='-R$libdir'
14689            ;;
14690          *)
14691            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14692            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14693            ;;
14694        esac
14695       fi
14696       ;;
14697
14698     os2*)
14699       hardcode_libdir_flag_spec_F77='-L$libdir'
14700       hardcode_minus_L_F77=yes
14701       allow_undefined_flag_F77=unsupported
14702       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'
14703       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14704       ;;
14705
14706     osf3*)
14707       if test "$GCC" = yes; then
14708         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14709         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'
14710       else
14711         allow_undefined_flag_F77=' -expect_unresolved \*'
14712         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'
14713       fi
14714       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14715       hardcode_libdir_separator_F77=:
14716       ;;
14717
14718     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14719       if test "$GCC" = yes; then
14720         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14721         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'
14722         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14723       else
14724         allow_undefined_flag_F77=' -expect_unresolved \*'
14725         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'
14726         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~
14727         $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'
14728
14729         # Both c and cxx compiler support -rpath directly
14730         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14731       fi
14732       hardcode_libdir_separator_F77=:
14733       ;;
14734
14735     solaris*)
14736       no_undefined_flag_F77=' -z text'
14737       if test "$GCC" = yes; then
14738         wlarc='${wl}'
14739         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14740         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14741           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14742       else
14743         wlarc=''
14744         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14745         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14746         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14747       fi
14748       hardcode_libdir_flag_spec_F77='-R$libdir'
14749       hardcode_shlibpath_var_F77=no
14750       case $host_os in
14751       solaris2.[0-5] | solaris2.[0-5].*) ;;
14752       *)
14753         # The compiler driver will combine linker options so we
14754         # cannot just pass the convience library names through
14755         # without $wl, iff we do not link with $LD.
14756         # Luckily, gcc supports the same syntax we need for Sun Studio.
14757         # Supported since Solaris 2.6 (maybe 2.5.1?)
14758         case $wlarc in
14759         '')
14760           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14761         *)
14762           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14763         esac ;;
14764       esac
14765       link_all_deplibs_F77=yes
14766       ;;
14767
14768     sunos4*)
14769       if test "x$host_vendor" = xsequent; then
14770         # Use $CC to link under sequent, because it throws in some extra .o
14771         # files that make .init and .fini sections work.
14772         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14773       else
14774         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14775       fi
14776       hardcode_libdir_flag_spec_F77='-L$libdir'
14777       hardcode_direct_F77=yes
14778       hardcode_minus_L_F77=yes
14779       hardcode_shlibpath_var_F77=no
14780       ;;
14781
14782     sysv4)
14783       case $host_vendor in
14784         sni)
14785           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786           hardcode_direct_F77=yes # is this really true???
14787         ;;
14788         siemens)
14789           ## LD is ld it makes a PLAMLIB
14790           ## CC just makes a GrossModule.
14791           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14792           reload_cmds_F77='$CC -r -o $output$reload_objs'
14793           hardcode_direct_F77=no
14794         ;;
14795         motorola)
14796           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14797           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14798         ;;
14799       esac
14800       runpath_var='LD_RUN_PATH'
14801       hardcode_shlibpath_var_F77=no
14802       ;;
14803
14804     sysv4.3*)
14805       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14806       hardcode_shlibpath_var_F77=no
14807       export_dynamic_flag_spec_F77='-Bexport'
14808       ;;
14809
14810     sysv4*MP*)
14811       if test -d /usr/nec; then
14812         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813         hardcode_shlibpath_var_F77=no
14814         runpath_var=LD_RUN_PATH
14815         hardcode_runpath_var=yes
14816         ld_shlibs_F77=yes
14817       fi
14818       ;;
14819
14820     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14821       no_undefined_flag_F77='${wl}-z,text'
14822       archive_cmds_need_lc_F77=no
14823       hardcode_shlibpath_var_F77=no
14824       runpath_var='LD_RUN_PATH'
14825
14826       if test "$GCC" = yes; then
14827         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14829       else
14830         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14831         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14832       fi
14833       ;;
14834
14835     sysv5* | sco3.2v5* | sco5v6*)
14836       # Note: We can NOT use -z defs as we might desire, because we do not
14837       # link with -lc, and that would cause any symbols used from libc to
14838       # always be unresolved, which means just about no library would
14839       # ever link correctly.  If we're not using GNU ld we use -z text
14840       # though, which does catch some bad symbols but isn't as heavy-handed
14841       # as -z defs.
14842       no_undefined_flag_F77='${wl}-z,text'
14843       allow_undefined_flag_F77='${wl}-z,nodefs'
14844       archive_cmds_need_lc_F77=no
14845       hardcode_shlibpath_var_F77=no
14846       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14847       hardcode_libdir_separator_F77=':'
14848       link_all_deplibs_F77=yes
14849       export_dynamic_flag_spec_F77='${wl}-Bexport'
14850       runpath_var='LD_RUN_PATH'
14851
14852       if test "$GCC" = yes; then
14853         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14854         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14855       else
14856         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14857         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14858       fi
14859       ;;
14860
14861     uts4*)
14862       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14863       hardcode_libdir_flag_spec_F77='-L$libdir'
14864       hardcode_shlibpath_var_F77=no
14865       ;;
14866
14867     *)
14868       ld_shlibs_F77=no
14869       ;;
14870     esac
14871   fi
14872
14873 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14874 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14875 test "$ld_shlibs_F77" = no && can_build_shared=no
14876
14877 #
14878 # Do we need to explicitly link libc?
14879 #
14880 case "x$archive_cmds_need_lc_F77" in
14881 x|xyes)
14882   # Assume -lc should be added
14883   archive_cmds_need_lc_F77=yes
14884
14885   if test "$enable_shared" = yes && test "$GCC" = yes; then
14886     case $archive_cmds_F77 in
14887     *'~'*)
14888       # FIXME: we may have to deal with multi-command sequences.
14889       ;;
14890     '$CC '*)
14891       # Test whether the compiler implicitly links with -lc since on some
14892       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14893       # to ld, don't add -lc before -lgcc.
14894       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14895 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14896       $rm conftest*
14897       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14898
14899       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900   (eval $ac_compile) 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } 2>conftest.err; then
14904         soname=conftest
14905         lib=conftest
14906         libobjs=conftest.$ac_objext
14907         deplibs=
14908         wl=$lt_prog_compiler_wl_F77
14909         pic_flag=$lt_prog_compiler_pic_F77
14910         compiler_flags=-v
14911         linker_flags=-v
14912         verstring=
14913         output_objdir=.
14914         libname=conftest
14915         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14916         allow_undefined_flag_F77=
14917         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14918   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); }
14922         then
14923           archive_cmds_need_lc_F77=no
14924         else
14925           archive_cmds_need_lc_F77=yes
14926         fi
14927         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14928       else
14929         cat conftest.err 1>&5
14930       fi
14931       $rm conftest*
14932       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14933 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14934       ;;
14935     esac
14936   fi
14937   ;;
14938 esac
14939
14940 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14941 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14942 library_names_spec=
14943 libname_spec='lib$name'
14944 soname_spec=
14945 shrext_cmds=".so"
14946 postinstall_cmds=
14947 postuninstall_cmds=
14948 finish_cmds=
14949 finish_eval=
14950 shlibpath_var=
14951 shlibpath_overrides_runpath=unknown
14952 version_type=none
14953 dynamic_linker="$host_os ld.so"
14954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14955 if test "$GCC" = yes; then
14956   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14957   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14958     # if the path contains ";" then we assume it to be the separator
14959     # otherwise default to the standard path separator (i.e. ":") - it is
14960     # assumed that no part of a normal pathname contains ";" but that should
14961     # okay in the real world where ";" in dirpaths is itself problematic.
14962     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14963   else
14964     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14965   fi
14966 else
14967   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14968 fi
14969 need_lib_prefix=unknown
14970 hardcode_into_libs=no
14971
14972 # when you set need_version to no, make sure it does not cause -set_version
14973 # flags to be left without arguments
14974 need_version=unknown
14975
14976 case $host_os in
14977 aix3*)
14978   version_type=linux
14979   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14980   shlibpath_var=LIBPATH
14981
14982   # AIX 3 has no versioning support, so we append a major version to the name.
14983   soname_spec='${libname}${release}${shared_ext}$major'
14984   ;;
14985
14986 aix4* | aix5*)
14987   version_type=linux
14988   need_lib_prefix=no
14989   need_version=no
14990   hardcode_into_libs=yes
14991   if test "$host_cpu" = ia64; then
14992     # AIX 5 supports IA64
14993     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14994     shlibpath_var=LD_LIBRARY_PATH
14995   else
14996     # With GCC up to 2.95.x, collect2 would create an import file
14997     # for dependence libraries.  The import file would start with
14998     # the line `#! .'.  This would cause the generated library to
14999     # depend on `.', always an invalid library.  This was fixed in
15000     # development snapshots of GCC prior to 3.0.
15001     case $host_os in
15002       aix4 | aix4.[01] | aix4.[01].*)
15003       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15004            echo ' yes '
15005            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15006         :
15007       else
15008         can_build_shared=no
15009       fi
15010       ;;
15011     esac
15012     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15013     # soname into executable. Probably we can add versioning support to
15014     # collect2, so additional links can be useful in future.
15015     if test "$aix_use_runtimelinking" = yes; then
15016       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15017       # instead of lib<name>.a to let people know that these are not
15018       # typical AIX shared libraries.
15019       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020     else
15021       # We preserve .a as extension for shared libraries through AIX4.2
15022       # and later when we are not doing run time linking.
15023       library_names_spec='${libname}${release}.a $libname.a'
15024       soname_spec='${libname}${release}${shared_ext}$major'
15025     fi
15026     shlibpath_var=LIBPATH
15027   fi
15028   ;;
15029
15030 amigaos*)
15031   library_names_spec='$libname.ixlibrary $libname.a'
15032   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15033   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'
15034   ;;
15035
15036 beos*)
15037   library_names_spec='${libname}${shared_ext}'
15038   dynamic_linker="$host_os ld.so"
15039   shlibpath_var=LIBRARY_PATH
15040   ;;
15041
15042 bsdi[45]*)
15043   version_type=linux
15044   need_version=no
15045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046   soname_spec='${libname}${release}${shared_ext}$major'
15047   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15048   shlibpath_var=LD_LIBRARY_PATH
15049   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15050   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15051   # the default ld.so.conf also contains /usr/contrib/lib and
15052   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15053   # libtool to hard-code these into programs
15054   ;;
15055
15056 cygwin* | mingw* | pw32*)
15057   version_type=windows
15058   shrext_cmds=".dll"
15059   need_version=no
15060   need_lib_prefix=no
15061
15062   case $GCC,$host_os in
15063   yes,cygwin* | yes,mingw* | yes,pw32*)
15064     library_names_spec='$libname.dll.a'
15065     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15066     postinstall_cmds='base_file=`basename \${file}`~
15067       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15068       dldir=$destdir/`dirname \$dlpath`~
15069       test -d \$dldir || mkdir -p \$dldir~
15070       $install_prog $dir/$dlname \$dldir/$dlname~
15071       chmod a+x \$dldir/$dlname'
15072     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15073       dlpath=$dir/\$dldll~
15074        $rm \$dlpath'
15075     shlibpath_overrides_runpath=yes
15076
15077     case $host_os in
15078     cygwin*)
15079       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15080       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15081       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15082       ;;
15083     mingw*)
15084       # MinGW DLLs use traditional 'lib' prefix
15085       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15086       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15087       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15088         # It is most probably a Windows format PATH printed by
15089         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15090         # path with ; separators, and with drive letters. We can handle the
15091         # drive letters (cygwin fileutils understands them), so leave them,
15092         # especially as we might pass files found there to a mingw objdump,
15093         # which wouldn't understand a cygwinified path. Ahh.
15094         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15095       else
15096         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15097       fi
15098       ;;
15099     pw32*)
15100       # pw32 DLLs use 'pw' prefix rather than 'lib'
15101       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15102       ;;
15103     esac
15104     ;;
15105
15106   *)
15107     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15108     ;;
15109   esac
15110   dynamic_linker='Win32 ld.exe'
15111   # FIXME: first we should search . and the directory the executable is in
15112   shlibpath_var=PATH
15113   ;;
15114
15115 darwin* | rhapsody*)
15116   dynamic_linker="$host_os dyld"
15117   version_type=darwin
15118   need_lib_prefix=no
15119   need_version=no
15120   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15121   soname_spec='${libname}${release}${major}$shared_ext'
15122   shlibpath_overrides_runpath=yes
15123   shlibpath_var=DYLD_LIBRARY_PATH
15124   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15125   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15126   if test "$GCC" = yes; then
15127     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15128   else
15129     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15130   fi
15131   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15132   ;;
15133
15134 dgux*)
15135   version_type=linux
15136   need_lib_prefix=no
15137   need_version=no
15138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15139   soname_spec='${libname}${release}${shared_ext}$major'
15140   shlibpath_var=LD_LIBRARY_PATH
15141   ;;
15142
15143 freebsd1*)
15144   dynamic_linker=no
15145   ;;
15146
15147 freebsd* | dragonfly*)
15148   # DragonFly does not have aout.  When/if they implement a new
15149   # versioning mechanism, adjust this.
15150   if test -x /usr/bin/objformat; then
15151     objformat=`/usr/bin/objformat`
15152   else
15153     case $host_os in
15154     freebsd[123]*) objformat=aout ;;
15155     *) objformat=elf ;;
15156     esac
15157   fi
15158   version_type=freebsd-$objformat
15159   case $version_type in
15160     freebsd-elf*)
15161       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15162       need_version=no
15163       need_lib_prefix=no
15164       ;;
15165     freebsd-*)
15166       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15167       need_version=yes
15168       ;;
15169   esac
15170   shlibpath_var=LD_LIBRARY_PATH
15171   case $host_os in
15172   freebsd2*)
15173     shlibpath_overrides_runpath=yes
15174     ;;
15175   freebsd3.[01]* | freebsdelf3.[01]*)
15176     shlibpath_overrides_runpath=yes
15177     hardcode_into_libs=yes
15178     ;;
15179   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15180   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15181     shlibpath_overrides_runpath=no
15182     hardcode_into_libs=yes
15183     ;;
15184   freebsd*) # from 4.6 on
15185     shlibpath_overrides_runpath=yes
15186     hardcode_into_libs=yes
15187     ;;
15188   esac
15189   ;;
15190
15191 gnu*)
15192   version_type=linux
15193   need_lib_prefix=no
15194   need_version=no
15195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15196   soname_spec='${libname}${release}${shared_ext}$major'
15197   shlibpath_var=LD_LIBRARY_PATH
15198   hardcode_into_libs=yes
15199   ;;
15200
15201 hpux9* | hpux10* | hpux11*)
15202   # Give a soname corresponding to the major version so that dld.sl refuses to
15203   # link against other versions.
15204   version_type=sunos
15205   need_lib_prefix=no
15206   need_version=no
15207   case $host_cpu in
15208   ia64*)
15209     shrext_cmds='.so'
15210     hardcode_into_libs=yes
15211     dynamic_linker="$host_os dld.so"
15212     shlibpath_var=LD_LIBRARY_PATH
15213     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215     soname_spec='${libname}${release}${shared_ext}$major'
15216     if test "X$HPUX_IA64_MODE" = X32; then
15217       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15218     else
15219       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15220     fi
15221     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15222     ;;
15223    hppa*64*)
15224      shrext_cmds='.sl'
15225      hardcode_into_libs=yes
15226      dynamic_linker="$host_os dld.sl"
15227      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15228      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15229      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230      soname_spec='${libname}${release}${shared_ext}$major'
15231      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15232      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15233      ;;
15234    *)
15235     shrext_cmds='.sl'
15236     dynamic_linker="$host_os dld.sl"
15237     shlibpath_var=SHLIB_PATH
15238     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240     soname_spec='${libname}${release}${shared_ext}$major'
15241     ;;
15242   esac
15243   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15244   postinstall_cmds='chmod 555 $lib'
15245   ;;
15246
15247 interix3*)
15248   version_type=linux
15249   need_lib_prefix=no
15250   need_version=no
15251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252   soname_spec='${libname}${release}${shared_ext}$major'
15253   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15254   shlibpath_var=LD_LIBRARY_PATH
15255   shlibpath_overrides_runpath=no
15256   hardcode_into_libs=yes
15257   ;;
15258
15259 irix5* | irix6* | nonstopux*)
15260   case $host_os in
15261     nonstopux*) version_type=nonstopux ;;
15262     *)
15263         if test "$lt_cv_prog_gnu_ld" = yes; then
15264                 version_type=linux
15265         else
15266                 version_type=irix
15267         fi ;;
15268   esac
15269   need_lib_prefix=no
15270   need_version=no
15271   soname_spec='${libname}${release}${shared_ext}$major'
15272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15273   case $host_os in
15274   irix5* | nonstopux*)
15275     libsuff= shlibsuff=
15276     ;;
15277   *)
15278     case $LD in # libtool.m4 will add one of these switches to LD
15279     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15280       libsuff= shlibsuff= libmagic=32-bit;;
15281     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15282       libsuff=32 shlibsuff=N32 libmagic=N32;;
15283     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15284       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15285     *) libsuff= shlibsuff= libmagic=never-match;;
15286     esac
15287     ;;
15288   esac
15289   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15290   shlibpath_overrides_runpath=no
15291   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15292   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15293   hardcode_into_libs=yes
15294   ;;
15295
15296 # No shared lib support for Linux oldld, aout, or coff.
15297 linux*oldld* | linux*aout* | linux*coff*)
15298   dynamic_linker=no
15299   ;;
15300
15301 # This must be Linux ELF.
15302 linux* | k*bsd*-gnu)
15303   version_type=linux
15304   need_lib_prefix=no
15305   need_version=no
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307   soname_spec='${libname}${release}${shared_ext}$major'
15308   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15309   shlibpath_var=LD_LIBRARY_PATH
15310   shlibpath_overrides_runpath=no
15311   # This implies no fast_install, which is unacceptable.
15312   # Some rework will be needed to allow for fast_install
15313   # before this can be enabled.
15314   hardcode_into_libs=yes
15315
15316   # Append ld.so.conf contents to the search path
15317   if test -f /etc/ld.so.conf; then
15318     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15319     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15320   fi
15321
15322   # We used to test for /lib/ld.so.1 and disable shared libraries on
15323   # powerpc, because MkLinux only supported shared libraries with the
15324   # GNU dynamic linker.  Since this was broken with cross compilers,
15325   # most powerpc-linux boxes support dynamic linking these days and
15326   # people can always --disable-shared, the test was removed, and we
15327   # assume the GNU/Linux dynamic linker is in use.
15328   dynamic_linker='GNU/Linux ld.so'
15329   ;;
15330
15331 netbsdelf*-gnu)
15332   version_type=linux
15333   need_lib_prefix=no
15334   need_version=no
15335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15336   soname_spec='${libname}${release}${shared_ext}$major'
15337   shlibpath_var=LD_LIBRARY_PATH
15338   shlibpath_overrides_runpath=no
15339   hardcode_into_libs=yes
15340   dynamic_linker='NetBSD ld.elf_so'
15341   ;;
15342
15343 netbsd*)
15344   version_type=sunos
15345   need_lib_prefix=no
15346   need_version=no
15347   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15349     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15350     dynamic_linker='NetBSD (a.out) ld.so'
15351   else
15352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15353     soname_spec='${libname}${release}${shared_ext}$major'
15354     dynamic_linker='NetBSD ld.elf_so'
15355   fi
15356   shlibpath_var=LD_LIBRARY_PATH
15357   shlibpath_overrides_runpath=yes
15358   hardcode_into_libs=yes
15359   ;;
15360
15361 newsos6)
15362   version_type=linux
15363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   shlibpath_overrides_runpath=yes
15366   ;;
15367
15368 nto-qnx*)
15369   version_type=linux
15370   need_lib_prefix=no
15371   need_version=no
15372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373   soname_spec='${libname}${release}${shared_ext}$major'
15374   shlibpath_var=LD_LIBRARY_PATH
15375   shlibpath_overrides_runpath=yes
15376   ;;
15377
15378 openbsd*)
15379   version_type=sunos
15380   sys_lib_dlsearch_path_spec="/usr/lib"
15381   need_lib_prefix=no
15382   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15383   case $host_os in
15384     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15385     *)                         need_version=no  ;;
15386   esac
15387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15388   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15389   shlibpath_var=LD_LIBRARY_PATH
15390   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15391     case $host_os in
15392       openbsd2.[89] | openbsd2.[89].*)
15393         shlibpath_overrides_runpath=no
15394         ;;
15395       *)
15396         shlibpath_overrides_runpath=yes
15397         ;;
15398       esac
15399   else
15400     shlibpath_overrides_runpath=yes
15401   fi
15402   ;;
15403
15404 os2*)
15405   libname_spec='$name'
15406   shrext_cmds=".dll"
15407   need_lib_prefix=no
15408   library_names_spec='$libname${shared_ext} $libname.a'
15409   dynamic_linker='OS/2 ld.exe'
15410   shlibpath_var=LIBPATH
15411   ;;
15412
15413 osf3* | osf4* | osf5*)
15414   version_type=osf
15415   need_lib_prefix=no
15416   need_version=no
15417   soname_spec='${libname}${release}${shared_ext}$major'
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419   shlibpath_var=LD_LIBRARY_PATH
15420   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15421   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15422   ;;
15423
15424 solaris*)
15425   version_type=linux
15426   need_lib_prefix=no
15427   need_version=no
15428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429   soname_spec='${libname}${release}${shared_ext}$major'
15430   shlibpath_var=LD_LIBRARY_PATH
15431   shlibpath_overrides_runpath=yes
15432   hardcode_into_libs=yes
15433   # ldd complains unless libraries are executable
15434   postinstall_cmds='chmod +x $lib'
15435   ;;
15436
15437 sunos4*)
15438   version_type=sunos
15439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15440   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15441   shlibpath_var=LD_LIBRARY_PATH
15442   shlibpath_overrides_runpath=yes
15443   if test "$with_gnu_ld" = yes; then
15444     need_lib_prefix=no
15445   fi
15446   need_version=yes
15447   ;;
15448
15449 sysv4 | sysv4.3*)
15450   version_type=linux
15451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452   soname_spec='${libname}${release}${shared_ext}$major'
15453   shlibpath_var=LD_LIBRARY_PATH
15454   case $host_vendor in
15455     sni)
15456       shlibpath_overrides_runpath=no
15457       need_lib_prefix=no
15458       export_dynamic_flag_spec='${wl}-Blargedynsym'
15459       runpath_var=LD_RUN_PATH
15460       ;;
15461     siemens)
15462       need_lib_prefix=no
15463       ;;
15464     motorola)
15465       need_lib_prefix=no
15466       need_version=no
15467       shlibpath_overrides_runpath=no
15468       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15469       ;;
15470   esac
15471   ;;
15472
15473 sysv4*MP*)
15474   if test -d /usr/nec ;then
15475     version_type=linux
15476     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15477     soname_spec='$libname${shared_ext}.$major'
15478     shlibpath_var=LD_LIBRARY_PATH
15479   fi
15480   ;;
15481
15482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15483   version_type=freebsd-elf
15484   need_lib_prefix=no
15485   need_version=no
15486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15487   soname_spec='${libname}${release}${shared_ext}$major'
15488   shlibpath_var=LD_LIBRARY_PATH
15489   hardcode_into_libs=yes
15490   if test "$with_gnu_ld" = yes; then
15491     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15492     shlibpath_overrides_runpath=no
15493   else
15494     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15495     shlibpath_overrides_runpath=yes
15496     case $host_os in
15497       sco3.2v5*)
15498         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15499         ;;
15500     esac
15501   fi
15502   sys_lib_dlsearch_path_spec='/usr/lib'
15503   ;;
15504
15505 uts4*)
15506   version_type=linux
15507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508   soname_spec='${libname}${release}${shared_ext}$major'
15509   shlibpath_var=LD_LIBRARY_PATH
15510   ;;
15511
15512 *)
15513   dynamic_linker=no
15514   ;;
15515 esac
15516 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15517 echo "${ECHO_T}$dynamic_linker" >&6; }
15518 test "$dynamic_linker" = no && can_build_shared=no
15519
15520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15521 if test "$GCC" = yes; then
15522   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15523 fi
15524
15525 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15527 hardcode_action_F77=
15528 if test -n "$hardcode_libdir_flag_spec_F77" || \
15529    test -n "$runpath_var_F77" || \
15530    test "X$hardcode_automatic_F77" = "Xyes" ; then
15531
15532   # We can hardcode non-existant directories.
15533   if test "$hardcode_direct_F77" != no &&
15534      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15535      # have to relink, otherwise we might link with an installed library
15536      # when we should be linking with a yet-to-be-installed one
15537      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15538      test "$hardcode_minus_L_F77" != no; then
15539     # Linking always hardcodes the temporary library directory.
15540     hardcode_action_F77=relink
15541   else
15542     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15543     hardcode_action_F77=immediate
15544   fi
15545 else
15546   # We cannot hardcode anything, or else we can only hardcode existing
15547   # directories.
15548   hardcode_action_F77=unsupported
15549 fi
15550 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15551 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15552
15553 if test "$hardcode_action_F77" = relink; then
15554   # Fast installation is not supported
15555   enable_fast_install=no
15556 elif test "$shlibpath_overrides_runpath" = yes ||
15557      test "$enable_shared" = no; then
15558   # Fast installation is not necessary
15559   enable_fast_install=needless
15560 fi
15561
15562
15563 # The else clause should only fire when bootstrapping the
15564 # libtool distribution, otherwise you forgot to ship ltmain.sh
15565 # with your package, and you will get complaints that there are
15566 # no rules to generate ltmain.sh.
15567 if test -f "$ltmain"; then
15568   # See if we are running on zsh, and set the options which allow our commands through
15569   # without removal of \ escapes.
15570   if test -n "${ZSH_VERSION+set}" ; then
15571     setopt NO_GLOB_SUBST
15572   fi
15573   # Now quote all the things that may contain metacharacters while being
15574   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15575   # variables and quote the copies for generation of the libtool script.
15576   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15577     SED SHELL STRIP \
15578     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15579     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15580     deplibs_check_method reload_flag reload_cmds need_locks \
15581     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15582     lt_cv_sys_global_symbol_to_c_name_address \
15583     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15584     old_postinstall_cmds old_postuninstall_cmds \
15585     compiler_F77 \
15586     CC_F77 \
15587     LD_F77 \
15588     lt_prog_compiler_wl_F77 \
15589     lt_prog_compiler_pic_F77 \
15590     lt_prog_compiler_static_F77 \
15591     lt_prog_compiler_no_builtin_flag_F77 \
15592     export_dynamic_flag_spec_F77 \
15593     thread_safe_flag_spec_F77 \
15594     whole_archive_flag_spec_F77 \
15595     enable_shared_with_static_runtimes_F77 \
15596     old_archive_cmds_F77 \
15597     old_archive_from_new_cmds_F77 \
15598     predep_objects_F77 \
15599     postdep_objects_F77 \
15600     predeps_F77 \
15601     postdeps_F77 \
15602     compiler_lib_search_path_F77 \
15603     archive_cmds_F77 \
15604     archive_expsym_cmds_F77 \
15605     postinstall_cmds_F77 \
15606     postuninstall_cmds_F77 \
15607     old_archive_from_expsyms_cmds_F77 \
15608     allow_undefined_flag_F77 \
15609     no_undefined_flag_F77 \
15610     export_symbols_cmds_F77 \
15611     hardcode_libdir_flag_spec_F77 \
15612     hardcode_libdir_flag_spec_ld_F77 \
15613     hardcode_libdir_separator_F77 \
15614     hardcode_automatic_F77 \
15615     module_cmds_F77 \
15616     module_expsym_cmds_F77 \
15617     lt_cv_prog_compiler_c_o_F77 \
15618     exclude_expsyms_F77 \
15619     include_expsyms_F77; do
15620
15621     case $var in
15622     old_archive_cmds_F77 | \
15623     old_archive_from_new_cmds_F77 | \
15624     archive_cmds_F77 | \
15625     archive_expsym_cmds_F77 | \
15626     module_cmds_F77 | \
15627     module_expsym_cmds_F77 | \
15628     old_archive_from_expsyms_cmds_F77 | \
15629     export_symbols_cmds_F77 | \
15630     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15631     postinstall_cmds | postuninstall_cmds | \
15632     old_postinstall_cmds | old_postuninstall_cmds | \
15633     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15634       # Double-quote double-evaled strings.
15635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15636       ;;
15637     *)
15638       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15639       ;;
15640     esac
15641   done
15642
15643   case $lt_echo in
15644   *'\$0 --fallback-echo"')
15645     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15646     ;;
15647   esac
15648
15649 cfgfile="$ofile"
15650
15651   cat <<__EOF__ >> "$cfgfile"
15652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15653
15654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15655
15656 # Shell to use when invoking shell scripts.
15657 SHELL=$lt_SHELL
15658
15659 # Whether or not to build shared libraries.
15660 build_libtool_libs=$enable_shared
15661
15662 # Whether or not to build static libraries.
15663 build_old_libs=$enable_static
15664
15665 # Whether or not to add -lc for building shared libraries.
15666 build_libtool_need_lc=$archive_cmds_need_lc_F77
15667
15668 # Whether or not to disallow shared libs when runtime libs are static
15669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15670
15671 # Whether or not to optimize for fast installation.
15672 fast_install=$enable_fast_install
15673
15674 # The host system.
15675 host_alias=$host_alias
15676 host=$host
15677 host_os=$host_os
15678
15679 # The build system.
15680 build_alias=$build_alias
15681 build=$build
15682 build_os=$build_os
15683
15684 # An echo program that does not interpret backslashes.
15685 echo=$lt_echo
15686
15687 # The archiver.
15688 AR=$lt_AR
15689 AR_FLAGS=$lt_AR_FLAGS
15690
15691 # A C compiler.
15692 LTCC=$lt_LTCC
15693
15694 # LTCC compiler flags.
15695 LTCFLAGS=$lt_LTCFLAGS
15696
15697 # A language-specific compiler.
15698 CC=$lt_compiler_F77
15699
15700 # Is the compiler the GNU C compiler?
15701 with_gcc=$GCC_F77
15702
15703 # An ERE matcher.
15704 EGREP=$lt_EGREP
15705
15706 # The linker used to build libraries.
15707 LD=$lt_LD_F77
15708
15709 # Whether we need hard or soft links.
15710 LN_S=$lt_LN_S
15711
15712 # A BSD-compatible nm program.
15713 NM=$lt_NM
15714
15715 # A symbol stripping program
15716 STRIP=$lt_STRIP
15717
15718 # Used to examine libraries when file_magic_cmd begins "file"
15719 MAGIC_CMD=$MAGIC_CMD
15720
15721 # Used on cygwin: DLL creation program.
15722 DLLTOOL="$DLLTOOL"
15723
15724 # Used on cygwin: object dumper.
15725 OBJDUMP="$OBJDUMP"
15726
15727 # Used on cygwin: assembler.
15728 AS="$AS"
15729
15730 # The name of the directory that contains temporary libtool files.
15731 objdir=$objdir
15732
15733 # How to create reloadable object files.
15734 reload_flag=$lt_reload_flag
15735 reload_cmds=$lt_reload_cmds
15736
15737 # How to pass a linker flag through the compiler.
15738 wl=$lt_lt_prog_compiler_wl_F77
15739
15740 # Object file suffix (normally "o").
15741 objext="$ac_objext"
15742
15743 # Old archive suffix (normally "a").
15744 libext="$libext"
15745
15746 # Shared library suffix (normally ".so").
15747 shrext_cmds='$shrext_cmds'
15748
15749 # Executable file suffix (normally "").
15750 exeext="$exeext"
15751
15752 # Additional compiler flags for building library objects.
15753 pic_flag=$lt_lt_prog_compiler_pic_F77
15754 pic_mode=$pic_mode
15755
15756 # What is the maximum length of a command?
15757 max_cmd_len=$lt_cv_sys_max_cmd_len
15758
15759 # Does compiler simultaneously support -c and -o options?
15760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15761
15762 # Must we lock files when doing compilation?
15763 need_locks=$lt_need_locks
15764
15765 # Do we need the lib prefix for modules?
15766 need_lib_prefix=$need_lib_prefix
15767
15768 # Do we need a version for libraries?
15769 need_version=$need_version
15770
15771 # Whether dlopen is supported.
15772 dlopen_support=$enable_dlopen
15773
15774 # Whether dlopen of programs is supported.
15775 dlopen_self=$enable_dlopen_self
15776
15777 # Whether dlopen of statically linked programs is supported.
15778 dlopen_self_static=$enable_dlopen_self_static
15779
15780 # Compiler flag to prevent dynamic linking.
15781 link_static_flag=$lt_lt_prog_compiler_static_F77
15782
15783 # Compiler flag to turn off builtin functions.
15784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15785
15786 # Compiler flag to allow reflexive dlopens.
15787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15788
15789 # Compiler flag to generate shared objects directly from archives.
15790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15791
15792 # Compiler flag to generate thread-safe objects.
15793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15794
15795 # Library versioning type.
15796 version_type=$version_type
15797
15798 # Format of library name prefix.
15799 libname_spec=$lt_libname_spec
15800
15801 # List of archive names.  First name is the real one, the rest are links.
15802 # The last name is the one that the linker finds with -lNAME.
15803 library_names_spec=$lt_library_names_spec
15804
15805 # The coded name of the library, if different from the real name.
15806 soname_spec=$lt_soname_spec
15807
15808 # Commands used to build and install an old-style archive.
15809 RANLIB=$lt_RANLIB
15810 old_archive_cmds=$lt_old_archive_cmds_F77
15811 old_postinstall_cmds=$lt_old_postinstall_cmds
15812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15813
15814 # Create an old-style archive from a shared archive.
15815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15816
15817 # Create a temporary old-style archive to link instead of a shared archive.
15818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15819
15820 # Commands used to build and install a shared archive.
15821 archive_cmds=$lt_archive_cmds_F77
15822 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15823 postinstall_cmds=$lt_postinstall_cmds
15824 postuninstall_cmds=$lt_postuninstall_cmds
15825
15826 # Commands used to build a loadable module (assumed same as above if empty)
15827 module_cmds=$lt_module_cmds_F77
15828 module_expsym_cmds=$lt_module_expsym_cmds_F77
15829
15830 # Commands to strip libraries.
15831 old_striplib=$lt_old_striplib
15832 striplib=$lt_striplib
15833
15834 # Dependencies to place before the objects being linked to create a
15835 # shared library.
15836 predep_objects=$lt_predep_objects_F77
15837
15838 # Dependencies to place after the objects being linked to create a
15839 # shared library.
15840 postdep_objects=$lt_postdep_objects_F77
15841
15842 # Dependencies to place before the objects being linked to create a
15843 # shared library.
15844 predeps=$lt_predeps_F77
15845
15846 # Dependencies to place after the objects being linked to create a
15847 # shared library.
15848 postdeps=$lt_postdeps_F77
15849
15850 # The library search path used internally by the compiler when linking
15851 # a shared library.
15852 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15853
15854 # Method to check whether dependent libraries are shared objects.
15855 deplibs_check_method=$lt_deplibs_check_method
15856
15857 # Command to use when deplibs_check_method == file_magic.
15858 file_magic_cmd=$lt_file_magic_cmd
15859
15860 # Flag that allows shared libraries with undefined symbols to be built.
15861 allow_undefined_flag=$lt_allow_undefined_flag_F77
15862
15863 # Flag that forces no undefined symbols.
15864 no_undefined_flag=$lt_no_undefined_flag_F77
15865
15866 # Commands used to finish a libtool library installation in a directory.
15867 finish_cmds=$lt_finish_cmds
15868
15869 # Same as above, but a single script fragment to be evaled but not shown.
15870 finish_eval=$lt_finish_eval
15871
15872 # Take the output of nm and produce a listing of raw symbols and C names.
15873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15874
15875 # Transform the output of nm in a proper C declaration
15876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15877
15878 # Transform the output of nm in a C name address pair
15879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15880
15881 # This is the shared library runtime path variable.
15882 runpath_var=$runpath_var
15883
15884 # This is the shared library path variable.
15885 shlibpath_var=$shlibpath_var
15886
15887 # Is shlibpath searched before the hard-coded library search path?
15888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15889
15890 # How to hardcode a shared library path into an executable.
15891 hardcode_action=$hardcode_action_F77
15892
15893 # Whether we should hardcode library paths into libraries.
15894 hardcode_into_libs=$hardcode_into_libs
15895
15896 # Flag to hardcode \$libdir into a binary during linking.
15897 # This must work even if \$libdir does not exist.
15898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15899
15900 # If ld is used when linking, flag to hardcode \$libdir into
15901 # a binary during linking. This must work even if \$libdir does
15902 # not exist.
15903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15904
15905 # Whether we need a single -rpath flag with a separated argument.
15906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15907
15908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15909 # resulting binary.
15910 hardcode_direct=$hardcode_direct_F77
15911
15912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15913 # resulting binary.
15914 hardcode_minus_L=$hardcode_minus_L_F77
15915
15916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15917 # the resulting binary.
15918 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15919
15920 # Set to yes if building a shared library automatically hardcodes DIR into the library
15921 # and all subsequent libraries and executables linked against it.
15922 hardcode_automatic=$hardcode_automatic_F77
15923
15924 # Variables whose values should be saved in libtool wrapper scripts and
15925 # restored at relink time.
15926 variables_saved_for_relink="$variables_saved_for_relink"
15927
15928 # Whether libtool must link a program against all its dependency libraries.
15929 link_all_deplibs=$link_all_deplibs_F77
15930
15931 # Compile-time system search path for libraries
15932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15933
15934 # Run-time system search path for libraries
15935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15936
15937 # Fix the shell variable \$srcfile for the compiler.
15938 fix_srcfile_path="$fix_srcfile_path_F77"
15939
15940 # Set to yes if exported symbols are required.
15941 always_export_symbols=$always_export_symbols_F77
15942
15943 # The commands to list exported symbols.
15944 export_symbols_cmds=$lt_export_symbols_cmds_F77
15945
15946 # The commands to extract the exported symbol list from a shared archive.
15947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15948
15949 # Symbols that should not be listed in the preloaded symbols.
15950 exclude_expsyms=$lt_exclude_expsyms_F77
15951
15952 # Symbols that must always be exported.
15953 include_expsyms=$lt_include_expsyms_F77
15954
15955 # ### END LIBTOOL TAG CONFIG: $tagname
15956
15957 __EOF__
15958
15959
15960 else
15961   # If there is no Makefile yet, we rely on a make rule to execute
15962   # `config.status --recheck' to rerun these tests and create the
15963   # libtool script then.
15964   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15965   if test -f "$ltmain_in"; then
15966     test -f Makefile && make "$ltmain"
15967   fi
15968 fi
15969
15970
15971 ac_ext=c
15972 ac_cpp='$CPP $CPPFLAGS'
15973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15976
15977 CC="$lt_save_CC"
15978
15979         else
15980           tagname=""
15981         fi
15982         ;;
15983
15984       GCJ)
15985         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15986
15987
15988 # Source file extension for Java test sources.
15989 ac_ext=java
15990
15991 # Object file extension for compiled Java test sources.
15992 objext=o
15993 objext_GCJ=$objext
15994
15995 # Code to be used in simple compile tests
15996 lt_simple_compile_test_code="class foo {}\n"
15997
15998 # Code to be used in simple link tests
15999 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16000
16001 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16002
16003 # If no C compiler was specified, use CC.
16004 LTCC=${LTCC-"$CC"}
16005
16006 # If no C compiler flags were specified, use CFLAGS.
16007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16008
16009 # Allow CC to be a program name with arguments.
16010 compiler=$CC
16011
16012
16013 # save warnings/boilerplate of simple test code
16014 ac_outfile=conftest.$ac_objext
16015 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16017 _lt_compiler_boilerplate=`cat conftest.err`
16018 $rm conftest*
16019
16020 ac_outfile=conftest.$ac_objext
16021 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16023 _lt_linker_boilerplate=`cat conftest.err`
16024 $rm conftest*
16025
16026
16027 # Allow CC to be a program name with arguments.
16028 lt_save_CC="$CC"
16029 CC=${GCJ-"gcj"}
16030 compiler=$CC
16031 compiler_GCJ=$CC
16032 for cc_temp in $compiler""; do
16033   case $cc_temp in
16034     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16035     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16036     \-*) ;;
16037     *) break;;
16038   esac
16039 done
16040 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16041
16042
16043 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16044 archive_cmds_need_lc_GCJ=no
16045
16046 old_archive_cmds_GCJ=$old_archive_cmds
16047
16048
16049 lt_prog_compiler_no_builtin_flag_GCJ=
16050
16051 if test "$GCC" = yes; then
16052   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16053
16054
16055 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16056 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16057 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16058   echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060   lt_cv_prog_compiler_rtti_exceptions=no
16061   ac_outfile=conftest.$ac_objext
16062    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16063    lt_compiler_flag="-fno-rtti -fno-exceptions"
16064    # Insert the option either (1) after the last *FLAGS variable, or
16065    # (2) before a word containing "conftest.", or (3) at the end.
16066    # Note that $ac_compile itself does not contain backslashes and begins
16067    # with a dollar sign (not a hyphen), so the echo should work correctly.
16068    # The option is referenced via a variable to avoid confusing sed.
16069    lt_compile=`echo "$ac_compile" | $SED \
16070    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16071    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16072    -e 's:$: $lt_compiler_flag:'`
16073    (eval echo "\"\$as_me:16073: $lt_compile\"" >&5)
16074    (eval "$lt_compile" 2>conftest.err)
16075    ac_status=$?
16076    cat conftest.err >&5
16077    echo "$as_me:16077: \$? = $ac_status" >&5
16078    if (exit $ac_status) && test -s "$ac_outfile"; then
16079      # The compiler can only warn and ignore the option if not recognized
16080      # So say no if there are warnings other than the usual output.
16081      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16082      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16083      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16084        lt_cv_prog_compiler_rtti_exceptions=yes
16085      fi
16086    fi
16087    $rm conftest*
16088
16089 fi
16090 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16091 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16092
16093 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16094     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16095 else
16096     :
16097 fi
16098
16099 fi
16100
16101 lt_prog_compiler_wl_GCJ=
16102 lt_prog_compiler_pic_GCJ=
16103 lt_prog_compiler_static_GCJ=
16104
16105 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16107
16108   if test "$GCC" = yes; then
16109     lt_prog_compiler_wl_GCJ='-Wl,'
16110     lt_prog_compiler_static_GCJ='-static'
16111
16112     case $host_os in
16113       aix*)
16114       # All AIX code is PIC.
16115       if test "$host_cpu" = ia64; then
16116         # AIX 5 now supports IA64 processor
16117         lt_prog_compiler_static_GCJ='-Bstatic'
16118       fi
16119       ;;
16120
16121     amigaos*)
16122       # FIXME: we need at least 68020 code to build shared libraries, but
16123       # adding the `-m68020' flag to GCC prevents building anything better,
16124       # like `-m68040'.
16125       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16126       ;;
16127
16128     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16129       # PIC is the default for these OSes.
16130       ;;
16131
16132     mingw* | pw32* | os2*)
16133       # This hack is so that the source file can tell whether it is being
16134       # built for inclusion in a dll (and should export symbols for example).
16135       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16136       ;;
16137
16138     darwin* | rhapsody*)
16139       # PIC is the default on this platform
16140       # Common symbols not allowed in MH_DYLIB files
16141       lt_prog_compiler_pic_GCJ='-fno-common'
16142       ;;
16143
16144     interix3*)
16145       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16146       # Instead, we relocate shared libraries at runtime.
16147       ;;
16148
16149     msdosdjgpp*)
16150       # Just because we use GCC doesn't mean we suddenly get shared libraries
16151       # on systems that don't support them.
16152       lt_prog_compiler_can_build_shared_GCJ=no
16153       enable_shared=no
16154       ;;
16155
16156     sysv4*MP*)
16157       if test -d /usr/nec; then
16158         lt_prog_compiler_pic_GCJ=-Kconform_pic
16159       fi
16160       ;;
16161
16162     hpux*)
16163       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16164       # not for PA HP-UX.
16165       case $host_cpu in
16166       hppa*64*|ia64*)
16167         # +Z the default
16168         ;;
16169       *)
16170         lt_prog_compiler_pic_GCJ='-fPIC'
16171         ;;
16172       esac
16173       ;;
16174
16175     *)
16176       lt_prog_compiler_pic_GCJ='-fPIC'
16177       ;;
16178     esac
16179   else
16180     # PORTME Check for flag to pass linker flags through the system compiler.
16181     case $host_os in
16182     aix*)
16183       lt_prog_compiler_wl_GCJ='-Wl,'
16184       if test "$host_cpu" = ia64; then
16185         # AIX 5 now supports IA64 processor
16186         lt_prog_compiler_static_GCJ='-Bstatic'
16187       else
16188         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16189       fi
16190       ;;
16191       darwin*)
16192         # PIC is the default on this platform
16193         # Common symbols not allowed in MH_DYLIB files
16194        case $cc_basename in
16195          xlc*)
16196          lt_prog_compiler_pic_GCJ='-qnocommon'
16197          lt_prog_compiler_wl_GCJ='-Wl,'
16198          ;;
16199        esac
16200        ;;
16201
16202     mingw* | pw32* | os2*)
16203       # This hack is so that the source file can tell whether it is being
16204       # built for inclusion in a dll (and should export symbols for example).
16205       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16206       ;;
16207
16208     hpux9* | hpux10* | hpux11*)
16209       lt_prog_compiler_wl_GCJ='-Wl,'
16210       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16211       # not for PA HP-UX.
16212       case $host_cpu in
16213       hppa*64*|ia64*)
16214         # +Z the default
16215         ;;
16216       *)
16217         lt_prog_compiler_pic_GCJ='+Z'
16218         ;;
16219       esac
16220       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16221       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16222       ;;
16223
16224     irix5* | irix6* | nonstopux*)
16225       lt_prog_compiler_wl_GCJ='-Wl,'
16226       # PIC (with -KPIC) is the default.
16227       lt_prog_compiler_static_GCJ='-non_shared'
16228       ;;
16229
16230     newsos6)
16231       lt_prog_compiler_pic_GCJ='-KPIC'
16232       lt_prog_compiler_static_GCJ='-Bstatic'
16233       ;;
16234
16235     linux* | k*bsd*-gnu)
16236       case $cc_basename in
16237       icc* | ecc*)
16238         lt_prog_compiler_wl_GCJ='-Wl,'
16239         lt_prog_compiler_pic_GCJ='-KPIC'
16240         lt_prog_compiler_static_GCJ='-static'
16241         ;;
16242       pgcc* | pgf77* | pgf90* | pgf95*)
16243         # Portland Group compilers (*not* the Pentium gcc compiler,
16244         # which looks to be a dead project)
16245         lt_prog_compiler_wl_GCJ='-Wl,'
16246         lt_prog_compiler_pic_GCJ='-fpic'
16247         lt_prog_compiler_static_GCJ='-Bstatic'
16248         ;;
16249       ccc*)
16250         lt_prog_compiler_wl_GCJ='-Wl,'
16251         # All Alpha code is PIC.
16252         lt_prog_compiler_static_GCJ='-non_shared'
16253         ;;
16254       esac
16255       ;;
16256
16257     osf3* | osf4* | osf5*)
16258       lt_prog_compiler_wl_GCJ='-Wl,'
16259       # All OSF/1 code is PIC.
16260       lt_prog_compiler_static_GCJ='-non_shared'
16261       ;;
16262
16263     solaris*)
16264       lt_prog_compiler_pic_GCJ='-KPIC'
16265       lt_prog_compiler_static_GCJ='-Bstatic'
16266       case $cc_basename in
16267       f77* | f90* | f95*)
16268         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16269       *)
16270         lt_prog_compiler_wl_GCJ='-Wl,';;
16271       esac
16272       ;;
16273
16274     sunos4*)
16275       lt_prog_compiler_wl_GCJ='-Qoption ld '
16276       lt_prog_compiler_pic_GCJ='-PIC'
16277       lt_prog_compiler_static_GCJ='-Bstatic'
16278       ;;
16279
16280     sysv4 | sysv4.2uw2* | sysv4.3*)
16281       lt_prog_compiler_wl_GCJ='-Wl,'
16282       lt_prog_compiler_pic_GCJ='-KPIC'
16283       lt_prog_compiler_static_GCJ='-Bstatic'
16284       ;;
16285
16286     sysv4*MP*)
16287       if test -d /usr/nec ;then
16288         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16289         lt_prog_compiler_static_GCJ='-Bstatic'
16290       fi
16291       ;;
16292
16293     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16294       lt_prog_compiler_wl_GCJ='-Wl,'
16295       lt_prog_compiler_pic_GCJ='-KPIC'
16296       lt_prog_compiler_static_GCJ='-Bstatic'
16297       ;;
16298
16299     unicos*)
16300       lt_prog_compiler_wl_GCJ='-Wl,'
16301       lt_prog_compiler_can_build_shared_GCJ=no
16302       ;;
16303
16304     uts4*)
16305       lt_prog_compiler_pic_GCJ='-pic'
16306       lt_prog_compiler_static_GCJ='-Bstatic'
16307       ;;
16308
16309     *)
16310       lt_prog_compiler_can_build_shared_GCJ=no
16311       ;;
16312     esac
16313   fi
16314
16315 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16316 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16317
16318 #
16319 # Check to make sure the PIC flag actually works.
16320 #
16321 if test -n "$lt_prog_compiler_pic_GCJ"; then
16322
16323 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16324 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16325 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16326   echo $ECHO_N "(cached) $ECHO_C" >&6
16327 else
16328   lt_prog_compiler_pic_works_GCJ=no
16329   ac_outfile=conftest.$ac_objext
16330    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16331    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16332    # Insert the option either (1) after the last *FLAGS variable, or
16333    # (2) before a word containing "conftest.", or (3) at the end.
16334    # Note that $ac_compile itself does not contain backslashes and begins
16335    # with a dollar sign (not a hyphen), so the echo should work correctly.
16336    # The option is referenced via a variable to avoid confusing sed.
16337    lt_compile=`echo "$ac_compile" | $SED \
16338    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16340    -e 's:$: $lt_compiler_flag:'`
16341    (eval echo "\"\$as_me:16341: $lt_compile\"" >&5)
16342    (eval "$lt_compile" 2>conftest.err)
16343    ac_status=$?
16344    cat conftest.err >&5
16345    echo "$as_me:16345: \$? = $ac_status" >&5
16346    if (exit $ac_status) && test -s "$ac_outfile"; then
16347      # The compiler can only warn and ignore the option if not recognized
16348      # So say no if there are warnings other than the usual output.
16349      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16350      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16351      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16352        lt_prog_compiler_pic_works_GCJ=yes
16353      fi
16354    fi
16355    $rm conftest*
16356
16357 fi
16358 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16359 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16360
16361 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16362     case $lt_prog_compiler_pic_GCJ in
16363      "" | " "*) ;;
16364      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16365      esac
16366 else
16367     lt_prog_compiler_pic_GCJ=
16368      lt_prog_compiler_can_build_shared_GCJ=no
16369 fi
16370
16371 fi
16372 case $host_os in
16373   # For platforms which do not support PIC, -DPIC is meaningless:
16374   *djgpp*)
16375     lt_prog_compiler_pic_GCJ=
16376     ;;
16377   *)
16378     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16379     ;;
16380 esac
16381
16382 #
16383 # Check to make sure the static flag actually works.
16384 #
16385 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16386 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16387 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16388 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16389   echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391   lt_prog_compiler_static_works_GCJ=no
16392    save_LDFLAGS="$LDFLAGS"
16393    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16394    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16395    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16396      # The linker can only warn and ignore the option if not recognized
16397      # So say no if there are warnings
16398      if test -s conftest.err; then
16399        # Append any errors to the config.log.
16400        cat conftest.err 1>&5
16401        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16402        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16403        if diff conftest.exp conftest.er2 >/dev/null; then
16404          lt_prog_compiler_static_works_GCJ=yes
16405        fi
16406      else
16407        lt_prog_compiler_static_works_GCJ=yes
16408      fi
16409    fi
16410    $rm conftest*
16411    LDFLAGS="$save_LDFLAGS"
16412
16413 fi
16414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16415 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16416
16417 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16418     :
16419 else
16420     lt_prog_compiler_static_GCJ=
16421 fi
16422
16423
16424 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16425 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16426 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   lt_cv_prog_compiler_c_o_GCJ=no
16430    $rm -r conftest 2>/dev/null
16431    mkdir conftest
16432    cd conftest
16433    mkdir out
16434    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16435
16436    lt_compiler_flag="-o out/conftest2.$ac_objext"
16437    # Insert the option either (1) after the last *FLAGS variable, or
16438    # (2) before a word containing "conftest.", or (3) at the end.
16439    # Note that $ac_compile itself does not contain backslashes and begins
16440    # with a dollar sign (not a hyphen), so the echo should work correctly.
16441    lt_compile=`echo "$ac_compile" | $SED \
16442    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16443    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16444    -e 's:$: $lt_compiler_flag:'`
16445    (eval echo "\"\$as_me:16445: $lt_compile\"" >&5)
16446    (eval "$lt_compile" 2>out/conftest.err)
16447    ac_status=$?
16448    cat out/conftest.err >&5
16449    echo "$as_me:16449: \$? = $ac_status" >&5
16450    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16451    then
16452      # The compiler can only warn and ignore the option if not recognized
16453      # So say no if there are warnings
16454      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16455      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16456      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16457        lt_cv_prog_compiler_c_o_GCJ=yes
16458      fi
16459    fi
16460    chmod u+w . 2>&5
16461    $rm conftest*
16462    # SGI C++ compiler will create directory out/ii_files/ for
16463    # template instantiation
16464    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16465    $rm out/* && rmdir out
16466    cd ..
16467    rmdir conftest
16468    $rm conftest*
16469
16470 fi
16471 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16472 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16473
16474
16475 hard_links="nottested"
16476 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16477   # do not overwrite the value of need_locks provided by the user
16478   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16479 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16480   hard_links=yes
16481   $rm conftest*
16482   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16483   touch conftest.a
16484   ln conftest.a conftest.b 2>&5 || hard_links=no
16485   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16486   { echo "$as_me:$LINENO: result: $hard_links" >&5
16487 echo "${ECHO_T}$hard_links" >&6; }
16488   if test "$hard_links" = no; then
16489     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16490 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16491     need_locks=warn
16492   fi
16493 else
16494   need_locks=no
16495 fi
16496
16497 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16498 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16499
16500   runpath_var=
16501   allow_undefined_flag_GCJ=
16502   enable_shared_with_static_runtimes_GCJ=no
16503   archive_cmds_GCJ=
16504   archive_expsym_cmds_GCJ=
16505   old_archive_From_new_cmds_GCJ=
16506   old_archive_from_expsyms_cmds_GCJ=
16507   export_dynamic_flag_spec_GCJ=
16508   whole_archive_flag_spec_GCJ=
16509   thread_safe_flag_spec_GCJ=
16510   hardcode_libdir_flag_spec_GCJ=
16511   hardcode_libdir_flag_spec_ld_GCJ=
16512   hardcode_libdir_separator_GCJ=
16513   hardcode_direct_GCJ=no
16514   hardcode_minus_L_GCJ=no
16515   hardcode_shlibpath_var_GCJ=unsupported
16516   link_all_deplibs_GCJ=unknown
16517   hardcode_automatic_GCJ=no
16518   module_cmds_GCJ=
16519   module_expsym_cmds_GCJ=
16520   always_export_symbols_GCJ=no
16521   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16522   # include_expsyms should be a list of space-separated symbols to be *always*
16523   # included in the symbol list
16524   include_expsyms_GCJ=
16525   # exclude_expsyms can be an extended regexp of symbols to exclude
16526   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16527   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16528   # as well as any symbol that contains `d'.
16529   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16530   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16531   # platforms (ab)use it in PIC code, but their linkers get confused if
16532   # the symbol is explicitly referenced.  Since portable code cannot
16533   # rely on this symbol name, it's probably fine to never include it in
16534   # preloaded symbol tables.
16535   extract_expsyms_cmds=
16536   # Just being paranoid about ensuring that cc_basename is set.
16537   for cc_temp in $compiler""; do
16538   case $cc_temp in
16539     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16540     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16541     \-*) ;;
16542     *) break;;
16543   esac
16544 done
16545 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16546
16547   case $host_os in
16548   cygwin* | mingw* | pw32*)
16549     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16550     # When not using gcc, we currently assume that we are using
16551     # Microsoft Visual C++.
16552     if test "$GCC" != yes; then
16553       with_gnu_ld=no
16554     fi
16555     ;;
16556   interix*)
16557     # we just hope/assume this is gcc and not c89 (= MSVC++)
16558     with_gnu_ld=yes
16559     ;;
16560   openbsd*)
16561     with_gnu_ld=no
16562     ;;
16563   esac
16564
16565   ld_shlibs_GCJ=yes
16566   if test "$with_gnu_ld" = yes; then
16567     # If archive_cmds runs LD, not CC, wlarc should be empty
16568     wlarc='${wl}'
16569
16570     # Set some defaults for GNU ld with shared library support. These
16571     # are reset later if shared libraries are not supported. Putting them
16572     # here allows them to be overridden if necessary.
16573     runpath_var=LD_RUN_PATH
16574     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16575     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16576     # ancient GNU ld didn't support --whole-archive et. al.
16577     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16578         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16579       else
16580         whole_archive_flag_spec_GCJ=
16581     fi
16582     supports_anon_versioning=no
16583     case `$LD -v 2>/dev/null` in
16584       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16585       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16586       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16587       *\ 2.11.*) ;; # other 2.11 versions
16588       *) supports_anon_versioning=yes ;;
16589     esac
16590
16591     # See if GNU ld supports shared libraries.
16592     case $host_os in
16593     aix3* | aix4* | aix5*)
16594       # On AIX/PPC, the GNU linker is very broken
16595       if test "$host_cpu" != ia64; then
16596         ld_shlibs_GCJ=no
16597         cat <<EOF 1>&2
16598
16599 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16600 *** to be unable to reliably create shared libraries on AIX.
16601 *** Therefore, libtool is disabling shared libraries support.  If you
16602 *** really care for shared libraries, you may want to modify your PATH
16603 *** so that a non-GNU linker is found, and then restart.
16604
16605 EOF
16606       fi
16607       ;;
16608
16609     amigaos*)
16610       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)'
16611       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16612       hardcode_minus_L_GCJ=yes
16613
16614       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16615       # that the semantics of dynamic libraries on AmigaOS, at least up
16616       # to version 4, is to share data among multiple programs linked
16617       # with the same dynamic library.  Since this doesn't match the
16618       # behavior of shared libraries on other platforms, we can't use
16619       # them.
16620       ld_shlibs_GCJ=no
16621       ;;
16622
16623     beos*)
16624       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16625         allow_undefined_flag_GCJ=unsupported
16626         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16627         # support --undefined.  This deserves some investigation.  FIXME
16628         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16629       else
16630         ld_shlibs_GCJ=no
16631       fi
16632       ;;
16633
16634     cygwin* | mingw* | pw32*)
16635       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16636       # as there is no search path for DLLs.
16637       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16638       allow_undefined_flag_GCJ=unsupported
16639       always_export_symbols_GCJ=no
16640       enable_shared_with_static_runtimes_GCJ=yes
16641       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16642
16643       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16644         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16645         # If the export-symbols file already is a .def file (1st line
16646         # is EXPORTS), use it as is; otherwise, prepend...
16647         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16648           cp $export_symbols $output_objdir/$soname.def;
16649         else
16650           echo EXPORTS > $output_objdir/$soname.def;
16651           cat $export_symbols >> $output_objdir/$soname.def;
16652         fi~
16653         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16654       else
16655         ld_shlibs_GCJ=no
16656       fi
16657       ;;
16658
16659     interix3*)
16660       hardcode_direct_GCJ=no
16661       hardcode_shlibpath_var_GCJ=no
16662       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16663       export_dynamic_flag_spec_GCJ='${wl}-E'
16664       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16665       # Instead, shared libraries are loaded at an image base (0x10000000 by
16666       # default) and relocated if they conflict, which is a slow very memory
16667       # consuming and fragmenting process.  To avoid this, we pick a random,
16668       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16669       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16670       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'
16671       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'
16672       ;;
16673
16674     linux* | k*bsd*-gnu)
16675       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16676         tmp_addflag=
16677         case $cc_basename,$host_cpu in
16678         pgcc*)                          # Portland Group C compiler
16679           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'
16680           tmp_addflag=' $pic_flag'
16681           ;;
16682         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16683           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'
16684           tmp_addflag=' $pic_flag -Mnomain' ;;
16685         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16686           tmp_addflag=' -i_dynamic' ;;
16687         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16688           tmp_addflag=' -i_dynamic -nofor_main' ;;
16689         ifc* | ifort*)                  # Intel Fortran compiler
16690           tmp_addflag=' -nofor_main' ;;
16691         esac
16692         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16693
16694         if test $supports_anon_versioning = yes; then
16695           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16696   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16697   $echo "local: *; };" >> $output_objdir/$libname.ver~
16698           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16699         fi
16700         link_all_deplibs_GCJ=no
16701       else
16702         ld_shlibs_GCJ=no
16703       fi
16704       ;;
16705
16706     netbsd* | netbsdelf*-gnu)
16707       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16708         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16709         wlarc=
16710       else
16711         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16712         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16713       fi
16714       ;;
16715
16716     solaris*)
16717       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16718         ld_shlibs_GCJ=no
16719         cat <<EOF 1>&2
16720
16721 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16722 *** create shared libraries on Solaris systems.  Therefore, libtool
16723 *** is disabling shared libraries support.  We urge you to upgrade GNU
16724 *** binutils to release 2.9.1 or newer.  Another option is to modify
16725 *** your PATH or compiler configuration so that the native linker is
16726 *** used, and then restart.
16727
16728 EOF
16729       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16730         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16731         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16732       else
16733         ld_shlibs_GCJ=no
16734       fi
16735       ;;
16736
16737     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16738       case `$LD -v 2>&1` in
16739         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16740         ld_shlibs_GCJ=no
16741         cat <<_LT_EOF 1>&2
16742
16743 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16744 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16745 *** is disabling shared libraries support.  We urge you to upgrade GNU
16746 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16747 *** your PATH or compiler configuration so that the native linker is
16748 *** used, and then restart.
16749
16750 _LT_EOF
16751         ;;
16752         *)
16753           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16754             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16755             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16756             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16757           else
16758             ld_shlibs_GCJ=no
16759           fi
16760         ;;
16761       esac
16762       ;;
16763
16764     sunos4*)
16765       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16766       wlarc=
16767       hardcode_direct_GCJ=yes
16768       hardcode_shlibpath_var_GCJ=no
16769       ;;
16770
16771     *)
16772       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16773         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16774         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16775       else
16776         ld_shlibs_GCJ=no
16777       fi
16778       ;;
16779     esac
16780
16781     if test "$ld_shlibs_GCJ" = no; then
16782       runpath_var=
16783       hardcode_libdir_flag_spec_GCJ=
16784       export_dynamic_flag_spec_GCJ=
16785       whole_archive_flag_spec_GCJ=
16786     fi
16787   else
16788     # PORTME fill in a description of your system's linker (not GNU ld)
16789     case $host_os in
16790     aix3*)
16791       allow_undefined_flag_GCJ=unsupported
16792       always_export_symbols_GCJ=yes
16793       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'
16794       # Note: this linker hardcodes the directories in LIBPATH if there
16795       # are no directories specified by -L.
16796       hardcode_minus_L_GCJ=yes
16797       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16798         # Neither direct hardcoding nor static linking is supported with a
16799         # broken collect2.
16800         hardcode_direct_GCJ=unsupported
16801       fi
16802       ;;
16803
16804     aix4* | aix5*)
16805       if test "$host_cpu" = ia64; then
16806         # On IA64, the linker does run time linking by default, so we don't
16807         # have to do anything special.
16808         aix_use_runtimelinking=no
16809         exp_sym_flag='-Bexport'
16810         no_entry_flag=""
16811       else
16812         # If we're using GNU nm, then we don't want the "-C" option.
16813         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16814         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16815           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'
16816         else
16817           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'
16818         fi
16819         aix_use_runtimelinking=no
16820
16821         # Test if we are trying to use run time linking or normal
16822         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16823         # need to do runtime linking.
16824         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16825           for ld_flag in $LDFLAGS; do
16826           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16827             aix_use_runtimelinking=yes
16828             break
16829           fi
16830           done
16831           ;;
16832         esac
16833
16834         exp_sym_flag='-bexport'
16835         no_entry_flag='-bnoentry'
16836       fi
16837
16838       # When large executables or shared objects are built, AIX ld can
16839       # have problems creating the table of contents.  If linking a library
16840       # or program results in "error TOC overflow" add -mminimal-toc to
16841       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16842       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16843
16844       archive_cmds_GCJ=''
16845       hardcode_direct_GCJ=yes
16846       hardcode_libdir_separator_GCJ=':'
16847       link_all_deplibs_GCJ=yes
16848
16849       if test "$GCC" = yes; then
16850         case $host_os in aix4.[012]|aix4.[012].*)
16851         # We only want to do this on AIX 4.2 and lower, the check
16852         # below for broken collect2 doesn't work under 4.3+
16853           collect2name=`${CC} -print-prog-name=collect2`
16854           if test -f "$collect2name" && \
16855            strings "$collect2name" | grep resolve_lib_name >/dev/null
16856           then
16857           # We have reworked collect2
16858           hardcode_direct_GCJ=yes
16859           else
16860           # We have old collect2
16861           hardcode_direct_GCJ=unsupported
16862           # It fails to find uninstalled libraries when the uninstalled
16863           # path is not listed in the libpath.  Setting hardcode_minus_L
16864           # to unsupported forces relinking
16865           hardcode_minus_L_GCJ=yes
16866           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867           hardcode_libdir_separator_GCJ=
16868           fi
16869           ;;
16870         esac
16871         shared_flag='-shared'
16872         if test "$aix_use_runtimelinking" = yes; then
16873           shared_flag="$shared_flag "'${wl}-G'
16874         fi
16875       else
16876         # not using gcc
16877         if test "$host_cpu" = ia64; then
16878         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16879         # chokes on -Wl,-G. The following line is correct:
16880           shared_flag='-G'
16881         else
16882           if test "$aix_use_runtimelinking" = yes; then
16883             shared_flag='${wl}-G'
16884           else
16885             shared_flag='${wl}-bM:SRE'
16886           fi
16887         fi
16888       fi
16889
16890       # It seems that -bexpall does not export symbols beginning with
16891       # underscore (_), so it is better to generate a list of symbols to export.
16892       always_export_symbols_GCJ=yes
16893       if test "$aix_use_runtimelinking" = yes; then
16894         # Warning - without using the other runtime loading flags (-brtl),
16895         # -berok will link without error, but may produce a broken library.
16896         allow_undefined_flag_GCJ='-berok'
16897        # Determine the default libpath from the value encoded in an empty executable.
16898        cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904
16905 int
16906 main ()
16907 {
16908
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (ac_try="$ac_link"
16915 case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_link") 2>conftest.er1
16921   ac_status=$?
16922   grep -v '^ *+' conftest.er1 >conftest.err
16923   rm -f conftest.er1
16924   cat conftest.err >&5
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } && {
16927          test -z "$ac_c_werror_flag" ||
16928          test ! -s conftest.err
16929        } && test -s conftest$ac_exeext &&
16930        $as_test_x conftest$ac_exeext; then
16931
16932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16933 }'`
16934 # Check for a 64-bit object if we didn't find anything.
16935 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16936 }'`; fi
16937 else
16938   echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16940
16941
16942 fi
16943
16944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16945       conftest$ac_exeext conftest.$ac_ext
16946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16947
16948        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16949         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"
16950        else
16951         if test "$host_cpu" = ia64; then
16952           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16953           allow_undefined_flag_GCJ="-z nodefs"
16954           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"
16955         else
16956          # Determine the default libpath from the value encoded in an empty executable.
16957          cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963
16964 int
16965 main ()
16966 {
16967
16968   ;
16969   return 0;
16970 }
16971 _ACEOF
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (ac_try="$ac_link"
16974 case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979   (eval "$ac_link") 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } && {
16986          test -z "$ac_c_werror_flag" ||
16987          test ! -s conftest.err
16988        } && test -s conftest$ac_exeext &&
16989        $as_test_x conftest$ac_exeext; then
16990
16991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16992 }'`
16993 # Check for a 64-bit object if we didn't find anything.
16994 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16995 }'`; fi
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000
17001 fi
17002
17003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17004       conftest$ac_exeext conftest.$ac_ext
17005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17006
17007          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17008           # Warning - without using the other run time loading flags,
17009           # -berok will link without error, but may produce a broken library.
17010           no_undefined_flag_GCJ=' ${wl}-bernotok'
17011           allow_undefined_flag_GCJ=' ${wl}-berok'
17012           # Exported symbols can be pulled into shared objects from archives
17013           whole_archive_flag_spec_GCJ='$convenience'
17014           archive_cmds_need_lc_GCJ=yes
17015           # This is similar to how AIX traditionally builds its shared libraries.
17016           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'
17017         fi
17018       fi
17019       ;;
17020
17021     amigaos*)
17022       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)'
17023       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17024       hardcode_minus_L_GCJ=yes
17025       # see comment about different semantics on the GNU ld section
17026       ld_shlibs_GCJ=no
17027       ;;
17028
17029     bsdi[45]*)
17030       export_dynamic_flag_spec_GCJ=-rdynamic
17031       ;;
17032
17033     cygwin* | mingw* | pw32*)
17034       # When not using gcc, we currently assume that we are using
17035       # Microsoft Visual C++.
17036       # hardcode_libdir_flag_spec is actually meaningless, as there is
17037       # no search path for DLLs.
17038       hardcode_libdir_flag_spec_GCJ=' '
17039       allow_undefined_flag_GCJ=unsupported
17040       # Tell ltmain to make .lib files, not .a files.
17041       libext=lib
17042       # Tell ltmain to make .dll files, not .so files.
17043       shrext_cmds=".dll"
17044       # FIXME: Setting linknames here is a bad hack.
17045       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17046       # The linker will automatically build a .lib file if we build a DLL.
17047       old_archive_From_new_cmds_GCJ='true'
17048       # FIXME: Should let the user specify the lib program.
17049       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17050       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17051       enable_shared_with_static_runtimes_GCJ=yes
17052       ;;
17053
17054     darwin* | rhapsody*)
17055       case $host_os in
17056         rhapsody* | darwin1.[012])
17057          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17058          ;;
17059        *) # Darwin 1.3 on
17060          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17061            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17062          else
17063            case ${MACOSX_DEPLOYMENT_TARGET} in
17064              10.[012])
17065                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17066                ;;
17067              10.*)
17068                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17069                ;;
17070            esac
17071          fi
17072          ;;
17073       esac
17074       archive_cmds_need_lc_GCJ=no
17075       hardcode_direct_GCJ=no
17076       hardcode_automatic_GCJ=yes
17077       hardcode_shlibpath_var_GCJ=unsupported
17078       whole_archive_flag_spec_GCJ=''
17079       link_all_deplibs_GCJ=yes
17080     if test "$GCC" = yes ; then
17081         output_verbose_link_cmd='echo'
17082         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17083       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17084       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17085       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}'
17086       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}'
17087     else
17088       case $cc_basename in
17089         xlc*)
17090          output_verbose_link_cmd='echo'
17091          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17092          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17093           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17094          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17095           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}'
17096           ;;
17097        *)
17098          ld_shlibs_GCJ=no
17099           ;;
17100       esac
17101     fi
17102       ;;
17103
17104     dgux*)
17105       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17107       hardcode_shlibpath_var_GCJ=no
17108       ;;
17109
17110     freebsd1*)
17111       ld_shlibs_GCJ=no
17112       ;;
17113
17114     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17115     # support.  Future versions do this automatically, but an explicit c++rt0.o
17116     # does not break anything, and helps significantly (at the cost of a little
17117     # extra space).
17118     freebsd2.2*)
17119       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17120       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121       hardcode_direct_GCJ=yes
17122       hardcode_shlibpath_var_GCJ=no
17123       ;;
17124
17125     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17126     freebsd2*)
17127       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17128       hardcode_direct_GCJ=yes
17129       hardcode_minus_L_GCJ=yes
17130       hardcode_shlibpath_var_GCJ=no
17131       ;;
17132
17133     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17134     freebsd* | dragonfly*)
17135       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17136       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17137       hardcode_direct_GCJ=yes
17138       hardcode_shlibpath_var_GCJ=no
17139       ;;
17140
17141     hpux9*)
17142       if test "$GCC" = yes; then
17143         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'
17144       else
17145         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'
17146       fi
17147       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17148       hardcode_libdir_separator_GCJ=:
17149       hardcode_direct_GCJ=yes
17150
17151       # hardcode_minus_L: Not really in the search PATH,
17152       # but as the default location of the library.
17153       hardcode_minus_L_GCJ=yes
17154       export_dynamic_flag_spec_GCJ='${wl}-E'
17155       ;;
17156
17157     hpux10*)
17158       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17159         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17160       else
17161         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17162       fi
17163       if test "$with_gnu_ld" = no; then
17164         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17165         hardcode_libdir_separator_GCJ=:
17166
17167         hardcode_direct_GCJ=yes
17168         export_dynamic_flag_spec_GCJ='${wl}-E'
17169
17170         # hardcode_minus_L: Not really in the search PATH,
17171         # but as the default location of the library.
17172         hardcode_minus_L_GCJ=yes
17173       fi
17174       ;;
17175
17176     hpux11*)
17177       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17178         case $host_cpu in
17179         hppa*64*)
17180           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17181           ;;
17182         ia64*)
17183           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17184           ;;
17185         *)
17186           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17187           ;;
17188         esac
17189       else
17190         case $host_cpu in
17191         hppa*64*)
17192           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17193           ;;
17194         ia64*)
17195           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17196           ;;
17197         *)
17198           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17199           ;;
17200         esac
17201       fi
17202       if test "$with_gnu_ld" = no; then
17203         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17204         hardcode_libdir_separator_GCJ=:
17205
17206         case $host_cpu in
17207         hppa*64*|ia64*)
17208           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17209           hardcode_direct_GCJ=no
17210           hardcode_shlibpath_var_GCJ=no
17211           ;;
17212         *)
17213           hardcode_direct_GCJ=yes
17214           export_dynamic_flag_spec_GCJ='${wl}-E'
17215
17216           # hardcode_minus_L: Not really in the search PATH,
17217           # but as the default location of the library.
17218           hardcode_minus_L_GCJ=yes
17219           ;;
17220         esac
17221       fi
17222       ;;
17223
17224     irix5* | irix6* | nonstopux*)
17225       if test "$GCC" = yes; then
17226         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'
17227       else
17228         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'
17229         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17230       fi
17231       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17232       hardcode_libdir_separator_GCJ=:
17233       link_all_deplibs_GCJ=yes
17234       ;;
17235
17236     netbsd* | netbsdelf*-gnu)
17237       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17238         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17239       else
17240         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17241       fi
17242       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17243       hardcode_direct_GCJ=yes
17244       hardcode_shlibpath_var_GCJ=no
17245       ;;
17246
17247     newsos6)
17248       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17249       hardcode_direct_GCJ=yes
17250       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17251       hardcode_libdir_separator_GCJ=:
17252       hardcode_shlibpath_var_GCJ=no
17253       ;;
17254
17255     openbsd*)
17256       hardcode_direct_GCJ=yes
17257       hardcode_shlibpath_var_GCJ=no
17258       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17259         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17260         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17261         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17262         export_dynamic_flag_spec_GCJ='${wl}-E'
17263       else
17264        case $host_os in
17265          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17266            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17267            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17268            ;;
17269          *)
17270            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17271            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17272            ;;
17273        esac
17274       fi
17275       ;;
17276
17277     os2*)
17278       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279       hardcode_minus_L_GCJ=yes
17280       allow_undefined_flag_GCJ=unsupported
17281       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'
17282       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17283       ;;
17284
17285     osf3*)
17286       if test "$GCC" = yes; then
17287         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17288         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'
17289       else
17290         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17291         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'
17292       fi
17293       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17294       hardcode_libdir_separator_GCJ=:
17295       ;;
17296
17297     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17298       if test "$GCC" = yes; then
17299         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17300         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'
17301         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17302       else
17303         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17304         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'
17305         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~
17306         $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'
17307
17308         # Both c and cxx compiler support -rpath directly
17309         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17310       fi
17311       hardcode_libdir_separator_GCJ=:
17312       ;;
17313
17314     solaris*)
17315       no_undefined_flag_GCJ=' -z text'
17316       if test "$GCC" = yes; then
17317         wlarc='${wl}'
17318         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17319         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17320           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17321       else
17322         wlarc=''
17323         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17324         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17325         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17326       fi
17327       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17328       hardcode_shlibpath_var_GCJ=no
17329       case $host_os in
17330       solaris2.[0-5] | solaris2.[0-5].*) ;;
17331       *)
17332         # The compiler driver will combine linker options so we
17333         # cannot just pass the convience library names through
17334         # without $wl, iff we do not link with $LD.
17335         # Luckily, gcc supports the same syntax we need for Sun Studio.
17336         # Supported since Solaris 2.6 (maybe 2.5.1?)
17337         case $wlarc in
17338         '')
17339           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17340         *)
17341           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17342         esac ;;
17343       esac
17344       link_all_deplibs_GCJ=yes
17345       ;;
17346
17347     sunos4*)
17348       if test "x$host_vendor" = xsequent; then
17349         # Use $CC to link under sequent, because it throws in some extra .o
17350         # files that make .init and .fini sections work.
17351         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17352       else
17353         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17354       fi
17355       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17356       hardcode_direct_GCJ=yes
17357       hardcode_minus_L_GCJ=yes
17358       hardcode_shlibpath_var_GCJ=no
17359       ;;
17360
17361     sysv4)
17362       case $host_vendor in
17363         sni)
17364           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17365           hardcode_direct_GCJ=yes # is this really true???
17366         ;;
17367         siemens)
17368           ## LD is ld it makes a PLAMLIB
17369           ## CC just makes a GrossModule.
17370           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17371           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17372           hardcode_direct_GCJ=no
17373         ;;
17374         motorola)
17375           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17376           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17377         ;;
17378       esac
17379       runpath_var='LD_RUN_PATH'
17380       hardcode_shlibpath_var_GCJ=no
17381       ;;
17382
17383     sysv4.3*)
17384       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17385       hardcode_shlibpath_var_GCJ=no
17386       export_dynamic_flag_spec_GCJ='-Bexport'
17387       ;;
17388
17389     sysv4*MP*)
17390       if test -d /usr/nec; then
17391         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17392         hardcode_shlibpath_var_GCJ=no
17393         runpath_var=LD_RUN_PATH
17394         hardcode_runpath_var=yes
17395         ld_shlibs_GCJ=yes
17396       fi
17397       ;;
17398
17399     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17400       no_undefined_flag_GCJ='${wl}-z,text'
17401       archive_cmds_need_lc_GCJ=no
17402       hardcode_shlibpath_var_GCJ=no
17403       runpath_var='LD_RUN_PATH'
17404
17405       if test "$GCC" = yes; then
17406         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17407         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17408       else
17409         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17410         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17411       fi
17412       ;;
17413
17414     sysv5* | sco3.2v5* | sco5v6*)
17415       # Note: We can NOT use -z defs as we might desire, because we do not
17416       # link with -lc, and that would cause any symbols used from libc to
17417       # always be unresolved, which means just about no library would
17418       # ever link correctly.  If we're not using GNU ld we use -z text
17419       # though, which does catch some bad symbols but isn't as heavy-handed
17420       # as -z defs.
17421       no_undefined_flag_GCJ='${wl}-z,text'
17422       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17423       archive_cmds_need_lc_GCJ=no
17424       hardcode_shlibpath_var_GCJ=no
17425       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17426       hardcode_libdir_separator_GCJ=':'
17427       link_all_deplibs_GCJ=yes
17428       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17429       runpath_var='LD_RUN_PATH'
17430
17431       if test "$GCC" = yes; then
17432         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17433         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17434       else
17435         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17436         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17437       fi
17438       ;;
17439
17440     uts4*)
17441       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17442       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17443       hardcode_shlibpath_var_GCJ=no
17444       ;;
17445
17446     *)
17447       ld_shlibs_GCJ=no
17448       ;;
17449     esac
17450   fi
17451
17452 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17453 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17454 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17455
17456 #
17457 # Do we need to explicitly link libc?
17458 #
17459 case "x$archive_cmds_need_lc_GCJ" in
17460 x|xyes)
17461   # Assume -lc should be added
17462   archive_cmds_need_lc_GCJ=yes
17463
17464   if test "$enable_shared" = yes && test "$GCC" = yes; then
17465     case $archive_cmds_GCJ in
17466     *'~'*)
17467       # FIXME: we may have to deal with multi-command sequences.
17468       ;;
17469     '$CC '*)
17470       # Test whether the compiler implicitly links with -lc since on some
17471       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17472       # to ld, don't add -lc before -lgcc.
17473       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17474 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17475       $rm conftest*
17476       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17477
17478       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17479   (eval $ac_compile) 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); } 2>conftest.err; then
17483         soname=conftest
17484         lib=conftest
17485         libobjs=conftest.$ac_objext
17486         deplibs=
17487         wl=$lt_prog_compiler_wl_GCJ
17488         pic_flag=$lt_prog_compiler_pic_GCJ
17489         compiler_flags=-v
17490         linker_flags=-v
17491         verstring=
17492         output_objdir=.
17493         libname=conftest
17494         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17495         allow_undefined_flag_GCJ=
17496         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17497   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }
17501         then
17502           archive_cmds_need_lc_GCJ=no
17503         else
17504           archive_cmds_need_lc_GCJ=yes
17505         fi
17506         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17507       else
17508         cat conftest.err 1>&5
17509       fi
17510       $rm conftest*
17511       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17512 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17513       ;;
17514     esac
17515   fi
17516   ;;
17517 esac
17518
17519 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17520 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17521 library_names_spec=
17522 libname_spec='lib$name'
17523 soname_spec=
17524 shrext_cmds=".so"
17525 postinstall_cmds=
17526 postuninstall_cmds=
17527 finish_cmds=
17528 finish_eval=
17529 shlibpath_var=
17530 shlibpath_overrides_runpath=unknown
17531 version_type=none
17532 dynamic_linker="$host_os ld.so"
17533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17534 if test "$GCC" = yes; then
17535   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17536   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17537     # if the path contains ";" then we assume it to be the separator
17538     # otherwise default to the standard path separator (i.e. ":") - it is
17539     # assumed that no part of a normal pathname contains ";" but that should
17540     # okay in the real world where ";" in dirpaths is itself problematic.
17541     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17542   else
17543     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17544   fi
17545 else
17546   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17547 fi
17548 need_lib_prefix=unknown
17549 hardcode_into_libs=no
17550
17551 # when you set need_version to no, make sure it does not cause -set_version
17552 # flags to be left without arguments
17553 need_version=unknown
17554
17555 case $host_os in
17556 aix3*)
17557   version_type=linux
17558   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17559   shlibpath_var=LIBPATH
17560
17561   # AIX 3 has no versioning support, so we append a major version to the name.
17562   soname_spec='${libname}${release}${shared_ext}$major'
17563   ;;
17564
17565 aix4* | aix5*)
17566   version_type=linux
17567   need_lib_prefix=no
17568   need_version=no
17569   hardcode_into_libs=yes
17570   if test "$host_cpu" = ia64; then
17571     # AIX 5 supports IA64
17572     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17573     shlibpath_var=LD_LIBRARY_PATH
17574   else
17575     # With GCC up to 2.95.x, collect2 would create an import file
17576     # for dependence libraries.  The import file would start with
17577     # the line `#! .'.  This would cause the generated library to
17578     # depend on `.', always an invalid library.  This was fixed in
17579     # development snapshots of GCC prior to 3.0.
17580     case $host_os in
17581       aix4 | aix4.[01] | aix4.[01].*)
17582       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17583            echo ' yes '
17584            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17585         :
17586       else
17587         can_build_shared=no
17588       fi
17589       ;;
17590     esac
17591     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17592     # soname into executable. Probably we can add versioning support to
17593     # collect2, so additional links can be useful in future.
17594     if test "$aix_use_runtimelinking" = yes; then
17595       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17596       # instead of lib<name>.a to let people know that these are not
17597       # typical AIX shared libraries.
17598       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599     else
17600       # We preserve .a as extension for shared libraries through AIX4.2
17601       # and later when we are not doing run time linking.
17602       library_names_spec='${libname}${release}.a $libname.a'
17603       soname_spec='${libname}${release}${shared_ext}$major'
17604     fi
17605     shlibpath_var=LIBPATH
17606   fi
17607   ;;
17608
17609 amigaos*)
17610   library_names_spec='$libname.ixlibrary $libname.a'
17611   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17612   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'
17613   ;;
17614
17615 beos*)
17616   library_names_spec='${libname}${shared_ext}'
17617   dynamic_linker="$host_os ld.so"
17618   shlibpath_var=LIBRARY_PATH
17619   ;;
17620
17621 bsdi[45]*)
17622   version_type=linux
17623   need_version=no
17624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17625   soname_spec='${libname}${release}${shared_ext}$major'
17626   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17627   shlibpath_var=LD_LIBRARY_PATH
17628   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17629   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17630   # the default ld.so.conf also contains /usr/contrib/lib and
17631   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17632   # libtool to hard-code these into programs
17633   ;;
17634
17635 cygwin* | mingw* | pw32*)
17636   version_type=windows
17637   shrext_cmds=".dll"
17638   need_version=no
17639   need_lib_prefix=no
17640
17641   case $GCC,$host_os in
17642   yes,cygwin* | yes,mingw* | yes,pw32*)
17643     library_names_spec='$libname.dll.a'
17644     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17645     postinstall_cmds='base_file=`basename \${file}`~
17646       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17647       dldir=$destdir/`dirname \$dlpath`~
17648       test -d \$dldir || mkdir -p \$dldir~
17649       $install_prog $dir/$dlname \$dldir/$dlname~
17650       chmod a+x \$dldir/$dlname'
17651     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17652       dlpath=$dir/\$dldll~
17653        $rm \$dlpath'
17654     shlibpath_overrides_runpath=yes
17655
17656     case $host_os in
17657     cygwin*)
17658       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17659       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17660       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17661       ;;
17662     mingw*)
17663       # MinGW DLLs use traditional 'lib' prefix
17664       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17665       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17666       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17667         # It is most probably a Windows format PATH printed by
17668         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17669         # path with ; separators, and with drive letters. We can handle the
17670         # drive letters (cygwin fileutils understands them), so leave them,
17671         # especially as we might pass files found there to a mingw objdump,
17672         # which wouldn't understand a cygwinified path. Ahh.
17673         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17674       else
17675         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17676       fi
17677       ;;
17678     pw32*)
17679       # pw32 DLLs use 'pw' prefix rather than 'lib'
17680       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17681       ;;
17682     esac
17683     ;;
17684
17685   *)
17686     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17687     ;;
17688   esac
17689   dynamic_linker='Win32 ld.exe'
17690   # FIXME: first we should search . and the directory the executable is in
17691   shlibpath_var=PATH
17692   ;;
17693
17694 darwin* | rhapsody*)
17695   dynamic_linker="$host_os dyld"
17696   version_type=darwin
17697   need_lib_prefix=no
17698   need_version=no
17699   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17700   soname_spec='${libname}${release}${major}$shared_ext'
17701   shlibpath_overrides_runpath=yes
17702   shlibpath_var=DYLD_LIBRARY_PATH
17703   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17704   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17705   if test "$GCC" = yes; then
17706     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17707   else
17708     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17709   fi
17710   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17711   ;;
17712
17713 dgux*)
17714   version_type=linux
17715   need_lib_prefix=no
17716   need_version=no
17717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17718   soname_spec='${libname}${release}${shared_ext}$major'
17719   shlibpath_var=LD_LIBRARY_PATH
17720   ;;
17721
17722 freebsd1*)
17723   dynamic_linker=no
17724   ;;
17725
17726 freebsd* | dragonfly*)
17727   # DragonFly does not have aout.  When/if they implement a new
17728   # versioning mechanism, adjust this.
17729   if test -x /usr/bin/objformat; then
17730     objformat=`/usr/bin/objformat`
17731   else
17732     case $host_os in
17733     freebsd[123]*) objformat=aout ;;
17734     *) objformat=elf ;;
17735     esac
17736   fi
17737   version_type=freebsd-$objformat
17738   case $version_type in
17739     freebsd-elf*)
17740       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17741       need_version=no
17742       need_lib_prefix=no
17743       ;;
17744     freebsd-*)
17745       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17746       need_version=yes
17747       ;;
17748   esac
17749   shlibpath_var=LD_LIBRARY_PATH
17750   case $host_os in
17751   freebsd2*)
17752     shlibpath_overrides_runpath=yes
17753     ;;
17754   freebsd3.[01]* | freebsdelf3.[01]*)
17755     shlibpath_overrides_runpath=yes
17756     hardcode_into_libs=yes
17757     ;;
17758   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17759   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17760     shlibpath_overrides_runpath=no
17761     hardcode_into_libs=yes
17762     ;;
17763   freebsd*) # from 4.6 on
17764     shlibpath_overrides_runpath=yes
17765     hardcode_into_libs=yes
17766     ;;
17767   esac
17768   ;;
17769
17770 gnu*)
17771   version_type=linux
17772   need_lib_prefix=no
17773   need_version=no
17774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17775   soname_spec='${libname}${release}${shared_ext}$major'
17776   shlibpath_var=LD_LIBRARY_PATH
17777   hardcode_into_libs=yes
17778   ;;
17779
17780 hpux9* | hpux10* | hpux11*)
17781   # Give a soname corresponding to the major version so that dld.sl refuses to
17782   # link against other versions.
17783   version_type=sunos
17784   need_lib_prefix=no
17785   need_version=no
17786   case $host_cpu in
17787   ia64*)
17788     shrext_cmds='.so'
17789     hardcode_into_libs=yes
17790     dynamic_linker="$host_os dld.so"
17791     shlibpath_var=LD_LIBRARY_PATH
17792     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794     soname_spec='${libname}${release}${shared_ext}$major'
17795     if test "X$HPUX_IA64_MODE" = X32; then
17796       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17797     else
17798       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17799     fi
17800     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17801     ;;
17802    hppa*64*)
17803      shrext_cmds='.sl'
17804      hardcode_into_libs=yes
17805      dynamic_linker="$host_os dld.sl"
17806      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17807      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17808      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809      soname_spec='${libname}${release}${shared_ext}$major'
17810      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17811      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17812      ;;
17813    *)
17814     shrext_cmds='.sl'
17815     dynamic_linker="$host_os dld.sl"
17816     shlibpath_var=SHLIB_PATH
17817     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819     soname_spec='${libname}${release}${shared_ext}$major'
17820     ;;
17821   esac
17822   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17823   postinstall_cmds='chmod 555 $lib'
17824   ;;
17825
17826 interix3*)
17827   version_type=linux
17828   need_lib_prefix=no
17829   need_version=no
17830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17831   soname_spec='${libname}${release}${shared_ext}$major'
17832   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17833   shlibpath_var=LD_LIBRARY_PATH
17834   shlibpath_overrides_runpath=no
17835   hardcode_into_libs=yes
17836   ;;
17837
17838 irix5* | irix6* | nonstopux*)
17839   case $host_os in
17840     nonstopux*) version_type=nonstopux ;;
17841     *)
17842         if test "$lt_cv_prog_gnu_ld" = yes; then
17843                 version_type=linux
17844         else
17845                 version_type=irix
17846         fi ;;
17847   esac
17848   need_lib_prefix=no
17849   need_version=no
17850   soname_spec='${libname}${release}${shared_ext}$major'
17851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17852   case $host_os in
17853   irix5* | nonstopux*)
17854     libsuff= shlibsuff=
17855     ;;
17856   *)
17857     case $LD in # libtool.m4 will add one of these switches to LD
17858     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17859       libsuff= shlibsuff= libmagic=32-bit;;
17860     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17861       libsuff=32 shlibsuff=N32 libmagic=N32;;
17862     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17863       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17864     *) libsuff= shlibsuff= libmagic=never-match;;
17865     esac
17866     ;;
17867   esac
17868   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17869   shlibpath_overrides_runpath=no
17870   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17871   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17872   hardcode_into_libs=yes
17873   ;;
17874
17875 # No shared lib support for Linux oldld, aout, or coff.
17876 linux*oldld* | linux*aout* | linux*coff*)
17877   dynamic_linker=no
17878   ;;
17879
17880 # This must be Linux ELF.
17881 linux* | k*bsd*-gnu)
17882   version_type=linux
17883   need_lib_prefix=no
17884   need_version=no
17885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886   soname_spec='${libname}${release}${shared_ext}$major'
17887   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17888   shlibpath_var=LD_LIBRARY_PATH
17889   shlibpath_overrides_runpath=no
17890   # This implies no fast_install, which is unacceptable.
17891   # Some rework will be needed to allow for fast_install
17892   # before this can be enabled.
17893   hardcode_into_libs=yes
17894
17895   # Append ld.so.conf contents to the search path
17896   if test -f /etc/ld.so.conf; then
17897     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17898     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17899   fi
17900
17901   # We used to test for /lib/ld.so.1 and disable shared libraries on
17902   # powerpc, because MkLinux only supported shared libraries with the
17903   # GNU dynamic linker.  Since this was broken with cross compilers,
17904   # most powerpc-linux boxes support dynamic linking these days and
17905   # people can always --disable-shared, the test was removed, and we
17906   # assume the GNU/Linux dynamic linker is in use.
17907   dynamic_linker='GNU/Linux ld.so'
17908   ;;
17909
17910 netbsdelf*-gnu)
17911   version_type=linux
17912   need_lib_prefix=no
17913   need_version=no
17914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17915   soname_spec='${libname}${release}${shared_ext}$major'
17916   shlibpath_var=LD_LIBRARY_PATH
17917   shlibpath_overrides_runpath=no
17918   hardcode_into_libs=yes
17919   dynamic_linker='NetBSD ld.elf_so'
17920   ;;
17921
17922 netbsd*)
17923   version_type=sunos
17924   need_lib_prefix=no
17925   need_version=no
17926   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17928     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17929     dynamic_linker='NetBSD (a.out) ld.so'
17930   else
17931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17932     soname_spec='${libname}${release}${shared_ext}$major'
17933     dynamic_linker='NetBSD ld.elf_so'
17934   fi
17935   shlibpath_var=LD_LIBRARY_PATH
17936   shlibpath_overrides_runpath=yes
17937   hardcode_into_libs=yes
17938   ;;
17939
17940 newsos6)
17941   version_type=linux
17942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943   shlibpath_var=LD_LIBRARY_PATH
17944   shlibpath_overrides_runpath=yes
17945   ;;
17946
17947 nto-qnx*)
17948   version_type=linux
17949   need_lib_prefix=no
17950   need_version=no
17951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17952   soname_spec='${libname}${release}${shared_ext}$major'
17953   shlibpath_var=LD_LIBRARY_PATH
17954   shlibpath_overrides_runpath=yes
17955   ;;
17956
17957 openbsd*)
17958   version_type=sunos
17959   sys_lib_dlsearch_path_spec="/usr/lib"
17960   need_lib_prefix=no
17961   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17962   case $host_os in
17963     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17964     *)                         need_version=no  ;;
17965   esac
17966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17967   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17968   shlibpath_var=LD_LIBRARY_PATH
17969   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17970     case $host_os in
17971       openbsd2.[89] | openbsd2.[89].*)
17972         shlibpath_overrides_runpath=no
17973         ;;
17974       *)
17975         shlibpath_overrides_runpath=yes
17976         ;;
17977       esac
17978   else
17979     shlibpath_overrides_runpath=yes
17980   fi
17981   ;;
17982
17983 os2*)
17984   libname_spec='$name'
17985   shrext_cmds=".dll"
17986   need_lib_prefix=no
17987   library_names_spec='$libname${shared_ext} $libname.a'
17988   dynamic_linker='OS/2 ld.exe'
17989   shlibpath_var=LIBPATH
17990   ;;
17991
17992 osf3* | osf4* | osf5*)
17993   version_type=osf
17994   need_lib_prefix=no
17995   need_version=no
17996   soname_spec='${libname}${release}${shared_ext}$major'
17997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998   shlibpath_var=LD_LIBRARY_PATH
17999   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18000   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18001   ;;
18002
18003 solaris*)
18004   version_type=linux
18005   need_lib_prefix=no
18006   need_version=no
18007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008   soname_spec='${libname}${release}${shared_ext}$major'
18009   shlibpath_var=LD_LIBRARY_PATH
18010   shlibpath_overrides_runpath=yes
18011   hardcode_into_libs=yes
18012   # ldd complains unless libraries are executable
18013   postinstall_cmds='chmod +x $lib'
18014   ;;
18015
18016 sunos4*)
18017   version_type=sunos
18018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18020   shlibpath_var=LD_LIBRARY_PATH
18021   shlibpath_overrides_runpath=yes
18022   if test "$with_gnu_ld" = yes; then
18023     need_lib_prefix=no
18024   fi
18025   need_version=yes
18026   ;;
18027
18028 sysv4 | sysv4.3*)
18029   version_type=linux
18030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031   soname_spec='${libname}${release}${shared_ext}$major'
18032   shlibpath_var=LD_LIBRARY_PATH
18033   case $host_vendor in
18034     sni)
18035       shlibpath_overrides_runpath=no
18036       need_lib_prefix=no
18037       export_dynamic_flag_spec='${wl}-Blargedynsym'
18038       runpath_var=LD_RUN_PATH
18039       ;;
18040     siemens)
18041       need_lib_prefix=no
18042       ;;
18043     motorola)
18044       need_lib_prefix=no
18045       need_version=no
18046       shlibpath_overrides_runpath=no
18047       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18048       ;;
18049   esac
18050   ;;
18051
18052 sysv4*MP*)
18053   if test -d /usr/nec ;then
18054     version_type=linux
18055     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18056     soname_spec='$libname${shared_ext}.$major'
18057     shlibpath_var=LD_LIBRARY_PATH
18058   fi
18059   ;;
18060
18061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18062   version_type=freebsd-elf
18063   need_lib_prefix=no
18064   need_version=no
18065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18066   soname_spec='${libname}${release}${shared_ext}$major'
18067   shlibpath_var=LD_LIBRARY_PATH
18068   hardcode_into_libs=yes
18069   if test "$with_gnu_ld" = yes; then
18070     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18071     shlibpath_overrides_runpath=no
18072   else
18073     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18074     shlibpath_overrides_runpath=yes
18075     case $host_os in
18076       sco3.2v5*)
18077         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18078         ;;
18079     esac
18080   fi
18081   sys_lib_dlsearch_path_spec='/usr/lib'
18082   ;;
18083
18084 uts4*)
18085   version_type=linux
18086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18087   soname_spec='${libname}${release}${shared_ext}$major'
18088   shlibpath_var=LD_LIBRARY_PATH
18089   ;;
18090
18091 *)
18092   dynamic_linker=no
18093   ;;
18094 esac
18095 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18096 echo "${ECHO_T}$dynamic_linker" >&6; }
18097 test "$dynamic_linker" = no && can_build_shared=no
18098
18099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18100 if test "$GCC" = yes; then
18101   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18102 fi
18103
18104 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18106 hardcode_action_GCJ=
18107 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18108    test -n "$runpath_var_GCJ" || \
18109    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18110
18111   # We can hardcode non-existant directories.
18112   if test "$hardcode_direct_GCJ" != no &&
18113      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18114      # have to relink, otherwise we might link with an installed library
18115      # when we should be linking with a yet-to-be-installed one
18116      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18117      test "$hardcode_minus_L_GCJ" != no; then
18118     # Linking always hardcodes the temporary library directory.
18119     hardcode_action_GCJ=relink
18120   else
18121     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18122     hardcode_action_GCJ=immediate
18123   fi
18124 else
18125   # We cannot hardcode anything, or else we can only hardcode existing
18126   # directories.
18127   hardcode_action_GCJ=unsupported
18128 fi
18129 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18130 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18131
18132 if test "$hardcode_action_GCJ" = relink; then
18133   # Fast installation is not supported
18134   enable_fast_install=no
18135 elif test "$shlibpath_overrides_runpath" = yes ||
18136      test "$enable_shared" = no; then
18137   # Fast installation is not necessary
18138   enable_fast_install=needless
18139 fi
18140
18141
18142 # The else clause should only fire when bootstrapping the
18143 # libtool distribution, otherwise you forgot to ship ltmain.sh
18144 # with your package, and you will get complaints that there are
18145 # no rules to generate ltmain.sh.
18146 if test -f "$ltmain"; then
18147   # See if we are running on zsh, and set the options which allow our commands through
18148   # without removal of \ escapes.
18149   if test -n "${ZSH_VERSION+set}" ; then
18150     setopt NO_GLOB_SUBST
18151   fi
18152   # Now quote all the things that may contain metacharacters while being
18153   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18154   # variables and quote the copies for generation of the libtool script.
18155   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18156     SED SHELL STRIP \
18157     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18158     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18159     deplibs_check_method reload_flag reload_cmds need_locks \
18160     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18161     lt_cv_sys_global_symbol_to_c_name_address \
18162     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18163     old_postinstall_cmds old_postuninstall_cmds \
18164     compiler_GCJ \
18165     CC_GCJ \
18166     LD_GCJ \
18167     lt_prog_compiler_wl_GCJ \
18168     lt_prog_compiler_pic_GCJ \
18169     lt_prog_compiler_static_GCJ \
18170     lt_prog_compiler_no_builtin_flag_GCJ \
18171     export_dynamic_flag_spec_GCJ \
18172     thread_safe_flag_spec_GCJ \
18173     whole_archive_flag_spec_GCJ \
18174     enable_shared_with_static_runtimes_GCJ \
18175     old_archive_cmds_GCJ \
18176     old_archive_from_new_cmds_GCJ \
18177     predep_objects_GCJ \
18178     postdep_objects_GCJ \
18179     predeps_GCJ \
18180     postdeps_GCJ \
18181     compiler_lib_search_path_GCJ \
18182     archive_cmds_GCJ \
18183     archive_expsym_cmds_GCJ \
18184     postinstall_cmds_GCJ \
18185     postuninstall_cmds_GCJ \
18186     old_archive_from_expsyms_cmds_GCJ \
18187     allow_undefined_flag_GCJ \
18188     no_undefined_flag_GCJ \
18189     export_symbols_cmds_GCJ \
18190     hardcode_libdir_flag_spec_GCJ \
18191     hardcode_libdir_flag_spec_ld_GCJ \
18192     hardcode_libdir_separator_GCJ \
18193     hardcode_automatic_GCJ \
18194     module_cmds_GCJ \
18195     module_expsym_cmds_GCJ \
18196     lt_cv_prog_compiler_c_o_GCJ \
18197     exclude_expsyms_GCJ \
18198     include_expsyms_GCJ; do
18199
18200     case $var in
18201     old_archive_cmds_GCJ | \
18202     old_archive_from_new_cmds_GCJ | \
18203     archive_cmds_GCJ | \
18204     archive_expsym_cmds_GCJ | \
18205     module_cmds_GCJ | \
18206     module_expsym_cmds_GCJ | \
18207     old_archive_from_expsyms_cmds_GCJ | \
18208     export_symbols_cmds_GCJ | \
18209     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18210     postinstall_cmds | postuninstall_cmds | \
18211     old_postinstall_cmds | old_postuninstall_cmds | \
18212     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18213       # Double-quote double-evaled strings.
18214       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18215       ;;
18216     *)
18217       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18218       ;;
18219     esac
18220   done
18221
18222   case $lt_echo in
18223   *'\$0 --fallback-echo"')
18224     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18225     ;;
18226   esac
18227
18228 cfgfile="$ofile"
18229
18230   cat <<__EOF__ >> "$cfgfile"
18231 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18232
18233 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18234
18235 # Shell to use when invoking shell scripts.
18236 SHELL=$lt_SHELL
18237
18238 # Whether or not to build shared libraries.
18239 build_libtool_libs=$enable_shared
18240
18241 # Whether or not to build static libraries.
18242 build_old_libs=$enable_static
18243
18244 # Whether or not to add -lc for building shared libraries.
18245 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18246
18247 # Whether or not to disallow shared libs when runtime libs are static
18248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18249
18250 # Whether or not to optimize for fast installation.
18251 fast_install=$enable_fast_install
18252
18253 # The host system.
18254 host_alias=$host_alias
18255 host=$host
18256 host_os=$host_os
18257
18258 # The build system.
18259 build_alias=$build_alias
18260 build=$build
18261 build_os=$build_os
18262
18263 # An echo program that does not interpret backslashes.
18264 echo=$lt_echo
18265
18266 # The archiver.
18267 AR=$lt_AR
18268 AR_FLAGS=$lt_AR_FLAGS
18269
18270 # A C compiler.
18271 LTCC=$lt_LTCC
18272
18273 # LTCC compiler flags.
18274 LTCFLAGS=$lt_LTCFLAGS
18275
18276 # A language-specific compiler.
18277 CC=$lt_compiler_GCJ
18278
18279 # Is the compiler the GNU C compiler?
18280 with_gcc=$GCC_GCJ
18281
18282 # An ERE matcher.
18283 EGREP=$lt_EGREP
18284
18285 # The linker used to build libraries.
18286 LD=$lt_LD_GCJ
18287
18288 # Whether we need hard or soft links.
18289 LN_S=$lt_LN_S
18290
18291 # A BSD-compatible nm program.
18292 NM=$lt_NM
18293
18294 # A symbol stripping program
18295 STRIP=$lt_STRIP
18296
18297 # Used to examine libraries when file_magic_cmd begins "file"
18298 MAGIC_CMD=$MAGIC_CMD
18299
18300 # Used on cygwin: DLL creation program.
18301 DLLTOOL="$DLLTOOL"
18302
18303 # Used on cygwin: object dumper.
18304 OBJDUMP="$OBJDUMP"
18305
18306 # Used on cygwin: assembler.
18307 AS="$AS"
18308
18309 # The name of the directory that contains temporary libtool files.
18310 objdir=$objdir
18311
18312 # How to create reloadable object files.
18313 reload_flag=$lt_reload_flag
18314 reload_cmds=$lt_reload_cmds
18315
18316 # How to pass a linker flag through the compiler.
18317 wl=$lt_lt_prog_compiler_wl_GCJ
18318
18319 # Object file suffix (normally "o").
18320 objext="$ac_objext"
18321
18322 # Old archive suffix (normally "a").
18323 libext="$libext"
18324
18325 # Shared library suffix (normally ".so").
18326 shrext_cmds='$shrext_cmds'
18327
18328 # Executable file suffix (normally "").
18329 exeext="$exeext"
18330
18331 # Additional compiler flags for building library objects.
18332 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18333 pic_mode=$pic_mode
18334
18335 # What is the maximum length of a command?
18336 max_cmd_len=$lt_cv_sys_max_cmd_len
18337
18338 # Does compiler simultaneously support -c and -o options?
18339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18340
18341 # Must we lock files when doing compilation?
18342 need_locks=$lt_need_locks
18343
18344 # Do we need the lib prefix for modules?
18345 need_lib_prefix=$need_lib_prefix
18346
18347 # Do we need a version for libraries?
18348 need_version=$need_version
18349
18350 # Whether dlopen is supported.
18351 dlopen_support=$enable_dlopen
18352
18353 # Whether dlopen of programs is supported.
18354 dlopen_self=$enable_dlopen_self
18355
18356 # Whether dlopen of statically linked programs is supported.
18357 dlopen_self_static=$enable_dlopen_self_static
18358
18359 # Compiler flag to prevent dynamic linking.
18360 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18361
18362 # Compiler flag to turn off builtin functions.
18363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18364
18365 # Compiler flag to allow reflexive dlopens.
18366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18367
18368 # Compiler flag to generate shared objects directly from archives.
18369 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18370
18371 # Compiler flag to generate thread-safe objects.
18372 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18373
18374 # Library versioning type.
18375 version_type=$version_type
18376
18377 # Format of library name prefix.
18378 libname_spec=$lt_libname_spec
18379
18380 # List of archive names.  First name is the real one, the rest are links.
18381 # The last name is the one that the linker finds with -lNAME.
18382 library_names_spec=$lt_library_names_spec
18383
18384 # The coded name of the library, if different from the real name.
18385 soname_spec=$lt_soname_spec
18386
18387 # Commands used to build and install an old-style archive.
18388 RANLIB=$lt_RANLIB
18389 old_archive_cmds=$lt_old_archive_cmds_GCJ
18390 old_postinstall_cmds=$lt_old_postinstall_cmds
18391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18392
18393 # Create an old-style archive from a shared archive.
18394 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18395
18396 # Create a temporary old-style archive to link instead of a shared archive.
18397 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18398
18399 # Commands used to build and install a shared archive.
18400 archive_cmds=$lt_archive_cmds_GCJ
18401 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18402 postinstall_cmds=$lt_postinstall_cmds
18403 postuninstall_cmds=$lt_postuninstall_cmds
18404
18405 # Commands used to build a loadable module (assumed same as above if empty)
18406 module_cmds=$lt_module_cmds_GCJ
18407 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18408
18409 # Commands to strip libraries.
18410 old_striplib=$lt_old_striplib
18411 striplib=$lt_striplib
18412
18413 # Dependencies to place before the objects being linked to create a
18414 # shared library.
18415 predep_objects=$lt_predep_objects_GCJ
18416
18417 # Dependencies to place after the objects being linked to create a
18418 # shared library.
18419 postdep_objects=$lt_postdep_objects_GCJ
18420
18421 # Dependencies to place before the objects being linked to create a
18422 # shared library.
18423 predeps=$lt_predeps_GCJ
18424
18425 # Dependencies to place after the objects being linked to create a
18426 # shared library.
18427 postdeps=$lt_postdeps_GCJ
18428
18429 # The library search path used internally by the compiler when linking
18430 # a shared library.
18431 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18432
18433 # Method to check whether dependent libraries are shared objects.
18434 deplibs_check_method=$lt_deplibs_check_method
18435
18436 # Command to use when deplibs_check_method == file_magic.
18437 file_magic_cmd=$lt_file_magic_cmd
18438
18439 # Flag that allows shared libraries with undefined symbols to be built.
18440 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18441
18442 # Flag that forces no undefined symbols.
18443 no_undefined_flag=$lt_no_undefined_flag_GCJ
18444
18445 # Commands used to finish a libtool library installation in a directory.
18446 finish_cmds=$lt_finish_cmds
18447
18448 # Same as above, but a single script fragment to be evaled but not shown.
18449 finish_eval=$lt_finish_eval
18450
18451 # Take the output of nm and produce a listing of raw symbols and C names.
18452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18453
18454 # Transform the output of nm in a proper C declaration
18455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18456
18457 # Transform the output of nm in a C name address pair
18458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18459
18460 # This is the shared library runtime path variable.
18461 runpath_var=$runpath_var
18462
18463 # This is the shared library path variable.
18464 shlibpath_var=$shlibpath_var
18465
18466 # Is shlibpath searched before the hard-coded library search path?
18467 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18468
18469 # How to hardcode a shared library path into an executable.
18470 hardcode_action=$hardcode_action_GCJ
18471
18472 # Whether we should hardcode library paths into libraries.
18473 hardcode_into_libs=$hardcode_into_libs
18474
18475 # Flag to hardcode \$libdir into a binary during linking.
18476 # This must work even if \$libdir does not exist.
18477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18478
18479 # If ld is used when linking, flag to hardcode \$libdir into
18480 # a binary during linking. This must work even if \$libdir does
18481 # not exist.
18482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18483
18484 # Whether we need a single -rpath flag with a separated argument.
18485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18486
18487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18488 # resulting binary.
18489 hardcode_direct=$hardcode_direct_GCJ
18490
18491 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_minus_L=$hardcode_minus_L_GCJ
18494
18495 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18496 # the resulting binary.
18497 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18498
18499 # Set to yes if building a shared library automatically hardcodes DIR into the library
18500 # and all subsequent libraries and executables linked against it.
18501 hardcode_automatic=$hardcode_automatic_GCJ
18502
18503 # Variables whose values should be saved in libtool wrapper scripts and
18504 # restored at relink time.
18505 variables_saved_for_relink="$variables_saved_for_relink"
18506
18507 # Whether libtool must link a program against all its dependency libraries.
18508 link_all_deplibs=$link_all_deplibs_GCJ
18509
18510 # Compile-time system search path for libraries
18511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18512
18513 # Run-time system search path for libraries
18514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18515
18516 # Fix the shell variable \$srcfile for the compiler.
18517 fix_srcfile_path="$fix_srcfile_path_GCJ"
18518
18519 # Set to yes if exported symbols are required.
18520 always_export_symbols=$always_export_symbols_GCJ
18521
18522 # The commands to list exported symbols.
18523 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18524
18525 # The commands to extract the exported symbol list from a shared archive.
18526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18527
18528 # Symbols that should not be listed in the preloaded symbols.
18529 exclude_expsyms=$lt_exclude_expsyms_GCJ
18530
18531 # Symbols that must always be exported.
18532 include_expsyms=$lt_include_expsyms_GCJ
18533
18534 # ### END LIBTOOL TAG CONFIG: $tagname
18535
18536 __EOF__
18537
18538
18539 else
18540   # If there is no Makefile yet, we rely on a make rule to execute
18541   # `config.status --recheck' to rerun these tests and create the
18542   # libtool script then.
18543   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18544   if test -f "$ltmain_in"; then
18545     test -f Makefile && make "$ltmain"
18546   fi
18547 fi
18548
18549
18550 ac_ext=c
18551 ac_cpp='$CPP $CPPFLAGS'
18552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18555
18556 CC="$lt_save_CC"
18557
18558         else
18559           tagname=""
18560         fi
18561         ;;
18562
18563       RC)
18564
18565
18566 # Source file extension for RC test sources.
18567 ac_ext=rc
18568
18569 # Object file extension for compiled RC test sources.
18570 objext=o
18571 objext_RC=$objext
18572
18573 # Code to be used in simple compile tests
18574 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18575
18576 # Code to be used in simple link tests
18577 lt_simple_link_test_code="$lt_simple_compile_test_code"
18578
18579 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18580
18581 # If no C compiler was specified, use CC.
18582 LTCC=${LTCC-"$CC"}
18583
18584 # If no C compiler flags were specified, use CFLAGS.
18585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18586
18587 # Allow CC to be a program name with arguments.
18588 compiler=$CC
18589
18590
18591 # save warnings/boilerplate of simple test code
18592 ac_outfile=conftest.$ac_objext
18593 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18595 _lt_compiler_boilerplate=`cat conftest.err`
18596 $rm conftest*
18597
18598 ac_outfile=conftest.$ac_objext
18599 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18601 _lt_linker_boilerplate=`cat conftest.err`
18602 $rm conftest*
18603
18604
18605 # Allow CC to be a program name with arguments.
18606 lt_save_CC="$CC"
18607 CC=${RC-"windres"}
18608 compiler=$CC
18609 compiler_RC=$CC
18610 for cc_temp in $compiler""; do
18611   case $cc_temp in
18612     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18613     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18614     \-*) ;;
18615     *) break;;
18616   esac
18617 done
18618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18619
18620 lt_cv_prog_compiler_c_o_RC=yes
18621
18622 # The else clause should only fire when bootstrapping the
18623 # libtool distribution, otherwise you forgot to ship ltmain.sh
18624 # with your package, and you will get complaints that there are
18625 # no rules to generate ltmain.sh.
18626 if test -f "$ltmain"; then
18627   # See if we are running on zsh, and set the options which allow our commands through
18628   # without removal of \ escapes.
18629   if test -n "${ZSH_VERSION+set}" ; then
18630     setopt NO_GLOB_SUBST
18631   fi
18632   # Now quote all the things that may contain metacharacters while being
18633   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18634   # variables and quote the copies for generation of the libtool script.
18635   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18636     SED SHELL STRIP \
18637     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18638     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18639     deplibs_check_method reload_flag reload_cmds need_locks \
18640     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18641     lt_cv_sys_global_symbol_to_c_name_address \
18642     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18643     old_postinstall_cmds old_postuninstall_cmds \
18644     compiler_RC \
18645     CC_RC \
18646     LD_RC \
18647     lt_prog_compiler_wl_RC \
18648     lt_prog_compiler_pic_RC \
18649     lt_prog_compiler_static_RC \
18650     lt_prog_compiler_no_builtin_flag_RC \
18651     export_dynamic_flag_spec_RC \
18652     thread_safe_flag_spec_RC \
18653     whole_archive_flag_spec_RC \
18654     enable_shared_with_static_runtimes_RC \
18655     old_archive_cmds_RC \
18656     old_archive_from_new_cmds_RC \
18657     predep_objects_RC \
18658     postdep_objects_RC \
18659     predeps_RC \
18660     postdeps_RC \
18661     compiler_lib_search_path_RC \
18662     archive_cmds_RC \
18663     archive_expsym_cmds_RC \
18664     postinstall_cmds_RC \
18665     postuninstall_cmds_RC \
18666     old_archive_from_expsyms_cmds_RC \
18667     allow_undefined_flag_RC \
18668     no_undefined_flag_RC \
18669     export_symbols_cmds_RC \
18670     hardcode_libdir_flag_spec_RC \
18671     hardcode_libdir_flag_spec_ld_RC \
18672     hardcode_libdir_separator_RC \
18673     hardcode_automatic_RC \
18674     module_cmds_RC \
18675     module_expsym_cmds_RC \
18676     lt_cv_prog_compiler_c_o_RC \
18677     exclude_expsyms_RC \
18678     include_expsyms_RC; do
18679
18680     case $var in
18681     old_archive_cmds_RC | \
18682     old_archive_from_new_cmds_RC | \
18683     archive_cmds_RC | \
18684     archive_expsym_cmds_RC | \
18685     module_cmds_RC | \
18686     module_expsym_cmds_RC | \
18687     old_archive_from_expsyms_cmds_RC | \
18688     export_symbols_cmds_RC | \
18689     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18690     postinstall_cmds | postuninstall_cmds | \
18691     old_postinstall_cmds | old_postuninstall_cmds | \
18692     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18693       # Double-quote double-evaled strings.
18694       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18695       ;;
18696     *)
18697       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18698       ;;
18699     esac
18700   done
18701
18702   case $lt_echo in
18703   *'\$0 --fallback-echo"')
18704     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18705     ;;
18706   esac
18707
18708 cfgfile="$ofile"
18709
18710   cat <<__EOF__ >> "$cfgfile"
18711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18712
18713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18714
18715 # Shell to use when invoking shell scripts.
18716 SHELL=$lt_SHELL
18717
18718 # Whether or not to build shared libraries.
18719 build_libtool_libs=$enable_shared
18720
18721 # Whether or not to build static libraries.
18722 build_old_libs=$enable_static
18723
18724 # Whether or not to add -lc for building shared libraries.
18725 build_libtool_need_lc=$archive_cmds_need_lc_RC
18726
18727 # Whether or not to disallow shared libs when runtime libs are static
18728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18729
18730 # Whether or not to optimize for fast installation.
18731 fast_install=$enable_fast_install
18732
18733 # The host system.
18734 host_alias=$host_alias
18735 host=$host
18736 host_os=$host_os
18737
18738 # The build system.
18739 build_alias=$build_alias
18740 build=$build
18741 build_os=$build_os
18742
18743 # An echo program that does not interpret backslashes.
18744 echo=$lt_echo
18745
18746 # The archiver.
18747 AR=$lt_AR
18748 AR_FLAGS=$lt_AR_FLAGS
18749
18750 # A C compiler.
18751 LTCC=$lt_LTCC
18752
18753 # LTCC compiler flags.
18754 LTCFLAGS=$lt_LTCFLAGS
18755
18756 # A language-specific compiler.
18757 CC=$lt_compiler_RC
18758
18759 # Is the compiler the GNU C compiler?
18760 with_gcc=$GCC_RC
18761
18762 # An ERE matcher.
18763 EGREP=$lt_EGREP
18764
18765 # The linker used to build libraries.
18766 LD=$lt_LD_RC
18767
18768 # Whether we need hard or soft links.
18769 LN_S=$lt_LN_S
18770
18771 # A BSD-compatible nm program.
18772 NM=$lt_NM
18773
18774 # A symbol stripping program
18775 STRIP=$lt_STRIP
18776
18777 # Used to examine libraries when file_magic_cmd begins "file"
18778 MAGIC_CMD=$MAGIC_CMD
18779
18780 # Used on cygwin: DLL creation program.
18781 DLLTOOL="$DLLTOOL"
18782
18783 # Used on cygwin: object dumper.
18784 OBJDUMP="$OBJDUMP"
18785
18786 # Used on cygwin: assembler.
18787 AS="$AS"
18788
18789 # The name of the directory that contains temporary libtool files.
18790 objdir=$objdir
18791
18792 # How to create reloadable object files.
18793 reload_flag=$lt_reload_flag
18794 reload_cmds=$lt_reload_cmds
18795
18796 # How to pass a linker flag through the compiler.
18797 wl=$lt_lt_prog_compiler_wl_RC
18798
18799 # Object file suffix (normally "o").
18800 objext="$ac_objext"
18801
18802 # Old archive suffix (normally "a").
18803 libext="$libext"
18804
18805 # Shared library suffix (normally ".so").
18806 shrext_cmds='$shrext_cmds'
18807
18808 # Executable file suffix (normally "").
18809 exeext="$exeext"
18810
18811 # Additional compiler flags for building library objects.
18812 pic_flag=$lt_lt_prog_compiler_pic_RC
18813 pic_mode=$pic_mode
18814
18815 # What is the maximum length of a command?
18816 max_cmd_len=$lt_cv_sys_max_cmd_len
18817
18818 # Does compiler simultaneously support -c and -o options?
18819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18820
18821 # Must we lock files when doing compilation?
18822 need_locks=$lt_need_locks
18823
18824 # Do we need the lib prefix for modules?
18825 need_lib_prefix=$need_lib_prefix
18826
18827 # Do we need a version for libraries?
18828 need_version=$need_version
18829
18830 # Whether dlopen is supported.
18831 dlopen_support=$enable_dlopen
18832
18833 # Whether dlopen of programs is supported.
18834 dlopen_self=$enable_dlopen_self
18835
18836 # Whether dlopen of statically linked programs is supported.
18837 dlopen_self_static=$enable_dlopen_self_static
18838
18839 # Compiler flag to prevent dynamic linking.
18840 link_static_flag=$lt_lt_prog_compiler_static_RC
18841
18842 # Compiler flag to turn off builtin functions.
18843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18844
18845 # Compiler flag to allow reflexive dlopens.
18846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18847
18848 # Compiler flag to generate shared objects directly from archives.
18849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18850
18851 # Compiler flag to generate thread-safe objects.
18852 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18853
18854 # Library versioning type.
18855 version_type=$version_type
18856
18857 # Format of library name prefix.
18858 libname_spec=$lt_libname_spec
18859
18860 # List of archive names.  First name is the real one, the rest are links.
18861 # The last name is the one that the linker finds with -lNAME.
18862 library_names_spec=$lt_library_names_spec
18863
18864 # The coded name of the library, if different from the real name.
18865 soname_spec=$lt_soname_spec
18866
18867 # Commands used to build and install an old-style archive.
18868 RANLIB=$lt_RANLIB
18869 old_archive_cmds=$lt_old_archive_cmds_RC
18870 old_postinstall_cmds=$lt_old_postinstall_cmds
18871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18872
18873 # Create an old-style archive from a shared archive.
18874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18875
18876 # Create a temporary old-style archive to link instead of a shared archive.
18877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18878
18879 # Commands used to build and install a shared archive.
18880 archive_cmds=$lt_archive_cmds_RC
18881 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18882 postinstall_cmds=$lt_postinstall_cmds
18883 postuninstall_cmds=$lt_postuninstall_cmds
18884
18885 # Commands used to build a loadable module (assumed same as above if empty)
18886 module_cmds=$lt_module_cmds_RC
18887 module_expsym_cmds=$lt_module_expsym_cmds_RC
18888
18889 # Commands to strip libraries.
18890 old_striplib=$lt_old_striplib
18891 striplib=$lt_striplib
18892
18893 # Dependencies to place before the objects being linked to create a
18894 # shared library.
18895 predep_objects=$lt_predep_objects_RC
18896
18897 # Dependencies to place after the objects being linked to create a
18898 # shared library.
18899 postdep_objects=$lt_postdep_objects_RC
18900
18901 # Dependencies to place before the objects being linked to create a
18902 # shared library.
18903 predeps=$lt_predeps_RC
18904
18905 # Dependencies to place after the objects being linked to create a
18906 # shared library.
18907 postdeps=$lt_postdeps_RC
18908
18909 # The library search path used internally by the compiler when linking
18910 # a shared library.
18911 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18912
18913 # Method to check whether dependent libraries are shared objects.
18914 deplibs_check_method=$lt_deplibs_check_method
18915
18916 # Command to use when deplibs_check_method == file_magic.
18917 file_magic_cmd=$lt_file_magic_cmd
18918
18919 # Flag that allows shared libraries with undefined symbols to be built.
18920 allow_undefined_flag=$lt_allow_undefined_flag_RC
18921
18922 # Flag that forces no undefined symbols.
18923 no_undefined_flag=$lt_no_undefined_flag_RC
18924
18925 # Commands used to finish a libtool library installation in a directory.
18926 finish_cmds=$lt_finish_cmds
18927
18928 # Same as above, but a single script fragment to be evaled but not shown.
18929 finish_eval=$lt_finish_eval
18930
18931 # Take the output of nm and produce a listing of raw symbols and C names.
18932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18933
18934 # Transform the output of nm in a proper C declaration
18935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18936
18937 # Transform the output of nm in a C name address pair
18938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18939
18940 # This is the shared library runtime path variable.
18941 runpath_var=$runpath_var
18942
18943 # This is the shared library path variable.
18944 shlibpath_var=$shlibpath_var
18945
18946 # Is shlibpath searched before the hard-coded library search path?
18947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18948
18949 # How to hardcode a shared library path into an executable.
18950 hardcode_action=$hardcode_action_RC
18951
18952 # Whether we should hardcode library paths into libraries.
18953 hardcode_into_libs=$hardcode_into_libs
18954
18955 # Flag to hardcode \$libdir into a binary during linking.
18956 # This must work even if \$libdir does not exist.
18957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18958
18959 # If ld is used when linking, flag to hardcode \$libdir into
18960 # a binary during linking. This must work even if \$libdir does
18961 # not exist.
18962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18963
18964 # Whether we need a single -rpath flag with a separated argument.
18965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18966
18967 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18968 # resulting binary.
18969 hardcode_direct=$hardcode_direct_RC
18970
18971 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18972 # resulting binary.
18973 hardcode_minus_L=$hardcode_minus_L_RC
18974
18975 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18976 # the resulting binary.
18977 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18978
18979 # Set to yes if building a shared library automatically hardcodes DIR into the library
18980 # and all subsequent libraries and executables linked against it.
18981 hardcode_automatic=$hardcode_automatic_RC
18982
18983 # Variables whose values should be saved in libtool wrapper scripts and
18984 # restored at relink time.
18985 variables_saved_for_relink="$variables_saved_for_relink"
18986
18987 # Whether libtool must link a program against all its dependency libraries.
18988 link_all_deplibs=$link_all_deplibs_RC
18989
18990 # Compile-time system search path for libraries
18991 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18992
18993 # Run-time system search path for libraries
18994 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18995
18996 # Fix the shell variable \$srcfile for the compiler.
18997 fix_srcfile_path="$fix_srcfile_path_RC"
18998
18999 # Set to yes if exported symbols are required.
19000 always_export_symbols=$always_export_symbols_RC
19001
19002 # The commands to list exported symbols.
19003 export_symbols_cmds=$lt_export_symbols_cmds_RC
19004
19005 # The commands to extract the exported symbol list from a shared archive.
19006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19007
19008 # Symbols that should not be listed in the preloaded symbols.
19009 exclude_expsyms=$lt_exclude_expsyms_RC
19010
19011 # Symbols that must always be exported.
19012 include_expsyms=$lt_include_expsyms_RC
19013
19014 # ### END LIBTOOL TAG CONFIG: $tagname
19015
19016 __EOF__
19017
19018
19019 else
19020   # If there is no Makefile yet, we rely on a make rule to execute
19021   # `config.status --recheck' to rerun these tests and create the
19022   # libtool script then.
19023   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19024   if test -f "$ltmain_in"; then
19025     test -f Makefile && make "$ltmain"
19026   fi
19027 fi
19028
19029
19030 ac_ext=c
19031 ac_cpp='$CPP $CPPFLAGS'
19032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19035
19036 CC="$lt_save_CC"
19037
19038         ;;
19039
19040       *)
19041         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19042 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19043    { (exit 1); exit 1; }; }
19044         ;;
19045       esac
19046
19047       # Append the new tag name to the list of available tags.
19048       if test -n "$tagname" ; then
19049       available_tags="$available_tags $tagname"
19050     fi
19051     fi
19052   done
19053   IFS="$lt_save_ifs"
19054
19055   # Now substitute the updated list of available tags.
19056   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19057     mv "${ofile}T" "$ofile"
19058     chmod +x "$ofile"
19059   else
19060     rm -f "${ofile}T"
19061     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19062 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19063    { (exit 1); exit 1; }; }
19064   fi
19065 fi
19066
19067
19068
19069 # This can be used to rebuild libtool when needed
19070 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19071
19072 # Always use our own libtool.
19073 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19074
19075 # Prevent multiple expansion
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096  # If set to t, that means we are running in a shell under Emacs.
19097  # If you have an Emacs named "t", then use the full path.
19098  test x"$EMACS" = xt && EMACS=
19099  for ac_prog in emacs xemacs
19100 do
19101   # Extract the first word of "$ac_prog", so it can be a program name with args.
19102 set dummy $ac_prog; ac_word=$2
19103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19105 if test "${ac_cv_prog_EMACS+set}" = set; then
19106   echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108   if test -n "$EMACS"; then
19109   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
19110 else
19111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19112 for as_dir in $PATH
19113 do
19114   IFS=$as_save_IFS
19115   test -z "$as_dir" && as_dir=.
19116   for ac_exec_ext in '' $ac_executable_extensions; do
19117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19118     ac_cv_prog_EMACS="$ac_prog"
19119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19120     break 2
19121   fi
19122 done
19123 done
19124 IFS=$as_save_IFS
19125
19126 fi
19127 fi
19128 EMACS=$ac_cv_prog_EMACS
19129 if test -n "$EMACS"; then
19130   { echo "$as_me:$LINENO: result: $EMACS" >&5
19131 echo "${ECHO_T}$EMACS" >&6; }
19132 else
19133   { echo "$as_me:$LINENO: result: no" >&5
19134 echo "${ECHO_T}no" >&6; }
19135 fi
19136
19137
19138   test -n "$EMACS" && break
19139 done
19140 test -n "$EMACS" || EMACS="no"
19141
19142
19143
19144
19145 # Check whether --with-lispdir was given.
19146 if test "${with_lispdir+set}" = set; then
19147   withval=$with_lispdir;  lispdir="$withval"
19148    { echo "$as_me:$LINENO: checking where .elc files should go" >&5
19149 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
19150    { echo "$as_me:$LINENO: result: $lispdir" >&5
19151 echo "${ECHO_T}$lispdir" >&6; }
19152 else
19153
19154  { echo "$as_me:$LINENO: checking where .elc files should go" >&5
19155 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
19156 if test "${am_cv_lispdir+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159
19160    if test $EMACS != "no"; then
19161      if test x${lispdir+set} != xset; then
19162   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
19163   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
19164   #  which is non-obvious for non-emacs users.
19165   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
19166   #  emacsen earlier and avoid running this altogether.
19167   { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
19168   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }
19172         am_cv_lispdir=`sed -n \
19173        -e 's,/$,,' \
19174        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
19175        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
19176        conftest.out`
19177        rm conftest.out
19178      fi
19179    fi
19180    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
19181
19182 fi
19183 { echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
19184 echo "${ECHO_T}$am_cv_lispdir" >&6; }
19185   lispdir="$am_cv_lispdir"
19186
19187 fi
19188
19189
19190
19191
19192
19193
19194 if test x$lispdir != x; then
19195   ELISP_TRUE=
19196   ELISP_FALSE='#'
19197 else
19198   ELISP_TRUE='#'
19199   ELISP_FALSE=
19200 fi
19201
19202
19203 test -n "$lispdir" || lispdir="/tmp/"
19204
19205 lispdir="$lispdir/anthy"
19206
19207 test -z "$GCC" || CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long"
19208
19209 ac_config_files="$ac_config_files Makefile src-diclib/Makefile src-worddic/Makefile src-splitter/Makefile src-ordering/Makefile src-main/Makefile src-util/Makefile anthy/Makefile depgraph/Makefile mkanthydic/Makefile mkworddic/Makefile mkworddic/dict.args test/Makefile alt-cannadic/Makefile doc/Makefile calctrans/Makefile anthy-conf anthy-test-conf anthy.spec anthy.pc"
19210
19211 cat >confcache <<\_ACEOF
19212 # This file is a shell script that caches the results of configure
19213 # tests run on this system so they can be shared between configure
19214 # scripts and configure runs, see configure's option --config-cache.
19215 # It is not useful on other systems.  If it contains results you don't
19216 # want to keep, you may remove or edit it.
19217 #
19218 # config.status only pays attention to the cache file if you give it
19219 # the --recheck option to rerun configure.
19220 #
19221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19223 # following values.
19224
19225 _ACEOF
19226
19227 # The following way of writing the cache mishandles newlines in values,
19228 # but we know of no workaround that is simple, portable, and efficient.
19229 # So, we kill variables containing newlines.
19230 # Ultrix sh set writes to stderr and can't be redirected directly,
19231 # and sets the high bit in the cache file unless we assign to the vars.
19232 (
19233   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19234     eval ac_val=\$$ac_var
19235     case $ac_val in #(
19236     *${as_nl}*)
19237       case $ac_var in #(
19238       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19239 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19240       esac
19241       case $ac_var in #(
19242       _ | IFS | as_nl) ;; #(
19243       *) $as_unset $ac_var ;;
19244       esac ;;
19245     esac
19246   done
19247
19248   (set) 2>&1 |
19249     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19250     *${as_nl}ac_space=\ *)
19251       # `set' does not quote correctly, so add quotes (double-quote
19252       # substitution turns \\\\ into \\, and sed turns \\ into \).
19253       sed -n \
19254         "s/'/'\\\\''/g;
19255           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19256       ;; #(
19257     *)
19258       # `set' quotes correctly as required by POSIX, so do not add quotes.
19259       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19260       ;;
19261     esac |
19262     sort
19263 ) |
19264   sed '
19265      /^ac_cv_env_/b end
19266      t clear
19267      :clear
19268      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19269      t end
19270      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19271      :end' >>confcache
19272 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19273   if test -w "$cache_file"; then
19274     test "x$cache_file" != "x/dev/null" &&
19275       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19276 echo "$as_me: updating cache $cache_file" >&6;}
19277     cat confcache >$cache_file
19278   else
19279     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19280 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19281   fi
19282 fi
19283 rm -f confcache
19284
19285 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19286 # Let make expand exec_prefix.
19287 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19288
19289 DEFS=-DHAVE_CONFIG_H
19290
19291 ac_libobjs=
19292 ac_ltlibobjs=
19293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19294   # 1. Remove the extension, and $U if already installed.
19295   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19296   ac_i=`echo "$ac_i" | sed "$ac_script"`
19297   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19298   #    will be set to the directory where LIBOBJS objects are built.
19299   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19300   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19301 done
19302 LIBOBJS=$ac_libobjs
19303
19304 LTLIBOBJS=$ac_ltlibobjs
19305
19306
19307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19308   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19309 Usually this means the macro was only invoked conditionally." >&5
19310 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19311 Usually this means the macro was only invoked conditionally." >&2;}
19312    { (exit 1); exit 1; }; }
19313 fi
19314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19315   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19316 Usually this means the macro was only invoked conditionally." >&5
19317 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19318 Usually this means the macro was only invoked conditionally." >&2;}
19319    { (exit 1); exit 1; }; }
19320 fi
19321 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19322   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19323 Usually this means the macro was only invoked conditionally." >&5
19324 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19325 Usually this means the macro was only invoked conditionally." >&2;}
19326    { (exit 1); exit 1; }; }
19327 fi
19328 if test -z "${ELISP_TRUE}" && test -z "${ELISP_FALSE}"; then
19329   { { echo "$as_me:$LINENO: error: conditional \"ELISP\" was never defined.
19330 Usually this means the macro was only invoked conditionally." >&5
19331 echo "$as_me: error: conditional \"ELISP\" was never defined.
19332 Usually this means the macro was only invoked conditionally." >&2;}
19333    { (exit 1); exit 1; }; }
19334 fi
19335
19336 : ${CONFIG_STATUS=./config.status}
19337 ac_clean_files_save=$ac_clean_files
19338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19339 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19341 cat >$CONFIG_STATUS <<_ACEOF
19342 #! $SHELL
19343 # Generated by $as_me.
19344 # Run this file to recreate the current configuration.
19345 # Compiler output produced by configure, useful for debugging
19346 # configure, is in config.log if it exists.
19347
19348 debug=false
19349 ac_cs_recheck=false
19350 ac_cs_silent=false
19351 SHELL=\${CONFIG_SHELL-$SHELL}
19352 _ACEOF
19353
19354 cat >>$CONFIG_STATUS <<\_ACEOF
19355 ## --------------------- ##
19356 ## M4sh Initialization.  ##
19357 ## --------------------- ##
19358
19359 # Be more Bourne compatible
19360 DUALCASE=1; export DUALCASE # for MKS sh
19361 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19362   emulate sh
19363   NULLCMD=:
19364   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19365   # is contrary to our usage.  Disable this feature.
19366   alias -g '${1+"$@"}'='"$@"'
19367   setopt NO_GLOB_SUBST
19368 else
19369   case `(set -o) 2>/dev/null` in
19370   *posix*) set -o posix ;;
19371 esac
19372
19373 fi
19374
19375
19376
19377
19378 # PATH needs CR
19379 # Avoid depending upon Character Ranges.
19380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19383 as_cr_digits='0123456789'
19384 as_cr_alnum=$as_cr_Letters$as_cr_digits
19385
19386 # The user is always right.
19387 if test "${PATH_SEPARATOR+set}" != set; then
19388   echo "#! /bin/sh" >conf$$.sh
19389   echo  "exit 0"   >>conf$$.sh
19390   chmod +x conf$$.sh
19391   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19392     PATH_SEPARATOR=';'
19393   else
19394     PATH_SEPARATOR=:
19395   fi
19396   rm -f conf$$.sh
19397 fi
19398
19399 # Support unset when possible.
19400 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19401   as_unset=unset
19402 else
19403   as_unset=false
19404 fi
19405
19406
19407 # IFS
19408 # We need space, tab and new line, in precisely that order.  Quoting is
19409 # there to prevent editors from complaining about space-tab.
19410 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19411 # splitting by setting IFS to empty value.)
19412 as_nl='
19413 '
19414 IFS=" ""        $as_nl"
19415
19416 # Find who we are.  Look in the path if we contain no directory separator.
19417 case $0 in
19418   *[\\/]* ) as_myself=$0 ;;
19419   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19420 for as_dir in $PATH
19421 do
19422   IFS=$as_save_IFS
19423   test -z "$as_dir" && as_dir=.
19424   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19425 done
19426 IFS=$as_save_IFS
19427
19428      ;;
19429 esac
19430 # We did not find ourselves, most probably we were run as `sh COMMAND'
19431 # in which case we are not to be found in the path.
19432 if test "x$as_myself" = x; then
19433   as_myself=$0
19434 fi
19435 if test ! -f "$as_myself"; then
19436   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19437   { (exit 1); exit 1; }
19438 fi
19439
19440 # Work around bugs in pre-3.0 UWIN ksh.
19441 for as_var in ENV MAIL MAILPATH
19442 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19443 done
19444 PS1='$ '
19445 PS2='> '
19446 PS4='+ '
19447
19448 # NLS nuisances.
19449 for as_var in \
19450   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19451   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19452   LC_TELEPHONE LC_TIME
19453 do
19454   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19455     eval $as_var=C; export $as_var
19456   else
19457     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19458   fi
19459 done
19460
19461 # Required to use basename.
19462 if expr a : '\(a\)' >/dev/null 2>&1 &&
19463    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19464   as_expr=expr
19465 else
19466   as_expr=false
19467 fi
19468
19469 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19470   as_basename=basename
19471 else
19472   as_basename=false
19473 fi
19474
19475
19476 # Name of the executable.
19477 as_me=`$as_basename -- "$0" ||
19478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19479          X"$0" : 'X\(//\)$' \| \
19480          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19481 echo X/"$0" |
19482     sed '/^.*\/\([^/][^/]*\)\/*$/{
19483             s//\1/
19484             q
19485           }
19486           /^X\/\(\/\/\)$/{
19487             s//\1/
19488             q
19489           }
19490           /^X\/\(\/\).*/{
19491             s//\1/
19492             q
19493           }
19494           s/.*/./; q'`
19495
19496 # CDPATH.
19497 $as_unset CDPATH
19498
19499
19500
19501   as_lineno_1=$LINENO
19502   as_lineno_2=$LINENO
19503   test "x$as_lineno_1" != "x$as_lineno_2" &&
19504   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19505
19506   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19507   # uniformly replaced by the line number.  The first 'sed' inserts a
19508   # line-number line after each line using $LINENO; the second 'sed'
19509   # does the real work.  The second script uses 'N' to pair each
19510   # line-number line with the line containing $LINENO, and appends
19511   # trailing '-' during substitution so that $LINENO is not a special
19512   # case at line end.
19513   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19514   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19515   # E. McMahon (1931-1989) for sed's syntax.  :-)
19516   sed -n '
19517     p
19518     /[$]LINENO/=
19519   ' <$as_myself |
19520     sed '
19521       s/[$]LINENO.*/&-/
19522       t lineno
19523       b
19524       :lineno
19525       N
19526       :loop
19527       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19528       t loop
19529       s/-\n.*//
19530     ' >$as_me.lineno &&
19531   chmod +x "$as_me.lineno" ||
19532     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19533    { (exit 1); exit 1; }; }
19534
19535   # Don't try to exec as it changes $[0], causing all sort of problems
19536   # (the dirname of $[0] is not the place where we might find the
19537   # original and so on.  Autoconf is especially sensitive to this).
19538   . "./$as_me.lineno"
19539   # Exit status is that of the last command.
19540   exit
19541 }
19542
19543
19544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19545   as_dirname=dirname
19546 else
19547   as_dirname=false
19548 fi
19549
19550 ECHO_C= ECHO_N= ECHO_T=
19551 case `echo -n x` in
19552 -n*)
19553   case `echo 'x\c'` in
19554   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19555   *)   ECHO_C='\c';;
19556   esac;;
19557 *)
19558   ECHO_N='-n';;
19559 esac
19560
19561 if expr a : '\(a\)' >/dev/null 2>&1 &&
19562    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19563   as_expr=expr
19564 else
19565   as_expr=false
19566 fi
19567
19568 rm -f conf$$ conf$$.exe conf$$.file
19569 if test -d conf$$.dir; then
19570   rm -f conf$$.dir/conf$$.file
19571 else
19572   rm -f conf$$.dir
19573   mkdir conf$$.dir
19574 fi
19575 echo >conf$$.file
19576 if ln -s conf$$.file conf$$ 2>/dev/null; then
19577   as_ln_s='ln -s'
19578   # ... but there are two gotchas:
19579   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19580   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19581   # In both cases, we have to default to `cp -p'.
19582   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19583     as_ln_s='cp -p'
19584 elif ln conf$$.file conf$$ 2>/dev/null; then
19585   as_ln_s=ln
19586 else
19587   as_ln_s='cp -p'
19588 fi
19589 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19590 rmdir conf$$.dir 2>/dev/null
19591
19592 if mkdir -p . 2>/dev/null; then
19593   as_mkdir_p=:
19594 else
19595   test -d ./-p && rmdir ./-p
19596   as_mkdir_p=false
19597 fi
19598
19599 if test -x / >/dev/null 2>&1; then
19600   as_test_x='test -x'
19601 else
19602   if ls -dL / >/dev/null 2>&1; then
19603     as_ls_L_option=L
19604   else
19605     as_ls_L_option=
19606   fi
19607   as_test_x='
19608     eval sh -c '\''
19609       if test -d "$1"; then
19610         test -d "$1/.";
19611       else
19612         case $1 in
19613         -*)set "./$1";;
19614         esac;
19615         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19616         ???[sx]*):;;*)false;;esac;fi
19617     '\'' sh
19618   '
19619 fi
19620 as_executable_p=$as_test_x
19621
19622 # Sed expression to map a string onto a valid CPP name.
19623 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19624
19625 # Sed expression to map a string onto a valid variable name.
19626 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19627
19628
19629 exec 6>&1
19630
19631 # Save the log message, to keep $[0] and so on meaningful, and to
19632 # report actual input values of CONFIG_FILES etc. instead of their
19633 # values after options handling.
19634 ac_log="
19635 This file was extended by $as_me, which was
19636 generated by GNU Autoconf 2.61.  Invocation command line was
19637
19638   CONFIG_FILES    = $CONFIG_FILES
19639   CONFIG_HEADERS  = $CONFIG_HEADERS
19640   CONFIG_LINKS    = $CONFIG_LINKS
19641   CONFIG_COMMANDS = $CONFIG_COMMANDS
19642   $ $0 $@
19643
19644 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19645 "
19646
19647 _ACEOF
19648
19649 cat >>$CONFIG_STATUS <<_ACEOF
19650 # Files that config.status was made for.
19651 config_files="$ac_config_files"
19652 config_headers="$ac_config_headers"
19653 config_commands="$ac_config_commands"
19654
19655 _ACEOF
19656
19657 cat >>$CONFIG_STATUS <<\_ACEOF
19658 ac_cs_usage="\
19659 \`$as_me' instantiates files from templates according to the
19660 current configuration.
19661
19662 Usage: $0 [OPTIONS] [FILE]...
19663
19664   -h, --help       print this help, then exit
19665   -V, --version    print version number and configuration settings, then exit
19666   -q, --quiet      do not print progress messages
19667   -d, --debug      don't remove temporary files
19668       --recheck    update $as_me by reconfiguring in the same conditions
19669   --file=FILE[:TEMPLATE]
19670                    instantiate the configuration file FILE
19671   --header=FILE[:TEMPLATE]
19672                    instantiate the configuration header FILE
19673
19674 Configuration files:
19675 $config_files
19676
19677 Configuration headers:
19678 $config_headers
19679
19680 Configuration commands:
19681 $config_commands
19682
19683 Report bugs to <bug-autoconf@gnu.org>."
19684
19685 _ACEOF
19686 cat >>$CONFIG_STATUS <<_ACEOF
19687 ac_cs_version="\\
19688 config.status
19689 configured by $0, generated by GNU Autoconf 2.61,
19690   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19691
19692 Copyright (C) 2006 Free Software Foundation, Inc.
19693 This config.status script is free software; the Free Software Foundation
19694 gives unlimited permission to copy, distribute and modify it."
19695
19696 ac_pwd='$ac_pwd'
19697 srcdir='$srcdir'
19698 INSTALL='$INSTALL'
19699 _ACEOF
19700
19701 cat >>$CONFIG_STATUS <<\_ACEOF
19702 # If no file are specified by the user, then we need to provide default
19703 # value.  By we need to know if files were specified by the user.
19704 ac_need_defaults=:
19705 while test $# != 0
19706 do
19707   case $1 in
19708   --*=*)
19709     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19710     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19711     ac_shift=:
19712     ;;
19713   *)
19714     ac_option=$1
19715     ac_optarg=$2
19716     ac_shift=shift
19717     ;;
19718   esac
19719
19720   case $ac_option in
19721   # Handling of the options.
19722   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19723     ac_cs_recheck=: ;;
19724   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19725     echo "$ac_cs_version"; exit ;;
19726   --debug | --debu | --deb | --de | --d | -d )
19727     debug=: ;;
19728   --file | --fil | --fi | --f )
19729     $ac_shift
19730     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19731     ac_need_defaults=false;;
19732   --header | --heade | --head | --hea )
19733     $ac_shift
19734     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19735     ac_need_defaults=false;;
19736   --he | --h)
19737     # Conflict between --help and --header
19738     { echo "$as_me: error: ambiguous option: $1
19739 Try \`$0 --help' for more information." >&2
19740    { (exit 1); exit 1; }; };;
19741   --help | --hel | -h )
19742     echo "$ac_cs_usage"; exit ;;
19743   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19744   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19745     ac_cs_silent=: ;;
19746
19747   # This is an error.
19748   -*) { echo "$as_me: error: unrecognized option: $1
19749 Try \`$0 --help' for more information." >&2
19750    { (exit 1); exit 1; }; } ;;
19751
19752   *) ac_config_targets="$ac_config_targets $1"
19753      ac_need_defaults=false ;;
19754
19755   esac
19756   shift
19757 done
19758
19759 ac_configure_extra_args=
19760
19761 if $ac_cs_silent; then
19762   exec 6>/dev/null
19763   ac_configure_extra_args="$ac_configure_extra_args --silent"
19764 fi
19765
19766 _ACEOF
19767 cat >>$CONFIG_STATUS <<_ACEOF
19768 if \$ac_cs_recheck; then
19769   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19770   CONFIG_SHELL=$SHELL
19771   export CONFIG_SHELL
19772   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19773 fi
19774
19775 _ACEOF
19776 cat >>$CONFIG_STATUS <<\_ACEOF
19777 exec 5>>config.log
19778 {
19779   echo
19780   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19781 ## Running $as_me. ##
19782 _ASBOX
19783   echo "$ac_log"
19784 } >&5
19785
19786 _ACEOF
19787 cat >>$CONFIG_STATUS <<_ACEOF
19788 #
19789 # INIT-COMMANDS
19790 #
19791 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19792
19793 _ACEOF
19794
19795 cat >>$CONFIG_STATUS <<\_ACEOF
19796
19797 # Handling of arguments.
19798 for ac_config_target in $ac_config_targets
19799 do
19800   case $ac_config_target in
19801     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19802     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19803     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19804     "src-diclib/Makefile") CONFIG_FILES="$CONFIG_FILES src-diclib/Makefile" ;;
19805     "src-worddic/Makefile") CONFIG_FILES="$CONFIG_FILES src-worddic/Makefile" ;;
19806     "src-splitter/Makefile") CONFIG_FILES="$CONFIG_FILES src-splitter/Makefile" ;;
19807     "src-ordering/Makefile") CONFIG_FILES="$CONFIG_FILES src-ordering/Makefile" ;;
19808     "src-main/Makefile") CONFIG_FILES="$CONFIG_FILES src-main/Makefile" ;;
19809     "src-util/Makefile") CONFIG_FILES="$CONFIG_FILES src-util/Makefile" ;;
19810     "anthy/Makefile") CONFIG_FILES="$CONFIG_FILES anthy/Makefile" ;;
19811     "depgraph/Makefile") CONFIG_FILES="$CONFIG_FILES depgraph/Makefile" ;;
19812     "mkanthydic/Makefile") CONFIG_FILES="$CONFIG_FILES mkanthydic/Makefile" ;;
19813     "mkworddic/Makefile") CONFIG_FILES="$CONFIG_FILES mkworddic/Makefile" ;;
19814     "mkworddic/dict.args") CONFIG_FILES="$CONFIG_FILES mkworddic/dict.args" ;;
19815     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19816     "alt-cannadic/Makefile") CONFIG_FILES="$CONFIG_FILES alt-cannadic/Makefile" ;;
19817     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19818     "calctrans/Makefile") CONFIG_FILES="$CONFIG_FILES calctrans/Makefile" ;;
19819     "anthy-conf") CONFIG_FILES="$CONFIG_FILES anthy-conf" ;;
19820     "anthy-test-conf") CONFIG_FILES="$CONFIG_FILES anthy-test-conf" ;;
19821     "anthy.spec") CONFIG_FILES="$CONFIG_FILES anthy.spec" ;;
19822     "anthy.pc") CONFIG_FILES="$CONFIG_FILES anthy.pc" ;;
19823
19824   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19825 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19826    { (exit 1); exit 1; }; };;
19827   esac
19828 done
19829
19830
19831 # If the user did not use the arguments to specify the items to instantiate,
19832 # then the envvar interface is used.  Set only those that are not.
19833 # We use the long form for the default assignment because of an extremely
19834 # bizarre bug on SunOS 4.1.3.
19835 if $ac_need_defaults; then
19836   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19837   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19838   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19839 fi
19840
19841 # Have a temporary directory for convenience.  Make it in the build tree
19842 # simply because there is no reason against having it here, and in addition,
19843 # creating and moving files from /tmp can sometimes cause problems.
19844 # Hook for its removal unless debugging.
19845 # Note that there is a small window in which the directory will not be cleaned:
19846 # after its creation but before its name has been assigned to `$tmp'.
19847 $debug ||
19848 {
19849   tmp=
19850   trap 'exit_status=$?
19851   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19852 ' 0
19853   trap '{ (exit 1); exit 1; }' 1 2 13 15
19854 }
19855 # Create a (secure) tmp directory for tmp files.
19856
19857 {
19858   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19859   test -n "$tmp" && test -d "$tmp"
19860 }  ||
19861 {
19862   tmp=./conf$$-$RANDOM
19863   (umask 077 && mkdir "$tmp")
19864 } ||
19865 {
19866    echo "$me: cannot create a temporary directory in ." >&2
19867    { (exit 1); exit 1; }
19868 }
19869
19870 #
19871 # Set up the sed scripts for CONFIG_FILES section.
19872 #
19873
19874 # No need to generate the scripts if there are no CONFIG_FILES.
19875 # This happens for instance when ./config.status config.h
19876 if test -n "$CONFIG_FILES"; then
19877
19878 _ACEOF
19879
19880
19881
19882 ac_delim='%!_!# '
19883 for ac_last_try in false false false false false :; do
19884   cat >conf$$subs.sed <<_ACEOF
19885 SHELL!$SHELL$ac_delim
19886 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19887 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19888 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19889 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19890 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19891 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19892 exec_prefix!$exec_prefix$ac_delim
19893 prefix!$prefix$ac_delim
19894 program_transform_name!$program_transform_name$ac_delim
19895 bindir!$bindir$ac_delim
19896 sbindir!$sbindir$ac_delim
19897 libexecdir!$libexecdir$ac_delim
19898 datarootdir!$datarootdir$ac_delim
19899 datadir!$datadir$ac_delim
19900 sysconfdir!$sysconfdir$ac_delim
19901 sharedstatedir!$sharedstatedir$ac_delim
19902 localstatedir!$localstatedir$ac_delim
19903 includedir!$includedir$ac_delim
19904 oldincludedir!$oldincludedir$ac_delim
19905 docdir!$docdir$ac_delim
19906 infodir!$infodir$ac_delim
19907 htmldir!$htmldir$ac_delim
19908 dvidir!$dvidir$ac_delim
19909 pdfdir!$pdfdir$ac_delim
19910 psdir!$psdir$ac_delim
19911 libdir!$libdir$ac_delim
19912 localedir!$localedir$ac_delim
19913 mandir!$mandir$ac_delim
19914 DEFS!$DEFS$ac_delim
19915 ECHO_C!$ECHO_C$ac_delim
19916 ECHO_N!$ECHO_N$ac_delim
19917 ECHO_T!$ECHO_T$ac_delim
19918 LIBS!$LIBS$ac_delim
19919 build_alias!$build_alias$ac_delim
19920 host_alias!$host_alias$ac_delim
19921 target_alias!$target_alias$ac_delim
19922 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19923 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19924 INSTALL_DATA!$INSTALL_DATA$ac_delim
19925 CYGPATH_W!$CYGPATH_W$ac_delim
19926 PACKAGE!$PACKAGE$ac_delim
19927 VERSION!$VERSION$ac_delim
19928 ACLOCAL!$ACLOCAL$ac_delim
19929 AUTOCONF!$AUTOCONF$ac_delim
19930 AUTOMAKE!$AUTOMAKE$ac_delim
19931 AUTOHEADER!$AUTOHEADER$ac_delim
19932 MAKEINFO!$MAKEINFO$ac_delim
19933 install_sh!$install_sh$ac_delim
19934 STRIP!$STRIP$ac_delim
19935 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
19936 mkdir_p!$mkdir_p$ac_delim
19937 AWK!$AWK$ac_delim
19938 SET_MAKE!$SET_MAKE$ac_delim
19939 am__leading_dot!$am__leading_dot$ac_delim
19940 AMTAR!$AMTAR$ac_delim
19941 am__tar!$am__tar$ac_delim
19942 am__untar!$am__untar$ac_delim
19943 CC!$CC$ac_delim
19944 CFLAGS!$CFLAGS$ac_delim
19945 LDFLAGS!$LDFLAGS$ac_delim
19946 CPPFLAGS!$CPPFLAGS$ac_delim
19947 ac_ct_CC!$ac_ct_CC$ac_delim
19948 EXEEXT!$EXEEXT$ac_delim
19949 OBJEXT!$OBJEXT$ac_delim
19950 DEPDIR!$DEPDIR$ac_delim
19951 am__include!$am__include$ac_delim
19952 am__quote!$am__quote$ac_delim
19953 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
19954 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
19955 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
19956 CCDEPMODE!$CCDEPMODE$ac_delim
19957 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
19958 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
19959 CPP!$CPP$ac_delim
19960 build!$build$ac_delim
19961 build_cpu!$build_cpu$ac_delim
19962 build_vendor!$build_vendor$ac_delim
19963 build_os!$build_os$ac_delim
19964 host!$host$ac_delim
19965 host_cpu!$host_cpu$ac_delim
19966 host_vendor!$host_vendor$ac_delim
19967 host_os!$host_os$ac_delim
19968 GREP!$GREP$ac_delim
19969 EGREP!$EGREP$ac_delim
19970 LN_S!$LN_S$ac_delim
19971 ECHO!$ECHO$ac_delim
19972 AR!$AR$ac_delim
19973 RANLIB!$RANLIB$ac_delim
19974 CXX!$CXX$ac_delim
19975 CXXFLAGS!$CXXFLAGS$ac_delim
19976 ac_ct_CXX!$ac_ct_CXX$ac_delim
19977 CXXDEPMODE!$CXXDEPMODE$ac_delim
19978 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
19979 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
19980 CXXCPP!$CXXCPP$ac_delim
19981 F77!$F77$ac_delim
19982 _ACEOF
19983
19984   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19985     break
19986   elif $ac_last_try; then
19987     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19988 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19989    { (exit 1); exit 1; }; }
19990   else
19991     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19992   fi
19993 done
19994
19995 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19996 if test -n "$ac_eof"; then
19997   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19998   ac_eof=`expr $ac_eof + 1`
19999 fi
20000
20001 cat >>$CONFIG_STATUS <<_ACEOF
20002 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20004 _ACEOF
20005 sed '
20006 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20007 s/^/s,@/; s/!/@,|#_!!_#|/
20008 :n
20009 t n
20010 s/'"$ac_delim"'$/,g/; t
20011 s/$/\\/; p
20012 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20013 ' >>$CONFIG_STATUS <conf$$subs.sed
20014 rm -f conf$$subs.sed
20015 cat >>$CONFIG_STATUS <<_ACEOF
20016 CEOF$ac_eof
20017 _ACEOF
20018
20019
20020 ac_delim='%!_!# '
20021 for ac_last_try in false false false false false :; do
20022   cat >conf$$subs.sed <<_ACEOF
20023 FFLAGS!$FFLAGS$ac_delim
20024 ac_ct_F77!$ac_ct_F77$ac_delim
20025 LIBTOOL!$LIBTOOL$ac_delim
20026 EMACS!$EMACS$ac_delim
20027 EMACSLOADPATH!$EMACSLOADPATH$ac_delim
20028 lispdir!$lispdir$ac_delim
20029 ELISP_TRUE!$ELISP_TRUE$ac_delim
20030 ELISP_FALSE!$ELISP_FALSE$ac_delim
20031 LIBOBJS!$LIBOBJS$ac_delim
20032 LTLIBOBJS!$LTLIBOBJS$ac_delim
20033 _ACEOF
20034
20035   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20036     break
20037   elif $ac_last_try; then
20038     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20039 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20040    { (exit 1); exit 1; }; }
20041   else
20042     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20043   fi
20044 done
20045
20046 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20047 if test -n "$ac_eof"; then
20048   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20049   ac_eof=`expr $ac_eof + 1`
20050 fi
20051
20052 cat >>$CONFIG_STATUS <<_ACEOF
20053 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20055 _ACEOF
20056 sed '
20057 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20058 s/^/s,@/; s/!/@,|#_!!_#|/
20059 :n
20060 t n
20061 s/'"$ac_delim"'$/,g/; t
20062 s/$/\\/; p
20063 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20064 ' >>$CONFIG_STATUS <conf$$subs.sed
20065 rm -f conf$$subs.sed
20066 cat >>$CONFIG_STATUS <<_ACEOF
20067 :end
20068 s/|#_!!_#|//g
20069 CEOF$ac_eof
20070 _ACEOF
20071
20072
20073 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20074 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20075 # trailing colons and then remove the whole line if VPATH becomes empty
20076 # (actually we leave an empty line to preserve line numbers).
20077 if test "x$srcdir" = x.; then
20078   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20079 s/:*\$(srcdir):*/:/
20080 s/:*\${srcdir}:*/:/
20081 s/:*@srcdir@:*/:/
20082 s/^\([^=]*=[     ]*\):*/\1/
20083 s/:*$//
20084 s/^[^=]*=[       ]*$//
20085 }'
20086 fi
20087
20088 cat >>$CONFIG_STATUS <<\_ACEOF
20089 fi # test -n "$CONFIG_FILES"
20090
20091
20092 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20093 do
20094   case $ac_tag in
20095   :[FHLC]) ac_mode=$ac_tag; continue;;
20096   esac
20097   case $ac_mode$ac_tag in
20098   :[FHL]*:*);;
20099   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20100 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20101    { (exit 1); exit 1; }; };;
20102   :[FH]-) ac_tag=-:-;;
20103   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20104   esac
20105   ac_save_IFS=$IFS
20106   IFS=:
20107   set x $ac_tag
20108   IFS=$ac_save_IFS
20109   shift
20110   ac_file=$1
20111   shift
20112
20113   case $ac_mode in
20114   :L) ac_source=$1;;
20115   :[FH])
20116     ac_file_inputs=
20117     for ac_f
20118     do
20119       case $ac_f in
20120       -) ac_f="$tmp/stdin";;
20121       *) # Look for the file first in the build tree, then in the source tree
20122          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20123          # because $ac_f cannot contain `:'.
20124          test -f "$ac_f" ||
20125            case $ac_f in
20126            [\\/$]*) false;;
20127            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20128            esac ||
20129            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20130 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20131    { (exit 1); exit 1; }; };;
20132       esac
20133       ac_file_inputs="$ac_file_inputs $ac_f"
20134     done
20135
20136     # Let's still pretend it is `configure' which instantiates (i.e., don't
20137     # use $as_me), people would be surprised to read:
20138     #    /* config.h.  Generated by config.status.  */
20139     configure_input="Generated from "`IFS=:
20140           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20141     if test x"$ac_file" != x-; then
20142       configure_input="$ac_file.  $configure_input"
20143       { echo "$as_me:$LINENO: creating $ac_file" >&5
20144 echo "$as_me: creating $ac_file" >&6;}
20145     fi
20146
20147     case $ac_tag in
20148     *:-:* | *:-) cat >"$tmp/stdin";;
20149     esac
20150     ;;
20151   esac
20152
20153   ac_dir=`$as_dirname -- "$ac_file" ||
20154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20155          X"$ac_file" : 'X\(//\)[^/]' \| \
20156          X"$ac_file" : 'X\(//\)$' \| \
20157          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20158 echo X"$ac_file" |
20159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20160             s//\1/
20161             q
20162           }
20163           /^X\(\/\/\)[^/].*/{
20164             s//\1/
20165             q
20166           }
20167           /^X\(\/\/\)$/{
20168             s//\1/
20169             q
20170           }
20171           /^X\(\/\).*/{
20172             s//\1/
20173             q
20174           }
20175           s/.*/./; q'`
20176   { as_dir="$ac_dir"
20177   case $as_dir in #(
20178   -*) as_dir=./$as_dir;;
20179   esac
20180   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20181     as_dirs=
20182     while :; do
20183       case $as_dir in #(
20184       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20185       *) as_qdir=$as_dir;;
20186       esac
20187       as_dirs="'$as_qdir' $as_dirs"
20188       as_dir=`$as_dirname -- "$as_dir" ||
20189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20190          X"$as_dir" : 'X\(//\)[^/]' \| \
20191          X"$as_dir" : 'X\(//\)$' \| \
20192          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20193 echo X"$as_dir" |
20194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20195             s//\1/
20196             q
20197           }
20198           /^X\(\/\/\)[^/].*/{
20199             s//\1/
20200             q
20201           }
20202           /^X\(\/\/\)$/{
20203             s//\1/
20204             q
20205           }
20206           /^X\(\/\).*/{
20207             s//\1/
20208             q
20209           }
20210           s/.*/./; q'`
20211       test -d "$as_dir" && break
20212     done
20213     test -z "$as_dirs" || eval "mkdir $as_dirs"
20214   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20215 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20216    { (exit 1); exit 1; }; }; }
20217   ac_builddir=.
20218
20219 case "$ac_dir" in
20220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20221 *)
20222   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20223   # A ".." for each directory in $ac_dir_suffix.
20224   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20225   case $ac_top_builddir_sub in
20226   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20227   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20228   esac ;;
20229 esac
20230 ac_abs_top_builddir=$ac_pwd
20231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20232 # for backward compatibility:
20233 ac_top_builddir=$ac_top_build_prefix
20234
20235 case $srcdir in
20236   .)  # We are building in place.
20237     ac_srcdir=.
20238     ac_top_srcdir=$ac_top_builddir_sub
20239     ac_abs_top_srcdir=$ac_pwd ;;
20240   [\\/]* | ?:[\\/]* )  # Absolute name.
20241     ac_srcdir=$srcdir$ac_dir_suffix;
20242     ac_top_srcdir=$srcdir
20243     ac_abs_top_srcdir=$srcdir ;;
20244   *) # Relative name.
20245     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20246     ac_top_srcdir=$ac_top_build_prefix$srcdir
20247     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20248 esac
20249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20250
20251
20252   case $ac_mode in
20253   :F)
20254   #
20255   # CONFIG_FILE
20256   #
20257
20258   case $INSTALL in
20259   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20260   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20261   esac
20262 _ACEOF
20263
20264 cat >>$CONFIG_STATUS <<\_ACEOF
20265 # If the template does not know about datarootdir, expand it.
20266 # FIXME: This hack should be removed a few years after 2.60.
20267 ac_datarootdir_hack=; ac_datarootdir_seen=
20268
20269 case `sed -n '/datarootdir/ {
20270   p
20271   q
20272 }
20273 /@datadir@/p
20274 /@docdir@/p
20275 /@infodir@/p
20276 /@localedir@/p
20277 /@mandir@/p
20278 ' $ac_file_inputs` in
20279 *datarootdir*) ac_datarootdir_seen=yes;;
20280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20281   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20282 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20283 _ACEOF
20284 cat >>$CONFIG_STATUS <<_ACEOF
20285   ac_datarootdir_hack='
20286   s&@datadir@&$datadir&g
20287   s&@docdir@&$docdir&g
20288   s&@infodir@&$infodir&g
20289   s&@localedir@&$localedir&g
20290   s&@mandir@&$mandir&g
20291     s&\\\${datarootdir}&$datarootdir&g' ;;
20292 esac
20293 _ACEOF
20294
20295 # Neutralize VPATH when `$srcdir' = `.'.
20296 # Shell code in configure.ac might set extrasub.
20297 # FIXME: do we really want to maintain this feature?
20298 cat >>$CONFIG_STATUS <<_ACEOF
20299   sed "$ac_vpsub
20300 $extrasub
20301 _ACEOF
20302 cat >>$CONFIG_STATUS <<\_ACEOF
20303 :t
20304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20305 s&@configure_input@&$configure_input&;t t
20306 s&@top_builddir@&$ac_top_builddir_sub&;t t
20307 s&@srcdir@&$ac_srcdir&;t t
20308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20309 s&@top_srcdir@&$ac_top_srcdir&;t t
20310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20311 s&@builddir@&$ac_builddir&;t t
20312 s&@abs_builddir@&$ac_abs_builddir&;t t
20313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20314 s&@INSTALL@&$ac_INSTALL&;t t
20315 $ac_datarootdir_hack
20316 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20317
20318 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20319   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20320   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20321   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20322 which seems to be undefined.  Please make sure it is defined." >&5
20323 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20324 which seems to be undefined.  Please make sure it is defined." >&2;}
20325
20326   rm -f "$tmp/stdin"
20327   case $ac_file in
20328   -) cat "$tmp/out"; rm -f "$tmp/out";;
20329   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20330   esac
20331  ;;
20332   :H)
20333   #
20334   # CONFIG_HEADER
20335   #
20336 _ACEOF
20337
20338 # Transform confdefs.h into a sed script `conftest.defines', that
20339 # substitutes the proper values into config.h.in to produce config.h.
20340 rm -f conftest.defines conftest.tail
20341 # First, append a space to every undef/define line, to ease matching.
20342 echo 's/$/ /' >conftest.defines
20343 # Then, protect against being on the right side of a sed subst, or in
20344 # an unquoted here document, in config.status.  If some macros were
20345 # called several times there might be several #defines for the same
20346 # symbol, which is useless.  But do not sort them, since the last
20347 # AC_DEFINE must be honored.
20348 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20349 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20350 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20351 # PARAMS is the parameter list in the macro definition--in most cases, it's
20352 # just an empty string.
20353 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20354 ac_dB='\\)[      (].*,\\1define\\2'
20355 ac_dC=' '
20356 ac_dD=' ,'
20357
20358 uniq confdefs.h |
20359   sed -n '
20360         t rset
20361         :rset
20362         s/^[     ]*#[    ]*define[       ][      ]*//
20363         t ok
20364         d
20365         :ok
20366         s/[\\&,]/\\&/g
20367         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20368         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20369   ' >>conftest.defines
20370
20371 # Remove the space that was appended to ease matching.
20372 # Then replace #undef with comments.  This is necessary, for
20373 # example, in the case of _POSIX_SOURCE, which is predefined and required
20374 # on some systems where configure will not decide to define it.
20375 # (The regexp can be short, since the line contains either #define or #undef.)
20376 echo 's/ $//
20377 s,^[     #]*u.*,/* & */,' >>conftest.defines
20378
20379 # Break up conftest.defines:
20380 ac_max_sed_lines=50
20381
20382 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20383 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20384 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20385 # et cetera.
20386 ac_in='$ac_file_inputs'
20387 ac_out='"$tmp/out1"'
20388 ac_nxt='"$tmp/out2"'
20389
20390 while :
20391 do
20392   # Write a here document:
20393     cat >>$CONFIG_STATUS <<_ACEOF
20394     # First, check the format of the line:
20395     cat >"\$tmp/defines.sed" <<\\CEOF
20396 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20397 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20398 b
20399 :def
20400 _ACEOF
20401   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20402   echo 'CEOF
20403     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20404   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20405   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20406   grep . conftest.tail >/dev/null || break
20407   rm -f conftest.defines
20408   mv conftest.tail conftest.defines
20409 done
20410 rm -f conftest.defines conftest.tail
20411
20412 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20413 cat >>$CONFIG_STATUS <<\_ACEOF
20414   if test x"$ac_file" != x-; then
20415     echo "/* $configure_input  */" >"$tmp/config.h"
20416     cat "$ac_result" >>"$tmp/config.h"
20417     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20418       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20419 echo "$as_me: $ac_file is unchanged" >&6;}
20420     else
20421       rm -f $ac_file
20422       mv "$tmp/config.h" $ac_file
20423     fi
20424   else
20425     echo "/* $configure_input  */"
20426     cat "$ac_result"
20427   fi
20428   rm -f "$tmp/out12"
20429 # Compute $ac_file's index in $config_headers.
20430 _am_stamp_count=1
20431 for _am_header in $config_headers :; do
20432   case $_am_header in
20433     $ac_file | $ac_file:* )
20434       break ;;
20435     * )
20436       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20437   esac
20438 done
20439 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20440 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20441          X$ac_file : 'X\(//\)[^/]' \| \
20442          X$ac_file : 'X\(//\)$' \| \
20443          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20444 echo X$ac_file |
20445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20446             s//\1/
20447             q
20448           }
20449           /^X\(\/\/\)[^/].*/{
20450             s//\1/
20451             q
20452           }
20453           /^X\(\/\/\)$/{
20454             s//\1/
20455             q
20456           }
20457           /^X\(\/\).*/{
20458             s//\1/
20459             q
20460           }
20461           s/.*/./; q'`/stamp-h$_am_stamp_count
20462  ;;
20463
20464   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20465 echo "$as_me: executing $ac_file commands" >&6;}
20466  ;;
20467   esac
20468
20469
20470   case $ac_file$ac_mode in
20471     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20472   # Strip MF so we end up with the name of the file.
20473   mf=`echo "$mf" | sed -e 's/:.*$//'`
20474   # Check whether this is an Automake generated Makefile or not.
20475   # We used to match only the files named `Makefile.in', but
20476   # some people rename them; so instead we look at the file content.
20477   # Grep'ing the first line is not enough: some people post-process
20478   # each Makefile.in and add a new line on top of each file to say so.
20479   # So let's grep whole file.
20480   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20481     dirpart=`$as_dirname -- "$mf" ||
20482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20483          X"$mf" : 'X\(//\)[^/]' \| \
20484          X"$mf" : 'X\(//\)$' \| \
20485          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20486 echo X"$mf" |
20487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20488             s//\1/
20489             q
20490           }
20491           /^X\(\/\/\)[^/].*/{
20492             s//\1/
20493             q
20494           }
20495           /^X\(\/\/\)$/{
20496             s//\1/
20497             q
20498           }
20499           /^X\(\/\).*/{
20500             s//\1/
20501             q
20502           }
20503           s/.*/./; q'`
20504   else
20505     continue
20506   fi
20507   # Extract the definition of DEPDIR, am__include, and am__quote
20508   # from the Makefile without running `make'.
20509   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20510   test -z "$DEPDIR" && continue
20511   am__include=`sed -n 's/^am__include = //p' < "$mf"`
20512   test -z "am__include" && continue
20513   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20514   # When using ansi2knr, U may be empty or an underscore; expand it
20515   U=`sed -n 's/^U = //p' < "$mf"`
20516   # Find all dependency output files, they are included files with
20517   # $(DEPDIR) in their names.  We invoke sed twice because it is the
20518   # simplest approach to changing $(DEPDIR) to its actual value in the
20519   # expansion.
20520   for file in `sed -n "
20521     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20522        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20523     # Make sure the directory exists.
20524     test -f "$dirpart/$file" && continue
20525     fdir=`$as_dirname -- "$file" ||
20526 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20527          X"$file" : 'X\(//\)[^/]' \| \
20528          X"$file" : 'X\(//\)$' \| \
20529          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20530 echo X"$file" |
20531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20532             s//\1/
20533             q
20534           }
20535           /^X\(\/\/\)[^/].*/{
20536             s//\1/
20537             q
20538           }
20539           /^X\(\/\/\)$/{
20540             s//\1/
20541             q
20542           }
20543           /^X\(\/\).*/{
20544             s//\1/
20545             q
20546           }
20547           s/.*/./; q'`
20548     { as_dir=$dirpart/$fdir
20549   case $as_dir in #(
20550   -*) as_dir=./$as_dir;;
20551   esac
20552   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20553     as_dirs=
20554     while :; do
20555       case $as_dir in #(
20556       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20557       *) as_qdir=$as_dir;;
20558       esac
20559       as_dirs="'$as_qdir' $as_dirs"
20560       as_dir=`$as_dirname -- "$as_dir" ||
20561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20562          X"$as_dir" : 'X\(//\)[^/]' \| \
20563          X"$as_dir" : 'X\(//\)$' \| \
20564          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20565 echo X"$as_dir" |
20566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20567             s//\1/
20568             q
20569           }
20570           /^X\(\/\/\)[^/].*/{
20571             s//\1/
20572             q
20573           }
20574           /^X\(\/\/\)$/{
20575             s//\1/
20576             q
20577           }
20578           /^X\(\/\).*/{
20579             s//\1/
20580             q
20581           }
20582           s/.*/./; q'`
20583       test -d "$as_dir" && break
20584     done
20585     test -z "$as_dirs" || eval "mkdir $as_dirs"
20586   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20588    { (exit 1); exit 1; }; }; }
20589     # echo "creating $dirpart/$file"
20590     echo '# dummy' > "$dirpart/$file"
20591   done
20592 done
20593  ;;
20594
20595   esac
20596 done # for ac_tag
20597
20598
20599 { (exit 0); exit 0; }
20600 _ACEOF
20601 chmod +x $CONFIG_STATUS
20602 ac_clean_files=$ac_clean_files_save
20603
20604
20605 # configure is writing to config.log, and then calls config.status.
20606 # config.status does its own redirection, appending to config.log.
20607 # Unfortunately, on DOS this fails, as config.log is still kept open
20608 # by configure, so config.status won't be able to write to it; its
20609 # output is simply discarded.  So we exec the FD to /dev/null,
20610 # effectively closing config.log, so it can be properly (re)opened and
20611 # appended to by config.status.  When coming back to configure, we
20612 # need to make the FD available again.
20613 if test "$no_create" != yes; then
20614   ac_cs_success=:
20615   ac_config_status_args=
20616   test "$silent" = yes &&
20617     ac_config_status_args="$ac_config_status_args --quiet"
20618   exec 5>/dev/null
20619   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20620   exec 5>>config.log
20621   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20622   # would make configure fail if this is the last instruction.
20623   $ac_cs_success || { (exit 1); exit 1; }
20624 fi
20625