]> git.ozlabs.org Git - ponghero.git/blob - ccan/ccan_tools/libtap/configure
Add web pages.
[ponghero.git] / ccan / ccan_tools / libtap / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for tap 1.01.
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='tap'
728 PACKAGE_TARNAME='tap'
729 PACKAGE_VERSION='1.01'
730 PACKAGE_STRING='tap 1.01'
731 PACKAGE_BUGREPORT=''
732
733 ac_unique_file="src/tap.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 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 CC
830 CFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CC
834 EXEEXT
835 OBJEXT
836 DEPDIR
837 am__include
838 am__quote
839 AMDEP_TRUE
840 AMDEP_FALSE
841 AMDEPBACKSLASH
842 CCDEPMODE
843 am__fastdepCC_TRUE
844 am__fastdepCC_FALSE
845 build
846 build_cpu
847 build_vendor
848 build_os
849 host
850 host_cpu
851 host_vendor
852 host_os
853 SED
854 GREP
855 EGREP
856 LN_S
857 ECHO
858 AR
859 RANLIB
860 CPP
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 LIBOBJS
873 LTLIBOBJS'
874 ac_subst_files=''
875       ac_precious_vars='build_alias
876 host_alias
877 target_alias
878 CC
879 CFLAGS
880 LDFLAGS
881 LIBS
882 CPPFLAGS
883 CPP
884 CXX
885 CXXFLAGS
886 CCC
887 CXXCPP
888 F77
889 FFLAGS'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942   # If the previous option needs an argument, assign it.
943   if test -n "$ac_prev"; then
944     eval $ac_prev=\$ac_option
945     ac_prev=
946     continue
947   fi
948
949   case $ac_option in
950   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951   *)    ac_optarg=yes ;;
952   esac
953
954   # Accept the important Cygnus configure options, so we can diagnose typos.
955
956   case $ac_dashdash$ac_option in
957   --)
958     ac_dashdash=yes ;;
959
960   -bindir | --bindir | --bindi | --bind | --bin | --bi)
961     ac_prev=bindir ;;
962   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963     bindir=$ac_optarg ;;
964
965   -build | --build | --buil | --bui | --bu)
966     ac_prev=build_alias ;;
967   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968     build_alias=$ac_optarg ;;
969
970   -cache-file | --cache-file | --cache-fil | --cache-fi \
971   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972     ac_prev=cache_file ;;
973   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975     cache_file=$ac_optarg ;;
976
977   --config-cache | -C)
978     cache_file=config.cache ;;
979
980   -datadir | --datadir | --datadi | --datad)
981     ac_prev=datadir ;;
982   -datadir=* | --datadir=* | --datadi=* | --datad=*)
983     datadir=$ac_optarg ;;
984
985   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986   | --dataroo | --dataro | --datar)
987     ac_prev=datarootdir ;;
988   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990     datarootdir=$ac_optarg ;;
991
992   -disable-* | --disable-*)
993     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
996       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997    { (exit 1); exit 1; }; }
998     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
999     eval enable_$ac_feature=no ;;
1000
1001   -docdir | --docdir | --docdi | --doc | --do)
1002     ac_prev=docdir ;;
1003   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004     docdir=$ac_optarg ;;
1005
1006   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007     ac_prev=dvidir ;;
1008   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009     dvidir=$ac_optarg ;;
1010
1011   -enable-* | --enable-*)
1012     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013     # Reject names that are not valid shell variable names.
1014     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016    { (exit 1); exit 1; }; }
1017     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018     eval enable_$ac_feature=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215     eval with_$ac_package=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       { echo "$as_me: error: invalid package name: $ac_package" >&2
1222    { (exit 1); exit 1; }; }
1223     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224     eval with_$ac_package=no ;;
1225
1226   --x)
1227     # Obsolete; use --with-x.
1228     with_x=yes ;;
1229
1230   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231   | --x-incl | --x-inc | --x-in | --x-i)
1232     ac_prev=x_includes ;;
1233   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235     x_includes=$ac_optarg ;;
1236
1237   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239     ac_prev=x_libraries ;;
1240   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242     x_libraries=$ac_optarg ;;
1243
1244   -*) { echo "$as_me: error: unrecognized option: $ac_option
1245 Try \`$0 --help' for more information." >&2
1246    { (exit 1); exit 1; }; }
1247     ;;
1248
1249   *=*)
1250     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1253       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1254    { (exit 1); exit 1; }; }
1255     eval $ac_envvar=\$ac_optarg
1256     export $ac_envvar ;;
1257
1258   *)
1259     # FIXME: should be removed in autoconf 3.0.
1260     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264     ;;
1265
1266   esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271   { echo "$as_me: error: missing argument to $ac_option" >&2
1272    { (exit 1); exit 1; }; }
1273 fi
1274
1275 # Be sure to have absolute directory names.
1276 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277                 datadir sysconfdir sharedstatedir localstatedir includedir \
1278                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279                 libdir localedir mandir
1280 do
1281   eval ac_val=\$$ac_var
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287    { (exit 1); exit 1; }; }
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299   if test "x$build_alias" = x; then
1300     cross_compiling=maybe
1301     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302     If a cross compiler is detected then cross compile mode will be used." >&2
1303   elif test "x$build_alias" != "x$host_alias"; then
1304     cross_compiling=yes
1305   fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317   { echo "$as_me: error: Working directory cannot be determined" >&2
1318    { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320   { echo "$as_me: error: pwd does not report name of working directory" >&2
1321    { (exit 1); exit 1; }; }
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326   ac_srcdir_defaulted=yes
1327   # Try the directory containing this script, then the parent directory.
1328   ac_confdir=`$as_dirname -- "$0" ||
1329 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330          X"$0" : 'X\(//\)[^/]' \| \
1331          X"$0" : 'X\(//\)$' \| \
1332          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1333 echo X"$0" |
1334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)[^/].*/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\).*/{
1347             s//\1/
1348             q
1349           }
1350           s/.*/./; q'`
1351   srcdir=$ac_confdir
1352   if test ! -r "$srcdir/$ac_unique_file"; then
1353     srcdir=..
1354   fi
1355 else
1356   ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361    { (exit 1); exit 1; }; }
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1366    { (exit 1); exit 1; }; }
1367         pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370   srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_env_${ac_var}_value=\$${ac_var}
1381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389   # Omit some internal or obsolete options to make the list less imposing.
1390   # This message is too long to be a string in the A/UX 3.1 sh.
1391   cat <<_ACEOF
1392 \`configure' configures tap 1.01 to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402   -h, --help              display this help and exit
1403       --help=short        display options specific to this package
1404       --help=recursive    display the short help of all the included packages
1405   -V, --version           display version information and exit
1406   -q, --quiet, --silent   do not print \`checking...' messages
1407       --cache-file=FILE   cache test results in FILE [disabled]
1408   -C, --config-cache      alias for \`--cache-file=config.cache'
1409   -n, --no-create         do not create output files
1410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413   --prefix=PREFIX         install architecture-independent files in PREFIX
1414                           [$ac_default_prefix]
1415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                           [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426   --bindir=DIR           user executables [EPREFIX/bin]
1427   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1428   --libexecdir=DIR       program executables [EPREFIX/libexec]
1429   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1430   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1431   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1432   --libdir=DIR           object code libraries [EPREFIX/lib]
1433   --includedir=DIR       C header files [PREFIX/include]
1434   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1435   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1436   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1437   --infodir=DIR          info documentation [DATAROOTDIR/info]
1438   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1439   --mandir=DIR           man documentation [DATAROOTDIR/man]
1440   --docdir=DIR           documentation root [DATAROOTDIR/doc/tap]
1441   --htmldir=DIR          html documentation [DOCDIR]
1442   --dvidir=DIR           dvi documentation [DOCDIR]
1443   --pdfdir=DIR           pdf documentation [DOCDIR]
1444   --psdir=DIR            ps documentation [DOCDIR]
1445 _ACEOF
1446
1447   cat <<\_ACEOF
1448
1449 Program names:
1450   --program-prefix=PREFIX            prepend PREFIX to installed program names
1451   --program-suffix=SUFFIX            append SUFFIX to installed program names
1452   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461   case $ac_init_help in
1462      short | recursive ) echo "Configuration of tap 1.01:";;
1463    esac
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --disable-dependency-tracking  speeds up one-time build
1470   --enable-dependency-tracking   do not reject slow dependency extractors
1471   --enable-shared[=PKGS]  build shared libraries [default=yes]
1472   --enable-static[=PKGS]  build static libraries [default=yes]
1473   --enable-fast-install[=PKGS]
1474                           optimize for fast installation [default=yes]
1475   --disable-libtool-lock  avoid locking (might break parallel builds)
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1481   --with-pic              try to use only PIC/non-PIC objects [default=use
1482                           both]
1483   --with-tags[=TAGS]      include additional configurations [automatic]
1484
1485 Some influential environment variables:
1486   CC          C compiler command
1487   CFLAGS      C compiler flags
1488   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1489               nonstandard directory <lib dir>
1490   LIBS        libraries to pass to the linker, e.g. -l<library>
1491   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492               you have headers in a nonstandard directory <include dir>
1493   CPP         C preprocessor
1494   CXX         C++ compiler command
1495   CXXFLAGS    C++ compiler flags
1496   CXXCPP      C++ preprocessor
1497   F77         Fortran 77 compiler command
1498   FFLAGS      Fortran 77 compiler flags
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508   # If there are subdirs, report their specific --help.
1509   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510     test -d "$ac_dir" || continue
1511     ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1517   # A ".." for each directory in $ac_dir_suffix.
1518   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1519   case $ac_top_builddir_sub in
1520   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522   esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530   .)  # We are building in place.
1531     ac_srcdir=.
1532     ac_top_srcdir=$ac_top_builddir_sub
1533     ac_abs_top_srcdir=$ac_pwd ;;
1534   [\\/]* | ?:[\\/]* )  # Absolute name.
1535     ac_srcdir=$srcdir$ac_dir_suffix;
1536     ac_top_srcdir=$srcdir
1537     ac_abs_top_srcdir=$srcdir ;;
1538   *) # Relative name.
1539     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540     ac_top_srcdir=$ac_top_build_prefix$srcdir
1541     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545     cd "$ac_dir" || { ac_status=$?; continue; }
1546     # Check for guested configure.
1547     if test -f "$ac_srcdir/configure.gnu"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550     elif test -f "$ac_srcdir/configure"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure" --help=recursive
1553     else
1554       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555     fi || ac_status=$?
1556     cd "$ac_pwd" || { ac_status=$?; break; }
1557   done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562   cat <<\_ACEOF
1563 tap configure 1.01
1564 generated by GNU Autoconf 2.61
1565
1566 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1567 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571   exit
1572 fi
1573 cat >config.log <<_ACEOF
1574 This file contains any messages produced by compilers while
1575 running configure, to aid debugging if configure makes a mistake.
1576
1577 It was created by tap $as_me 1.01, which was
1578 generated by GNU Autoconf 2.61.  Invocation command line was
1579
1580   $ $0 $@
1581
1582 _ACEOF
1583 exec 5>>config.log
1584 {
1585 cat <<_ASUNAME
1586 ## --------- ##
1587 ## Platform. ##
1588 ## --------- ##
1589
1590 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1591 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1592 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1593 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1594 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1595
1596 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1597 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1598
1599 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1600 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1601 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1602 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1603 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1604 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1605 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1606
1607 _ASUNAME
1608
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612   IFS=$as_save_IFS
1613   test -z "$as_dir" && as_dir=.
1614   echo "PATH: $as_dir"
1615 done
1616 IFS=$as_save_IFS
1617
1618 } >&5
1619
1620 cat >&5 <<_ACEOF
1621
1622
1623 ## ----------- ##
1624 ## Core tests. ##
1625 ## ----------- ##
1626
1627 _ACEOF
1628
1629
1630 # Keep a trace of the command line.
1631 # Strip out --no-create and --no-recursion so they do not pile up.
1632 # Strip out --silent because we don't want to record it for future runs.
1633 # Also quote any args containing shell meta-characters.
1634 # Make two passes to allow for proper duplicate-argument suppression.
1635 ac_configure_args=
1636 ac_configure_args0=
1637 ac_configure_args1=
1638 ac_must_keep_next=false
1639 for ac_pass in 1 2
1640 do
1641   for ac_arg
1642   do
1643     case $ac_arg in
1644     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1645     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1646     | -silent | --silent | --silen | --sile | --sil)
1647       continue ;;
1648     *\'*)
1649       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1650     esac
1651     case $ac_pass in
1652     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1653     2)
1654       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1655       if test $ac_must_keep_next = true; then
1656         ac_must_keep_next=false # Got value, back to normal.
1657       else
1658         case $ac_arg in
1659           *=* | --config-cache | -C | -disable-* | --disable-* \
1660           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1661           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1662           | -with-* | --with-* | -without-* | --without-* | --x)
1663             case "$ac_configure_args0 " in
1664               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1665             esac
1666             ;;
1667           -* ) ac_must_keep_next=true ;;
1668         esac
1669       fi
1670       ac_configure_args="$ac_configure_args '$ac_arg'"
1671       ;;
1672     esac
1673   done
1674 done
1675 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1676 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1677
1678 # When interrupted or exit'd, cleanup temporary files, and complete
1679 # config.log.  We remove comments because anyway the quotes in there
1680 # would cause problems or look ugly.
1681 # WARNING: Use '\'' to represent an apostrophe within the trap.
1682 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1683 trap 'exit_status=$?
1684   # Save into config.log some information that might help in debugging.
1685   {
1686     echo
1687
1688     cat <<\_ASBOX
1689 ## ---------------- ##
1690 ## Cache variables. ##
1691 ## ---------------- ##
1692 _ASBOX
1693     echo
1694     # The following way of writing the cache mishandles newlines in values,
1695 (
1696   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1697     eval ac_val=\$$ac_var
1698     case $ac_val in #(
1699     *${as_nl}*)
1700       case $ac_var in #(
1701       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1702 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1703       esac
1704       case $ac_var in #(
1705       _ | IFS | as_nl) ;; #(
1706       *) $as_unset $ac_var ;;
1707       esac ;;
1708     esac
1709   done
1710   (set) 2>&1 |
1711     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1712     *${as_nl}ac_space=\ *)
1713       sed -n \
1714         "s/'\''/'\''\\\\'\'''\''/g;
1715           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1716       ;; #(
1717     *)
1718       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1719       ;;
1720     esac |
1721     sort
1722 )
1723     echo
1724
1725     cat <<\_ASBOX
1726 ## ----------------- ##
1727 ## Output variables. ##
1728 ## ----------------- ##
1729 _ASBOX
1730     echo
1731     for ac_var in $ac_subst_vars
1732     do
1733       eval ac_val=\$$ac_var
1734       case $ac_val in
1735       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736       esac
1737       echo "$ac_var='\''$ac_val'\''"
1738     done | sort
1739     echo
1740
1741     if test -n "$ac_subst_files"; then
1742       cat <<\_ASBOX
1743 ## ------------------- ##
1744 ## File substitutions. ##
1745 ## ------------------- ##
1746 _ASBOX
1747       echo
1748       for ac_var in $ac_subst_files
1749       do
1750         eval ac_val=\$$ac_var
1751         case $ac_val in
1752         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753         esac
1754         echo "$ac_var='\''$ac_val'\''"
1755       done | sort
1756       echo
1757     fi
1758
1759     if test -s confdefs.h; then
1760       cat <<\_ASBOX
1761 ## ----------- ##
1762 ## confdefs.h. ##
1763 ## ----------- ##
1764 _ASBOX
1765       echo
1766       cat confdefs.h
1767       echo
1768     fi
1769     test "$ac_signal" != 0 &&
1770       echo "$as_me: caught signal $ac_signal"
1771     echo "$as_me: exit $exit_status"
1772   } >&5
1773   rm -f core *.core core.conftest.* &&
1774     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1775     exit $exit_status
1776 ' 0
1777 for ac_signal in 1 2 13 15; do
1778   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1779 done
1780 ac_signal=0
1781
1782 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1783 rm -f -r conftest* confdefs.h
1784
1785 # Predefined preprocessor variables.
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_NAME "$PACKAGE_NAME"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_STRING "$PACKAGE_STRING"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1809 _ACEOF
1810
1811
1812 # Let the site file select an alternate cache file if it wants to.
1813 # Prefer explicitly selected file to automatically selected ones.
1814 if test -n "$CONFIG_SITE"; then
1815   set x "$CONFIG_SITE"
1816 elif test "x$prefix" != xNONE; then
1817   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1818 else
1819   set x "$ac_default_prefix/share/config.site" \
1820         "$ac_default_prefix/etc/config.site"
1821 fi
1822 shift
1823 for ac_site_file
1824 do
1825   if test -r "$ac_site_file"; then
1826     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1827 echo "$as_me: loading site script $ac_site_file" >&6;}
1828     sed 's/^/| /' "$ac_site_file" >&5
1829     . "$ac_site_file"
1830   fi
1831 done
1832
1833 if test -r "$cache_file"; then
1834   # Some versions of bash will fail to source /dev/null (special
1835   # files actually), so we avoid doing that.
1836   if test -f "$cache_file"; then
1837     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1838 echo "$as_me: loading cache $cache_file" >&6;}
1839     case $cache_file in
1840       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1841       *)                      . "./$cache_file";;
1842     esac
1843   fi
1844 else
1845   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1846 echo "$as_me: creating cache $cache_file" >&6;}
1847   >$cache_file
1848 fi
1849
1850 # Check that the precious variables saved in the cache have kept the same
1851 # value.
1852 ac_cache_corrupted=false
1853 for ac_var in $ac_precious_vars; do
1854   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1855   eval ac_new_set=\$ac_env_${ac_var}_set
1856   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1857   eval ac_new_val=\$ac_env_${ac_var}_value
1858   case $ac_old_set,$ac_new_set in
1859     set,)
1860       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1861 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1862       ac_cache_corrupted=: ;;
1863     ,set)
1864       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1865 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1866       ac_cache_corrupted=: ;;
1867     ,);;
1868     *)
1869       if test "x$ac_old_val" != "x$ac_new_val"; then
1870         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1871 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1872         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1873 echo "$as_me:   former value:  $ac_old_val" >&2;}
1874         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1875 echo "$as_me:   current value: $ac_new_val" >&2;}
1876         ac_cache_corrupted=:
1877       fi;;
1878   esac
1879   # Pass precious variables to config.status.
1880   if test "$ac_new_set" = set; then
1881     case $ac_new_val in
1882     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1883     *) ac_arg=$ac_var=$ac_new_val ;;
1884     esac
1885     case " $ac_configure_args " in
1886       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1887       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888     esac
1889   fi
1890 done
1891 if $ac_cache_corrupted; then
1892   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1893 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1894   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1895 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1896    { (exit 1); exit 1; }; }
1897 fi
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928
1929
1930
1931 am__api_version='1.10'
1932
1933 ac_aux_dir=
1934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1935   if test -f "$ac_dir/install-sh"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/install-sh -c"
1938     break
1939   elif test -f "$ac_dir/install.sh"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/install.sh -c"
1942     break
1943   elif test -f "$ac_dir/shtool"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/shtool install -c"
1946     break
1947   fi
1948 done
1949 if test -z "$ac_aux_dir"; then
1950   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1952    { (exit 1); exit 1; }; }
1953 fi
1954
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1962
1963
1964 # Find a good install program.  We prefer a C program (faster),
1965 # so one script is as good as another.  But avoid the broken or
1966 # incompatible versions:
1967 # SysV /etc/install, /usr/sbin/install
1968 # SunOS /usr/etc/install
1969 # IRIX /sbin/install
1970 # AIX /bin/install
1971 # AmigaOS /C/install, which installs bootblocks on floppy discs
1972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1975 # OS/2's system install, which has a completely different semantic
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1978 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1979 if test -z "$INSTALL"; then
1980 if test "${ac_cv_path_install+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   # Account for people who put trailing slashes in PATH elements.
1989 case $as_dir/ in
1990   ./ | .// | /cC/* | \
1991   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1992   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1993   /usr/ucb/* ) ;;
1994   *)
1995     # OSF1 and SCO ODT 3.0 have their own names for install.
1996     # Don't use installbsd from OSF since it installs stuff as root
1997     # by default.
1998     for ac_prog in ginstall scoinst install; do
1999       for ac_exec_ext in '' $ac_executable_extensions; do
2000         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2001           if test $ac_prog = install &&
2002             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2003             # AIX install.  It has an incompatible calling convention.
2004             :
2005           elif test $ac_prog = install &&
2006             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007             # program-specific install script used by HP pwplus--don't use.
2008             :
2009           else
2010             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2011             break 3
2012           fi
2013         fi
2014       done
2015     done
2016     ;;
2017 esac
2018 done
2019 IFS=$as_save_IFS
2020
2021
2022 fi
2023   if test "${ac_cv_path_install+set}" = set; then
2024     INSTALL=$ac_cv_path_install
2025   else
2026     # As a last resort, use the slow shell script.  Don't cache a
2027     # value for INSTALL within a source directory, because that will
2028     # break other packages using the cache if that directory is
2029     # removed, or if the value is a relative name.
2030     INSTALL=$ac_install_sh
2031   fi
2032 fi
2033 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2034 echo "${ECHO_T}$INSTALL" >&6; }
2035
2036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2037 # It thinks the first close brace ends the variable substitution.
2038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2039
2040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2041
2042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2043
2044 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2045 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2046 # Just in case
2047 sleep 1
2048 echo timestamp > conftest.file
2049 # Do `set' in a subshell so we don't clobber the current shell's
2050 # arguments.  Must try -L first in case configure is actually a
2051 # symlink; some systems play weird games with the mod time of symlinks
2052 # (eg FreeBSD returns the mod time of the symlink's containing
2053 # directory).
2054 if (
2055    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2056    if test "$*" = "X"; then
2057       # -L didn't work.
2058       set X `ls -t $srcdir/configure conftest.file`
2059    fi
2060    rm -f conftest.file
2061    if test "$*" != "X $srcdir/configure conftest.file" \
2062       && test "$*" != "X conftest.file $srcdir/configure"; then
2063
2064       # If neither matched, then we have a broken ls.  This can happen
2065       # if, for instance, CONFIG_SHELL is bash and it inherits a
2066       # broken ls alias from the environment.  This has actually
2067       # happened.  Such a system could not be considered "sane".
2068       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2069 alias in your environment" >&5
2070 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2071 alias in your environment" >&2;}
2072    { (exit 1); exit 1; }; }
2073    fi
2074
2075    test "$2" = conftest.file
2076    )
2077 then
2078    # Ok.
2079    :
2080 else
2081    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2082 Check your system clock" >&5
2083 echo "$as_me: error: newly created file is older than distributed files!
2084 Check your system clock" >&2;}
2085    { (exit 1); exit 1; }; }
2086 fi
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089 test "$program_prefix" != NONE &&
2090   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2091 # Use a double $ so make ignores it.
2092 test "$program_suffix" != NONE &&
2093   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2094 # Double any \ or $.  echo might interpret backslashes.
2095 # By default was `s,x,x', remove it if useless.
2096 cat <<\_ACEOF >conftest.sed
2097 s/[\\$]/&&/g;s/;s,x,x,$//
2098 _ACEOF
2099 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2100 rm -f conftest.sed
2101
2102 # expand $ac_aux_dir to an absolute path
2103 am_aux_dir=`cd $ac_aux_dir && pwd`
2104
2105 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2106 # Use eval to expand $SHELL
2107 if eval "$MISSING --run true"; then
2108   am_missing_run="$MISSING --run "
2109 else
2110   am_missing_run=
2111   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2112 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2113 fi
2114
2115 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2116 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2117 if test -z "$MKDIR_P"; then
2118   if test "${ac_cv_path_mkdir+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_prog in mkdir gmkdir; do
2127          for ac_exec_ext in '' $ac_executable_extensions; do
2128            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2129            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2130              'mkdir (GNU coreutils) '* | \
2131              'mkdir (coreutils) '* | \
2132              'mkdir (fileutils) '4.1*)
2133                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2134                break 3;;
2135            esac
2136          done
2137        done
2138 done
2139 IFS=$as_save_IFS
2140
2141 fi
2142
2143   if test "${ac_cv_path_mkdir+set}" = set; then
2144     MKDIR_P="$ac_cv_path_mkdir -p"
2145   else
2146     # As a last resort, use the slow shell script.  Don't cache a
2147     # value for MKDIR_P within a source directory, because that will
2148     # break other packages using the cache if that directory is
2149     # removed, or if the value is a relative name.
2150     test -d ./--version && rmdir ./--version
2151     MKDIR_P="$ac_install_sh -d"
2152   fi
2153 fi
2154 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2155 echo "${ECHO_T}$MKDIR_P" >&6; }
2156
2157 mkdir_p="$MKDIR_P"
2158 case $mkdir_p in
2159   [\\/$]* | ?:[\\/]*) ;;
2160   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2161 esac
2162
2163 for ac_prog in gawk mawk nawk awk
2164 do
2165   # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_AWK+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$AWK"; then
2173   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     ac_cv_prog_AWK="$ac_prog"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 AWK=$ac_cv_prog_AWK
2193 if test -n "$AWK"; then
2194   { echo "$as_me:$LINENO: result: $AWK" >&5
2195 echo "${ECHO_T}$AWK" >&6; }
2196 else
2197   { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201
2202   test -n "$AWK" && break
2203 done
2204
2205 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2207 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   cat >conftest.make <<\_ACEOF
2212 SHELL = /bin/sh
2213 all:
2214         @echo '@@@%%%=$(MAKE)=@@@%%%'
2215 _ACEOF
2216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2218   *@@@%%%=?*=@@@%%%*)
2219     eval ac_cv_prog_make_${ac_make}_set=yes;;
2220   *)
2221     eval ac_cv_prog_make_${ac_make}_set=no;;
2222 esac
2223 rm -f conftest.make
2224 fi
2225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2226   { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2228   SET_MAKE=
2229 else
2230   { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232   SET_MAKE="MAKE=${MAKE-make}"
2233 fi
2234
2235 rm -rf .tst 2>/dev/null
2236 mkdir .tst 2>/dev/null
2237 if test -d .tst; then
2238   am__leading_dot=.
2239 else
2240   am__leading_dot=_
2241 fi
2242 rmdir .tst 2>/dev/null
2243
2244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2245   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2246   # is not polluted with repeated "-I."
2247   am__isrc=' -I$(srcdir)'
2248   # test to see if srcdir already configured
2249   if test -f $srcdir/config.status; then
2250     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252    { (exit 1); exit 1; }; }
2253   fi
2254 fi
2255
2256 # test whether we have cygpath
2257 if test -z "$CYGPATH_W"; then
2258   if (cygpath --version) >/dev/null 2>/dev/null; then
2259     CYGPATH_W='cygpath -w'
2260   else
2261     CYGPATH_W=echo
2262   fi
2263 fi
2264
2265
2266 # Define the identity of the package.
2267  PACKAGE='tap'
2268  VERSION='1.01'
2269
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE "$PACKAGE"
2273 _ACEOF
2274
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define VERSION "$VERSION"
2278 _ACEOF
2279
2280 # Some tools Automake needs.
2281
2282 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2283
2284
2285 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2286
2287
2288 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2289
2290
2291 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2292
2293
2294 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295
2296 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2297
2298 # Installed binaries are usually stripped using `strip' when the user
2299 # run `make install-strip'.  However `strip' might not be the right
2300 # tool to use in cross-compilation environments, therefore Automake
2301 # will honor the `STRIP' environment variable to overrule this program.
2302 if test "$cross_compiling" != no; then
2303   if test -n "$ac_tool_prefix"; then
2304   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_STRIP+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$STRIP"; then
2312   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327 IFS=$as_save_IFS
2328
2329 fi
2330 fi
2331 STRIP=$ac_cv_prog_STRIP
2332 if test -n "$STRIP"; then
2333   { echo "$as_me:$LINENO: result: $STRIP" >&5
2334 echo "${ECHO_T}$STRIP" >&6; }
2335 else
2336   { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340
2341 fi
2342 if test -z "$ac_cv_prog_STRIP"; then
2343   ac_ct_STRIP=$STRIP
2344   # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$ac_ct_STRIP"; then
2352   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361     ac_cv_prog_ac_ct_STRIP="strip"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372 if test -n "$ac_ct_STRIP"; then
2373   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2374 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2375 else
2376   { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380   if test "x$ac_ct_STRIP" = x; then
2381     STRIP=":"
2382   else
2383     case $cross_compiling:$ac_tool_warned in
2384 yes:)
2385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet.  If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&5
2388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet.  If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2391 ac_tool_warned=yes ;;
2392 esac
2393     STRIP=$ac_ct_STRIP
2394   fi
2395 else
2396   STRIP="$ac_cv_prog_STRIP"
2397 fi
2398
2399 fi
2400 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2401
2402 # We need awk for the "check" target.  The system "awk" is bad on
2403 # some platforms.
2404 # Always define AMTAR for backward compatibility.
2405
2406 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407
2408 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2409
2410
2411
2412
2413
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2420   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   if test -n "$CC"; then
2428   ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435   for ac_exec_ext in '' $ac_executable_extensions; do
2436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440   fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449   { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2451 else
2452   { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2454 fi
2455
2456
2457 fi
2458 if test -z "$ac_cv_prog_CC"; then
2459   ac_ct_CC=$CC
2460   # Extract the first word of "gcc", so it can be a program name with args.
2461 set dummy gcc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   if test -n "$ac_ct_CC"; then
2468   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475   for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     ac_cv_prog_ac_ct_CC="gcc"
2478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488 if test -n "$ac_ct_CC"; then
2489   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2490 echo "${ECHO_T}$ac_ct_CC" >&6; }
2491 else
2492   { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2494 fi
2495
2496   if test "x$ac_ct_CC" = x; then
2497     CC=""
2498   else
2499     case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2502 whose name does not start with the host triplet.  If you think this
2503 configuration is useful to you, please write to autoconf@gnu.org." >&5
2504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet.  If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2507 ac_tool_warned=yes ;;
2508 esac
2509     CC=$ac_ct_CC
2510   fi
2511 else
2512   CC="$ac_cv_prog_CC"
2513 fi
2514
2515 if test -z "$CC"; then
2516           if test -n "$ac_tool_prefix"; then
2517     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2518 set dummy ${ac_tool_prefix}cc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   if test -n "$CC"; then
2525   ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532   for ac_exec_ext in '' $ac_executable_extensions; do
2533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534     ac_cv_prog_CC="${ac_tool_prefix}cc"
2535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 CC=$ac_cv_prog_CC
2545 if test -n "$CC"; then
2546   { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2548 else
2549   { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2551 fi
2552
2553
2554   fi
2555 fi
2556 if test -z "$CC"; then
2557   # Extract the first word of "cc", so it can be a program name with args.
2558 set dummy cc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   if test -n "$CC"; then
2565   ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567   ac_prog_rejected=no
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573   for ac_exec_ext in '' $ac_executable_extensions; do
2574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2576        ac_prog_rejected=yes
2577        continue
2578      fi
2579     ac_cv_prog_CC="cc"
2580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581     break 2
2582   fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 if test $ac_prog_rejected = yes; then
2588   # We found a bogon in the path, so make sure we never use it.
2589   set dummy $ac_cv_prog_CC
2590   shift
2591   if test $# != 0; then
2592     # We chose a different compiler from the bogus one.
2593     # However, it has the same basename, so the bogon will be chosen
2594     # first if we set CC to just the basename; use the full file name.
2595     shift
2596     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2597   fi
2598 fi
2599 fi
2600 fi
2601 CC=$ac_cv_prog_CC
2602 if test -n "$CC"; then
2603   { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2605 else
2606   { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610
2611 fi
2612 if test -z "$CC"; then
2613   if test -n "$ac_tool_prefix"; then
2614   for ac_prog in cl.exe
2615   do
2616     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   if test -n "$CC"; then
2624   ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 CC=$ac_cv_prog_CC
2644 if test -n "$CC"; then
2645   { echo "$as_me:$LINENO: result: $CC" >&5
2646 echo "${ECHO_T}$CC" >&6; }
2647 else
2648   { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2650 fi
2651
2652
2653     test -n "$CC" && break
2654   done
2655 fi
2656 if test -z "$CC"; then
2657   ac_ct_CC=$CC
2658   for ac_prog in cl.exe
2659 do
2660   # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   if test -n "$ac_ct_CC"; then
2668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673   IFS=$as_save_IFS
2674   test -z "$as_dir" && as_dir=.
2675   for ac_exec_ext in '' $ac_executable_extensions; do
2676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677     ac_cv_prog_ac_ct_CC="$ac_prog"
2678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690 echo "${ECHO_T}$ac_ct_CC" >&6; }
2691 else
2692   { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2694 fi
2695
2696
2697   test -n "$ac_ct_CC" && break
2698 done
2699
2700   if test "x$ac_ct_CC" = x; then
2701     CC=""
2702   else
2703     case $cross_compiling:$ac_tool_warned in
2704 yes:)
2705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2706 whose name does not start with the host triplet.  If you think this
2707 configuration is useful to you, please write to autoconf@gnu.org." >&5
2708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet.  If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2711 ac_tool_warned=yes ;;
2712 esac
2713     CC=$ac_ct_CC
2714   fi
2715 fi
2716
2717 fi
2718
2719
2720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: no acceptable C compiler found in \$PATH
2723 See \`config.log' for more details." >&2;}
2724    { (exit 1); exit 1; }; }
2725
2726 # Provide some information about the compiler.
2727 echo "$as_me:$LINENO: checking for C compiler version" >&5
2728 ac_compiler=`set X $ac_compile; echo $2`
2729 { (ac_try="$ac_compiler --version >&5"
2730 case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735   (eval "$ac_compiler --version >&5") 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }
2739 { (ac_try="$ac_compiler -v >&5"
2740 case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_compiler -v >&5") 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }
2749 { (ac_try="$ac_compiler -V >&5"
2750 case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755   (eval "$ac_compiler -V >&5") 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }
2759
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 int
2768 main ()
2769 {
2770
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 ac_clean_files_save=$ac_clean_files
2776 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2777 # Try to create an executable without -o first, disregard a.out.
2778 # It will help us diagnose broken compilers, and finding out an intuition
2779 # of exeext.
2780 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2783 #
2784 # List of possible output files, starting from the most likely.
2785 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2786 # only as a last resort.  b.out is created by i960 compilers.
2787 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2788 #
2789 # The IRIX 6 linker writes into existing files which may not be
2790 # executable, retaining their permissions.  Remove them first so a
2791 # subsequent execution test works.
2792 ac_rmfiles=
2793 for ac_file in $ac_files
2794 do
2795   case $ac_file in
2796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2797     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2798   esac
2799 done
2800 rm -f $ac_rmfiles
2801
2802 if { (ac_try="$ac_link_default"
2803 case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_link_default") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; then
2812   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2813 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2814 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2815 # so that the user can short-circuit this test for compilers unknown to
2816 # Autoconf.
2817 for ac_file in $ac_files ''
2818 do
2819   test -f "$ac_file" || continue
2820   case $ac_file in
2821     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2822         ;;
2823     [ab].out )
2824         # We found the default executable, but exeext='' is most
2825         # certainly right.
2826         break;;
2827     *.* )
2828         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2829         then :; else
2830            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2831         fi
2832         # We set ac_cv_exeext here because the later test for it is not
2833         # safe: cross compilers may not add the suffix if given an `-o'
2834         # argument, so we may need to know it at that point already.
2835         # Even if this section looks crufty: it has the advantage of
2836         # actually working.
2837         break;;
2838     * )
2839         break;;
2840   esac
2841 done
2842 test "$ac_cv_exeext" = no && ac_cv_exeext=
2843
2844 else
2845   ac_file=''
2846 fi
2847
2848 { echo "$as_me:$LINENO: result: $ac_file" >&5
2849 echo "${ECHO_T}$ac_file" >&6; }
2850 if test -z "$ac_file"; then
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&2;}
2858    { (exit 77); exit 77; }; }
2859 fi
2860
2861 ac_exeext=$ac_cv_exeext
2862
2863 # Check that the compiler produces executables we can run.  If not, either
2864 # the compiler is broken, or we cross compile.
2865 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2866 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2867 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2868 # If not cross compiling, check that we can run a simple program.
2869 if test "$cross_compiling" != yes; then
2870   if { ac_try='./$ac_file'
2871   { (case "(($ac_try" in
2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873   *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876   (eval "$ac_try") 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }; }; then
2880     cross_compiling=no
2881   else
2882     if test "$cross_compiling" = maybe; then
2883         cross_compiling=yes
2884     else
2885         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2886 If you meant to cross compile, use \`--host'.
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&2;}
2891    { (exit 1); exit 1; }; }
2892     fi
2893   fi
2894 fi
2895 { echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6; }
2897
2898 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2899 ac_clean_files=$ac_clean_files_save
2900 # Check that the compiler produces executables we can run.  If not, either
2901 # the compiler is broken, or we cross compile.
2902 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2903 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2904 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2905 echo "${ECHO_T}$cross_compiling" >&6; }
2906
2907 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2908 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2909 if { (ac_try="$ac_link"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_link") 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; then
2919   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2920 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2921 # work properly (i.e., refer to `conftest.exe'), while it won't with
2922 # `rm'.
2923 for ac_file in conftest.exe conftest conftest.*; do
2924   test -f "$ac_file" || continue
2925   case $ac_file in
2926     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2927     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2928           break;;
2929     * ) break;;
2930   esac
2931 done
2932 else
2933   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details." >&2;}
2937    { (exit 1); exit 1; }; }
2938 fi
2939
2940 rm -f conftest$ac_cv_exeext
2941 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2942 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2943
2944 rm -f conftest.$ac_ext
2945 EXEEXT=$ac_cv_exeext
2946 ac_exeext=$EXEEXT
2947 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2948 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2949 if test "${ac_cv_objext+set}" = set; then
2950   echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952   cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 int
2960 main ()
2961 {
2962
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.o conftest.obj
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compile") 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }; then
2978   for ac_file in conftest.o conftest.obj conftest.*; do
2979   test -f "$ac_file" || continue;
2980   case $ac_file in
2981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2983        break;;
2984   esac
2985 done
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log' for more details." >&2;}
2994    { (exit 1); exit 1; }; }
2995 fi
2996
2997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2998 fi
2999 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3000 echo "${ECHO_T}$ac_cv_objext" >&6; }
3001 OBJEXT=$ac_cv_objext
3002 ac_objext=$OBJEXT
3003 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h.  */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h.  */
3014
3015 int
3016 main ()
3017 {
3018 #ifndef __GNUC__
3019        choke me
3020 #endif
3021
3022   ;
3023   return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_compile") 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } && {
3040          test -z "$ac_c_werror_flag" ||
3041          test ! -s conftest.err
3042        } && test -s conftest.$ac_objext; then
3043   ac_compiler_gnu=yes
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048         ac_compiler_gnu=no
3049 fi
3050
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3053
3054 fi
3055 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3057 GCC=`test $ac_compiler_gnu = yes && echo yes`
3058 ac_test_CFLAGS=${CFLAGS+set}
3059 ac_save_CFLAGS=$CFLAGS
3060 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3062 if test "${ac_cv_prog_cc_g+set}" = set; then
3063   echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065   ac_save_c_werror_flag=$ac_c_werror_flag
3066    ac_c_werror_flag=yes
3067    ac_cv_prog_cc_g=no
3068    CFLAGS="-g"
3069    cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075
3076 int
3077 main ()
3078 {
3079
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3086 case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_compile") 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } && {
3098          test -z "$ac_c_werror_flag" ||
3099          test ! -s conftest.err
3100        } && test -s conftest.$ac_objext; then
3101   ac_cv_prog_cc_g=yes
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106         CFLAGS=""
3107       cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_compile") 2>conftest.er1
3130   ac_status=$?
3131   grep -v '^ *+' conftest.er1 >conftest.err
3132   rm -f conftest.er1
3133   cat conftest.err >&5
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); } && {
3136          test -z "$ac_c_werror_flag" ||
3137          test ! -s conftest.err
3138        } && test -s conftest.$ac_objext; then
3139   :
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144         ac_c_werror_flag=$ac_save_c_werror_flag
3145          CFLAGS="-g"
3146          cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156
3157   ;
3158   return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3163 case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_compile") 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } && {
3175          test -z "$ac_c_werror_flag" ||
3176          test ! -s conftest.err
3177        } && test -s conftest.$ac_objext; then
3178   ac_cv_prog_cc_g=yes
3179 else
3180   echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193    ac_c_werror_flag=$ac_save_c_werror_flag
3194 fi
3195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3196 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3197 if test "$ac_test_CFLAGS" = set; then
3198   CFLAGS=$ac_save_CFLAGS
3199 elif test $ac_cv_prog_cc_g = yes; then
3200   if test "$GCC" = yes; then
3201     CFLAGS="-g -O2"
3202   else
3203     CFLAGS="-g"
3204   fi
3205 else
3206   if test "$GCC" = yes; then
3207     CFLAGS="-O2"
3208   else
3209     CFLAGS=
3210   fi
3211 fi
3212 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3213 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3214 if test "${ac_cv_prog_cc_c89+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   ac_cv_prog_cc_c89=no
3218 ac_save_CC=$CC
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225 #include <stdarg.h>
3226 #include <stdio.h>
3227 #include <sys/types.h>
3228 #include <sys/stat.h>
3229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3230 struct buf { int x; };
3231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3232 static char *e (p, i)
3233      char **p;
3234      int i;
3235 {
3236   return p[i];
3237 }
3238 static char *f (char * (*g) (char **, int), char **p, ...)
3239 {
3240   char *s;
3241   va_list v;
3242   va_start (v,p);
3243   s = g (p, va_arg (v,int));
3244   va_end (v);
3245   return s;
3246 }
3247
3248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3249    function prototypes and stuff, but not '\xHH' hex character constants.
3250    These don't provoke an error unfortunately, instead are silently treated
3251    as 'x'.  The following induces an error, until -std is added to get
3252    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3253    array size at least.  It's necessary to write '\x00'==0 to get something
3254    that's true only with -std.  */
3255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3256
3257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3258    inside strings and character constants.  */
3259 #define FOO(x) 'x'
3260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3261
3262 int test (int i, double x);
3263 struct s1 {int (*f) (int a);};
3264 struct s2 {int (*f) (double a);};
3265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3266 int argc;
3267 char **argv;
3268 int
3269 main ()
3270 {
3271 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3272   ;
3273   return 0;
3274 }
3275 _ACEOF
3276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3277         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3278 do
3279   CC="$ac_save_CC $ac_arg"
3280   rm -f conftest.$ac_objext
3281 if { (ac_try="$ac_compile"
3282 case "(($ac_try" in
3283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284   *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287   (eval "$ac_compile") 2>conftest.er1
3288   ac_status=$?
3289   grep -v '^ *+' conftest.er1 >conftest.err
3290   rm -f conftest.er1
3291   cat conftest.err >&5
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } && {
3294          test -z "$ac_c_werror_flag" ||
3295          test ! -s conftest.err
3296        } && test -s conftest.$ac_objext; then
3297   ac_cv_prog_cc_c89=$ac_arg
3298 else
3299   echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302
3303 fi
3304
3305 rm -f core conftest.err conftest.$ac_objext
3306   test "x$ac_cv_prog_cc_c89" != "xno" && break
3307 done
3308 rm -f conftest.$ac_ext
3309 CC=$ac_save_CC
3310
3311 fi
3312 # AC_CACHE_VAL
3313 case "x$ac_cv_prog_cc_c89" in
3314   x)
3315     { echo "$as_me:$LINENO: result: none needed" >&5
3316 echo "${ECHO_T}none needed" >&6; } ;;
3317   xno)
3318     { echo "$as_me:$LINENO: result: unsupported" >&5
3319 echo "${ECHO_T}unsupported" >&6; } ;;
3320   *)
3321     CC="$CC $ac_cv_prog_cc_c89"
3322     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3323 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3324 esac
3325
3326
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 DEPDIR="${am__leading_dot}deps"
3333
3334 ac_config_commands="$ac_config_commands depfiles"
3335
3336
3337 am_make=${MAKE-make}
3338 cat > confinc << 'END'
3339 am__doit:
3340         @echo done
3341 .PHONY: am__doit
3342 END
3343 # If we don't find an include directive, just comment out the code.
3344 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3345 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3346 am__include="#"
3347 am__quote=
3348 _am_result=none
3349 # First try GNU make style include.
3350 echo "include confinc" > confmf
3351 # We grep out `Entering directory' and `Leaving directory'
3352 # messages which can occur if `w' ends up in MAKEFLAGS.
3353 # In particular we don't look at `^make:' because GNU make might
3354 # be invoked under some other name (usually "gmake"), in which
3355 # case it prints its new name instead of `make'.
3356 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3357    am__include=include
3358    am__quote=
3359    _am_result=GNU
3360 fi
3361 # Now try BSD make style include.
3362 if test "$am__include" = "#"; then
3363    echo '.include "confinc"' > confmf
3364    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3365       am__include=.include
3366       am__quote="\""
3367       _am_result=BSD
3368    fi
3369 fi
3370
3371
3372 { echo "$as_me:$LINENO: result: $_am_result" >&5
3373 echo "${ECHO_T}$_am_result" >&6; }
3374 rm -f confinc confmf
3375
3376 # Check whether --enable-dependency-tracking was given.
3377 if test "${enable_dependency_tracking+set}" = set; then
3378   enableval=$enable_dependency_tracking;
3379 fi
3380
3381 if test "x$enable_dependency_tracking" != xno; then
3382   am_depcomp="$ac_aux_dir/depcomp"
3383   AMDEPBACKSLASH='\'
3384 fi
3385  if test "x$enable_dependency_tracking" != xno; then
3386   AMDEP_TRUE=
3387   AMDEP_FALSE='#'
3388 else
3389   AMDEP_TRUE='#'
3390   AMDEP_FALSE=
3391 fi
3392
3393
3394
3395 depcc="$CC"   am_compiler_list=
3396
3397 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3398 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3399 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3403   # We make a subdir and do the tests there.  Otherwise we can end up
3404   # making bogus files that we don't know about and never remove.  For
3405   # instance it was reported that on HP-UX the gcc test will end up
3406   # making a dummy file named `D' -- because `-MD' means `put the output
3407   # in D'.
3408   mkdir conftest.dir
3409   # Copy depcomp to subdir because otherwise we won't find it if we're
3410   # using a relative directory.
3411   cp "$am_depcomp" conftest.dir
3412   cd conftest.dir
3413   # We will build objects and dependencies in a subdirectory because
3414   # it helps to detect inapplicable dependency modes.  For instance
3415   # both Tru64's cc and ICC support -MD to output dependencies as a
3416   # side effect of compilation, but ICC will put the dependencies in
3417   # the current directory while Tru64 will put them in the object
3418   # directory.
3419   mkdir sub
3420
3421   am_cv_CC_dependencies_compiler_type=none
3422   if test "$am_compiler_list" = ""; then
3423      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3424   fi
3425   for depmode in $am_compiler_list; do
3426     # Setup a source with many dependencies, because some compilers
3427     # like to wrap large dependency lists on column 80 (with \), and
3428     # we should not choose a depcomp mode which is confused by this.
3429     #
3430     # We need to recreate these files for each test, as the compiler may
3431     # overwrite some of them when testing with obscure command lines.
3432     # This happens at least with the AIX C compiler.
3433     : > sub/conftest.c
3434     for i in 1 2 3 4 5 6; do
3435       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3436       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3437       # Solaris 8's {/usr,}/bin/sh.
3438       touch sub/conftst$i.h
3439     done
3440     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3441
3442     case $depmode in
3443     nosideeffect)
3444       # after this tag, mechanisms are not by side-effect, so they'll
3445       # only be used when explicitly requested
3446       if test "x$enable_dependency_tracking" = xyes; then
3447         continue
3448       else
3449         break
3450       fi
3451       ;;
3452     none) break ;;
3453     esac
3454     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3455     # mode.  It turns out that the SunPro C++ compiler does not properly
3456     # handle `-M -o', and we need to detect this.
3457     if depmode=$depmode \
3458        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3459        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3460        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3461          >/dev/null 2>conftest.err &&
3462        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3463        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3464        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3465        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3466       # icc doesn't choke on unknown options, it will just issue warnings
3467       # or remarks (even with -Werror).  So we grep stderr for any message
3468       # that says an option was ignored or not supported.
3469       # When given -MP, icc 7.0 and 7.1 complain thusly:
3470       #   icc: Command line warning: ignoring option '-M'; no argument required
3471       # The diagnosis changed in icc 8.0:
3472       #   icc: Command line remark: option '-MP' not supported
3473       if (grep 'ignoring option' conftest.err ||
3474           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3475         am_cv_CC_dependencies_compiler_type=$depmode
3476         break
3477       fi
3478     fi
3479   done
3480
3481   cd ..
3482   rm -rf conftest.dir
3483 else
3484   am_cv_CC_dependencies_compiler_type=none
3485 fi
3486
3487 fi
3488 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3489 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3490 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3491
3492  if
3493   test "x$enable_dependency_tracking" != xno \
3494   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3495   am__fastdepCC_TRUE=
3496   am__fastdepCC_FALSE='#'
3497 else
3498   am__fastdepCC_TRUE='#'
3499   am__fastdepCC_FALSE=
3500 fi
3501
3502
3503 # Check whether --enable-shared was given.
3504 if test "${enable_shared+set}" = set; then
3505   enableval=$enable_shared; p=${PACKAGE-default}
3506     case $enableval in
3507     yes) enable_shared=yes ;;
3508     no) enable_shared=no ;;
3509     *)
3510       enable_shared=no
3511       # Look at the argument we got.  We use all the common list separators.
3512       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3513       for pkg in $enableval; do
3514         IFS="$lt_save_ifs"
3515         if test "X$pkg" = "X$p"; then
3516           enable_shared=yes
3517         fi
3518       done
3519       IFS="$lt_save_ifs"
3520       ;;
3521     esac
3522 else
3523   enable_shared=yes
3524 fi
3525
3526
3527 # Check whether --enable-static was given.
3528 if test "${enable_static+set}" = set; then
3529   enableval=$enable_static; p=${PACKAGE-default}
3530     case $enableval in
3531     yes) enable_static=yes ;;
3532     no) enable_static=no ;;
3533     *)
3534      enable_static=no
3535       # Look at the argument we got.  We use all the common list separators.
3536       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3537       for pkg in $enableval; do
3538         IFS="$lt_save_ifs"
3539         if test "X$pkg" = "X$p"; then
3540           enable_static=yes
3541         fi
3542       done
3543       IFS="$lt_save_ifs"
3544       ;;
3545     esac
3546 else
3547   enable_static=yes
3548 fi
3549
3550
3551 # Check whether --enable-fast-install was given.
3552 if test "${enable_fast_install+set}" = set; then
3553   enableval=$enable_fast_install; p=${PACKAGE-default}
3554     case $enableval in
3555     yes) enable_fast_install=yes ;;
3556     no) enable_fast_install=no ;;
3557     *)
3558       enable_fast_install=no
3559       # Look at the argument we got.  We use all the common list separators.
3560       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3561       for pkg in $enableval; do
3562         IFS="$lt_save_ifs"
3563         if test "X$pkg" = "X$p"; then
3564           enable_fast_install=yes
3565         fi
3566       done
3567       IFS="$lt_save_ifs"
3568       ;;
3569     esac
3570 else
3571   enable_fast_install=yes
3572 fi
3573
3574
3575 # Make sure we can run config.sub.
3576 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3577   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3578 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3579    { (exit 1); exit 1; }; }
3580
3581 { echo "$as_me:$LINENO: checking build system type" >&5
3582 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3583 if test "${ac_cv_build+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   ac_build_alias=$build_alias
3587 test "x$ac_build_alias" = x &&
3588   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3589 test "x$ac_build_alias" = x &&
3590   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3591 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3592    { (exit 1); exit 1; }; }
3593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3594   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3595 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3596    { (exit 1); exit 1; }; }
3597
3598 fi
3599 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3600 echo "${ECHO_T}$ac_cv_build" >&6; }
3601 case $ac_cv_build in
3602 *-*-*) ;;
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3604 echo "$as_me: error: invalid value of canonical build" >&2;}
3605    { (exit 1); exit 1; }; };;
3606 esac
3607 build=$ac_cv_build
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_build
3610 shift
3611 build_cpu=$1
3612 build_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 build_os=$*
3617 IFS=$ac_save_IFS
3618 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3619
3620
3621 { echo "$as_me:$LINENO: checking host system type" >&5
3622 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_host+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   if test "x$host_alias" = x; then
3627   ac_cv_host=$ac_cv_build
3628 else
3629   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3630     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3632    { (exit 1); exit 1; }; }
3633 fi
3634
3635 fi
3636 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3637 echo "${ECHO_T}$ac_cv_host" >&6; }
3638 case $ac_cv_host in
3639 *-*-*) ;;
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3641 echo "$as_me: error: invalid value of canonical host" >&2;}
3642    { (exit 1); exit 1; }; };;
3643 esac
3644 host=$ac_cv_host
3645 ac_save_IFS=$IFS; IFS='-'
3646 set x $ac_cv_host
3647 shift
3648 host_cpu=$1
3649 host_vendor=$2
3650 shift; shift
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3653 host_os=$*
3654 IFS=$ac_save_IFS
3655 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3656
3657
3658 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3659 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3660 if test "${lt_cv_path_SED+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   # Loop through the user's path and test for sed and gsed.
3664 # Then use that list of sed's as ones to test for truncation.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668   IFS=$as_save_IFS
3669   test -z "$as_dir" && as_dir=.
3670   for lt_ac_prog in sed gsed; do
3671     for ac_exec_ext in '' $ac_executable_extensions; do
3672       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3673         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3674       fi
3675     done
3676   done
3677 done
3678 IFS=$as_save_IFS
3679 lt_ac_max=0
3680 lt_ac_count=0
3681 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3682 # along with /bin/sed that truncates output.
3683 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3684   test ! -f $lt_ac_sed && continue
3685   cat /dev/null > conftest.in
3686   lt_ac_count=0
3687   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3688   # Check for GNU sed and select it if it is found.
3689   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3690     lt_cv_path_SED=$lt_ac_sed
3691     break
3692   fi
3693   while true; do
3694     cat conftest.in conftest.in >conftest.tmp
3695     mv conftest.tmp conftest.in
3696     cp conftest.in conftest.nl
3697     echo >>conftest.nl
3698     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3699     cmp -s conftest.out conftest.nl || break
3700     # 10000 chars as input seems more than enough
3701     test $lt_ac_count -gt 10 && break
3702     lt_ac_count=`expr $lt_ac_count + 1`
3703     if test $lt_ac_count -gt $lt_ac_max; then
3704       lt_ac_max=$lt_ac_count
3705       lt_cv_path_SED=$lt_ac_sed
3706     fi
3707   done
3708 done
3709
3710 fi
3711
3712 SED=$lt_cv_path_SED
3713
3714 { echo "$as_me:$LINENO: result: $SED" >&5
3715 echo "${ECHO_T}$SED" >&6; }
3716
3717 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3718 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3719 if test "${ac_cv_path_GREP+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   # Extract the first word of "grep ggrep" to use in msg output
3723 if test -z "$GREP"; then
3724 set dummy grep ggrep; ac_prog_name=$2
3725 if test "${ac_cv_path_GREP+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   ac_path_GREP_found=false
3729 # Loop through the user's path and test for each of PROGNAME-LIST
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3732 do
3733   IFS=$as_save_IFS
3734   test -z "$as_dir" && as_dir=.
3735   for ac_prog in grep ggrep; do
3736   for ac_exec_ext in '' $ac_executable_extensions; do
3737     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3738     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3739     # Check for GNU ac_path_GREP and select it if it is found.
3740   # Check for GNU $ac_path_GREP
3741 case `"$ac_path_GREP" --version 2>&1` in
3742 *GNU*)
3743   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3744 *)
3745   ac_count=0
3746   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3747   while :
3748   do
3749     cat "conftest.in" "conftest.in" >"conftest.tmp"
3750     mv "conftest.tmp" "conftest.in"
3751     cp "conftest.in" "conftest.nl"
3752     echo 'GREP' >> "conftest.nl"
3753     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3754     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3755     ac_count=`expr $ac_count + 1`
3756     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3757       # Best one so far, save it but keep looking for a better one
3758       ac_cv_path_GREP="$ac_path_GREP"
3759       ac_path_GREP_max=$ac_count
3760     fi
3761     # 10*(2^10) chars as input seems more than enough
3762     test $ac_count -gt 10 && break
3763   done
3764   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3765 esac
3766
3767
3768     $ac_path_GREP_found && break 3
3769   done
3770 done
3771
3772 done
3773 IFS=$as_save_IFS
3774
3775
3776 fi
3777
3778 GREP="$ac_cv_path_GREP"
3779 if test -z "$GREP"; then
3780   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3781 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3782    { (exit 1); exit 1; }; }
3783 fi
3784
3785 else
3786   ac_cv_path_GREP=$GREP
3787 fi
3788
3789
3790 fi
3791 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3792 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3793  GREP="$ac_cv_path_GREP"
3794
3795
3796 { echo "$as_me:$LINENO: checking for egrep" >&5
3797 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3798 if test "${ac_cv_path_EGREP+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3802    then ac_cv_path_EGREP="$GREP -E"
3803    else
3804      # Extract the first word of "egrep" to use in msg output
3805 if test -z "$EGREP"; then
3806 set dummy egrep; ac_prog_name=$2
3807 if test "${ac_cv_path_EGREP+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   ac_path_EGREP_found=false
3811 # Loop through the user's path and test for each of PROGNAME-LIST
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3814 do
3815   IFS=$as_save_IFS
3816   test -z "$as_dir" && as_dir=.
3817   for ac_prog in egrep; do
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3820     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3821     # Check for GNU ac_path_EGREP and select it if it is found.
3822   # Check for GNU $ac_path_EGREP
3823 case `"$ac_path_EGREP" --version 2>&1` in
3824 *GNU*)
3825   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3826 *)
3827   ac_count=0
3828   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3829   while :
3830   do
3831     cat "conftest.in" "conftest.in" >"conftest.tmp"
3832     mv "conftest.tmp" "conftest.in"
3833     cp "conftest.in" "conftest.nl"
3834     echo 'EGREP' >> "conftest.nl"
3835     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3836     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3837     ac_count=`expr $ac_count + 1`
3838     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3839       # Best one so far, save it but keep looking for a better one
3840       ac_cv_path_EGREP="$ac_path_EGREP"
3841       ac_path_EGREP_max=$ac_count
3842     fi
3843     # 10*(2^10) chars as input seems more than enough
3844     test $ac_count -gt 10 && break
3845   done
3846   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3847 esac
3848
3849
3850     $ac_path_EGREP_found && break 3
3851   done
3852 done
3853
3854 done
3855 IFS=$as_save_IFS
3856
3857
3858 fi
3859
3860 EGREP="$ac_cv_path_EGREP"
3861 if test -z "$EGREP"; then
3862   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3863 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3864    { (exit 1); exit 1; }; }
3865 fi
3866
3867 else
3868   ac_cv_path_EGREP=$EGREP
3869 fi
3870
3871
3872    fi
3873 fi
3874 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3875 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3876  EGREP="$ac_cv_path_EGREP"
3877
3878
3879
3880 # Check whether --with-gnu-ld was given.
3881 if test "${with_gnu_ld+set}" = set; then
3882   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3883 else
3884   with_gnu_ld=no
3885 fi
3886
3887 ac_prog=ld
3888 if test "$GCC" = yes; then
3889   # Check if gcc -print-prog-name=ld gives a path.
3890   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3891 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3892   case $host in
3893   *-*-mingw*)
3894     # gcc leaves a trailing carriage return which upsets mingw
3895     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3896   *)
3897     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3898   esac
3899   case $ac_prog in
3900     # Accept absolute paths.
3901     [\\/]* | ?:[\\/]*)
3902       re_direlt='/[^/][^/]*/\.\./'
3903       # Canonicalize the pathname of ld
3904       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3905       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3906         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3907       done
3908       test -z "$LD" && LD="$ac_prog"
3909       ;;
3910   "")
3911     # If it fails, then pretend we aren't using GCC.
3912     ac_prog=ld
3913     ;;
3914   *)
3915     # If it is relative, then search for the first ld in PATH.
3916     with_gnu_ld=unknown
3917     ;;
3918   esac
3919 elif test "$with_gnu_ld" = yes; then
3920   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3921 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3922 else
3923   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3924 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3925 fi
3926 if test "${lt_cv_path_LD+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   if test -z "$LD"; then
3930   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3931   for ac_dir in $PATH; do
3932     IFS="$lt_save_ifs"
3933     test -z "$ac_dir" && ac_dir=.
3934     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3935       lt_cv_path_LD="$ac_dir/$ac_prog"
3936       # Check to see if the program is GNU ld.  I'd rather use --version,
3937       # but apparently some variants of GNU ld only accept -v.
3938       # Break only if it was the GNU/non-GNU ld that we prefer.
3939       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3940       *GNU* | *'with BFD'*)
3941         test "$with_gnu_ld" != no && break
3942         ;;
3943       *)
3944         test "$with_gnu_ld" != yes && break
3945         ;;
3946       esac
3947     fi
3948   done
3949   IFS="$lt_save_ifs"
3950 else
3951   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3952 fi
3953 fi
3954
3955 LD="$lt_cv_path_LD"
3956 if test -n "$LD"; then
3957   { echo "$as_me:$LINENO: result: $LD" >&5
3958 echo "${ECHO_T}$LD" >&6; }
3959 else
3960   { echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6; }
3962 fi
3963 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3964 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3965    { (exit 1); exit 1; }; }
3966 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3967 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3968 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3972 case `$LD -v 2>&1 </dev/null` in
3973 *GNU* | *'with BFD'*)
3974   lt_cv_prog_gnu_ld=yes
3975   ;;
3976 *)
3977   lt_cv_prog_gnu_ld=no
3978   ;;
3979 esac
3980 fi
3981 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3982 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3983 with_gnu_ld=$lt_cv_prog_gnu_ld
3984
3985
3986 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3987 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3988 if test "${lt_cv_ld_reload_flag+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   lt_cv_ld_reload_flag='-r'
3992 fi
3993 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3994 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3995 reload_flag=$lt_cv_ld_reload_flag
3996 case $reload_flag in
3997 "" | " "*) ;;
3998 *) reload_flag=" $reload_flag" ;;
3999 esac
4000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4001 case $host_os in
4002   darwin*)
4003     if test "$GCC" = yes; then
4004       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4005     else
4006       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4007     fi
4008     ;;
4009 esac
4010
4011 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4012 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4013 if test "${lt_cv_path_NM+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   if test -n "$NM"; then
4017   # Let the user override the test.
4018   lt_cv_path_NM="$NM"
4019 else
4020   lt_nm_to_check="${ac_tool_prefix}nm"
4021   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4022     lt_nm_to_check="$lt_nm_to_check nm"
4023   fi
4024   for lt_tmp_nm in $lt_nm_to_check; do
4025     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4026     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4027       IFS="$lt_save_ifs"
4028       test -z "$ac_dir" && ac_dir=.
4029       tmp_nm="$ac_dir/$lt_tmp_nm"
4030       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4031         # Check to see if the nm accepts a BSD-compat flag.
4032         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4033         #   nm: unknown option "B" ignored
4034         # Tru64's nm complains that /dev/null is an invalid object file
4035         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4036         */dev/null* | *'Invalid file or object type'*)
4037           lt_cv_path_NM="$tmp_nm -B"
4038           break
4039           ;;
4040         *)
4041           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4042           */dev/null*)
4043             lt_cv_path_NM="$tmp_nm -p"
4044             break
4045             ;;
4046           *)
4047             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4048             continue # so that we can try to find one that supports BSD flags
4049             ;;
4050           esac
4051           ;;
4052         esac
4053       fi
4054     done
4055     IFS="$lt_save_ifs"
4056   done
4057   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4058 fi
4059 fi
4060 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4061 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4062 NM="$lt_cv_path_NM"
4063
4064 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4065 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4066 LN_S=$as_ln_s
4067 if test "$LN_S" = "ln -s"; then
4068   { echo "$as_me:$LINENO: result: yes" >&5
4069 echo "${ECHO_T}yes" >&6; }
4070 else
4071   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4072 echo "${ECHO_T}no, using $LN_S" >&6; }
4073 fi
4074
4075 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4076 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4077 if test "${lt_cv_deplibs_check_method+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   lt_cv_file_magic_cmd='$MAGIC_CMD'
4081 lt_cv_file_magic_test_file=
4082 lt_cv_deplibs_check_method='unknown'
4083 # Need to set the preceding variable on all platforms that support
4084 # interlibrary dependencies.
4085 # 'none' -- dependencies not supported.
4086 # `unknown' -- same as none, but documents that we really don't know.
4087 # 'pass_all' -- all dependencies passed with no checks.
4088 # 'test_compile' -- check by making test program.
4089 # 'file_magic [[regex]]' -- check by looking for files in library path
4090 # which responds to the $file_magic_cmd with a given extended regex.
4091 # If you have `file' or equivalent on your system and you're not sure
4092 # whether `pass_all' will *always* work, you probably want this one.
4093
4094 case $host_os in
4095 aix4* | aix5*)
4096   lt_cv_deplibs_check_method=pass_all
4097   ;;
4098
4099 beos*)
4100   lt_cv_deplibs_check_method=pass_all
4101   ;;
4102
4103 bsdi[45]*)
4104   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4105   lt_cv_file_magic_cmd='/usr/bin/file -L'
4106   lt_cv_file_magic_test_file=/shlib/libc.so
4107   ;;
4108
4109 cygwin*)
4110   # func_win32_libid is a shell function defined in ltmain.sh
4111   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4112   lt_cv_file_magic_cmd='func_win32_libid'
4113   ;;
4114
4115 mingw* | pw32*)
4116   # Base MSYS/MinGW do not provide the 'file' command needed by
4117   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4118   # unless we find 'file', for example because we are cross-compiling.
4119   if ( file / ) >/dev/null 2>&1; then
4120     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4121     lt_cv_file_magic_cmd='func_win32_libid'
4122   else
4123     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4124     lt_cv_file_magic_cmd='$OBJDUMP -f'
4125   fi
4126   ;;
4127
4128 darwin* | rhapsody*)
4129   lt_cv_deplibs_check_method=pass_all
4130   ;;
4131
4132 freebsd* | dragonfly*)
4133   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4134     case $host_cpu in
4135     i*86 )
4136       # Not sure whether the presence of OpenBSD here was a mistake.
4137       # Let's accept both of them until this is cleared up.
4138       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4139       lt_cv_file_magic_cmd=/usr/bin/file
4140       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4141       ;;
4142     esac
4143   else
4144     lt_cv_deplibs_check_method=pass_all
4145   fi
4146   ;;
4147
4148 gnu*)
4149   lt_cv_deplibs_check_method=pass_all
4150   ;;
4151
4152 hpux10.20* | hpux11*)
4153   lt_cv_file_magic_cmd=/usr/bin/file
4154   case $host_cpu in
4155   ia64*)
4156     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4157     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4158     ;;
4159   hppa*64*)
4160     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]'
4161     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4162     ;;
4163   *)
4164     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4165     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4166     ;;
4167   esac
4168   ;;
4169
4170 interix[3-9]*)
4171   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4172   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4173   ;;
4174
4175 irix5* | irix6* | nonstopux*)
4176   case $LD in
4177   *-32|*"-32 ") libmagic=32-bit;;
4178   *-n32|*"-n32 ") libmagic=N32;;
4179   *-64|*"-64 ") libmagic=64-bit;;
4180   *) libmagic=never-match;;
4181   esac
4182   lt_cv_deplibs_check_method=pass_all
4183   ;;
4184
4185 # This must be Linux ELF.
4186 linux* | k*bsd*-gnu)
4187   lt_cv_deplibs_check_method=pass_all
4188   ;;
4189
4190 netbsd* | netbsdelf*-gnu)
4191   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4192     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4193   else
4194     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4195   fi
4196   ;;
4197
4198 newos6*)
4199   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4200   lt_cv_file_magic_cmd=/usr/bin/file
4201   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4202   ;;
4203
4204 nto-qnx*)
4205   lt_cv_deplibs_check_method=unknown
4206   ;;
4207
4208 openbsd*)
4209   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4210     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4211   else
4212     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4213   fi
4214   ;;
4215
4216 osf3* | osf4* | osf5*)
4217   lt_cv_deplibs_check_method=pass_all
4218   ;;
4219
4220 rdos*)
4221   lt_cv_deplibs_check_method=pass_all
4222   ;;
4223
4224 solaris*)
4225   lt_cv_deplibs_check_method=pass_all
4226   ;;
4227
4228 sysv4 | sysv4.3*)
4229   case $host_vendor in
4230   motorola)
4231     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]'
4232     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4233     ;;
4234   ncr)
4235     lt_cv_deplibs_check_method=pass_all
4236     ;;
4237   sequent)
4238     lt_cv_file_magic_cmd='/bin/file'
4239     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4240     ;;
4241   sni)
4242     lt_cv_file_magic_cmd='/bin/file'
4243     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4244     lt_cv_file_magic_test_file=/lib/libc.so
4245     ;;
4246   siemens)
4247     lt_cv_deplibs_check_method=pass_all
4248     ;;
4249   pc)
4250     lt_cv_deplibs_check_method=pass_all
4251     ;;
4252   esac
4253   ;;
4254
4255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4256   lt_cv_deplibs_check_method=pass_all
4257   ;;
4258 esac
4259
4260 fi
4261 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4262 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4263 file_magic_cmd=$lt_cv_file_magic_cmd
4264 deplibs_check_method=$lt_cv_deplibs_check_method
4265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4266
4267
4268
4269
4270 # If no C compiler was specified, use CC.
4271 LTCC=${LTCC-"$CC"}
4272
4273 # If no C compiler flags were specified, use CFLAGS.
4274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4275
4276 # Allow CC to be a program name with arguments.
4277 compiler=$CC
4278
4279
4280 # Check whether --enable-libtool-lock was given.
4281 if test "${enable_libtool_lock+set}" = set; then
4282   enableval=$enable_libtool_lock;
4283 fi
4284
4285 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4286
4287 # Some flags need to be propagated to the compiler or linker for good
4288 # libtool support.
4289 case $host in
4290 ia64-*-hpux*)
4291   # Find out which ABI we are using.
4292   echo 'int i;' > conftest.$ac_ext
4293   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294   (eval $ac_compile) 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; then
4298     case `/usr/bin/file conftest.$ac_objext` in
4299     *ELF-32*)
4300       HPUX_IA64_MODE="32"
4301       ;;
4302     *ELF-64*)
4303       HPUX_IA64_MODE="64"
4304       ;;
4305     esac
4306   fi
4307   rm -rf conftest*
4308   ;;
4309 *-*-irix6*)
4310   # Find out which ABI we are using.
4311   echo '#line 4311 "configure"' > conftest.$ac_ext
4312   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313   (eval $ac_compile) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; then
4317    if test "$lt_cv_prog_gnu_ld" = yes; then
4318     case `/usr/bin/file conftest.$ac_objext` in
4319     *32-bit*)
4320       LD="${LD-ld} -melf32bsmip"
4321       ;;
4322     *N32*)
4323       LD="${LD-ld} -melf32bmipn32"
4324       ;;
4325     *64-bit*)
4326       LD="${LD-ld} -melf64bmip"
4327       ;;
4328     esac
4329    else
4330     case `/usr/bin/file conftest.$ac_objext` in
4331     *32-bit*)
4332       LD="${LD-ld} -32"
4333       ;;
4334     *N32*)
4335       LD="${LD-ld} -n32"
4336       ;;
4337     *64-bit*)
4338       LD="${LD-ld} -64"
4339       ;;
4340     esac
4341    fi
4342   fi
4343   rm -rf conftest*
4344   ;;
4345
4346 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4347 s390*-*linux*|sparc*-*linux*)
4348   # Find out which ABI we are using.
4349   echo 'int i;' > conftest.$ac_ext
4350   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351   (eval $ac_compile) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; then
4355     case `/usr/bin/file conftest.o` in
4356     *32-bit*)
4357       case $host in
4358         x86_64-*kfreebsd*-gnu)
4359           LD="${LD-ld} -m elf_i386_fbsd"
4360           ;;
4361         x86_64-*linux*)
4362           LD="${LD-ld} -m elf_i386"
4363           ;;
4364         ppc64-*linux*|powerpc64-*linux*)
4365           LD="${LD-ld} -m elf32ppclinux"
4366           ;;
4367         s390x-*linux*)
4368           LD="${LD-ld} -m elf_s390"
4369           ;;
4370         sparc64-*linux*)
4371           LD="${LD-ld} -m elf32_sparc"
4372           ;;
4373       esac
4374       ;;
4375     *64-bit*)
4376       case $host in
4377         x86_64-*kfreebsd*-gnu)
4378           LD="${LD-ld} -m elf_x86_64_fbsd"
4379           ;;
4380         x86_64-*linux*)
4381           LD="${LD-ld} -m elf_x86_64"
4382           ;;
4383         ppc*-*linux*|powerpc*-*linux*)
4384           LD="${LD-ld} -m elf64ppc"
4385           ;;
4386         s390*-*linux*)
4387           LD="${LD-ld} -m elf64_s390"
4388           ;;
4389         sparc*-*linux*)
4390           LD="${LD-ld} -m elf64_sparc"
4391           ;;
4392       esac
4393       ;;
4394     esac
4395   fi
4396   rm -rf conftest*
4397   ;;
4398
4399 *-*-sco3.2v5*)
4400   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4401   SAVE_CFLAGS="$CFLAGS"
4402   CFLAGS="$CFLAGS -belf"
4403   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4404 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4405 if test "${lt_cv_cc_needs_belf+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   ac_ext=c
4409 ac_cpp='$CPP $CPPFLAGS'
4410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413
4414      cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h.  */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h.  */
4420
4421 int
4422 main ()
4423 {
4424
4425   ;
4426   return 0;
4427 }
4428 _ACEOF
4429 rm -f conftest.$ac_objext conftest$ac_exeext
4430 if { (ac_try="$ac_link"
4431 case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436   (eval "$ac_link") 2>conftest.er1
4437   ac_status=$?
4438   grep -v '^ *+' conftest.er1 >conftest.err
4439   rm -f conftest.er1
4440   cat conftest.err >&5
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); } && {
4443          test -z "$ac_c_werror_flag" ||
4444          test ! -s conftest.err
4445        } && test -s conftest$ac_exeext &&
4446        $as_test_x conftest$ac_exeext; then
4447   lt_cv_cc_needs_belf=yes
4448 else
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452         lt_cv_cc_needs_belf=no
4453 fi
4454
4455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4456       conftest$ac_exeext conftest.$ac_ext
4457      ac_ext=c
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462
4463 fi
4464 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4465 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4466   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4467     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4468     CFLAGS="$SAVE_CFLAGS"
4469   fi
4470   ;;
4471 sparc*-*solaris*)
4472   # Find out which ABI we are using.
4473   echo 'int i;' > conftest.$ac_ext
4474   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475   (eval $ac_compile) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; then
4479     case `/usr/bin/file conftest.o` in
4480     *64-bit*)
4481       case $lt_cv_prog_gnu_ld in
4482       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4483       *)    LD="${LD-ld} -64" ;;
4484       esac
4485       ;;
4486     esac
4487   fi
4488   rm -rf conftest*
4489   ;;
4490
4491
4492 esac
4493
4494 need_locks="$enable_libtool_lock"
4495
4496
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4503 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4504 # On Suns, sometimes $CPP names a directory.
4505 if test -n "$CPP" && test -d "$CPP"; then
4506   CPP=
4507 fi
4508 if test -z "$CPP"; then
4509   if test "${ac_cv_prog_CPP+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512       # Double quotes because CPP needs to be expanded
4513     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4514     do
4515       ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4517 do
4518   # Use a header file that comes with gcc, so configuring glibc
4519   # with a fresh cross-compiler works.
4520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521   # <limits.h> exists even on freestanding compilers.
4522   # On the NeXT, cc -E runs the code through the compiler's parser,
4523   # not just through cpp. "Syntax error" is here to catch this case.
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 #ifdef __STDC__
4531 # include <limits.h>
4532 #else
4533 # include <assert.h>
4534 #endif
4535                      Syntax error
4536 _ACEOF
4537 if { (ac_try="$ac_cpp conftest.$ac_ext"
4538 case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4544   ac_status=$?
4545   grep -v '^ *+' conftest.er1 >conftest.err
4546   rm -f conftest.er1
4547   cat conftest.err >&5
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); } >/dev/null && {
4550          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551          test ! -s conftest.err
4552        }; then
4553   :
4554 else
4555   echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558   # Broken: fails on valid input.
4559 continue
4560 fi
4561
4562 rm -f conftest.err conftest.$ac_ext
4563
4564   # OK, works on sane cases.  Now check whether nonexistent headers
4565   # can be detected and how.
4566   cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572 #include <ac_nonexistent.h>
4573 _ACEOF
4574 if { (ac_try="$ac_cpp conftest.$ac_ext"
4575 case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } >/dev/null && {
4587          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588          test ! -s conftest.err
4589        }; then
4590   # Broken: success on invalid input.
4591 continue
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596   # Passes both tests.
4597 ac_preproc_ok=:
4598 break
4599 fi
4600
4601 rm -f conftest.err conftest.$ac_ext
4602
4603 done
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.err conftest.$ac_ext
4606 if $ac_preproc_ok; then
4607   break
4608 fi
4609
4610     done
4611     ac_cv_prog_CPP=$CPP
4612
4613 fi
4614   CPP=$ac_cv_prog_CPP
4615 else
4616   ac_cv_prog_CPP=$CPP
4617 fi
4618 { echo "$as_me:$LINENO: result: $CPP" >&5
4619 echo "${ECHO_T}$CPP" >&6; }
4620 ac_preproc_ok=false
4621 for ac_c_preproc_warn_flag in '' yes
4622 do
4623   # Use a header file that comes with gcc, so configuring glibc
4624   # with a fresh cross-compiler works.
4625   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4626   # <limits.h> exists even on freestanding compilers.
4627   # On the NeXT, cc -E runs the code through the compiler's parser,
4628   # not just through cpp. "Syntax error" is here to catch this case.
4629   cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635 #ifdef __STDC__
4636 # include <limits.h>
4637 #else
4638 # include <assert.h>
4639 #endif
4640                      Syntax error
4641 _ACEOF
4642 if { (ac_try="$ac_cpp conftest.$ac_ext"
4643 case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4649   ac_status=$?
4650   grep -v '^ *+' conftest.er1 >conftest.err
4651   rm -f conftest.er1
4652   cat conftest.err >&5
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } >/dev/null && {
4655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4656          test ! -s conftest.err
4657        }; then
4658   :
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663   # Broken: fails on valid input.
4664 continue
4665 fi
4666
4667 rm -f conftest.err conftest.$ac_ext
4668
4669   # OK, works on sane cases.  Now check whether nonexistent headers
4670   # can be detected and how.
4671   cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677 #include <ac_nonexistent.h>
4678 _ACEOF
4679 if { (ac_try="$ac_cpp conftest.$ac_ext"
4680 case "(($ac_try" in
4681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682   *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4686   ac_status=$?
4687   grep -v '^ *+' conftest.er1 >conftest.err
4688   rm -f conftest.er1
4689   cat conftest.err >&5
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } >/dev/null && {
4692          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4693          test ! -s conftest.err
4694        }; then
4695   # Broken: success on invalid input.
4696 continue
4697 else
4698   echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701   # Passes both tests.
4702 ac_preproc_ok=:
4703 break
4704 fi
4705
4706 rm -f conftest.err conftest.$ac_ext
4707
4708 done
4709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4710 rm -f conftest.err conftest.$ac_ext
4711 if $ac_preproc_ok; then
4712   :
4713 else
4714   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4717 See \`config.log' for more details." >&2;}
4718    { (exit 1); exit 1; }; }
4719 fi
4720
4721 ac_ext=c
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726
4727
4728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4730 if test "${ac_cv_header_stdc+set}" = set; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739 #include <stdlib.h>
4740 #include <stdarg.h>
4741 #include <string.h>
4742 #include <float.h>
4743
4744 int
4745 main ()
4746 {
4747
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4754 case "(($ac_try" in
4755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756   *) ac_try_echo=$ac_try;;
4757 esac
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759   (eval "$ac_compile") 2>conftest.er1
4760   ac_status=$?
4761   grep -v '^ *+' conftest.er1 >conftest.err
4762   rm -f conftest.er1
4763   cat conftest.err >&5
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } && {
4766          test -z "$ac_c_werror_flag" ||
4767          test ! -s conftest.err
4768        } && test -s conftest.$ac_objext; then
4769   ac_cv_header_stdc=yes
4770 else
4771   echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774         ac_cv_header_stdc=no
4775 fi
4776
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778
4779 if test $ac_cv_header_stdc = yes; then
4780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4781   cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787 #include <string.h>
4788
4789 _ACEOF
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791   $EGREP "memchr" >/dev/null 2>&1; then
4792   :
4793 else
4794   ac_cv_header_stdc=no
4795 fi
4796 rm -f conftest*
4797
4798 fi
4799
4800 if test $ac_cv_header_stdc = yes; then
4801   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4802   cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h.  */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h.  */
4808 #include <stdlib.h>
4809
4810 _ACEOF
4811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4812   $EGREP "free" >/dev/null 2>&1; then
4813   :
4814 else
4815   ac_cv_header_stdc=no
4816 fi
4817 rm -f conftest*
4818
4819 fi
4820
4821 if test $ac_cv_header_stdc = yes; then
4822   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4823   if test "$cross_compiling" = yes; then
4824   :
4825 else
4826   cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h.  */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h.  */
4832 #include <ctype.h>
4833 #include <stdlib.h>
4834 #if ((' ' & 0x0FF) == 0x020)
4835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4837 #else
4838 # define ISLOWER(c) \
4839                    (('a' <= (c) && (c) <= 'i') \
4840                      || ('j' <= (c) && (c) <= 'r') \
4841                      || ('s' <= (c) && (c) <= 'z'))
4842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4843 #endif
4844
4845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4846 int
4847 main ()
4848 {
4849   int i;
4850   for (i = 0; i < 256; i++)
4851     if (XOR (islower (i), ISLOWER (i))
4852         || toupper (i) != TOUPPER (i))
4853       return 2;
4854   return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest$ac_exeext
4858 if { (ac_try="$ac_link"
4859 case "(($ac_try" in
4860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861   *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864   (eval "$ac_link") 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4868   { (case "(($ac_try" in
4869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870   *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873   (eval "$ac_try") 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; }; then
4877   :
4878 else
4879   echo "$as_me: program exited with status $ac_status" >&5
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ( exit $ac_status )
4884 ac_cv_header_stdc=no
4885 fi
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887 fi
4888
4889
4890 fi
4891 fi
4892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4894 if test $ac_cv_header_stdc = yes; then
4895
4896 cat >>confdefs.h <<\_ACEOF
4897 #define STDC_HEADERS 1
4898 _ACEOF
4899
4900 fi
4901
4902 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4913                   inttypes.h stdint.h unistd.h
4914 do
4915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927 $ac_includes_default
4928
4929 #include <$ac_header>
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4933 case "(($ac_try" in
4934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935   *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938   (eval "$ac_compile") 2>conftest.er1
4939   ac_status=$?
4940   grep -v '^ *+' conftest.er1 >conftest.err
4941   rm -f conftest.er1
4942   cat conftest.err >&5
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } && {
4945          test -z "$ac_c_werror_flag" ||
4946          test ! -s conftest.err
4947        } && test -s conftest.$ac_objext; then
4948   eval "$as_ac_Header=yes"
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953         eval "$as_ac_Header=no"
4954 fi
4955
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 fi
4958 ac_res=`eval echo '${'$as_ac_Header'}'`
4959                { echo "$as_me:$LINENO: result: $ac_res" >&5
4960 echo "${ECHO_T}$ac_res" >&6; }
4961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4962   cat >>confdefs.h <<_ACEOF
4963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4964 _ACEOF
4965
4966 fi
4967
4968 done
4969
4970
4971
4972 for ac_header in dlfcn.h
4973 do
4974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4976   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 fi
4981 ac_res=`eval echo '${'$as_ac_Header'}'`
4982                { echo "$as_me:$LINENO: result: $ac_res" >&5
4983 echo "${ECHO_T}$ac_res" >&6; }
4984 else
4985   # Is the header compilable?
4986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h.  */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h.  */
4994 $ac_includes_default
4995 #include <$ac_header>
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (ac_try="$ac_compile"
4999 case "(($ac_try" in
5000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001   *) ac_try_echo=$ac_try;;
5002 esac
5003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004   (eval "$ac_compile") 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } && {
5011          test -z "$ac_c_werror_flag" ||
5012          test ! -s conftest.err
5013        } && test -s conftest.$ac_objext; then
5014   ac_header_compiler=yes
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019         ac_header_compiler=no
5020 fi
5021
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5024 echo "${ECHO_T}$ac_header_compiler" >&6; }
5025
5026 # Is the header present?
5027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035 #include <$ac_header>
5036 _ACEOF
5037 if { (ac_try="$ac_cpp conftest.$ac_ext"
5038 case "(($ac_try" in
5039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040   *) ac_try_echo=$ac_try;;
5041 esac
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } >/dev/null && {
5050          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5051          test ! -s conftest.err
5052        }; then
5053   ac_header_preproc=yes
5054 else
5055   echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058   ac_header_preproc=no
5059 fi
5060
5061 rm -f conftest.err conftest.$ac_ext
5062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5063 echo "${ECHO_T}$ac_header_preproc" >&6; }
5064
5065 # So?  What about this header?
5066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5067   yes:no: )
5068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5072     ac_header_preproc=yes
5073     ;;
5074   no:yes:* )
5075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5087
5088     ;;
5089 esac
5090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   eval "$as_ac_Header=\$ac_header_preproc"
5096 fi
5097 ac_res=`eval echo '${'$as_ac_Header'}'`
5098                { echo "$as_me:$LINENO: result: $ac_res" >&5
5099 echo "${ECHO_T}$ac_res" >&6; }
5100
5101 fi
5102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5103   cat >>confdefs.h <<_ACEOF
5104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5105 _ACEOF
5106
5107 fi
5108
5109 done
5110
5111 ac_ext=cpp
5112 ac_cpp='$CXXCPP $CPPFLAGS'
5113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5116 if test -z "$CXX"; then
5117   if test -n "$CCC"; then
5118     CXX=$CCC
5119   else
5120     if test -n "$ac_tool_prefix"; then
5121   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5122   do
5123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_CXX+set}" = set; then
5128   echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130   if test -n "$CXX"; then
5131   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136   IFS=$as_save_IFS
5137   test -z "$as_dir" && as_dir=.
5138   for ac_exec_ext in '' $ac_executable_extensions; do
5139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142     break 2
5143   fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 CXX=$ac_cv_prog_CXX
5151 if test -n "$CXX"; then
5152   { echo "$as_me:$LINENO: result: $CXX" >&5
5153 echo "${ECHO_T}$CXX" >&6; }
5154 else
5155   { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5157 fi
5158
5159
5160     test -n "$CXX" && break
5161   done
5162 fi
5163 if test -z "$CXX"; then
5164   ac_ct_CXX=$CXX
5165   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166 do
5167   # Extract the first word of "$ac_prog", so it can be a program name with args.
5168 set dummy $ac_prog; ac_word=$2
5169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   if test -n "$ac_ct_CXX"; then
5175   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_exec_ext in '' $ac_executable_extensions; do
5183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184     ac_cv_prog_ac_ct_CXX="$ac_prog"
5185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 fi
5193 fi
5194 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5195 if test -n "$ac_ct_CXX"; then
5196   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5197 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5198 else
5199   { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5201 fi
5202
5203
5204   test -n "$ac_ct_CXX" && break
5205 done
5206
5207   if test "x$ac_ct_CXX" = x; then
5208     CXX="g++"
5209   else
5210     case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5213 whose name does not start with the host triplet.  If you think this
5214 configuration is useful to you, please write to autoconf@gnu.org." >&5
5215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5216 whose name does not start with the host triplet.  If you think this
5217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220     CXX=$ac_ct_CXX
5221   fi
5222 fi
5223
5224   fi
5225 fi
5226 # Provide some information about the compiler.
5227 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5228 ac_compiler=`set X $ac_compile; echo $2`
5229 { (ac_try="$ac_compiler --version >&5"
5230 case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_compiler --version >&5") 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }
5239 { (ac_try="$ac_compiler -v >&5"
5240 case "(($ac_try" in
5241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242   *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245   (eval "$ac_compiler -v >&5") 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }
5249 { (ac_try="$ac_compiler -V >&5"
5250 case "(($ac_try" in
5251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252   *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255   (eval "$ac_compiler -V >&5") 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }
5259
5260 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5261 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271
5272 int
5273 main ()
5274 {
5275 #ifndef __GNUC__
5276        choke me
5277 #endif
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (ac_try="$ac_compile"
5285 case "(($ac_try" in
5286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287   *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290   (eval "$ac_compile") 2>conftest.er1
5291   ac_status=$?
5292   grep -v '^ *+' conftest.er1 >conftest.err
5293   rm -f conftest.er1
5294   cat conftest.err >&5
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } && {
5297          test -z "$ac_cxx_werror_flag" ||
5298          test ! -s conftest.err
5299        } && test -s conftest.$ac_objext; then
5300   ac_compiler_gnu=yes
5301 else
5302   echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305         ac_compiler_gnu=no
5306 fi
5307
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5310
5311 fi
5312 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5313 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5314 GXX=`test $ac_compiler_gnu = yes && echo yes`
5315 ac_test_CXXFLAGS=${CXXFLAGS+set}
5316 ac_save_CXXFLAGS=$CXXFLAGS
5317 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5318 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5319 if test "${ac_cv_prog_cxx_g+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5323    ac_cxx_werror_flag=yes
5324    ac_cv_prog_cxx_g=no
5325    CXXFLAGS="-g"
5326    cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332
5333 int
5334 main ()
5335 {
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5343 case "(($ac_try" in
5344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345   *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348   (eval "$ac_compile") 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } && {
5355          test -z "$ac_cxx_werror_flag" ||
5356          test ! -s conftest.err
5357        } && test -s conftest.$ac_objext; then
5358   ac_cv_prog_cxx_g=yes
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363         CXXFLAGS=""
5364       cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370
5371 int
5372 main ()
5373 {
5374
5375   ;
5376   return 0;
5377 }
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5381 case "(($ac_try" in
5382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383   *) ac_try_echo=$ac_try;;
5384 esac
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386   (eval "$ac_compile") 2>conftest.er1
5387   ac_status=$?
5388   grep -v '^ *+' conftest.er1 >conftest.err
5389   rm -f conftest.er1
5390   cat conftest.err >&5
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } && {
5393          test -z "$ac_cxx_werror_flag" ||
5394          test ! -s conftest.err
5395        } && test -s conftest.$ac_objext; then
5396   :
5397 else
5398   echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5402          CXXFLAGS="-g"
5403          cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409
5410 int
5411 main ()
5412 {
5413
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (ac_try="$ac_compile"
5420 case "(($ac_try" in
5421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422   *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425   (eval "$ac_compile") 2>conftest.er1
5426   ac_status=$?
5427   grep -v '^ *+' conftest.er1 >conftest.err
5428   rm -f conftest.er1
5429   cat conftest.err >&5
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); } && {
5432          test -z "$ac_cxx_werror_flag" ||
5433          test ! -s conftest.err
5434        } && test -s conftest.$ac_objext; then
5435   ac_cv_prog_cxx_g=yes
5436 else
5437   echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5439
5440
5441 fi
5442
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 fi
5445
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 fi
5448
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5451 fi
5452 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5453 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5454 if test "$ac_test_CXXFLAGS" = set; then
5455   CXXFLAGS=$ac_save_CXXFLAGS
5456 elif test $ac_cv_prog_cxx_g = yes; then
5457   if test "$GXX" = yes; then
5458     CXXFLAGS="-g -O2"
5459   else
5460     CXXFLAGS="-g"
5461   fi
5462 else
5463   if test "$GXX" = yes; then
5464     CXXFLAGS="-O2"
5465   else
5466     CXXFLAGS=
5467   fi
5468 fi
5469 ac_ext=cpp
5470 ac_cpp='$CXXCPP $CPPFLAGS'
5471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5474
5475 depcc="$CXX"  am_compiler_list=
5476
5477 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5478 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5479 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5480   echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5483   # We make a subdir and do the tests there.  Otherwise we can end up
5484   # making bogus files that we don't know about and never remove.  For
5485   # instance it was reported that on HP-UX the gcc test will end up
5486   # making a dummy file named `D' -- because `-MD' means `put the output
5487   # in D'.
5488   mkdir conftest.dir
5489   # Copy depcomp to subdir because otherwise we won't find it if we're
5490   # using a relative directory.
5491   cp "$am_depcomp" conftest.dir
5492   cd conftest.dir
5493   # We will build objects and dependencies in a subdirectory because
5494   # it helps to detect inapplicable dependency modes.  For instance
5495   # both Tru64's cc and ICC support -MD to output dependencies as a
5496   # side effect of compilation, but ICC will put the dependencies in
5497   # the current directory while Tru64 will put them in the object
5498   # directory.
5499   mkdir sub
5500
5501   am_cv_CXX_dependencies_compiler_type=none
5502   if test "$am_compiler_list" = ""; then
5503      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5504   fi
5505   for depmode in $am_compiler_list; do
5506     # Setup a source with many dependencies, because some compilers
5507     # like to wrap large dependency lists on column 80 (with \), and
5508     # we should not choose a depcomp mode which is confused by this.
5509     #
5510     # We need to recreate these files for each test, as the compiler may
5511     # overwrite some of them when testing with obscure command lines.
5512     # This happens at least with the AIX C compiler.
5513     : > sub/conftest.c
5514     for i in 1 2 3 4 5 6; do
5515       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5516       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5517       # Solaris 8's {/usr,}/bin/sh.
5518       touch sub/conftst$i.h
5519     done
5520     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5521
5522     case $depmode in
5523     nosideeffect)
5524       # after this tag, mechanisms are not by side-effect, so they'll
5525       # only be used when explicitly requested
5526       if test "x$enable_dependency_tracking" = xyes; then
5527         continue
5528       else
5529         break
5530       fi
5531       ;;
5532     none) break ;;
5533     esac
5534     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5535     # mode.  It turns out that the SunPro C++ compiler does not properly
5536     # handle `-M -o', and we need to detect this.
5537     if depmode=$depmode \
5538        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5539        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5540        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5541          >/dev/null 2>conftest.err &&
5542        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5543        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5544        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5545        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5546       # icc doesn't choke on unknown options, it will just issue warnings
5547       # or remarks (even with -Werror).  So we grep stderr for any message
5548       # that says an option was ignored or not supported.
5549       # When given -MP, icc 7.0 and 7.1 complain thusly:
5550       #   icc: Command line warning: ignoring option '-M'; no argument required
5551       # The diagnosis changed in icc 8.0:
5552       #   icc: Command line remark: option '-MP' not supported
5553       if (grep 'ignoring option' conftest.err ||
5554           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5555         am_cv_CXX_dependencies_compiler_type=$depmode
5556         break
5557       fi
5558     fi
5559   done
5560
5561   cd ..
5562   rm -rf conftest.dir
5563 else
5564   am_cv_CXX_dependencies_compiler_type=none
5565 fi
5566
5567 fi
5568 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5569 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5570 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5571
5572  if
5573   test "x$enable_dependency_tracking" != xno \
5574   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5575   am__fastdepCXX_TRUE=
5576   am__fastdepCXX_FALSE='#'
5577 else
5578   am__fastdepCXX_TRUE='#'
5579   am__fastdepCXX_FALSE=
5580 fi
5581
5582
5583
5584
5585 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5586     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5587     (test "X$CXX" != "Xg++"))) ; then
5588   ac_ext=cpp
5589 ac_cpp='$CXXCPP $CPPFLAGS'
5590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5593 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5594 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5595 if test -z "$CXXCPP"; then
5596   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5597   echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599       # Double quotes because CXXCPP needs to be expanded
5600     for CXXCPP in "$CXX -E" "/lib/cpp"
5601     do
5602       ac_preproc_ok=false
5603 for ac_cxx_preproc_warn_flag in '' yes
5604 do
5605   # Use a header file that comes with gcc, so configuring glibc
5606   # with a fresh cross-compiler works.
5607   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5608   # <limits.h> exists even on freestanding compilers.
5609   # On the NeXT, cc -E runs the code through the compiler's parser,
5610   # not just through cpp. "Syntax error" is here to catch this case.
5611   cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617 #ifdef __STDC__
5618 # include <limits.h>
5619 #else
5620 # include <assert.h>
5621 #endif
5622                      Syntax error
5623 _ACEOF
5624 if { (ac_try="$ac_cpp conftest.$ac_ext"
5625 case "(($ac_try" in
5626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627   *) ac_try_echo=$ac_try;;
5628 esac
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } >/dev/null && {
5637          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5638          test ! -s conftest.err
5639        }; then
5640   :
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645   # Broken: fails on valid input.
5646 continue
5647 fi
5648
5649 rm -f conftest.err conftest.$ac_ext
5650
5651   # OK, works on sane cases.  Now check whether nonexistent headers
5652   # can be detected and how.
5653   cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 #include <ac_nonexistent.h>
5660 _ACEOF
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5662 case "(($ac_try" in
5663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664   *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } >/dev/null && {
5674          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5675          test ! -s conftest.err
5676        }; then
5677   # Broken: success on invalid input.
5678 continue
5679 else
5680   echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683   # Passes both tests.
5684 ac_preproc_ok=:
5685 break
5686 fi
5687
5688 rm -f conftest.err conftest.$ac_ext
5689
5690 done
5691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5692 rm -f conftest.err conftest.$ac_ext
5693 if $ac_preproc_ok; then
5694   break
5695 fi
5696
5697     done
5698     ac_cv_prog_CXXCPP=$CXXCPP
5699
5700 fi
5701   CXXCPP=$ac_cv_prog_CXXCPP
5702 else
5703   ac_cv_prog_CXXCPP=$CXXCPP
5704 fi
5705 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5706 echo "${ECHO_T}$CXXCPP" >&6; }
5707 ac_preproc_ok=false
5708 for ac_cxx_preproc_warn_flag in '' yes
5709 do
5710   # Use a header file that comes with gcc, so configuring glibc
5711   # with a fresh cross-compiler works.
5712   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5713   # <limits.h> exists even on freestanding compilers.
5714   # On the NeXT, cc -E runs the code through the compiler's parser,
5715   # not just through cpp. "Syntax error" is here to catch this case.
5716   cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722 #ifdef __STDC__
5723 # include <limits.h>
5724 #else
5725 # include <assert.h>
5726 #endif
5727                      Syntax error
5728 _ACEOF
5729 if { (ac_try="$ac_cpp conftest.$ac_ext"
5730 case "(($ac_try" in
5731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732   *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5736   ac_status=$?
5737   grep -v '^ *+' conftest.er1 >conftest.err
5738   rm -f conftest.er1
5739   cat conftest.err >&5
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } >/dev/null && {
5742          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5743          test ! -s conftest.err
5744        }; then
5745   :
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750   # Broken: fails on valid input.
5751 continue
5752 fi
5753
5754 rm -f conftest.err conftest.$ac_ext
5755
5756   # OK, works on sane cases.  Now check whether nonexistent headers
5757   # can be detected and how.
5758   cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764 #include <ac_nonexistent.h>
5765 _ACEOF
5766 if { (ac_try="$ac_cpp conftest.$ac_ext"
5767 case "(($ac_try" in
5768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769   *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5773   ac_status=$?
5774   grep -v '^ *+' conftest.er1 >conftest.err
5775   rm -f conftest.er1
5776   cat conftest.err >&5
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } >/dev/null && {
5779          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5780          test ! -s conftest.err
5781        }; then
5782   # Broken: success on invalid input.
5783 continue
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788   # Passes both tests.
5789 ac_preproc_ok=:
5790 break
5791 fi
5792
5793 rm -f conftest.err conftest.$ac_ext
5794
5795 done
5796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797 rm -f conftest.err conftest.$ac_ext
5798 if $ac_preproc_ok; then
5799   :
5800 else
5801   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5802 See \`config.log' for more details." >&5
5803 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5804 See \`config.log' for more details." >&2;}
5805    { (exit 1); exit 1; }; }
5806 fi
5807
5808 ac_ext=cpp
5809 ac_cpp='$CXXCPP $CPPFLAGS'
5810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5813
5814 fi
5815
5816
5817 ac_ext=f
5818 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5819 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5821 if test -n "$ac_tool_prefix"; then
5822   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
5823   do
5824     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5828 if test "${ac_cv_prog_F77+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   if test -n "$F77"; then
5832   ac_cv_prog_F77="$F77" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839   for ac_exec_ext in '' $ac_executable_extensions; do
5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849 fi
5850 fi
5851 F77=$ac_cv_prog_F77
5852 if test -n "$F77"; then
5853   { echo "$as_me:$LINENO: result: $F77" >&5
5854 echo "${ECHO_T}$F77" >&6; }
5855 else
5856   { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5858 fi
5859
5860
5861     test -n "$F77" && break
5862   done
5863 fi
5864 if test -z "$F77"; then
5865   ac_ct_F77=$F77
5866   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
5867 do
5868   # Extract the first word of "$ac_prog", so it can be a program name with args.
5869 set dummy $ac_prog; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   if test -n "$ac_ct_F77"; then
5876   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881   IFS=$as_save_IFS
5882   test -z "$as_dir" && as_dir=.
5883   for ac_exec_ext in '' $ac_executable_extensions; do
5884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885     ac_cv_prog_ac_ct_F77="$ac_prog"
5886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887     break 2
5888   fi
5889 done
5890 done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5896 if test -n "$ac_ct_F77"; then
5897   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5898 echo "${ECHO_T}$ac_ct_F77" >&6; }
5899 else
5900   { echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6; }
5902 fi
5903
5904
5905   test -n "$ac_ct_F77" && break
5906 done
5907
5908   if test "x$ac_ct_F77" = x; then
5909     F77=""
5910   else
5911     case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5914 whose name does not start with the host triplet.  If you think this
5915 configuration is useful to you, please write to autoconf@gnu.org." >&5
5916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5917 whose name does not start with the host triplet.  If you think this
5918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5919 ac_tool_warned=yes ;;
5920 esac
5921     F77=$ac_ct_F77
5922   fi
5923 fi
5924
5925
5926 # Provide some information about the compiler.
5927 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5928 ac_compiler=`set X $ac_compile; echo $2`
5929 { (ac_try="$ac_compiler --version >&5"
5930 case "(($ac_try" in
5931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932   *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935   (eval "$ac_compiler --version >&5") 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }
5939 { (ac_try="$ac_compiler -v >&5"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945   (eval "$ac_compiler -v >&5") 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }
5949 { (ac_try="$ac_compiler -V >&5"
5950 case "(($ac_try" in
5951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952   *) ac_try_echo=$ac_try;;
5953 esac
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955   (eval "$ac_compiler -V >&5") 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }
5959 rm -f a.out
5960
5961 # If we don't use `.F' as extension, the preprocessor is not run on the
5962 # input file.  (Note that this only needs to work for GNU compilers.)
5963 ac_save_ext=$ac_ext
5964 ac_ext=F
5965 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5966 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5967 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   cat >conftest.$ac_ext <<_ACEOF
5971       program main
5972 #ifndef __GNUC__
5973        choke me
5974 #endif
5975
5976       end
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (ac_try="$ac_compile"
5980 case "(($ac_try" in
5981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982   *) ac_try_echo=$ac_try;;
5983 esac
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985   (eval "$ac_compile") 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } && {
5992          test -z "$ac_f77_werror_flag" ||
5993          test ! -s conftest.err
5994        } && test -s conftest.$ac_objext; then
5995   ac_compiler_gnu=yes
5996 else
5997   echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000         ac_compiler_gnu=no
6001 fi
6002
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6005
6006 fi
6007 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6008 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6009 ac_ext=$ac_save_ext
6010 ac_test_FFLAGS=${FFLAGS+set}
6011 ac_save_FFLAGS=$FFLAGS
6012 FFLAGS=
6013 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6014 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_f77_g+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   FFLAGS=-g
6019 cat >conftest.$ac_ext <<_ACEOF
6020       program main
6021
6022       end
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6026 case "(($ac_try" in
6027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028   *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031   (eval "$ac_compile") 2>conftest.er1
6032   ac_status=$?
6033   grep -v '^ *+' conftest.er1 >conftest.err
6034   rm -f conftest.er1
6035   cat conftest.err >&5
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); } && {
6038          test -z "$ac_f77_werror_flag" ||
6039          test ! -s conftest.err
6040        } && test -s conftest.$ac_objext; then
6041   ac_cv_prog_f77_g=yes
6042 else
6043   echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6045
6046         ac_cv_prog_f77_g=no
6047 fi
6048
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050
6051 fi
6052 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6053 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6054 if test "$ac_test_FFLAGS" = set; then
6055   FFLAGS=$ac_save_FFLAGS
6056 elif test $ac_cv_prog_f77_g = yes; then
6057   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6058     FFLAGS="-g -O2"
6059   else
6060     FFLAGS="-g"
6061   fi
6062 else
6063   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6064     FFLAGS="-O2"
6065   else
6066     FFLAGS=
6067   fi
6068 fi
6069
6070 G77=`test $ac_compiler_gnu = yes && echo yes`
6071 ac_ext=c
6072 ac_cpp='$CPP $CPPFLAGS'
6073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6076
6077
6078
6079 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6080
6081 # find the maximum length of command line arguments
6082 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6083 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6084 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087     i=0
6088   teststring="ABCD"
6089
6090   case $build_os in
6091   msdosdjgpp*)
6092     # On DJGPP, this test can blow up pretty badly due to problems in libc
6093     # (any single argument exceeding 2000 bytes causes a buffer overrun
6094     # during glob expansion).  Even if it were fixed, the result of this
6095     # check would be larger than it should be.
6096     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6097     ;;
6098
6099   gnu*)
6100     # Under GNU Hurd, this test is not required because there is
6101     # no limit to the length of command line arguments.
6102     # Libtool will interpret -1 as no limit whatsoever
6103     lt_cv_sys_max_cmd_len=-1;
6104     ;;
6105
6106   cygwin* | mingw*)
6107     # On Win9x/ME, this test blows up -- it succeeds, but takes
6108     # about 5 minutes as the teststring grows exponentially.
6109     # Worse, since 9x/ME are not pre-emptively multitasking,
6110     # you end up with a "frozen" computer, even though with patience
6111     # the test eventually succeeds (with a max line length of 256k).
6112     # Instead, let's just punt: use the minimum linelength reported by
6113     # all of the supported platforms: 8192 (on NT/2K/XP).
6114     lt_cv_sys_max_cmd_len=8192;
6115     ;;
6116
6117   amigaos*)
6118     # On AmigaOS with pdksh, this test takes hours, literally.
6119     # So we just punt and use a minimum line length of 8192.
6120     lt_cv_sys_max_cmd_len=8192;
6121     ;;
6122
6123   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6124     # This has been around since 386BSD, at least.  Likely further.
6125     if test -x /sbin/sysctl; then
6126       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6127     elif test -x /usr/sbin/sysctl; then
6128       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6129     else
6130       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6131     fi
6132     # And add a safety zone
6133     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6134     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6135     ;;
6136
6137   interix*)
6138     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6139     lt_cv_sys_max_cmd_len=196608
6140     ;;
6141
6142   osf*)
6143     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6144     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6145     # nice to cause kernel panics so lets avoid the loop below.
6146     # First set a reasonable default.
6147     lt_cv_sys_max_cmd_len=16384
6148     #
6149     if test -x /sbin/sysconfig; then
6150       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6151         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6152       esac
6153     fi
6154     ;;
6155   sco3.2v5*)
6156     lt_cv_sys_max_cmd_len=102400
6157     ;;
6158   sysv5* | sco5v6* | sysv4.2uw2*)
6159     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6160     if test -n "$kargmax"; then
6161       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6162     else
6163       lt_cv_sys_max_cmd_len=32768
6164     fi
6165     ;;
6166   *)
6167     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6168     if test -n "$lt_cv_sys_max_cmd_len"; then
6169       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6170       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6171     else
6172       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6173       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6174                = "XX$teststring") >/dev/null 2>&1 &&
6175               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6176               lt_cv_sys_max_cmd_len=$new_result &&
6177               test $i != 17 # 1/2 MB should be enough
6178       do
6179         i=`expr $i + 1`
6180         teststring=$teststring$teststring
6181       done
6182       teststring=
6183       # Add a significant safety factor because C++ compilers can tack on massive
6184       # amounts of additional arguments before passing them to the linker.
6185       # It appears as though 1/2 is a usable value.
6186       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6187     fi
6188     ;;
6189   esac
6190
6191 fi
6192
6193 if test -n $lt_cv_sys_max_cmd_len ; then
6194   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6195 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6196 else
6197   { echo "$as_me:$LINENO: result: none" >&5
6198 echo "${ECHO_T}none" >&6; }
6199 fi
6200
6201
6202
6203
6204
6205 # Check for command to grab the raw symbol name followed by C symbol from nm.
6206 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6207 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6208 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211
6212 # These are sane defaults that work on at least a few old systems.
6213 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6214
6215 # Character class describing NM global symbol codes.
6216 symcode='[BCDEGRST]'
6217
6218 # Regexp to match symbols that can be accessed directly from C.
6219 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6220
6221 # Transform an extracted symbol line into a proper C declaration
6222 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6223
6224 # Transform an extracted symbol line into symbol name and symbol address
6225 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'"
6226
6227 # Define system-specific variables.
6228 case $host_os in
6229 aix*)
6230   symcode='[BCDT]'
6231   ;;
6232 cygwin* | mingw* | pw32*)
6233   symcode='[ABCDGISTW]'
6234   ;;
6235 hpux*) # Its linker distinguishes data from code symbols
6236   if test "$host_cpu" = ia64; then
6237     symcode='[ABCDEGRST]'
6238   fi
6239   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6240   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6241   ;;
6242 linux* | k*bsd*-gnu)
6243   if test "$host_cpu" = ia64; then
6244     symcode='[ABCDGIRSTW]'
6245     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6246     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'"
6247   fi
6248   ;;
6249 irix* | nonstopux*)
6250   symcode='[BCDEGRST]'
6251   ;;
6252 osf*)
6253   symcode='[BCDEGQRST]'
6254   ;;
6255 solaris*)
6256   symcode='[BDRT]'
6257   ;;
6258 sco3.2v5*)
6259   symcode='[DT]'
6260   ;;
6261 sysv4.2uw2*)
6262   symcode='[DT]'
6263   ;;
6264 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6265   symcode='[ABDT]'
6266   ;;
6267 sysv4)
6268   symcode='[DFNSTU]'
6269   ;;
6270 esac
6271
6272 # Handle CRLF in mingw tool chain
6273 opt_cr=
6274 case $build_os in
6275 mingw*)
6276   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6277   ;;
6278 esac
6279
6280 # If we're using GNU nm, then use its standard symbol codes.
6281 case `$NM -V 2>&1` in
6282 *GNU* | *'with BFD'*)
6283   symcode='[ABCDGIRSTW]' ;;
6284 esac
6285
6286 # Try without a prefix undercore, then with it.
6287 for ac_symprfx in "" "_"; do
6288
6289   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290   symxfrm="\\1 $ac_symprfx\\2 \\2"
6291
6292   # Write the raw and C identifiers.
6293   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6294
6295   # Check to see that the pipe works correctly.
6296   pipe_works=no
6297
6298   rm -f conftest*
6299   cat > conftest.$ac_ext <<EOF
6300 #ifdef __cplusplus
6301 extern "C" {
6302 #endif
6303 char nm_test_var;
6304 void nm_test_func(){}
6305 #ifdef __cplusplus
6306 }
6307 #endif
6308 int main(){nm_test_var='a';nm_test_func();return(0);}
6309 EOF
6310
6311   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312   (eval $ac_compile) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; then
6316     # Now try to grab the symbols.
6317     nlist=conftest.nm
6318     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6319   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); } && test -s "$nlist"; then
6323       # Try sorting and uniquifying the output.
6324       if sort "$nlist" | uniq > "$nlist"T; then
6325         mv -f "$nlist"T "$nlist"
6326       else
6327         rm -f "$nlist"T
6328       fi
6329
6330       # Make sure that we snagged all the symbols we need.
6331       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6332         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6333           cat <<EOF > conftest.$ac_ext
6334 #ifdef __cplusplus
6335 extern "C" {
6336 #endif
6337
6338 EOF
6339           # Now generate the symbol file.
6340           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6341
6342           cat <<EOF >> conftest.$ac_ext
6343 #if defined (__STDC__) && __STDC__
6344 # define lt_ptr_t void *
6345 #else
6346 # define lt_ptr_t char *
6347 # define const
6348 #endif
6349
6350 /* The mapping between symbol names and symbols. */
6351 const struct {
6352   const char *name;
6353   lt_ptr_t address;
6354 }
6355 lt_preloaded_symbols[] =
6356 {
6357 EOF
6358           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6359           cat <<\EOF >> conftest.$ac_ext
6360   {0, (lt_ptr_t) 0}
6361 };
6362
6363 #ifdef __cplusplus
6364 }
6365 #endif
6366 EOF
6367           # Now try linking the two files.
6368           mv conftest.$ac_objext conftstm.$ac_objext
6369           lt_save_LIBS="$LIBS"
6370           lt_save_CFLAGS="$CFLAGS"
6371           LIBS="conftstm.$ac_objext"
6372           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6373           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6374   (eval $ac_link) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6378             pipe_works=yes
6379           fi
6380           LIBS="$lt_save_LIBS"
6381           CFLAGS="$lt_save_CFLAGS"
6382         else
6383           echo "cannot find nm_test_func in $nlist" >&5
6384         fi
6385       else
6386         echo "cannot find nm_test_var in $nlist" >&5
6387       fi
6388     else
6389       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6390     fi
6391   else
6392     echo "$progname: failed program was:" >&5
6393     cat conftest.$ac_ext >&5
6394   fi
6395   rm -f conftest* conftst*
6396
6397   # Do not use the global_symbol_pipe unless it works.
6398   if test "$pipe_works" = yes; then
6399     break
6400   else
6401     lt_cv_sys_global_symbol_pipe=
6402   fi
6403 done
6404
6405 fi
6406
6407 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6408   lt_cv_sys_global_symbol_to_cdecl=
6409 fi
6410 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6411   { echo "$as_me:$LINENO: result: failed" >&5
6412 echo "${ECHO_T}failed" >&6; }
6413 else
6414   { echo "$as_me:$LINENO: result: ok" >&5
6415 echo "${ECHO_T}ok" >&6; }
6416 fi
6417
6418 { echo "$as_me:$LINENO: checking for objdir" >&5
6419 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6420 if test "${lt_cv_objdir+set}" = set; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423   rm -f .libs 2>/dev/null
6424 mkdir .libs 2>/dev/null
6425 if test -d .libs; then
6426   lt_cv_objdir=.libs
6427 else
6428   # MS-DOS does not allow filenames that begin with a dot.
6429   lt_cv_objdir=_libs
6430 fi
6431 rmdir .libs 2>/dev/null
6432 fi
6433 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6434 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6435 objdir=$lt_cv_objdir
6436
6437
6438
6439
6440
6441 case $host_os in
6442 aix3*)
6443   # AIX sometimes has problems with the GCC collect2 program.  For some
6444   # reason, if we set the COLLECT_NAMES environment variable, the problems
6445   # vanish in a puff of smoke.
6446   if test "X${COLLECT_NAMES+set}" != Xset; then
6447     COLLECT_NAMES=
6448     export COLLECT_NAMES
6449   fi
6450   ;;
6451 esac
6452
6453 # Sed substitution that helps us do robust quoting.  It backslashifies
6454 # metacharacters that are still active within double-quoted strings.
6455 Xsed='sed -e 1s/^X//'
6456 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6457
6458 # Same as above, but do not quote variable references.
6459 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6460
6461 # Sed substitution to delay expansion of an escaped shell variable in a
6462 # double_quote_subst'ed string.
6463 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6464
6465 # Sed substitution to avoid accidental globbing in evaled expressions
6466 no_glob_subst='s/\*/\\\*/g'
6467
6468 # Constants:
6469 rm="rm -f"
6470
6471 # Global variables:
6472 default_ofile=libtool
6473 can_build_shared=yes
6474
6475 # All known linkers require a `.a' archive for static linking (except MSVC,
6476 # which needs '.lib').
6477 libext=a
6478 ltmain="$ac_aux_dir/ltmain.sh"
6479 ofile="$default_ofile"
6480 with_gnu_ld="$lt_cv_prog_gnu_ld"
6481
6482 if test -n "$ac_tool_prefix"; then
6483   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6484 set dummy ${ac_tool_prefix}ar; ac_word=$2
6485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487 if test "${ac_cv_prog_AR+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   if test -n "$AR"; then
6491   ac_cv_prog_AR="$AR" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   test -z "$as_dir" && as_dir=.
6498   for ac_exec_ext in '' $ac_executable_extensions; do
6499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500     ac_cv_prog_AR="${ac_tool_prefix}ar"
6501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502     break 2
6503   fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 AR=$ac_cv_prog_AR
6511 if test -n "$AR"; then
6512   { echo "$as_me:$LINENO: result: $AR" >&5
6513 echo "${ECHO_T}$AR" >&6; }
6514 else
6515   { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6517 fi
6518
6519
6520 fi
6521 if test -z "$ac_cv_prog_AR"; then
6522   ac_ct_AR=$AR
6523   # Extract the first word of "ar", so it can be a program name with args.
6524 set dummy ar; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   if test -n "$ac_ct_AR"; then
6531   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536   IFS=$as_save_IFS
6537   test -z "$as_dir" && as_dir=.
6538   for ac_exec_ext in '' $ac_executable_extensions; do
6539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540     ac_cv_prog_ac_ct_AR="ar"
6541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542     break 2
6543   fi
6544 done
6545 done
6546 IFS=$as_save_IFS
6547
6548 fi
6549 fi
6550 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6551 if test -n "$ac_ct_AR"; then
6552   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6553 echo "${ECHO_T}$ac_ct_AR" >&6; }
6554 else
6555   { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6557 fi
6558
6559   if test "x$ac_ct_AR" = x; then
6560     AR="false"
6561   else
6562     case $cross_compiling:$ac_tool_warned in
6563 yes:)
6564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6565 whose name does not start with the host triplet.  If you think this
6566 configuration is useful to you, please write to autoconf@gnu.org." >&5
6567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet.  If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6570 ac_tool_warned=yes ;;
6571 esac
6572     AR=$ac_ct_AR
6573   fi
6574 else
6575   AR="$ac_cv_prog_AR"
6576 fi
6577
6578 if test -n "$ac_tool_prefix"; then
6579   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_prog_RANLIB+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   if test -n "$RANLIB"; then
6587   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592   IFS=$as_save_IFS
6593   test -z "$as_dir" && as_dir=.
6594   for ac_exec_ext in '' $ac_executable_extensions; do
6595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598     break 2
6599   fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 RANLIB=$ac_cv_prog_RANLIB
6607 if test -n "$RANLIB"; then
6608   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6609 echo "${ECHO_T}$RANLIB" >&6; }
6610 else
6611   { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6613 fi
6614
6615
6616 fi
6617 if test -z "$ac_cv_prog_RANLIB"; then
6618   ac_ct_RANLIB=$RANLIB
6619   # Extract the first word of "ranlib", so it can be a program name with args.
6620 set dummy ranlib; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   if test -n "$ac_ct_RANLIB"; then
6627   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632   IFS=$as_save_IFS
6633   test -z "$as_dir" && as_dir=.
6634   for ac_exec_ext in '' $ac_executable_extensions; do
6635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636     ac_cv_prog_ac_ct_RANLIB="ranlib"
6637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638     break 2
6639   fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi
6645 fi
6646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6647 if test -n "$ac_ct_RANLIB"; then
6648   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6649 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6650 else
6651   { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6653 fi
6654
6655   if test "x$ac_ct_RANLIB" = x; then
6656     RANLIB=":"
6657   else
6658     case $cross_compiling:$ac_tool_warned in
6659 yes:)
6660 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6661 whose name does not start with the host triplet.  If you think this
6662 configuration is useful to you, please write to autoconf@gnu.org." >&5
6663 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6664 whose name does not start with the host triplet.  If you think this
6665 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6666 ac_tool_warned=yes ;;
6667 esac
6668     RANLIB=$ac_ct_RANLIB
6669   fi
6670 else
6671   RANLIB="$ac_cv_prog_RANLIB"
6672 fi
6673
6674 if test -n "$ac_tool_prefix"; then
6675   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}strip; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_prog_STRIP+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   if test -n "$STRIP"; then
6683   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690   for ac_exec_ext in '' $ac_executable_extensions; do
6691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 STRIP=$ac_cv_prog_STRIP
6703 if test -n "$STRIP"; then
6704   { echo "$as_me:$LINENO: result: $STRIP" >&5
6705 echo "${ECHO_T}$STRIP" >&6; }
6706 else
6707   { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6709 fi
6710
6711
6712 fi
6713 if test -z "$ac_cv_prog_STRIP"; then
6714   ac_ct_STRIP=$STRIP
6715   # Extract the first word of "strip", so it can be a program name with args.
6716 set dummy strip; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   if test -n "$ac_ct_STRIP"; then
6723   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730   for ac_exec_ext in '' $ac_executable_extensions; do
6731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732     ac_cv_prog_ac_ct_STRIP="strip"
6733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6743 if test -n "$ac_ct_STRIP"; then
6744   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6745 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6746 else
6747   { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6749 fi
6750
6751   if test "x$ac_ct_STRIP" = x; then
6752     STRIP=":"
6753   else
6754     case $cross_compiling:$ac_tool_warned in
6755 yes:)
6756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6757 whose name does not start with the host triplet.  If you think this
6758 configuration is useful to you, please write to autoconf@gnu.org." >&5
6759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet.  If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764     STRIP=$ac_ct_STRIP
6765   fi
6766 else
6767   STRIP="$ac_cv_prog_STRIP"
6768 fi
6769
6770
6771 old_CC="$CC"
6772 old_CFLAGS="$CFLAGS"
6773
6774 # Set sane defaults for various variables
6775 test -z "$AR" && AR=ar
6776 test -z "$AR_FLAGS" && AR_FLAGS=cru
6777 test -z "$AS" && AS=as
6778 test -z "$CC" && CC=cc
6779 test -z "$LTCC" && LTCC=$CC
6780 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6781 test -z "$DLLTOOL" && DLLTOOL=dlltool
6782 test -z "$LD" && LD=ld
6783 test -z "$LN_S" && LN_S="ln -s"
6784 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6785 test -z "$NM" && NM=nm
6786 test -z "$SED" && SED=sed
6787 test -z "$OBJDUMP" && OBJDUMP=objdump
6788 test -z "$RANLIB" && RANLIB=:
6789 test -z "$STRIP" && STRIP=:
6790 test -z "$ac_objext" && ac_objext=o
6791
6792 # Determine commands to create old-style static archives.
6793 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6794 old_postinstall_cmds='chmod 644 $oldlib'
6795 old_postuninstall_cmds=
6796
6797 if test -n "$RANLIB"; then
6798   case $host_os in
6799   openbsd*)
6800     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6801     ;;
6802   *)
6803     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6804     ;;
6805   esac
6806   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6807 fi
6808
6809 for cc_temp in $compiler""; do
6810   case $cc_temp in
6811     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6812     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6813     \-*) ;;
6814     *) break;;
6815   esac
6816 done
6817 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6818
6819
6820 # Only perform the check for file, if the check method requires it
6821 case $deplibs_check_method in
6822 file_magic*)
6823   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6824     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6825 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   case $MAGIC_CMD in
6830 [\\/*] |  ?:[\\/]*)
6831   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6832   ;;
6833 *)
6834   lt_save_MAGIC_CMD="$MAGIC_CMD"
6835   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6836   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6837   for ac_dir in $ac_dummy; do
6838     IFS="$lt_save_ifs"
6839     test -z "$ac_dir" && ac_dir=.
6840     if test -f $ac_dir/${ac_tool_prefix}file; then
6841       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6842       if test -n "$file_magic_test_file"; then
6843         case $deplibs_check_method in
6844         "file_magic "*)
6845           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6846           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6847           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6848             $EGREP "$file_magic_regex" > /dev/null; then
6849             :
6850           else
6851             cat <<EOF 1>&2
6852
6853 *** Warning: the command libtool uses to detect shared libraries,
6854 *** $file_magic_cmd, produces output that libtool cannot recognize.
6855 *** The result is that libtool may fail to recognize shared libraries
6856 *** as such.  This will affect the creation of libtool libraries that
6857 *** depend on shared libraries, but programs linked with such libtool
6858 *** libraries will work regardless of this problem.  Nevertheless, you
6859 *** may want to report the problem to your system manager and/or to
6860 *** bug-libtool@gnu.org
6861
6862 EOF
6863           fi ;;
6864         esac
6865       fi
6866       break
6867     fi
6868   done
6869   IFS="$lt_save_ifs"
6870   MAGIC_CMD="$lt_save_MAGIC_CMD"
6871   ;;
6872 esac
6873 fi
6874
6875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6876 if test -n "$MAGIC_CMD"; then
6877   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6878 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6879 else
6880   { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6882 fi
6883
6884 if test -z "$lt_cv_path_MAGIC_CMD"; then
6885   if test -n "$ac_tool_prefix"; then
6886     { echo "$as_me:$LINENO: checking for file" >&5
6887 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   case $MAGIC_CMD in
6892 [\\/*] |  ?:[\\/]*)
6893   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6894   ;;
6895 *)
6896   lt_save_MAGIC_CMD="$MAGIC_CMD"
6897   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6898   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6899   for ac_dir in $ac_dummy; do
6900     IFS="$lt_save_ifs"
6901     test -z "$ac_dir" && ac_dir=.
6902     if test -f $ac_dir/file; then
6903       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6904       if test -n "$file_magic_test_file"; then
6905         case $deplibs_check_method in
6906         "file_magic "*)
6907           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6908           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6909           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6910             $EGREP "$file_magic_regex" > /dev/null; then
6911             :
6912           else
6913             cat <<EOF 1>&2
6914
6915 *** Warning: the command libtool uses to detect shared libraries,
6916 *** $file_magic_cmd, produces output that libtool cannot recognize.
6917 *** The result is that libtool may fail to recognize shared libraries
6918 *** as such.  This will affect the creation of libtool libraries that
6919 *** depend on shared libraries, but programs linked with such libtool
6920 *** libraries will work regardless of this problem.  Nevertheless, you
6921 *** may want to report the problem to your system manager and/or to
6922 *** bug-libtool@gnu.org
6923
6924 EOF
6925           fi ;;
6926         esac
6927       fi
6928       break
6929     fi
6930   done
6931   IFS="$lt_save_ifs"
6932   MAGIC_CMD="$lt_save_MAGIC_CMD"
6933   ;;
6934 esac
6935 fi
6936
6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6938 if test -n "$MAGIC_CMD"; then
6939   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6940 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6941 else
6942   { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6944 fi
6945
6946   else
6947     MAGIC_CMD=:
6948   fi
6949 fi
6950
6951   fi
6952   ;;
6953 esac
6954
6955 enable_dlopen=no
6956 enable_win32_dll=no
6957
6958 # Check whether --enable-libtool-lock was given.
6959 if test "${enable_libtool_lock+set}" = set; then
6960   enableval=$enable_libtool_lock;
6961 fi
6962
6963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6964
6965
6966 # Check whether --with-pic was given.
6967 if test "${with_pic+set}" = set; then
6968   withval=$with_pic; pic_mode="$withval"
6969 else
6970   pic_mode=default
6971 fi
6972
6973 test -z "$pic_mode" && pic_mode=default
6974
6975 # Use C for the default configuration in the libtool script
6976 tagname=
6977 lt_save_CC="$CC"
6978 ac_ext=c
6979 ac_cpp='$CPP $CPPFLAGS'
6980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6983
6984
6985 # Source file extension for C test sources.
6986 ac_ext=c
6987
6988 # Object file extension for compiled C test sources.
6989 objext=o
6990 objext=$objext
6991
6992 # Code to be used in simple compile tests
6993 lt_simple_compile_test_code="int some_variable = 0;"
6994
6995 # Code to be used in simple link tests
6996 lt_simple_link_test_code='int main(){return(0);}'
6997
6998
6999 # If no C compiler was specified, use CC.
7000 LTCC=${LTCC-"$CC"}
7001
7002 # If no C compiler flags were specified, use CFLAGS.
7003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7004
7005 # Allow CC to be a program name with arguments.
7006 compiler=$CC
7007
7008
7009 # save warnings/boilerplate of simple test code
7010 ac_outfile=conftest.$ac_objext
7011 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7013 _lt_compiler_boilerplate=`cat conftest.err`
7014 $rm conftest*
7015
7016 ac_outfile=conftest.$ac_objext
7017 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7019 _lt_linker_boilerplate=`cat conftest.err`
7020 $rm conftest*
7021
7022
7023
7024 lt_prog_compiler_no_builtin_flag=
7025
7026 if test "$GCC" = yes; then
7027   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7028
7029
7030 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7031 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7032 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   lt_cv_prog_compiler_rtti_exceptions=no
7036   ac_outfile=conftest.$ac_objext
7037    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7038    lt_compiler_flag="-fno-rtti -fno-exceptions"
7039    # Insert the option either (1) after the last *FLAGS variable, or
7040    # (2) before a word containing "conftest.", or (3) at the end.
7041    # Note that $ac_compile itself does not contain backslashes and begins
7042    # with a dollar sign (not a hyphen), so the echo should work correctly.
7043    # The option is referenced via a variable to avoid confusing sed.
7044    lt_compile=`echo "$ac_compile" | $SED \
7045    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7047    -e 's:$: $lt_compiler_flag:'`
7048    (eval echo "\"\$as_me:7048: $lt_compile\"" >&5)
7049    (eval "$lt_compile" 2>conftest.err)
7050    ac_status=$?
7051    cat conftest.err >&5
7052    echo "$as_me:7052: \$? = $ac_status" >&5
7053    if (exit $ac_status) && test -s "$ac_outfile"; then
7054      # The compiler can only warn and ignore the option if not recognized
7055      # So say no if there are warnings other than the usual output.
7056      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7057      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7058      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7059        lt_cv_prog_compiler_rtti_exceptions=yes
7060      fi
7061    fi
7062    $rm conftest*
7063
7064 fi
7065 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7066 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7067
7068 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7069     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7070 else
7071     :
7072 fi
7073
7074 fi
7075
7076 lt_prog_compiler_wl=
7077 lt_prog_compiler_pic=
7078 lt_prog_compiler_static=
7079
7080 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7082
7083   if test "$GCC" = yes; then
7084     lt_prog_compiler_wl='-Wl,'
7085     lt_prog_compiler_static='-static'
7086
7087     case $host_os in
7088       aix*)
7089       # All AIX code is PIC.
7090       if test "$host_cpu" = ia64; then
7091         # AIX 5 now supports IA64 processor
7092         lt_prog_compiler_static='-Bstatic'
7093       fi
7094       ;;
7095
7096     amigaos*)
7097       # FIXME: we need at least 68020 code to build shared libraries, but
7098       # adding the `-m68020' flag to GCC prevents building anything better,
7099       # like `-m68040'.
7100       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7101       ;;
7102
7103     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7104       # PIC is the default for these OSes.
7105       ;;
7106
7107     mingw* | cygwin* | pw32* | os2*)
7108       # This hack is so that the source file can tell whether it is being
7109       # built for inclusion in a dll (and should export symbols for example).
7110       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7111       # (--disable-auto-import) libraries
7112       lt_prog_compiler_pic='-DDLL_EXPORT'
7113       ;;
7114
7115     darwin* | rhapsody*)
7116       # PIC is the default on this platform
7117       # Common symbols not allowed in MH_DYLIB files
7118       lt_prog_compiler_pic='-fno-common'
7119       ;;
7120
7121     interix[3-9]*)
7122       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7123       # Instead, we relocate shared libraries at runtime.
7124       ;;
7125
7126     msdosdjgpp*)
7127       # Just because we use GCC doesn't mean we suddenly get shared libraries
7128       # on systems that don't support them.
7129       lt_prog_compiler_can_build_shared=no
7130       enable_shared=no
7131       ;;
7132
7133     sysv4*MP*)
7134       if test -d /usr/nec; then
7135         lt_prog_compiler_pic=-Kconform_pic
7136       fi
7137       ;;
7138
7139     hpux*)
7140       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7141       # not for PA HP-UX.
7142       case $host_cpu in
7143       hppa*64*|ia64*)
7144         # +Z the default
7145         ;;
7146       *)
7147         lt_prog_compiler_pic='-fPIC'
7148         ;;
7149       esac
7150       ;;
7151
7152     *)
7153       lt_prog_compiler_pic='-fPIC'
7154       ;;
7155     esac
7156   else
7157     # PORTME Check for flag to pass linker flags through the system compiler.
7158     case $host_os in
7159     aix*)
7160       lt_prog_compiler_wl='-Wl,'
7161       if test "$host_cpu" = ia64; then
7162         # AIX 5 now supports IA64 processor
7163         lt_prog_compiler_static='-Bstatic'
7164       else
7165         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7166       fi
7167       ;;
7168       darwin*)
7169         # PIC is the default on this platform
7170         # Common symbols not allowed in MH_DYLIB files
7171        case $cc_basename in
7172          xlc*)
7173          lt_prog_compiler_pic='-qnocommon'
7174          lt_prog_compiler_wl='-Wl,'
7175          ;;
7176        esac
7177        ;;
7178
7179     mingw* | cygwin* | pw32* | os2*)
7180       # This hack is so that the source file can tell whether it is being
7181       # built for inclusion in a dll (and should export symbols for example).
7182       lt_prog_compiler_pic='-DDLL_EXPORT'
7183       ;;
7184
7185     hpux9* | hpux10* | hpux11*)
7186       lt_prog_compiler_wl='-Wl,'
7187       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7188       # not for PA HP-UX.
7189       case $host_cpu in
7190       hppa*64*|ia64*)
7191         # +Z the default
7192         ;;
7193       *)
7194         lt_prog_compiler_pic='+Z'
7195         ;;
7196       esac
7197       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7198       lt_prog_compiler_static='${wl}-a ${wl}archive'
7199       ;;
7200
7201     irix5* | irix6* | nonstopux*)
7202       lt_prog_compiler_wl='-Wl,'
7203       # PIC (with -KPIC) is the default.
7204       lt_prog_compiler_static='-non_shared'
7205       ;;
7206
7207     newsos6)
7208       lt_prog_compiler_pic='-KPIC'
7209       lt_prog_compiler_static='-Bstatic'
7210       ;;
7211
7212     linux* | k*bsd*-gnu)
7213       case $cc_basename in
7214       icc* | ecc*)
7215         lt_prog_compiler_wl='-Wl,'
7216         lt_prog_compiler_pic='-KPIC'
7217         lt_prog_compiler_static='-static'
7218         ;;
7219       pgcc* | pgf77* | pgf90* | pgf95*)
7220         # Portland Group compilers (*not* the Pentium gcc compiler,
7221         # which looks to be a dead project)
7222         lt_prog_compiler_wl='-Wl,'
7223         lt_prog_compiler_pic='-fpic'
7224         lt_prog_compiler_static='-Bstatic'
7225         ;;
7226       ccc*)
7227         lt_prog_compiler_wl='-Wl,'
7228         # All Alpha code is PIC.
7229         lt_prog_compiler_static='-non_shared'
7230         ;;
7231       *)
7232         case `$CC -V 2>&1 | sed 5q` in
7233         *Sun\ C*)
7234           # Sun C 5.9
7235           lt_prog_compiler_pic='-KPIC'
7236           lt_prog_compiler_static='-Bstatic'
7237           lt_prog_compiler_wl='-Wl,'
7238           ;;
7239         *Sun\ F*)
7240           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7241           lt_prog_compiler_pic='-KPIC'
7242           lt_prog_compiler_static='-Bstatic'
7243           lt_prog_compiler_wl=''
7244           ;;
7245         esac
7246         ;;
7247       esac
7248       ;;
7249
7250     osf3* | osf4* | osf5*)
7251       lt_prog_compiler_wl='-Wl,'
7252       # All OSF/1 code is PIC.
7253       lt_prog_compiler_static='-non_shared'
7254       ;;
7255
7256     rdos*)
7257       lt_prog_compiler_static='-non_shared'
7258       ;;
7259
7260     solaris*)
7261       lt_prog_compiler_pic='-KPIC'
7262       lt_prog_compiler_static='-Bstatic'
7263       case $cc_basename in
7264       f77* | f90* | f95*)
7265         lt_prog_compiler_wl='-Qoption ld ';;
7266       *)
7267         lt_prog_compiler_wl='-Wl,';;
7268       esac
7269       ;;
7270
7271     sunos4*)
7272       lt_prog_compiler_wl='-Qoption ld '
7273       lt_prog_compiler_pic='-PIC'
7274       lt_prog_compiler_static='-Bstatic'
7275       ;;
7276
7277     sysv4 | sysv4.2uw2* | sysv4.3*)
7278       lt_prog_compiler_wl='-Wl,'
7279       lt_prog_compiler_pic='-KPIC'
7280       lt_prog_compiler_static='-Bstatic'
7281       ;;
7282
7283     sysv4*MP*)
7284       if test -d /usr/nec ;then
7285         lt_prog_compiler_pic='-Kconform_pic'
7286         lt_prog_compiler_static='-Bstatic'
7287       fi
7288       ;;
7289
7290     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7291       lt_prog_compiler_wl='-Wl,'
7292       lt_prog_compiler_pic='-KPIC'
7293       lt_prog_compiler_static='-Bstatic'
7294       ;;
7295
7296     unicos*)
7297       lt_prog_compiler_wl='-Wl,'
7298       lt_prog_compiler_can_build_shared=no
7299       ;;
7300
7301     uts4*)
7302       lt_prog_compiler_pic='-pic'
7303       lt_prog_compiler_static='-Bstatic'
7304       ;;
7305
7306     *)
7307       lt_prog_compiler_can_build_shared=no
7308       ;;
7309     esac
7310   fi
7311
7312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7313 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7314
7315 #
7316 # Check to make sure the PIC flag actually works.
7317 #
7318 if test -n "$lt_prog_compiler_pic"; then
7319
7320 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7321 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7322 if test "${lt_prog_compiler_pic_works+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   lt_prog_compiler_pic_works=no
7326   ac_outfile=conftest.$ac_objext
7327    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7328    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7329    # Insert the option either (1) after the last *FLAGS variable, or
7330    # (2) before a word containing "conftest.", or (3) at the end.
7331    # Note that $ac_compile itself does not contain backslashes and begins
7332    # with a dollar sign (not a hyphen), so the echo should work correctly.
7333    # The option is referenced via a variable to avoid confusing sed.
7334    lt_compile=`echo "$ac_compile" | $SED \
7335    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7336    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7337    -e 's:$: $lt_compiler_flag:'`
7338    (eval echo "\"\$as_me:7338: $lt_compile\"" >&5)
7339    (eval "$lt_compile" 2>conftest.err)
7340    ac_status=$?
7341    cat conftest.err >&5
7342    echo "$as_me:7342: \$? = $ac_status" >&5
7343    if (exit $ac_status) && test -s "$ac_outfile"; then
7344      # The compiler can only warn and ignore the option if not recognized
7345      # So say no if there are warnings other than the usual output.
7346      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7347      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7348      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7349        lt_prog_compiler_pic_works=yes
7350      fi
7351    fi
7352    $rm conftest*
7353
7354 fi
7355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7356 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7357
7358 if test x"$lt_prog_compiler_pic_works" = xyes; then
7359     case $lt_prog_compiler_pic in
7360      "" | " "*) ;;
7361      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7362      esac
7363 else
7364     lt_prog_compiler_pic=
7365      lt_prog_compiler_can_build_shared=no
7366 fi
7367
7368 fi
7369 case $host_os in
7370   # For platforms which do not support PIC, -DPIC is meaningless:
7371   *djgpp*)
7372     lt_prog_compiler_pic=
7373     ;;
7374   *)
7375     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7376     ;;
7377 esac
7378
7379 #
7380 # Check to make sure the static flag actually works.
7381 #
7382 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7383 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7384 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7385 if test "${lt_prog_compiler_static_works+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   lt_prog_compiler_static_works=no
7389    save_LDFLAGS="$LDFLAGS"
7390    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7391    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7392    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7393      # The linker can only warn and ignore the option if not recognized
7394      # So say no if there are warnings
7395      if test -s conftest.err; then
7396        # Append any errors to the config.log.
7397        cat conftest.err 1>&5
7398        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7399        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7400        if diff conftest.exp conftest.er2 >/dev/null; then
7401          lt_prog_compiler_static_works=yes
7402        fi
7403      else
7404        lt_prog_compiler_static_works=yes
7405      fi
7406    fi
7407    $rm conftest*
7408    LDFLAGS="$save_LDFLAGS"
7409
7410 fi
7411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7412 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7413
7414 if test x"$lt_prog_compiler_static_works" = xyes; then
7415     :
7416 else
7417     lt_prog_compiler_static=
7418 fi
7419
7420
7421 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7423 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   lt_cv_prog_compiler_c_o=no
7427    $rm -r conftest 2>/dev/null
7428    mkdir conftest
7429    cd conftest
7430    mkdir out
7431    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7432
7433    lt_compiler_flag="-o out/conftest2.$ac_objext"
7434    # Insert the option either (1) after the last *FLAGS variable, or
7435    # (2) before a word containing "conftest.", or (3) at the end.
7436    # Note that $ac_compile itself does not contain backslashes and begins
7437    # with a dollar sign (not a hyphen), so the echo should work correctly.
7438    lt_compile=`echo "$ac_compile" | $SED \
7439    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7441    -e 's:$: $lt_compiler_flag:'`
7442    (eval echo "\"\$as_me:7442: $lt_compile\"" >&5)
7443    (eval "$lt_compile" 2>out/conftest.err)
7444    ac_status=$?
7445    cat out/conftest.err >&5
7446    echo "$as_me:7446: \$? = $ac_status" >&5
7447    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7448    then
7449      # The compiler can only warn and ignore the option if not recognized
7450      # So say no if there are warnings
7451      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7452      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7453      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7454        lt_cv_prog_compiler_c_o=yes
7455      fi
7456    fi
7457    chmod u+w . 2>&5
7458    $rm conftest*
7459    # SGI C++ compiler will create directory out/ii_files/ for
7460    # template instantiation
7461    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7462    $rm out/* && rmdir out
7463    cd ..
7464    rmdir conftest
7465    $rm conftest*
7466
7467 fi
7468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7470
7471
7472 hard_links="nottested"
7473 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7474   # do not overwrite the value of need_locks provided by the user
7475   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7477   hard_links=yes
7478   $rm conftest*
7479   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7480   touch conftest.a
7481   ln conftest.a conftest.b 2>&5 || hard_links=no
7482   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7483   { echo "$as_me:$LINENO: result: $hard_links" >&5
7484 echo "${ECHO_T}$hard_links" >&6; }
7485   if test "$hard_links" = no; then
7486     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7488     need_locks=warn
7489   fi
7490 else
7491   need_locks=no
7492 fi
7493
7494 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7496
7497   runpath_var=
7498   allow_undefined_flag=
7499   enable_shared_with_static_runtimes=no
7500   archive_cmds=
7501   archive_expsym_cmds=
7502   old_archive_From_new_cmds=
7503   old_archive_from_expsyms_cmds=
7504   export_dynamic_flag_spec=
7505   whole_archive_flag_spec=
7506   thread_safe_flag_spec=
7507   hardcode_libdir_flag_spec=
7508   hardcode_libdir_flag_spec_ld=
7509   hardcode_libdir_separator=
7510   hardcode_direct=no
7511   hardcode_minus_L=no
7512   hardcode_shlibpath_var=unsupported
7513   link_all_deplibs=unknown
7514   hardcode_automatic=no
7515   module_cmds=
7516   module_expsym_cmds=
7517   always_export_symbols=no
7518   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7519   # include_expsyms should be a list of space-separated symbols to be *always*
7520   # included in the symbol list
7521   include_expsyms=
7522   # exclude_expsyms can be an extended regexp of symbols to exclude
7523   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7524   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7525   # as well as any symbol that contains `d'.
7526   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7527   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7528   # platforms (ab)use it in PIC code, but their linkers get confused if
7529   # the symbol is explicitly referenced.  Since portable code cannot
7530   # rely on this symbol name, it's probably fine to never include it in
7531   # preloaded symbol tables.
7532   extract_expsyms_cmds=
7533   # Just being paranoid about ensuring that cc_basename is set.
7534   for cc_temp in $compiler""; do
7535   case $cc_temp in
7536     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7537     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7538     \-*) ;;
7539     *) break;;
7540   esac
7541 done
7542 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7543
7544   case $host_os in
7545   cygwin* | mingw* | pw32*)
7546     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7547     # When not using gcc, we currently assume that we are using
7548     # Microsoft Visual C++.
7549     if test "$GCC" != yes; then
7550       with_gnu_ld=no
7551     fi
7552     ;;
7553   interix*)
7554     # we just hope/assume this is gcc and not c89 (= MSVC++)
7555     with_gnu_ld=yes
7556     ;;
7557   openbsd*)
7558     with_gnu_ld=no
7559     ;;
7560   esac
7561
7562   ld_shlibs=yes
7563   if test "$with_gnu_ld" = yes; then
7564     # If archive_cmds runs LD, not CC, wlarc should be empty
7565     wlarc='${wl}'
7566
7567     # Set some defaults for GNU ld with shared library support. These
7568     # are reset later if shared libraries are not supported. Putting them
7569     # here allows them to be overridden if necessary.
7570     runpath_var=LD_RUN_PATH
7571     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7572     export_dynamic_flag_spec='${wl}--export-dynamic'
7573     # ancient GNU ld didn't support --whole-archive et. al.
7574     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7575         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7576       else
7577         whole_archive_flag_spec=
7578     fi
7579     supports_anon_versioning=no
7580     case `$LD -v 2>/dev/null` in
7581       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7582       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7583       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7584       *\ 2.11.*) ;; # other 2.11 versions
7585       *) supports_anon_versioning=yes ;;
7586     esac
7587
7588     # See if GNU ld supports shared libraries.
7589     case $host_os in
7590     aix3* | aix4* | aix5*)
7591       # On AIX/PPC, the GNU linker is very broken
7592       if test "$host_cpu" != ia64; then
7593         ld_shlibs=no
7594         cat <<EOF 1>&2
7595
7596 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7597 *** to be unable to reliably create shared libraries on AIX.
7598 *** Therefore, libtool is disabling shared libraries support.  If you
7599 *** really care for shared libraries, you may want to modify your PATH
7600 *** so that a non-GNU linker is found, and then restart.
7601
7602 EOF
7603       fi
7604       ;;
7605
7606     amigaos*)
7607       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)'
7608       hardcode_libdir_flag_spec='-L$libdir'
7609       hardcode_minus_L=yes
7610
7611       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7612       # that the semantics of dynamic libraries on AmigaOS, at least up
7613       # to version 4, is to share data among multiple programs linked
7614       # with the same dynamic library.  Since this doesn't match the
7615       # behavior of shared libraries on other platforms, we can't use
7616       # them.
7617       ld_shlibs=no
7618       ;;
7619
7620     beos*)
7621       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7622         allow_undefined_flag=unsupported
7623         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7624         # support --undefined.  This deserves some investigation.  FIXME
7625         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7626       else
7627         ld_shlibs=no
7628       fi
7629       ;;
7630
7631     cygwin* | mingw* | pw32*)
7632       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7633       # as there is no search path for DLLs.
7634       hardcode_libdir_flag_spec='-L$libdir'
7635       allow_undefined_flag=unsupported
7636       always_export_symbols=no
7637       enable_shared_with_static_runtimes=yes
7638       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7639
7640       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7641         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7642         # If the export-symbols file already is a .def file (1st line
7643         # is EXPORTS), use it as is; otherwise, prepend...
7644         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7645           cp $export_symbols $output_objdir/$soname.def;
7646         else
7647           echo EXPORTS > $output_objdir/$soname.def;
7648           cat $export_symbols >> $output_objdir/$soname.def;
7649         fi~
7650         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7651       else
7652         ld_shlibs=no
7653       fi
7654       ;;
7655
7656     interix[3-9]*)
7657       hardcode_direct=no
7658       hardcode_shlibpath_var=no
7659       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7660       export_dynamic_flag_spec='${wl}-E'
7661       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7662       # Instead, shared libraries are loaded at an image base (0x10000000 by
7663       # default) and relocated if they conflict, which is a slow very memory
7664       # consuming and fragmenting process.  To avoid this, we pick a random,
7665       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7666       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7667       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7668       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'
7669       ;;
7670
7671     gnu* | linux* | k*bsd*-gnu)
7672       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7673         tmp_addflag=
7674         case $cc_basename,$host_cpu in
7675         pgcc*)                          # Portland Group C compiler
7676           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'
7677           tmp_addflag=' $pic_flag'
7678           ;;
7679         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7680           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'
7681           tmp_addflag=' $pic_flag -Mnomain' ;;
7682         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7683           tmp_addflag=' -i_dynamic' ;;
7684         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7685           tmp_addflag=' -i_dynamic -nofor_main' ;;
7686         ifc* | ifort*)                  # Intel Fortran compiler
7687           tmp_addflag=' -nofor_main' ;;
7688         esac
7689         case `$CC -V 2>&1 | sed 5q` in
7690         *Sun\ C*)                       # Sun C 5.9
7691           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7692           tmp_sharedflag='-G' ;;
7693         *Sun\ F*)                       # Sun Fortran 8.3
7694           tmp_sharedflag='-G' ;;
7695         *)
7696           tmp_sharedflag='-shared' ;;
7697         esac
7698         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7699
7700         if test $supports_anon_versioning = yes; then
7701           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7702   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7703   $echo "local: *; };" >> $output_objdir/$libname.ver~
7704           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7705         fi
7706         link_all_deplibs=no
7707       else
7708         ld_shlibs=no
7709       fi
7710       ;;
7711
7712     netbsd* | netbsdelf*-gnu)
7713       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7714         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7715         wlarc=
7716       else
7717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7718         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7719       fi
7720       ;;
7721
7722     solaris*)
7723       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7724         ld_shlibs=no
7725         cat <<EOF 1>&2
7726
7727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7728 *** create shared libraries on Solaris systems.  Therefore, libtool
7729 *** is disabling shared libraries support.  We urge you to upgrade GNU
7730 *** binutils to release 2.9.1 or newer.  Another option is to modify
7731 *** your PATH or compiler configuration so that the native linker is
7732 *** used, and then restart.
7733
7734 EOF
7735       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7737         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7738       else
7739         ld_shlibs=no
7740       fi
7741       ;;
7742
7743     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7744       case `$LD -v 2>&1` in
7745         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7746         ld_shlibs=no
7747         cat <<_LT_EOF 1>&2
7748
7749 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7750 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7751 *** is disabling shared libraries support.  We urge you to upgrade GNU
7752 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7753 *** your PATH or compiler configuration so that the native linker is
7754 *** used, and then restart.
7755
7756 _LT_EOF
7757         ;;
7758         *)
7759           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7760             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7761             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7762             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7763           else
7764             ld_shlibs=no
7765           fi
7766         ;;
7767       esac
7768       ;;
7769
7770     sunos4*)
7771       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7772       wlarc=
7773       hardcode_direct=yes
7774       hardcode_shlibpath_var=no
7775       ;;
7776
7777     *)
7778       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7780         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7781       else
7782         ld_shlibs=no
7783       fi
7784       ;;
7785     esac
7786
7787     if test "$ld_shlibs" = no; then
7788       runpath_var=
7789       hardcode_libdir_flag_spec=
7790       export_dynamic_flag_spec=
7791       whole_archive_flag_spec=
7792     fi
7793   else
7794     # PORTME fill in a description of your system's linker (not GNU ld)
7795     case $host_os in
7796     aix3*)
7797       allow_undefined_flag=unsupported
7798       always_export_symbols=yes
7799       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'
7800       # Note: this linker hardcodes the directories in LIBPATH if there
7801       # are no directories specified by -L.
7802       hardcode_minus_L=yes
7803       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7804         # Neither direct hardcoding nor static linking is supported with a
7805         # broken collect2.
7806         hardcode_direct=unsupported
7807       fi
7808       ;;
7809
7810     aix4* | aix5*)
7811       if test "$host_cpu" = ia64; then
7812         # On IA64, the linker does run time linking by default, so we don't
7813         # have to do anything special.
7814         aix_use_runtimelinking=no
7815         exp_sym_flag='-Bexport'
7816         no_entry_flag=""
7817       else
7818         # If we're using GNU nm, then we don't want the "-C" option.
7819         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7820         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7821           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'
7822         else
7823           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'
7824         fi
7825         aix_use_runtimelinking=no
7826
7827         # Test if we are trying to use run time linking or normal
7828         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7829         # need to do runtime linking.
7830         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7831           for ld_flag in $LDFLAGS; do
7832           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7833             aix_use_runtimelinking=yes
7834             break
7835           fi
7836           done
7837           ;;
7838         esac
7839
7840         exp_sym_flag='-bexport'
7841         no_entry_flag='-bnoentry'
7842       fi
7843
7844       # When large executables or shared objects are built, AIX ld can
7845       # have problems creating the table of contents.  If linking a library
7846       # or program results in "error TOC overflow" add -mminimal-toc to
7847       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7848       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7849
7850       archive_cmds=''
7851       hardcode_direct=yes
7852       hardcode_libdir_separator=':'
7853       link_all_deplibs=yes
7854
7855       if test "$GCC" = yes; then
7856         case $host_os in aix4.[012]|aix4.[012].*)
7857         # We only want to do this on AIX 4.2 and lower, the check
7858         # below for broken collect2 doesn't work under 4.3+
7859           collect2name=`${CC} -print-prog-name=collect2`
7860           if test -f "$collect2name" && \
7861            strings "$collect2name" | grep resolve_lib_name >/dev/null
7862           then
7863           # We have reworked collect2
7864           :
7865           else
7866           # We have old collect2
7867           hardcode_direct=unsupported
7868           # It fails to find uninstalled libraries when the uninstalled
7869           # path is not listed in the libpath.  Setting hardcode_minus_L
7870           # to unsupported forces relinking
7871           hardcode_minus_L=yes
7872           hardcode_libdir_flag_spec='-L$libdir'
7873           hardcode_libdir_separator=
7874           fi
7875           ;;
7876         esac
7877         shared_flag='-shared'
7878         if test "$aix_use_runtimelinking" = yes; then
7879           shared_flag="$shared_flag "'${wl}-G'
7880         fi
7881       else
7882         # not using gcc
7883         if test "$host_cpu" = ia64; then
7884         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7885         # chokes on -Wl,-G. The following line is correct:
7886           shared_flag='-G'
7887         else
7888           if test "$aix_use_runtimelinking" = yes; then
7889             shared_flag='${wl}-G'
7890           else
7891             shared_flag='${wl}-bM:SRE'
7892           fi
7893         fi
7894       fi
7895
7896       # It seems that -bexpall does not export symbols beginning with
7897       # underscore (_), so it is better to generate a list of symbols to export.
7898       always_export_symbols=yes
7899       if test "$aix_use_runtimelinking" = yes; then
7900         # Warning - without using the other runtime loading flags (-brtl),
7901         # -berok will link without error, but may produce a broken library.
7902         allow_undefined_flag='-berok'
7903        # Determine the default libpath from the value encoded in an empty executable.
7904        cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910
7911 int
7912 main ()
7913 {
7914
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7921 case "(($ac_try" in
7922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923   *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926   (eval "$ac_link") 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } && {
7933          test -z "$ac_c_werror_flag" ||
7934          test ! -s conftest.err
7935        } && test -s conftest$ac_exeext &&
7936        $as_test_x conftest$ac_exeext; then
7937
7938 lt_aix_libpath_sed='
7939     /Import File Strings/,/^$/ {
7940         /^0/ {
7941             s/^0  *\(.*\)$/\1/
7942             p
7943         }
7944     }'
7945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7946 # Check for a 64-bit object if we didn't find anything.
7947 if test -z "$aix_libpath"; then
7948   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949 fi
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954
7955 fi
7956
7957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7958       conftest$ac_exeext conftest.$ac_ext
7959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7960
7961        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7962         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"
7963        else
7964         if test "$host_cpu" = ia64; then
7965           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7966           allow_undefined_flag="-z nodefs"
7967           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"
7968         else
7969          # Determine the default libpath from the value encoded in an empty executable.
7970          cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h.  */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h.  */
7976
7977 int
7978 main ()
7979 {
7980
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (ac_try="$ac_link"
7987 case "(($ac_try" in
7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989   *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992   (eval "$ac_link") 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } && {
7999          test -z "$ac_c_werror_flag" ||
8000          test ! -s conftest.err
8001        } && test -s conftest$ac_exeext &&
8002        $as_test_x conftest$ac_exeext; then
8003
8004 lt_aix_libpath_sed='
8005     /Import File Strings/,/^$/ {
8006         /^0/ {
8007             s/^0  *\(.*\)$/\1/
8008             p
8009         }
8010     }'
8011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8012 # Check for a 64-bit object if we didn't find anything.
8013 if test -z "$aix_libpath"; then
8014   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8015 fi
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020
8021 fi
8022
8023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8024       conftest$ac_exeext conftest.$ac_ext
8025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8026
8027          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8028           # Warning - without using the other run time loading flags,
8029           # -berok will link without error, but may produce a broken library.
8030           no_undefined_flag=' ${wl}-bernotok'
8031           allow_undefined_flag=' ${wl}-berok'
8032           # Exported symbols can be pulled into shared objects from archives
8033           whole_archive_flag_spec='$convenience'
8034           archive_cmds_need_lc=yes
8035           # This is similar to how AIX traditionally builds its shared libraries.
8036           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'
8037         fi
8038       fi
8039       ;;
8040
8041     amigaos*)
8042       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)'
8043       hardcode_libdir_flag_spec='-L$libdir'
8044       hardcode_minus_L=yes
8045       # see comment about different semantics on the GNU ld section
8046       ld_shlibs=no
8047       ;;
8048
8049     bsdi[45]*)
8050       export_dynamic_flag_spec=-rdynamic
8051       ;;
8052
8053     cygwin* | mingw* | pw32*)
8054       # When not using gcc, we currently assume that we are using
8055       # Microsoft Visual C++.
8056       # hardcode_libdir_flag_spec is actually meaningless, as there is
8057       # no search path for DLLs.
8058       hardcode_libdir_flag_spec=' '
8059       allow_undefined_flag=unsupported
8060       # Tell ltmain to make .lib files, not .a files.
8061       libext=lib
8062       # Tell ltmain to make .dll files, not .so files.
8063       shrext_cmds=".dll"
8064       # FIXME: Setting linknames here is a bad hack.
8065       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8066       # The linker will automatically build a .lib file if we build a DLL.
8067       old_archive_From_new_cmds='true'
8068       # FIXME: Should let the user specify the lib program.
8069       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8070       fix_srcfile_path='`cygpath -w "$srcfile"`'
8071       enable_shared_with_static_runtimes=yes
8072       ;;
8073
8074     darwin* | rhapsody*)
8075       case $host_os in
8076         rhapsody* | darwin1.[012])
8077          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8078          ;;
8079        *) # Darwin 1.3 on
8080          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8081            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8082          else
8083            case ${MACOSX_DEPLOYMENT_TARGET} in
8084              10.[012])
8085                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8086                ;;
8087              10.*)
8088                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8089                ;;
8090            esac
8091          fi
8092          ;;
8093       esac
8094       archive_cmds_need_lc=no
8095       hardcode_direct=no
8096       hardcode_automatic=yes
8097       hardcode_shlibpath_var=unsupported
8098       whole_archive_flag_spec=''
8099       link_all_deplibs=yes
8100     if test "$GCC" = yes ; then
8101         output_verbose_link_cmd='echo'
8102         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8103       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8104       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8105       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}'
8106       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}'
8107     else
8108       case $cc_basename in
8109         xlc*)
8110          output_verbose_link_cmd='echo'
8111          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8112          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8113           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8114          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8115           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}'
8116           ;;
8117        *)
8118          ld_shlibs=no
8119           ;;
8120       esac
8121     fi
8122       ;;
8123
8124     dgux*)
8125       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8126       hardcode_libdir_flag_spec='-L$libdir'
8127       hardcode_shlibpath_var=no
8128       ;;
8129
8130     freebsd1*)
8131       ld_shlibs=no
8132       ;;
8133
8134     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8135     # support.  Future versions do this automatically, but an explicit c++rt0.o
8136     # does not break anything, and helps significantly (at the cost of a little
8137     # extra space).
8138     freebsd2.2*)
8139       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8140       hardcode_libdir_flag_spec='-R$libdir'
8141       hardcode_direct=yes
8142       hardcode_shlibpath_var=no
8143       ;;
8144
8145     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8146     freebsd2*)
8147       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8148       hardcode_direct=yes
8149       hardcode_minus_L=yes
8150       hardcode_shlibpath_var=no
8151       ;;
8152
8153     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8154     freebsd* | dragonfly*)
8155       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8156       hardcode_libdir_flag_spec='-R$libdir'
8157       hardcode_direct=yes
8158       hardcode_shlibpath_var=no
8159       ;;
8160
8161     hpux9*)
8162       if test "$GCC" = yes; then
8163         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'
8164       else
8165         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'
8166       fi
8167       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8168       hardcode_libdir_separator=:
8169       hardcode_direct=yes
8170
8171       # hardcode_minus_L: Not really in the search PATH,
8172       # but as the default location of the library.
8173       hardcode_minus_L=yes
8174       export_dynamic_flag_spec='${wl}-E'
8175       ;;
8176
8177     hpux10*)
8178       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8179         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8180       else
8181         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8182       fi
8183       if test "$with_gnu_ld" = no; then
8184         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8185         hardcode_libdir_separator=:
8186
8187         hardcode_direct=yes
8188         export_dynamic_flag_spec='${wl}-E'
8189
8190         # hardcode_minus_L: Not really in the search PATH,
8191         # but as the default location of the library.
8192         hardcode_minus_L=yes
8193       fi
8194       ;;
8195
8196     hpux11*)
8197       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8198         case $host_cpu in
8199         hppa*64*)
8200           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8201           ;;
8202         ia64*)
8203           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8204           ;;
8205         *)
8206           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207           ;;
8208         esac
8209       else
8210         case $host_cpu in
8211         hppa*64*)
8212           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8213           ;;
8214         ia64*)
8215           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8216           ;;
8217         *)
8218           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8219           ;;
8220         esac
8221       fi
8222       if test "$with_gnu_ld" = no; then
8223         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8224         hardcode_libdir_separator=:
8225
8226         case $host_cpu in
8227         hppa*64*|ia64*)
8228           hardcode_libdir_flag_spec_ld='+b $libdir'
8229           hardcode_direct=no
8230           hardcode_shlibpath_var=no
8231           ;;
8232         *)
8233           hardcode_direct=yes
8234           export_dynamic_flag_spec='${wl}-E'
8235
8236           # hardcode_minus_L: Not really in the search PATH,
8237           # but as the default location of the library.
8238           hardcode_minus_L=yes
8239           ;;
8240         esac
8241       fi
8242       ;;
8243
8244     irix5* | irix6* | nonstopux*)
8245       if test "$GCC" = yes; then
8246         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'
8247       else
8248         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'
8249         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8250       fi
8251       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8252       hardcode_libdir_separator=:
8253       link_all_deplibs=yes
8254       ;;
8255
8256     netbsd* | netbsdelf*-gnu)
8257       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8258         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8259       else
8260         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8261       fi
8262       hardcode_libdir_flag_spec='-R$libdir'
8263       hardcode_direct=yes
8264       hardcode_shlibpath_var=no
8265       ;;
8266
8267     newsos6)
8268       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8269       hardcode_direct=yes
8270       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8271       hardcode_libdir_separator=:
8272       hardcode_shlibpath_var=no
8273       ;;
8274
8275     openbsd*)
8276       if test -f /usr/libexec/ld.so; then
8277         hardcode_direct=yes
8278         hardcode_shlibpath_var=no
8279         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8280           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8281           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8282           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8283           export_dynamic_flag_spec='${wl}-E'
8284         else
8285           case $host_os in
8286            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8287              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8288              hardcode_libdir_flag_spec='-R$libdir'
8289              ;;
8290            *)
8291              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8292              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8293              ;;
8294           esac
8295         fi
8296       else
8297         ld_shlibs=no
8298       fi
8299       ;;
8300
8301     os2*)
8302       hardcode_libdir_flag_spec='-L$libdir'
8303       hardcode_minus_L=yes
8304       allow_undefined_flag=unsupported
8305       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'
8306       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8307       ;;
8308
8309     osf3*)
8310       if test "$GCC" = yes; then
8311         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8312         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'
8313       else
8314         allow_undefined_flag=' -expect_unresolved \*'
8315         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'
8316       fi
8317       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318       hardcode_libdir_separator=:
8319       ;;
8320
8321     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8322       if test "$GCC" = yes; then
8323         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8324         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'
8325         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8326       else
8327         allow_undefined_flag=' -expect_unresolved \*'
8328         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'
8329         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8330         $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'
8331
8332         # Both c and cxx compiler support -rpath directly
8333         hardcode_libdir_flag_spec='-rpath $libdir'
8334       fi
8335       hardcode_libdir_separator=:
8336       ;;
8337
8338     solaris*)
8339       no_undefined_flag=' -z text'
8340       if test "$GCC" = yes; then
8341         wlarc='${wl}'
8342         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8344           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8345       else
8346         wlarc=''
8347         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8349         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8350       fi
8351       hardcode_libdir_flag_spec='-R$libdir'
8352       hardcode_shlibpath_var=no
8353       case $host_os in
8354       solaris2.[0-5] | solaris2.[0-5].*) ;;
8355       *)
8356         # The compiler driver will combine and reorder linker options,
8357         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8358         # but is careful enough not to reorder.
8359         # Supported since Solaris 2.6 (maybe 2.5.1?)
8360         if test "$GCC" = yes; then
8361           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8362         else
8363           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8364         fi
8365         ;;
8366       esac
8367       link_all_deplibs=yes
8368       ;;
8369
8370     sunos4*)
8371       if test "x$host_vendor" = xsequent; then
8372         # Use $CC to link under sequent, because it throws in some extra .o
8373         # files that make .init and .fini sections work.
8374         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8375       else
8376         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8377       fi
8378       hardcode_libdir_flag_spec='-L$libdir'
8379       hardcode_direct=yes
8380       hardcode_minus_L=yes
8381       hardcode_shlibpath_var=no
8382       ;;
8383
8384     sysv4)
8385       case $host_vendor in
8386         sni)
8387           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388           hardcode_direct=yes # is this really true???
8389         ;;
8390         siemens)
8391           ## LD is ld it makes a PLAMLIB
8392           ## CC just makes a GrossModule.
8393           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8394           reload_cmds='$CC -r -o $output$reload_objs'
8395           hardcode_direct=no
8396         ;;
8397         motorola)
8398           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8399           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8400         ;;
8401       esac
8402       runpath_var='LD_RUN_PATH'
8403       hardcode_shlibpath_var=no
8404       ;;
8405
8406     sysv4.3*)
8407       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408       hardcode_shlibpath_var=no
8409       export_dynamic_flag_spec='-Bexport'
8410       ;;
8411
8412     sysv4*MP*)
8413       if test -d /usr/nec; then
8414         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415         hardcode_shlibpath_var=no
8416         runpath_var=LD_RUN_PATH
8417         hardcode_runpath_var=yes
8418         ld_shlibs=yes
8419       fi
8420       ;;
8421
8422     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8423       no_undefined_flag='${wl}-z,text'
8424       archive_cmds_need_lc=no
8425       hardcode_shlibpath_var=no
8426       runpath_var='LD_RUN_PATH'
8427
8428       if test "$GCC" = yes; then
8429         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8431       else
8432         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434       fi
8435       ;;
8436
8437     sysv5* | sco3.2v5* | sco5v6*)
8438       # Note: We can NOT use -z defs as we might desire, because we do not
8439       # link with -lc, and that would cause any symbols used from libc to
8440       # always be unresolved, which means just about no library would
8441       # ever link correctly.  If we're not using GNU ld we use -z text
8442       # though, which does catch some bad symbols but isn't as heavy-handed
8443       # as -z defs.
8444       no_undefined_flag='${wl}-z,text'
8445       allow_undefined_flag='${wl}-z,nodefs'
8446       archive_cmds_need_lc=no
8447       hardcode_shlibpath_var=no
8448       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8449       hardcode_libdir_separator=':'
8450       link_all_deplibs=yes
8451       export_dynamic_flag_spec='${wl}-Bexport'
8452       runpath_var='LD_RUN_PATH'
8453
8454       if test "$GCC" = yes; then
8455         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8457       else
8458         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460       fi
8461       ;;
8462
8463     uts4*)
8464       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8465       hardcode_libdir_flag_spec='-L$libdir'
8466       hardcode_shlibpath_var=no
8467       ;;
8468
8469     *)
8470       ld_shlibs=no
8471       ;;
8472     esac
8473   fi
8474
8475 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8476 echo "${ECHO_T}$ld_shlibs" >&6; }
8477 test "$ld_shlibs" = no && can_build_shared=no
8478
8479 #
8480 # Do we need to explicitly link libc?
8481 #
8482 case "x$archive_cmds_need_lc" in
8483 x|xyes)
8484   # Assume -lc should be added
8485   archive_cmds_need_lc=yes
8486
8487   if test "$enable_shared" = yes && test "$GCC" = yes; then
8488     case $archive_cmds in
8489     *'~'*)
8490       # FIXME: we may have to deal with multi-command sequences.
8491       ;;
8492     '$CC '*)
8493       # Test whether the compiler implicitly links with -lc since on some
8494       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8495       # to ld, don't add -lc before -lgcc.
8496       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8497 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8498       $rm conftest*
8499       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8500
8501       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502   (eval $ac_compile) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } 2>conftest.err; then
8506         soname=conftest
8507         lib=conftest
8508         libobjs=conftest.$ac_objext
8509         deplibs=
8510         wl=$lt_prog_compiler_wl
8511         pic_flag=$lt_prog_compiler_pic
8512         compiler_flags=-v
8513         linker_flags=-v
8514         verstring=
8515         output_objdir=.
8516         libname=conftest
8517         lt_save_allow_undefined_flag=$allow_undefined_flag
8518         allow_undefined_flag=
8519         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8520   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); }
8524         then
8525           archive_cmds_need_lc=no
8526         else
8527           archive_cmds_need_lc=yes
8528         fi
8529         allow_undefined_flag=$lt_save_allow_undefined_flag
8530       else
8531         cat conftest.err 1>&5
8532       fi
8533       $rm conftest*
8534       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8535 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8536       ;;
8537     esac
8538   fi
8539   ;;
8540 esac
8541
8542 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8543 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8544 library_names_spec=
8545 libname_spec='lib$name'
8546 soname_spec=
8547 shrext_cmds=".so"
8548 postinstall_cmds=
8549 postuninstall_cmds=
8550 finish_cmds=
8551 finish_eval=
8552 shlibpath_var=
8553 shlibpath_overrides_runpath=unknown
8554 version_type=none
8555 dynamic_linker="$host_os ld.so"
8556 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8557
8558 if test "$GCC" = yes; then
8559   case $host_os in
8560     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8561     *) lt_awk_arg="/^libraries:/" ;;
8562   esac
8563   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8564   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8565     # if the path contains ";" then we assume it to be the separator
8566     # otherwise default to the standard path separator (i.e. ":") - it is
8567     # assumed that no part of a normal pathname contains ";" but that should
8568     # okay in the real world where ";" in dirpaths is itself problematic.
8569     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8570   else
8571     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8572   fi
8573   # Ok, now we have the path, separated by spaces, we can step through it
8574   # and add multilib dir if necessary.
8575   lt_tmp_lt_search_path_spec=
8576   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8577   for lt_sys_path in $lt_search_path_spec; do
8578     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8579       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8580     else
8581       test -d "$lt_sys_path" && \
8582         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8583     fi
8584   done
8585   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8586 BEGIN {RS=" "; FS="/|\n";} {
8587   lt_foo="";
8588   lt_count=0;
8589   for (lt_i = NF; lt_i > 0; lt_i--) {
8590     if ($lt_i != "" && $lt_i != ".") {
8591       if ($lt_i == "..") {
8592         lt_count++;
8593       } else {
8594         if (lt_count == 0) {
8595           lt_foo="/" $lt_i lt_foo;
8596         } else {
8597           lt_count--;
8598         }
8599       }
8600     }
8601   }
8602   if (lt_foo != "") { lt_freq[lt_foo]++; }
8603   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8604 }'`
8605   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8606 else
8607   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8608 fi
8609 need_lib_prefix=unknown
8610 hardcode_into_libs=no
8611
8612 # when you set need_version to no, make sure it does not cause -set_version
8613 # flags to be left without arguments
8614 need_version=unknown
8615
8616 case $host_os in
8617 aix3*)
8618   version_type=linux
8619   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8620   shlibpath_var=LIBPATH
8621
8622   # AIX 3 has no versioning support, so we append a major version to the name.
8623   soname_spec='${libname}${release}${shared_ext}$major'
8624   ;;
8625
8626 aix4* | aix5*)
8627   version_type=linux
8628   need_lib_prefix=no
8629   need_version=no
8630   hardcode_into_libs=yes
8631   if test "$host_cpu" = ia64; then
8632     # AIX 5 supports IA64
8633     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8634     shlibpath_var=LD_LIBRARY_PATH
8635   else
8636     # With GCC up to 2.95.x, collect2 would create an import file
8637     # for dependence libraries.  The import file would start with
8638     # the line `#! .'.  This would cause the generated library to
8639     # depend on `.', always an invalid library.  This was fixed in
8640     # development snapshots of GCC prior to 3.0.
8641     case $host_os in
8642       aix4 | aix4.[01] | aix4.[01].*)
8643       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8644            echo ' yes '
8645            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8646         :
8647       else
8648         can_build_shared=no
8649       fi
8650       ;;
8651     esac
8652     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8653     # soname into executable. Probably we can add versioning support to
8654     # collect2, so additional links can be useful in future.
8655     if test "$aix_use_runtimelinking" = yes; then
8656       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8657       # instead of lib<name>.a to let people know that these are not
8658       # typical AIX shared libraries.
8659       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8660     else
8661       # We preserve .a as extension for shared libraries through AIX4.2
8662       # and later when we are not doing run time linking.
8663       library_names_spec='${libname}${release}.a $libname.a'
8664       soname_spec='${libname}${release}${shared_ext}$major'
8665     fi
8666     shlibpath_var=LIBPATH
8667   fi
8668   ;;
8669
8670 amigaos*)
8671   library_names_spec='$libname.ixlibrary $libname.a'
8672   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8673   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'
8674   ;;
8675
8676 beos*)
8677   library_names_spec='${libname}${shared_ext}'
8678   dynamic_linker="$host_os ld.so"
8679   shlibpath_var=LIBRARY_PATH
8680   ;;
8681
8682 bsdi[45]*)
8683   version_type=linux
8684   need_version=no
8685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8686   soname_spec='${libname}${release}${shared_ext}$major'
8687   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8688   shlibpath_var=LD_LIBRARY_PATH
8689   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8690   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8691   # the default ld.so.conf also contains /usr/contrib/lib and
8692   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8693   # libtool to hard-code these into programs
8694   ;;
8695
8696 cygwin* | mingw* | pw32*)
8697   version_type=windows
8698   shrext_cmds=".dll"
8699   need_version=no
8700   need_lib_prefix=no
8701
8702   case $GCC,$host_os in
8703   yes,cygwin* | yes,mingw* | yes,pw32*)
8704     library_names_spec='$libname.dll.a'
8705     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8706     postinstall_cmds='base_file=`basename \${file}`~
8707       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8708       dldir=$destdir/`dirname \$dlpath`~
8709       test -d \$dldir || mkdir -p \$dldir~
8710       $install_prog $dir/$dlname \$dldir/$dlname~
8711       chmod a+x \$dldir/$dlname'
8712     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8713       dlpath=$dir/\$dldll~
8714        $rm \$dlpath'
8715     shlibpath_overrides_runpath=yes
8716
8717     case $host_os in
8718     cygwin*)
8719       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8720       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8721       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8722       ;;
8723     mingw*)
8724       # MinGW DLLs use traditional 'lib' prefix
8725       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8727       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8728         # It is most probably a Windows format PATH printed by
8729         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8730         # path with ; separators, and with drive letters. We can handle the
8731         # drive letters (cygwin fileutils understands them), so leave them,
8732         # especially as we might pass files found there to a mingw objdump,
8733         # which wouldn't understand a cygwinified path. Ahh.
8734         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8735       else
8736         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8737       fi
8738       ;;
8739     pw32*)
8740       # pw32 DLLs use 'pw' prefix rather than 'lib'
8741       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8742       ;;
8743     esac
8744     ;;
8745
8746   *)
8747     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8748     ;;
8749   esac
8750   dynamic_linker='Win32 ld.exe'
8751   # FIXME: first we should search . and the directory the executable is in
8752   shlibpath_var=PATH
8753   ;;
8754
8755 darwin* | rhapsody*)
8756   dynamic_linker="$host_os dyld"
8757   version_type=darwin
8758   need_lib_prefix=no
8759   need_version=no
8760   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8761   soname_spec='${libname}${release}${major}$shared_ext'
8762   shlibpath_overrides_runpath=yes
8763   shlibpath_var=DYLD_LIBRARY_PATH
8764   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8765
8766   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8767   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8768   ;;
8769
8770 dgux*)
8771   version_type=linux
8772   need_lib_prefix=no
8773   need_version=no
8774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8775   soname_spec='${libname}${release}${shared_ext}$major'
8776   shlibpath_var=LD_LIBRARY_PATH
8777   ;;
8778
8779 freebsd1*)
8780   dynamic_linker=no
8781   ;;
8782
8783 freebsd* | dragonfly*)
8784   # DragonFly does not have aout.  When/if they implement a new
8785   # versioning mechanism, adjust this.
8786   if test -x /usr/bin/objformat; then
8787     objformat=`/usr/bin/objformat`
8788   else
8789     case $host_os in
8790     freebsd[123]*) objformat=aout ;;
8791     *) objformat=elf ;;
8792     esac
8793   fi
8794   version_type=freebsd-$objformat
8795   case $version_type in
8796     freebsd-elf*)
8797       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8798       need_version=no
8799       need_lib_prefix=no
8800       ;;
8801     freebsd-*)
8802       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8803       need_version=yes
8804       ;;
8805   esac
8806   shlibpath_var=LD_LIBRARY_PATH
8807   case $host_os in
8808   freebsd2*)
8809     shlibpath_overrides_runpath=yes
8810     ;;
8811   freebsd3.[01]* | freebsdelf3.[01]*)
8812     shlibpath_overrides_runpath=yes
8813     hardcode_into_libs=yes
8814     ;;
8815   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8816   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8817     shlibpath_overrides_runpath=no
8818     hardcode_into_libs=yes
8819     ;;
8820   *) # from 4.6 on, and DragonFly
8821     shlibpath_overrides_runpath=yes
8822     hardcode_into_libs=yes
8823     ;;
8824   esac
8825   ;;
8826
8827 gnu*)
8828   version_type=linux
8829   need_lib_prefix=no
8830   need_version=no
8831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8832   soname_spec='${libname}${release}${shared_ext}$major'
8833   shlibpath_var=LD_LIBRARY_PATH
8834   hardcode_into_libs=yes
8835   ;;
8836
8837 hpux9* | hpux10* | hpux11*)
8838   # Give a soname corresponding to the major version so that dld.sl refuses to
8839   # link against other versions.
8840   version_type=sunos
8841   need_lib_prefix=no
8842   need_version=no
8843   case $host_cpu in
8844   ia64*)
8845     shrext_cmds='.so'
8846     hardcode_into_libs=yes
8847     dynamic_linker="$host_os dld.so"
8848     shlibpath_var=LD_LIBRARY_PATH
8849     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851     soname_spec='${libname}${release}${shared_ext}$major'
8852     if test "X$HPUX_IA64_MODE" = X32; then
8853       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8854     else
8855       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8856     fi
8857     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8858     ;;
8859    hppa*64*)
8860      shrext_cmds='.sl'
8861      hardcode_into_libs=yes
8862      dynamic_linker="$host_os dld.sl"
8863      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8864      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8865      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866      soname_spec='${libname}${release}${shared_ext}$major'
8867      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8868      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8869      ;;
8870    *)
8871     shrext_cmds='.sl'
8872     dynamic_linker="$host_os dld.sl"
8873     shlibpath_var=SHLIB_PATH
8874     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876     soname_spec='${libname}${release}${shared_ext}$major'
8877     ;;
8878   esac
8879   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8880   postinstall_cmds='chmod 555 $lib'
8881   ;;
8882
8883 interix[3-9]*)
8884   version_type=linux
8885   need_lib_prefix=no
8886   need_version=no
8887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8888   soname_spec='${libname}${release}${shared_ext}$major'
8889   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8890   shlibpath_var=LD_LIBRARY_PATH
8891   shlibpath_overrides_runpath=no
8892   hardcode_into_libs=yes
8893   ;;
8894
8895 irix5* | irix6* | nonstopux*)
8896   case $host_os in
8897     nonstopux*) version_type=nonstopux ;;
8898     *)
8899         if test "$lt_cv_prog_gnu_ld" = yes; then
8900                 version_type=linux
8901         else
8902                 version_type=irix
8903         fi ;;
8904   esac
8905   need_lib_prefix=no
8906   need_version=no
8907   soname_spec='${libname}${release}${shared_ext}$major'
8908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8909   case $host_os in
8910   irix5* | nonstopux*)
8911     libsuff= shlibsuff=
8912     ;;
8913   *)
8914     case $LD in # libtool.m4 will add one of these switches to LD
8915     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8916       libsuff= shlibsuff= libmagic=32-bit;;
8917     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8918       libsuff=32 shlibsuff=N32 libmagic=N32;;
8919     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8920       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8921     *) libsuff= shlibsuff= libmagic=never-match;;
8922     esac
8923     ;;
8924   esac
8925   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8926   shlibpath_overrides_runpath=no
8927   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8928   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8929   hardcode_into_libs=yes
8930   ;;
8931
8932 # No shared lib support for Linux oldld, aout, or coff.
8933 linux*oldld* | linux*aout* | linux*coff*)
8934   dynamic_linker=no
8935   ;;
8936
8937 # This must be Linux ELF.
8938 linux* | k*bsd*-gnu)
8939   version_type=linux
8940   need_lib_prefix=no
8941   need_version=no
8942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943   soname_spec='${libname}${release}${shared_ext}$major'
8944   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8945   shlibpath_var=LD_LIBRARY_PATH
8946   shlibpath_overrides_runpath=no
8947   # This implies no fast_install, which is unacceptable.
8948   # Some rework will be needed to allow for fast_install
8949   # before this can be enabled.
8950   hardcode_into_libs=yes
8951
8952   # Append ld.so.conf contents to the search path
8953   if test -f /etc/ld.so.conf; then
8954     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8955     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8956   fi
8957
8958   # We used to test for /lib/ld.so.1 and disable shared libraries on
8959   # powerpc, because MkLinux only supported shared libraries with the
8960   # GNU dynamic linker.  Since this was broken with cross compilers,
8961   # most powerpc-linux boxes support dynamic linking these days and
8962   # people can always --disable-shared, the test was removed, and we
8963   # assume the GNU/Linux dynamic linker is in use.
8964   dynamic_linker='GNU/Linux ld.so'
8965   ;;
8966
8967 netbsdelf*-gnu)
8968   version_type=linux
8969   need_lib_prefix=no
8970   need_version=no
8971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8972   soname_spec='${libname}${release}${shared_ext}$major'
8973   shlibpath_var=LD_LIBRARY_PATH
8974   shlibpath_overrides_runpath=no
8975   hardcode_into_libs=yes
8976   dynamic_linker='NetBSD ld.elf_so'
8977   ;;
8978
8979 netbsd*)
8980   version_type=sunos
8981   need_lib_prefix=no
8982   need_version=no
8983   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8985     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8986     dynamic_linker='NetBSD (a.out) ld.so'
8987   else
8988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989     soname_spec='${libname}${release}${shared_ext}$major'
8990     dynamic_linker='NetBSD ld.elf_so'
8991   fi
8992   shlibpath_var=LD_LIBRARY_PATH
8993   shlibpath_overrides_runpath=yes
8994   hardcode_into_libs=yes
8995   ;;
8996
8997 newsos6)
8998   version_type=linux
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000   shlibpath_var=LD_LIBRARY_PATH
9001   shlibpath_overrides_runpath=yes
9002   ;;
9003
9004 nto-qnx*)
9005   version_type=linux
9006   need_lib_prefix=no
9007   need_version=no
9008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9009   soname_spec='${libname}${release}${shared_ext}$major'
9010   shlibpath_var=LD_LIBRARY_PATH
9011   shlibpath_overrides_runpath=yes
9012   ;;
9013
9014 openbsd*)
9015   version_type=sunos
9016   sys_lib_dlsearch_path_spec="/usr/lib"
9017   need_lib_prefix=no
9018   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9019   case $host_os in
9020     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9021     *)                         need_version=no  ;;
9022   esac
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9024   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9025   shlibpath_var=LD_LIBRARY_PATH
9026   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9027     case $host_os in
9028       openbsd2.[89] | openbsd2.[89].*)
9029         shlibpath_overrides_runpath=no
9030         ;;
9031       *)
9032         shlibpath_overrides_runpath=yes
9033         ;;
9034       esac
9035   else
9036     shlibpath_overrides_runpath=yes
9037   fi
9038   ;;
9039
9040 os2*)
9041   libname_spec='$name'
9042   shrext_cmds=".dll"
9043   need_lib_prefix=no
9044   library_names_spec='$libname${shared_ext} $libname.a'
9045   dynamic_linker='OS/2 ld.exe'
9046   shlibpath_var=LIBPATH
9047   ;;
9048
9049 osf3* | osf4* | osf5*)
9050   version_type=osf
9051   need_lib_prefix=no
9052   need_version=no
9053   soname_spec='${libname}${release}${shared_ext}$major'
9054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9057   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9058   ;;
9059
9060 rdos*)
9061   dynamic_linker=no
9062   ;;
9063
9064 solaris*)
9065   version_type=linux
9066   need_lib_prefix=no
9067   need_version=no
9068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069   soname_spec='${libname}${release}${shared_ext}$major'
9070   shlibpath_var=LD_LIBRARY_PATH
9071   shlibpath_overrides_runpath=yes
9072   hardcode_into_libs=yes
9073   # ldd complains unless libraries are executable
9074   postinstall_cmds='chmod +x $lib'
9075   ;;
9076
9077 sunos4*)
9078   version_type=sunos
9079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9080   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9081   shlibpath_var=LD_LIBRARY_PATH
9082   shlibpath_overrides_runpath=yes
9083   if test "$with_gnu_ld" = yes; then
9084     need_lib_prefix=no
9085   fi
9086   need_version=yes
9087   ;;
9088
9089 sysv4 | sysv4.3*)
9090   version_type=linux
9091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092   soname_spec='${libname}${release}${shared_ext}$major'
9093   shlibpath_var=LD_LIBRARY_PATH
9094   case $host_vendor in
9095     sni)
9096       shlibpath_overrides_runpath=no
9097       need_lib_prefix=no
9098       export_dynamic_flag_spec='${wl}-Blargedynsym'
9099       runpath_var=LD_RUN_PATH
9100       ;;
9101     siemens)
9102       need_lib_prefix=no
9103       ;;
9104     motorola)
9105       need_lib_prefix=no
9106       need_version=no
9107       shlibpath_overrides_runpath=no
9108       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9109       ;;
9110   esac
9111   ;;
9112
9113 sysv4*MP*)
9114   if test -d /usr/nec ;then
9115     version_type=linux
9116     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9117     soname_spec='$libname${shared_ext}.$major'
9118     shlibpath_var=LD_LIBRARY_PATH
9119   fi
9120   ;;
9121
9122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9123   version_type=freebsd-elf
9124   need_lib_prefix=no
9125   need_version=no
9126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9127   soname_spec='${libname}${release}${shared_ext}$major'
9128   shlibpath_var=LD_LIBRARY_PATH
9129   hardcode_into_libs=yes
9130   if test "$with_gnu_ld" = yes; then
9131     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9132     shlibpath_overrides_runpath=no
9133   else
9134     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9135     shlibpath_overrides_runpath=yes
9136     case $host_os in
9137       sco3.2v5*)
9138         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9139         ;;
9140     esac
9141   fi
9142   sys_lib_dlsearch_path_spec='/usr/lib'
9143   ;;
9144
9145 uts4*)
9146   version_type=linux
9147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   shlibpath_var=LD_LIBRARY_PATH
9150   ;;
9151
9152 *)
9153   dynamic_linker=no
9154   ;;
9155 esac
9156 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9157 echo "${ECHO_T}$dynamic_linker" >&6; }
9158 test "$dynamic_linker" = no && can_build_shared=no
9159
9160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9161 if test "$GCC" = yes; then
9162   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9163 fi
9164
9165 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9167 hardcode_action=
9168 if test -n "$hardcode_libdir_flag_spec" || \
9169    test -n "$runpath_var" || \
9170    test "X$hardcode_automatic" = "Xyes" ; then
9171
9172   # We can hardcode non-existant directories.
9173   if test "$hardcode_direct" != no &&
9174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9175      # have to relink, otherwise we might link with an installed library
9176      # when we should be linking with a yet-to-be-installed one
9177      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9178      test "$hardcode_minus_L" != no; then
9179     # Linking always hardcodes the temporary library directory.
9180     hardcode_action=relink
9181   else
9182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9183     hardcode_action=immediate
9184   fi
9185 else
9186   # We cannot hardcode anything, or else we can only hardcode existing
9187   # directories.
9188   hardcode_action=unsupported
9189 fi
9190 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9191 echo "${ECHO_T}$hardcode_action" >&6; }
9192
9193 if test "$hardcode_action" = relink; then
9194   # Fast installation is not supported
9195   enable_fast_install=no
9196 elif test "$shlibpath_overrides_runpath" = yes ||
9197      test "$enable_shared" = no; then
9198   # Fast installation is not necessary
9199   enable_fast_install=needless
9200 fi
9201
9202 striplib=
9203 old_striplib=
9204 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9205 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9206 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9207   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9208   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9209   { echo "$as_me:$LINENO: result: yes" >&5
9210 echo "${ECHO_T}yes" >&6; }
9211 else
9212 # FIXME - insert some real tests, host_os isn't really good enough
9213   case $host_os in
9214    darwin*)
9215        if test -n "$STRIP" ; then
9216          striplib="$STRIP -x"
9217          old_striplib="$STRIP -S"
9218          { echo "$as_me:$LINENO: result: yes" >&5
9219 echo "${ECHO_T}yes" >&6; }
9220        else
9221   { echo "$as_me:$LINENO: result: no" >&5
9222 echo "${ECHO_T}no" >&6; }
9223 fi
9224        ;;
9225    *)
9226   { echo "$as_me:$LINENO: result: no" >&5
9227 echo "${ECHO_T}no" >&6; }
9228     ;;
9229   esac
9230 fi
9231
9232 if test "x$enable_dlopen" != xyes; then
9233   enable_dlopen=unknown
9234   enable_dlopen_self=unknown
9235   enable_dlopen_self_static=unknown
9236 else
9237   lt_cv_dlopen=no
9238   lt_cv_dlopen_libs=
9239
9240   case $host_os in
9241   beos*)
9242     lt_cv_dlopen="load_add_on"
9243     lt_cv_dlopen_libs=
9244     lt_cv_dlopen_self=yes
9245     ;;
9246
9247   mingw* | pw32*)
9248     lt_cv_dlopen="LoadLibrary"
9249     lt_cv_dlopen_libs=
9250    ;;
9251
9252   cygwin*)
9253     lt_cv_dlopen="dlopen"
9254     lt_cv_dlopen_libs=
9255    ;;
9256
9257   darwin*)
9258   # if libdl is installed we need to link against it
9259     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9260 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9261 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   ac_check_lib_save_LIBS=$LIBS
9265 LIBS="-ldl  $LIBS"
9266 cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h.  */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h.  */
9272
9273 /* Override any GCC internal prototype to avoid an error.
9274    Use char because int might match the return type of a GCC
9275    builtin and then its argument prototype would still apply.  */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 char dlopen ();
9280 int
9281 main ()
9282 {
9283 return dlopen ();
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (ac_try="$ac_link"
9290 case "(($ac_try" in
9291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292   *) ac_try_echo=$ac_try;;
9293 esac
9294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9295   (eval "$ac_link") 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } && {
9302          test -z "$ac_c_werror_flag" ||
9303          test ! -s conftest.err
9304        } && test -s conftest$ac_exeext &&
9305        $as_test_x conftest$ac_exeext; then
9306   ac_cv_lib_dl_dlopen=yes
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311         ac_cv_lib_dl_dlopen=no
9312 fi
9313
9314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9315       conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9317 fi
9318 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9319 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9320 if test $ac_cv_lib_dl_dlopen = yes; then
9321   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9322 else
9323
9324     lt_cv_dlopen="dyld"
9325     lt_cv_dlopen_libs=
9326     lt_cv_dlopen_self=yes
9327
9328 fi
9329
9330    ;;
9331
9332   *)
9333     { echo "$as_me:$LINENO: checking for shl_load" >&5
9334 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9335 if test "${ac_cv_func_shl_load+set}" = set; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338   cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h.  */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h.  */
9344 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9346 #define shl_load innocuous_shl_load
9347
9348 /* System header to define __stub macros and hopefully few prototypes,
9349     which can conflict with char shl_load (); below.
9350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351     <limits.h> exists even on freestanding compilers.  */
9352
9353 #ifdef __STDC__
9354 # include <limits.h>
9355 #else
9356 # include <assert.h>
9357 #endif
9358
9359 #undef shl_load
9360
9361 /* Override any GCC internal prototype to avoid an error.
9362    Use char because int might match the return type of a GCC
9363    builtin and then its argument prototype would still apply.  */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char shl_load ();
9368 /* The GNU C library defines this for functions which it implements
9369     to always fail with ENOSYS.  Some functions are actually named
9370     something starting with __ and the normal name is an alias.  */
9371 #if defined __stub_shl_load || defined __stub___shl_load
9372 choke me
9373 #endif
9374
9375 int
9376 main ()
9377 {
9378 return shl_load ();
9379   ;
9380   return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (ac_try="$ac_link"
9385 case "(($ac_try" in
9386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387   *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390   (eval "$ac_link") 2>conftest.er1
9391   ac_status=$?
9392   grep -v '^ *+' conftest.er1 >conftest.err
9393   rm -f conftest.er1
9394   cat conftest.err >&5
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } && {
9397          test -z "$ac_c_werror_flag" ||
9398          test ! -s conftest.err
9399        } && test -s conftest$ac_exeext &&
9400        $as_test_x conftest$ac_exeext; then
9401   ac_cv_func_shl_load=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406         ac_cv_func_shl_load=no
9407 fi
9408
9409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9410       conftest$ac_exeext conftest.$ac_ext
9411 fi
9412 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9413 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9414 if test $ac_cv_func_shl_load = yes; then
9415   lt_cv_dlopen="shl_load"
9416 else
9417   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9418 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9419 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   ac_check_lib_save_LIBS=$LIBS
9423 LIBS="-ldld  $LIBS"
9424 cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430
9431 /* Override any GCC internal prototype to avoid an error.
9432    Use char because int might match the return type of a GCC
9433    builtin and then its argument prototype would still apply.  */
9434 #ifdef __cplusplus
9435 extern "C"
9436 #endif
9437 char shl_load ();
9438 int
9439 main ()
9440 {
9441 return shl_load ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9448 case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_link") 2>conftest.er1
9454   ac_status=$?
9455   grep -v '^ *+' conftest.er1 >conftest.err
9456   rm -f conftest.er1
9457   cat conftest.err >&5
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } && {
9460          test -z "$ac_c_werror_flag" ||
9461          test ! -s conftest.err
9462        } && test -s conftest$ac_exeext &&
9463        $as_test_x conftest$ac_exeext; then
9464   ac_cv_lib_dld_shl_load=yes
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469         ac_cv_lib_dld_shl_load=no
9470 fi
9471
9472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9473       conftest$ac_exeext conftest.$ac_ext
9474 LIBS=$ac_check_lib_save_LIBS
9475 fi
9476 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9477 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9478 if test $ac_cv_lib_dld_shl_load = yes; then
9479   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9480 else
9481   { echo "$as_me:$LINENO: checking for dlopen" >&5
9482 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9483 if test "${ac_cv_func_dlopen+set}" = set; then
9484   echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486   cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9492 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9494 #define dlopen innocuous_dlopen
9495
9496 /* System header to define __stub macros and hopefully few prototypes,
9497     which can conflict with char dlopen (); below.
9498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9499     <limits.h> exists even on freestanding compilers.  */
9500
9501 #ifdef __STDC__
9502 # include <limits.h>
9503 #else
9504 # include <assert.h>
9505 #endif
9506
9507 #undef dlopen
9508
9509 /* Override any GCC internal prototype to avoid an error.
9510    Use char because int might match the return type of a GCC
9511    builtin and then its argument prototype would still apply.  */
9512 #ifdef __cplusplus
9513 extern "C"
9514 #endif
9515 char dlopen ();
9516 /* The GNU C library defines this for functions which it implements
9517     to always fail with ENOSYS.  Some functions are actually named
9518     something starting with __ and the normal name is an alias.  */
9519 #if defined __stub_dlopen || defined __stub___dlopen
9520 choke me
9521 #endif
9522
9523 int
9524 main ()
9525 {
9526 return dlopen ();
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9533 case "(($ac_try" in
9534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535   *) ac_try_echo=$ac_try;;
9536 esac
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538   (eval "$ac_link") 2>conftest.er1
9539   ac_status=$?
9540   grep -v '^ *+' conftest.er1 >conftest.err
9541   rm -f conftest.er1
9542   cat conftest.err >&5
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } && {
9545          test -z "$ac_c_werror_flag" ||
9546          test ! -s conftest.err
9547        } && test -s conftest$ac_exeext &&
9548        $as_test_x conftest$ac_exeext; then
9549   ac_cv_func_dlopen=yes
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554         ac_cv_func_dlopen=no
9555 fi
9556
9557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558       conftest$ac_exeext conftest.$ac_ext
9559 fi
9560 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9561 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9562 if test $ac_cv_func_dlopen = yes; then
9563   lt_cv_dlopen="dlopen"
9564 else
9565   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9568   echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570   ac_check_lib_save_LIBS=$LIBS
9571 LIBS="-ldl  $LIBS"
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578
9579 /* Override any GCC internal prototype to avoid an error.
9580    Use char because int might match the return type of a GCC
9581    builtin and then its argument prototype would still apply.  */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char dlopen ();
9586 int
9587 main ()
9588 {
9589 return dlopen ();
9590   ;
9591   return 0;
9592 }
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9596 case "(($ac_try" in
9597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598   *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601   (eval "$ac_link") 2>conftest.er1
9602   ac_status=$?
9603   grep -v '^ *+' conftest.er1 >conftest.err
9604   rm -f conftest.er1
9605   cat conftest.err >&5
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); } && {
9608          test -z "$ac_c_werror_flag" ||
9609          test ! -s conftest.err
9610        } && test -s conftest$ac_exeext &&
9611        $as_test_x conftest$ac_exeext; then
9612   ac_cv_lib_dl_dlopen=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617         ac_cv_lib_dl_dlopen=no
9618 fi
9619
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621       conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_lib_save_LIBS
9623 fi
9624 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9626 if test $ac_cv_lib_dl_dlopen = yes; then
9627   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9628 else
9629   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9630 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9632   echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634   ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-lsvld  $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h.  */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h.  */
9642
9643 /* Override any GCC internal prototype to avoid an error.
9644    Use char because int might match the return type of a GCC
9645    builtin and then its argument prototype would still apply.  */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char dlopen ();
9650 int
9651 main ()
9652 {
9653 return dlopen ();
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_link") 2>conftest.er1
9666   ac_status=$?
9667   grep -v '^ *+' conftest.er1 >conftest.err
9668   rm -f conftest.er1
9669   cat conftest.err >&5
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } && {
9672          test -z "$ac_c_werror_flag" ||
9673          test ! -s conftest.err
9674        } && test -s conftest$ac_exeext &&
9675        $as_test_x conftest$ac_exeext; then
9676   ac_cv_lib_svld_dlopen=yes
9677 else
9678   echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681         ac_cv_lib_svld_dlopen=no
9682 fi
9683
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685       conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9687 fi
9688 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9690 if test $ac_cv_lib_svld_dlopen = yes; then
9691   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9692 else
9693   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9694 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9695 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9696   echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698   ac_check_lib_save_LIBS=$LIBS
9699 LIBS="-ldld  $LIBS"
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h.  */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h.  */
9706
9707 /* Override any GCC internal prototype to avoid an error.
9708    Use char because int might match the return type of a GCC
9709    builtin and then its argument prototype would still apply.  */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char dld_link ();
9714 int
9715 main ()
9716 {
9717 return dld_link ();
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726   *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729   (eval "$ac_link") 2>conftest.er1
9730   ac_status=$?
9731   grep -v '^ *+' conftest.er1 >conftest.err
9732   rm -f conftest.er1
9733   cat conftest.err >&5
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); } && {
9736          test -z "$ac_c_werror_flag" ||
9737          test ! -s conftest.err
9738        } && test -s conftest$ac_exeext &&
9739        $as_test_x conftest$ac_exeext; then
9740   ac_cv_lib_dld_dld_link=yes
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745         ac_cv_lib_dld_dld_link=no
9746 fi
9747
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749       conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9751 fi
9752 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9753 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9754 if test $ac_cv_lib_dld_dld_link = yes; then
9755   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9756 fi
9757
9758
9759 fi
9760
9761
9762 fi
9763
9764
9765 fi
9766
9767
9768 fi
9769
9770
9771 fi
9772
9773     ;;
9774   esac
9775
9776   if test "x$lt_cv_dlopen" != xno; then
9777     enable_dlopen=yes
9778   else
9779     enable_dlopen=no
9780   fi
9781
9782   case $lt_cv_dlopen in
9783   dlopen)
9784     save_CPPFLAGS="$CPPFLAGS"
9785     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9786
9787     save_LDFLAGS="$LDFLAGS"
9788     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9789
9790     save_LIBS="$LIBS"
9791     LIBS="$lt_cv_dlopen_libs $LIBS"
9792
9793     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9794 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9795 if test "${lt_cv_dlopen_self+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798           if test "$cross_compiling" = yes; then :
9799   lt_cv_dlopen_self=cross
9800 else
9801   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9802   lt_status=$lt_dlunknown
9803   cat > conftest.$ac_ext <<EOF
9804 #line 9804 "configure"
9805 #include "confdefs.h"
9806
9807 #if HAVE_DLFCN_H
9808 #include <dlfcn.h>
9809 #endif
9810
9811 #include <stdio.h>
9812
9813 #ifdef RTLD_GLOBAL
9814 #  define LT_DLGLOBAL           RTLD_GLOBAL
9815 #else
9816 #  ifdef DL_GLOBAL
9817 #    define LT_DLGLOBAL         DL_GLOBAL
9818 #  else
9819 #    define LT_DLGLOBAL         0
9820 #  endif
9821 #endif
9822
9823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9824    find out it does not work in some platform. */
9825 #ifndef LT_DLLAZY_OR_NOW
9826 #  ifdef RTLD_LAZY
9827 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9828 #  else
9829 #    ifdef DL_LAZY
9830 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9831 #    else
9832 #      ifdef RTLD_NOW
9833 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9834 #      else
9835 #        ifdef DL_NOW
9836 #          define LT_DLLAZY_OR_NOW      DL_NOW
9837 #        else
9838 #          define LT_DLLAZY_OR_NOW      0
9839 #        endif
9840 #      endif
9841 #    endif
9842 #  endif
9843 #endif
9844
9845 #ifdef __cplusplus
9846 extern "C" void exit (int);
9847 #endif
9848
9849 void fnord() { int i=42;}
9850 int main ()
9851 {
9852   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9853   int status = $lt_dlunknown;
9854
9855   if (self)
9856     {
9857       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9858       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9859       /* dlclose (self); */
9860     }
9861   else
9862     puts (dlerror ());
9863
9864     exit (status);
9865 }
9866 EOF
9867   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868   (eval $ac_link) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9872     (./conftest; exit; ) >&5 2>/dev/null
9873     lt_status=$?
9874     case x$lt_status in
9875       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9876       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9877       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9878     esac
9879   else :
9880     # compilation failed
9881     lt_cv_dlopen_self=no
9882   fi
9883 fi
9884 rm -fr conftest*
9885
9886
9887 fi
9888 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9889 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9890
9891     if test "x$lt_cv_dlopen_self" = xyes; then
9892       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9893       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9894 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9895 if test "${lt_cv_dlopen_self_static+set}" = set; then
9896   echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898           if test "$cross_compiling" = yes; then :
9899   lt_cv_dlopen_self_static=cross
9900 else
9901   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9902   lt_status=$lt_dlunknown
9903   cat > conftest.$ac_ext <<EOF
9904 #line 9904 "configure"
9905 #include "confdefs.h"
9906
9907 #if HAVE_DLFCN_H
9908 #include <dlfcn.h>
9909 #endif
9910
9911 #include <stdio.h>
9912
9913 #ifdef RTLD_GLOBAL
9914 #  define LT_DLGLOBAL           RTLD_GLOBAL
9915 #else
9916 #  ifdef DL_GLOBAL
9917 #    define LT_DLGLOBAL         DL_GLOBAL
9918 #  else
9919 #    define LT_DLGLOBAL         0
9920 #  endif
9921 #endif
9922
9923 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9924    find out it does not work in some platform. */
9925 #ifndef LT_DLLAZY_OR_NOW
9926 #  ifdef RTLD_LAZY
9927 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9928 #  else
9929 #    ifdef DL_LAZY
9930 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9931 #    else
9932 #      ifdef RTLD_NOW
9933 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9934 #      else
9935 #        ifdef DL_NOW
9936 #          define LT_DLLAZY_OR_NOW      DL_NOW
9937 #        else
9938 #          define LT_DLLAZY_OR_NOW      0
9939 #        endif
9940 #      endif
9941 #    endif
9942 #  endif
9943 #endif
9944
9945 #ifdef __cplusplus
9946 extern "C" void exit (int);
9947 #endif
9948
9949 void fnord() { int i=42;}
9950 int main ()
9951 {
9952   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9953   int status = $lt_dlunknown;
9954
9955   if (self)
9956     {
9957       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9958       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9959       /* dlclose (self); */
9960     }
9961   else
9962     puts (dlerror ());
9963
9964     exit (status);
9965 }
9966 EOF
9967   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968   (eval $ac_link) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9972     (./conftest; exit; ) >&5 2>/dev/null
9973     lt_status=$?
9974     case x$lt_status in
9975       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9976       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9977       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9978     esac
9979   else :
9980     # compilation failed
9981     lt_cv_dlopen_self_static=no
9982   fi
9983 fi
9984 rm -fr conftest*
9985
9986
9987 fi
9988 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9989 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9990     fi
9991
9992     CPPFLAGS="$save_CPPFLAGS"
9993     LDFLAGS="$save_LDFLAGS"
9994     LIBS="$save_LIBS"
9995     ;;
9996   esac
9997
9998   case $lt_cv_dlopen_self in
9999   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10000   *) enable_dlopen_self=unknown ;;
10001   esac
10002
10003   case $lt_cv_dlopen_self_static in
10004   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10005   *) enable_dlopen_self_static=unknown ;;
10006   esac
10007 fi
10008
10009
10010 # Report which library types will actually be built
10011 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10012 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10013 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10014 echo "${ECHO_T}$can_build_shared" >&6; }
10015
10016 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10017 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10018 test "$can_build_shared" = "no" && enable_shared=no
10019
10020 # On AIX, shared libraries and static libraries use the same namespace, and
10021 # are all built from PIC.
10022 case $host_os in
10023 aix3*)
10024   test "$enable_shared" = yes && enable_static=no
10025   if test -n "$RANLIB"; then
10026     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10027     postinstall_cmds='$RANLIB $lib'
10028   fi
10029   ;;
10030
10031 aix4* | aix5*)
10032   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10033     test "$enable_shared" = yes && enable_static=no
10034   fi
10035     ;;
10036 esac
10037 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10038 echo "${ECHO_T}$enable_shared" >&6; }
10039
10040 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10041 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10042 # Make sure either enable_shared or enable_static is yes.
10043 test "$enable_shared" = yes || enable_static=yes
10044 { echo "$as_me:$LINENO: result: $enable_static" >&5
10045 echo "${ECHO_T}$enable_static" >&6; }
10046
10047 # The else clause should only fire when bootstrapping the
10048 # libtool distribution, otherwise you forgot to ship ltmain.sh
10049 # with your package, and you will get complaints that there are
10050 # no rules to generate ltmain.sh.
10051 if test -f "$ltmain"; then
10052   # See if we are running on zsh, and set the options which allow our commands through
10053   # without removal of \ escapes.
10054   if test -n "${ZSH_VERSION+set}" ; then
10055     setopt NO_GLOB_SUBST
10056   fi
10057   # Now quote all the things that may contain metacharacters while being
10058   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10059   # variables and quote the copies for generation of the libtool script.
10060   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10061     SED SHELL STRIP \
10062     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10063     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10064     deplibs_check_method reload_flag reload_cmds need_locks \
10065     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10066     lt_cv_sys_global_symbol_to_c_name_address \
10067     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10068     old_postinstall_cmds old_postuninstall_cmds \
10069     compiler \
10070     CC \
10071     LD \
10072     lt_prog_compiler_wl \
10073     lt_prog_compiler_pic \
10074     lt_prog_compiler_static \
10075     lt_prog_compiler_no_builtin_flag \
10076     export_dynamic_flag_spec \
10077     thread_safe_flag_spec \
10078     whole_archive_flag_spec \
10079     enable_shared_with_static_runtimes \
10080     old_archive_cmds \
10081     old_archive_from_new_cmds \
10082     predep_objects \
10083     postdep_objects \
10084     predeps \
10085     postdeps \
10086     compiler_lib_search_path \
10087     archive_cmds \
10088     archive_expsym_cmds \
10089     postinstall_cmds \
10090     postuninstall_cmds \
10091     old_archive_from_expsyms_cmds \
10092     allow_undefined_flag \
10093     no_undefined_flag \
10094     export_symbols_cmds \
10095     hardcode_libdir_flag_spec \
10096     hardcode_libdir_flag_spec_ld \
10097     hardcode_libdir_separator \
10098     hardcode_automatic \
10099     module_cmds \
10100     module_expsym_cmds \
10101     lt_cv_prog_compiler_c_o \
10102     fix_srcfile_path \
10103     exclude_expsyms \
10104     include_expsyms; do
10105
10106     case $var in
10107     old_archive_cmds | \
10108     old_archive_from_new_cmds | \
10109     archive_cmds | \
10110     archive_expsym_cmds | \
10111     module_cmds | \
10112     module_expsym_cmds | \
10113     old_archive_from_expsyms_cmds | \
10114     export_symbols_cmds | \
10115     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10116     postinstall_cmds | postuninstall_cmds | \
10117     old_postinstall_cmds | old_postuninstall_cmds | \
10118     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10119       # Double-quote double-evaled strings.
10120       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10121       ;;
10122     *)
10123       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10124       ;;
10125     esac
10126   done
10127
10128   case $lt_echo in
10129   *'\$0 --fallback-echo"')
10130     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10131     ;;
10132   esac
10133
10134 cfgfile="${ofile}T"
10135   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10136   $rm -f "$cfgfile"
10137   { echo "$as_me:$LINENO: creating $ofile" >&5
10138 echo "$as_me: creating $ofile" >&6;}
10139
10140   cat <<__EOF__ >> "$cfgfile"
10141 #! $SHELL
10142
10143 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10144 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10146 #
10147 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10148 # Free Software Foundation, Inc.
10149 #
10150 # This file is part of GNU Libtool:
10151 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10152 #
10153 # This program is free software; you can redistribute it and/or modify
10154 # it under the terms of the GNU General Public License as published by
10155 # the Free Software Foundation; either version 2 of the License, or
10156 # (at your option) any later version.
10157 #
10158 # This program is distributed in the hope that it will be useful, but
10159 # WITHOUT ANY WARRANTY; without even the implied warranty of
10160 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10161 # General Public License for more details.
10162 #
10163 # You should have received a copy of the GNU General Public License
10164 # along with this program; if not, write to the Free Software
10165 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10166 #
10167 # As a special exception to the GNU General Public License, if you
10168 # distribute this file as part of a program that contains a
10169 # configuration script generated by Autoconf, you may include it under
10170 # the same distribution terms that you use for the rest of that program.
10171
10172 # A sed program that does not truncate output.
10173 SED=$lt_SED
10174
10175 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10176 Xsed="$SED -e 1s/^X//"
10177
10178 # The HP-UX ksh and POSIX shell print the target directory to stdout
10179 # if CDPATH is set.
10180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10181
10182 # The names of the tagged configurations supported by this script.
10183 available_tags=
10184
10185 # ### BEGIN LIBTOOL CONFIG
10186
10187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10188
10189 # Shell to use when invoking shell scripts.
10190 SHELL=$lt_SHELL
10191
10192 # Whether or not to build shared libraries.
10193 build_libtool_libs=$enable_shared
10194
10195 # Whether or not to build static libraries.
10196 build_old_libs=$enable_static
10197
10198 # Whether or not to add -lc for building shared libraries.
10199 build_libtool_need_lc=$archive_cmds_need_lc
10200
10201 # Whether or not to disallow shared libs when runtime libs are static
10202 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10203
10204 # Whether or not to optimize for fast installation.
10205 fast_install=$enable_fast_install
10206
10207 # The host system.
10208 host_alias=$host_alias
10209 host=$host
10210 host_os=$host_os
10211
10212 # The build system.
10213 build_alias=$build_alias
10214 build=$build
10215 build_os=$build_os
10216
10217 # An echo program that does not interpret backslashes.
10218 echo=$lt_echo
10219
10220 # The archiver.
10221 AR=$lt_AR
10222 AR_FLAGS=$lt_AR_FLAGS
10223
10224 # A C compiler.
10225 LTCC=$lt_LTCC
10226
10227 # LTCC compiler flags.
10228 LTCFLAGS=$lt_LTCFLAGS
10229
10230 # A language-specific compiler.
10231 CC=$lt_compiler
10232
10233 # Is the compiler the GNU C compiler?
10234 with_gcc=$GCC
10235
10236 # An ERE matcher.
10237 EGREP=$lt_EGREP
10238
10239 # The linker used to build libraries.
10240 LD=$lt_LD
10241
10242 # Whether we need hard or soft links.
10243 LN_S=$lt_LN_S
10244
10245 # A BSD-compatible nm program.
10246 NM=$lt_NM
10247
10248 # A symbol stripping program
10249 STRIP=$lt_STRIP
10250
10251 # Used to examine libraries when file_magic_cmd begins "file"
10252 MAGIC_CMD=$MAGIC_CMD
10253
10254 # Used on cygwin: DLL creation program.
10255 DLLTOOL="$DLLTOOL"
10256
10257 # Used on cygwin: object dumper.
10258 OBJDUMP="$OBJDUMP"
10259
10260 # Used on cygwin: assembler.
10261 AS="$AS"
10262
10263 # The name of the directory that contains temporary libtool files.
10264 objdir=$objdir
10265
10266 # How to create reloadable object files.
10267 reload_flag=$lt_reload_flag
10268 reload_cmds=$lt_reload_cmds
10269
10270 # How to pass a linker flag through the compiler.
10271 wl=$lt_lt_prog_compiler_wl
10272
10273 # Object file suffix (normally "o").
10274 objext="$ac_objext"
10275
10276 # Old archive suffix (normally "a").
10277 libext="$libext"
10278
10279 # Shared library suffix (normally ".so").
10280 shrext_cmds='$shrext_cmds'
10281
10282 # Executable file suffix (normally "").
10283 exeext="$exeext"
10284
10285 # Additional compiler flags for building library objects.
10286 pic_flag=$lt_lt_prog_compiler_pic
10287 pic_mode=$pic_mode
10288
10289 # What is the maximum length of a command?
10290 max_cmd_len=$lt_cv_sys_max_cmd_len
10291
10292 # Does compiler simultaneously support -c and -o options?
10293 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10294
10295 # Must we lock files when doing compilation?
10296 need_locks=$lt_need_locks
10297
10298 # Do we need the lib prefix for modules?
10299 need_lib_prefix=$need_lib_prefix
10300
10301 # Do we need a version for libraries?
10302 need_version=$need_version
10303
10304 # Whether dlopen is supported.
10305 dlopen_support=$enable_dlopen
10306
10307 # Whether dlopen of programs is supported.
10308 dlopen_self=$enable_dlopen_self
10309
10310 # Whether dlopen of statically linked programs is supported.
10311 dlopen_self_static=$enable_dlopen_self_static
10312
10313 # Compiler flag to prevent dynamic linking.
10314 link_static_flag=$lt_lt_prog_compiler_static
10315
10316 # Compiler flag to turn off builtin functions.
10317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10318
10319 # Compiler flag to allow reflexive dlopens.
10320 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10321
10322 # Compiler flag to generate shared objects directly from archives.
10323 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10324
10325 # Compiler flag to generate thread-safe objects.
10326 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10327
10328 # Library versioning type.
10329 version_type=$version_type
10330
10331 # Format of library name prefix.
10332 libname_spec=$lt_libname_spec
10333
10334 # List of archive names.  First name is the real one, the rest are links.
10335 # The last name is the one that the linker finds with -lNAME.
10336 library_names_spec=$lt_library_names_spec
10337
10338 # The coded name of the library, if different from the real name.
10339 soname_spec=$lt_soname_spec
10340
10341 # Commands used to build and install an old-style archive.
10342 RANLIB=$lt_RANLIB
10343 old_archive_cmds=$lt_old_archive_cmds
10344 old_postinstall_cmds=$lt_old_postinstall_cmds
10345 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10346
10347 # Create an old-style archive from a shared archive.
10348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10349
10350 # Create a temporary old-style archive to link instead of a shared archive.
10351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10352
10353 # Commands used to build and install a shared archive.
10354 archive_cmds=$lt_archive_cmds
10355 archive_expsym_cmds=$lt_archive_expsym_cmds
10356 postinstall_cmds=$lt_postinstall_cmds
10357 postuninstall_cmds=$lt_postuninstall_cmds
10358
10359 # Commands used to build a loadable module (assumed same as above if empty)
10360 module_cmds=$lt_module_cmds
10361 module_expsym_cmds=$lt_module_expsym_cmds
10362
10363 # Commands to strip libraries.
10364 old_striplib=$lt_old_striplib
10365 striplib=$lt_striplib
10366
10367 # Dependencies to place before the objects being linked to create a
10368 # shared library.
10369 predep_objects=$lt_predep_objects
10370
10371 # Dependencies to place after the objects being linked to create a
10372 # shared library.
10373 postdep_objects=$lt_postdep_objects
10374
10375 # Dependencies to place before the objects being linked to create a
10376 # shared library.
10377 predeps=$lt_predeps
10378
10379 # Dependencies to place after the objects being linked to create a
10380 # shared library.
10381 postdeps=$lt_postdeps
10382
10383 # The library search path used internally by the compiler when linking
10384 # a shared library.
10385 compiler_lib_search_path=$lt_compiler_lib_search_path
10386
10387 # Method to check whether dependent libraries are shared objects.
10388 deplibs_check_method=$lt_deplibs_check_method
10389
10390 # Command to use when deplibs_check_method == file_magic.
10391 file_magic_cmd=$lt_file_magic_cmd
10392
10393 # Flag that allows shared libraries with undefined symbols to be built.
10394 allow_undefined_flag=$lt_allow_undefined_flag
10395
10396 # Flag that forces no undefined symbols.
10397 no_undefined_flag=$lt_no_undefined_flag
10398
10399 # Commands used to finish a libtool library installation in a directory.
10400 finish_cmds=$lt_finish_cmds
10401
10402 # Same as above, but a single script fragment to be evaled but not shown.
10403 finish_eval=$lt_finish_eval
10404
10405 # Take the output of nm and produce a listing of raw symbols and C names.
10406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10407
10408 # Transform the output of nm in a proper C declaration
10409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10410
10411 # Transform the output of nm in a C name address pair
10412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10413
10414 # This is the shared library runtime path variable.
10415 runpath_var=$runpath_var
10416
10417 # This is the shared library path variable.
10418 shlibpath_var=$shlibpath_var
10419
10420 # Is shlibpath searched before the hard-coded library search path?
10421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10422
10423 # How to hardcode a shared library path into an executable.
10424 hardcode_action=$hardcode_action
10425
10426 # Whether we should hardcode library paths into libraries.
10427 hardcode_into_libs=$hardcode_into_libs
10428
10429 # Flag to hardcode \$libdir into a binary during linking.
10430 # This must work even if \$libdir does not exist.
10431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10432
10433 # If ld is used when linking, flag to hardcode \$libdir into
10434 # a binary during linking. This must work even if \$libdir does
10435 # not exist.
10436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10437
10438 # Whether we need a single -rpath flag with a separated argument.
10439 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10440
10441 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10442 # resulting binary.
10443 hardcode_direct=$hardcode_direct
10444
10445 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10446 # resulting binary.
10447 hardcode_minus_L=$hardcode_minus_L
10448
10449 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10450 # the resulting binary.
10451 hardcode_shlibpath_var=$hardcode_shlibpath_var
10452
10453 # Set to yes if building a shared library automatically hardcodes DIR into the library
10454 # and all subsequent libraries and executables linked against it.
10455 hardcode_automatic=$hardcode_automatic
10456
10457 # Variables whose values should be saved in libtool wrapper scripts and
10458 # restored at relink time.
10459 variables_saved_for_relink="$variables_saved_for_relink"
10460
10461 # Whether libtool must link a program against all its dependency libraries.
10462 link_all_deplibs=$link_all_deplibs
10463
10464 # Compile-time system search path for libraries
10465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10466
10467 # Run-time system search path for libraries
10468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10469
10470 # Fix the shell variable \$srcfile for the compiler.
10471 fix_srcfile_path=$lt_fix_srcfile_path
10472
10473 # Set to yes if exported symbols are required.
10474 always_export_symbols=$always_export_symbols
10475
10476 # The commands to list exported symbols.
10477 export_symbols_cmds=$lt_export_symbols_cmds
10478
10479 # The commands to extract the exported symbol list from a shared archive.
10480 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10481
10482 # Symbols that should not be listed in the preloaded symbols.
10483 exclude_expsyms=$lt_exclude_expsyms
10484
10485 # Symbols that must always be exported.
10486 include_expsyms=$lt_include_expsyms
10487
10488 # ### END LIBTOOL CONFIG
10489
10490 __EOF__
10491
10492
10493   case $host_os in
10494   aix3*)
10495     cat <<\EOF >> "$cfgfile"
10496
10497 # AIX sometimes has problems with the GCC collect2 program.  For some
10498 # reason, if we set the COLLECT_NAMES environment variable, the problems
10499 # vanish in a puff of smoke.
10500 if test "X${COLLECT_NAMES+set}" != Xset; then
10501   COLLECT_NAMES=
10502   export COLLECT_NAMES
10503 fi
10504 EOF
10505     ;;
10506   esac
10507
10508   # We use sed instead of cat because bash on DJGPP gets confused if
10509   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10510   # text mode, it properly converts lines to CR/LF.  This bash problem
10511   # is reportedly fixed, but why not run on old versions too?
10512   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10513
10514   mv -f "$cfgfile" "$ofile" || \
10515     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10516   chmod +x "$ofile"
10517
10518 else
10519   # If there is no Makefile yet, we rely on a make rule to execute
10520   # `config.status --recheck' to rerun these tests and create the
10521   # libtool script then.
10522   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10523   if test -f "$ltmain_in"; then
10524     test -f Makefile && make "$ltmain"
10525   fi
10526 fi
10527
10528
10529 ac_ext=c
10530 ac_cpp='$CPP $CPPFLAGS'
10531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10534
10535 CC="$lt_save_CC"
10536
10537
10538 # Check whether --with-tags was given.
10539 if test "${with_tags+set}" = set; then
10540   withval=$with_tags; tagnames="$withval"
10541 fi
10542
10543
10544 if test -f "$ltmain" && test -n "$tagnames"; then
10545   if test ! -f "${ofile}"; then
10546     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10547 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10548   fi
10549
10550   if test -z "$LTCC"; then
10551     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10552     if test -z "$LTCC"; then
10553       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10554 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10555     else
10556       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10557 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10558     fi
10559   fi
10560   if test -z "$LTCFLAGS"; then
10561     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10562   fi
10563
10564   # Extract list of available tagged configurations in $ofile.
10565   # Note that this assumes the entire list is on one line.
10566   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10567
10568   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10569   for tagname in $tagnames; do
10570     IFS="$lt_save_ifs"
10571     # Check whether tagname contains only valid characters
10572     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10573     "") ;;
10574     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10575 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10576    { (exit 1); exit 1; }; }
10577         ;;
10578     esac
10579
10580     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10581     then
10582       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10583 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10584    { (exit 1); exit 1; }; }
10585     fi
10586
10587     # Update the list of available tags.
10588     if test -n "$tagname"; then
10589       echo appending configuration tag \"$tagname\" to $ofile
10590
10591       case $tagname in
10592       CXX)
10593         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10594             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10595             (test "X$CXX" != "Xg++"))) ; then
10596           ac_ext=cpp
10597 ac_cpp='$CXXCPP $CPPFLAGS'
10598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10601
10602
10603
10604
10605 archive_cmds_need_lc_CXX=no
10606 allow_undefined_flag_CXX=
10607 always_export_symbols_CXX=no
10608 archive_expsym_cmds_CXX=
10609 export_dynamic_flag_spec_CXX=
10610 hardcode_direct_CXX=no
10611 hardcode_libdir_flag_spec_CXX=
10612 hardcode_libdir_flag_spec_ld_CXX=
10613 hardcode_libdir_separator_CXX=
10614 hardcode_minus_L_CXX=no
10615 hardcode_shlibpath_var_CXX=unsupported
10616 hardcode_automatic_CXX=no
10617 module_cmds_CXX=
10618 module_expsym_cmds_CXX=
10619 link_all_deplibs_CXX=unknown
10620 old_archive_cmds_CXX=$old_archive_cmds
10621 no_undefined_flag_CXX=
10622 whole_archive_flag_spec_CXX=
10623 enable_shared_with_static_runtimes_CXX=no
10624
10625 # Dependencies to place before and after the object being linked:
10626 predep_objects_CXX=
10627 postdep_objects_CXX=
10628 predeps_CXX=
10629 postdeps_CXX=
10630 compiler_lib_search_path_CXX=
10631
10632 # Source file extension for C++ test sources.
10633 ac_ext=cpp
10634
10635 # Object file extension for compiled C++ test sources.
10636 objext=o
10637 objext_CXX=$objext
10638
10639 # Code to be used in simple compile tests
10640 lt_simple_compile_test_code="int some_variable = 0;"
10641
10642 # Code to be used in simple link tests
10643 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10644
10645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10646
10647 # If no C compiler was specified, use CC.
10648 LTCC=${LTCC-"$CC"}
10649
10650 # If no C compiler flags were specified, use CFLAGS.
10651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10652
10653 # Allow CC to be a program name with arguments.
10654 compiler=$CC
10655
10656
10657 # save warnings/boilerplate of simple test code
10658 ac_outfile=conftest.$ac_objext
10659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10661 _lt_compiler_boilerplate=`cat conftest.err`
10662 $rm conftest*
10663
10664 ac_outfile=conftest.$ac_objext
10665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10667 _lt_linker_boilerplate=`cat conftest.err`
10668 $rm conftest*
10669
10670
10671 # Allow CC to be a program name with arguments.
10672 lt_save_CC=$CC
10673 lt_save_LD=$LD
10674 lt_save_GCC=$GCC
10675 GCC=$GXX
10676 lt_save_with_gnu_ld=$with_gnu_ld
10677 lt_save_path_LD=$lt_cv_path_LD
10678 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10679   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10680 else
10681   $as_unset lt_cv_prog_gnu_ld
10682 fi
10683 if test -n "${lt_cv_path_LDCXX+set}"; then
10684   lt_cv_path_LD=$lt_cv_path_LDCXX
10685 else
10686   $as_unset lt_cv_path_LD
10687 fi
10688 test -z "${LDCXX+set}" || LD=$LDCXX
10689 CC=${CXX-"c++"}
10690 compiler=$CC
10691 compiler_CXX=$CC
10692 for cc_temp in $compiler""; do
10693   case $cc_temp in
10694     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10695     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10696     \-*) ;;
10697     *) break;;
10698   esac
10699 done
10700 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10701
10702
10703 # We don't want -fno-exception wen compiling C++ code, so set the
10704 # no_builtin_flag separately
10705 if test "$GXX" = yes; then
10706   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10707 else
10708   lt_prog_compiler_no_builtin_flag_CXX=
10709 fi
10710
10711 if test "$GXX" = yes; then
10712   # Set up default GNU C++ configuration
10713
10714
10715 # Check whether --with-gnu-ld was given.
10716 if test "${with_gnu_ld+set}" = set; then
10717   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10718 else
10719   with_gnu_ld=no
10720 fi
10721
10722 ac_prog=ld
10723 if test "$GCC" = yes; then
10724   # Check if gcc -print-prog-name=ld gives a path.
10725   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10726 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10727   case $host in
10728   *-*-mingw*)
10729     # gcc leaves a trailing carriage return which upsets mingw
10730     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10731   *)
10732     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10733   esac
10734   case $ac_prog in
10735     # Accept absolute paths.
10736     [\\/]* | ?:[\\/]*)
10737       re_direlt='/[^/][^/]*/\.\./'
10738       # Canonicalize the pathname of ld
10739       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10740       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10741         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10742       done
10743       test -z "$LD" && LD="$ac_prog"
10744       ;;
10745   "")
10746     # If it fails, then pretend we aren't using GCC.
10747     ac_prog=ld
10748     ;;
10749   *)
10750     # If it is relative, then search for the first ld in PATH.
10751     with_gnu_ld=unknown
10752     ;;
10753   esac
10754 elif test "$with_gnu_ld" = yes; then
10755   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10756 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10757 else
10758   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10759 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10760 fi
10761 if test "${lt_cv_path_LD+set}" = set; then
10762   echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764   if test -z "$LD"; then
10765   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10766   for ac_dir in $PATH; do
10767     IFS="$lt_save_ifs"
10768     test -z "$ac_dir" && ac_dir=.
10769     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10770       lt_cv_path_LD="$ac_dir/$ac_prog"
10771       # Check to see if the program is GNU ld.  I'd rather use --version,
10772       # but apparently some variants of GNU ld only accept -v.
10773       # Break only if it was the GNU/non-GNU ld that we prefer.
10774       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10775       *GNU* | *'with BFD'*)
10776         test "$with_gnu_ld" != no && break
10777         ;;
10778       *)
10779         test "$with_gnu_ld" != yes && break
10780         ;;
10781       esac
10782     fi
10783   done
10784   IFS="$lt_save_ifs"
10785 else
10786   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10787 fi
10788 fi
10789
10790 LD="$lt_cv_path_LD"
10791 if test -n "$LD"; then
10792   { echo "$as_me:$LINENO: result: $LD" >&5
10793 echo "${ECHO_T}$LD" >&6; }
10794 else
10795   { echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6; }
10797 fi
10798 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10799 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10800    { (exit 1); exit 1; }; }
10801 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10802 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10803 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10804   echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10807 case `$LD -v 2>&1 </dev/null` in
10808 *GNU* | *'with BFD'*)
10809   lt_cv_prog_gnu_ld=yes
10810   ;;
10811 *)
10812   lt_cv_prog_gnu_ld=no
10813   ;;
10814 esac
10815 fi
10816 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10817 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10818 with_gnu_ld=$lt_cv_prog_gnu_ld
10819
10820
10821
10822   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10823   # archiving commands below assume that GNU ld is being used.
10824   if test "$with_gnu_ld" = yes; then
10825     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10826     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'
10827
10828     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10829     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10830
10831     # If archive_cmds runs LD, not CC, wlarc should be empty
10832     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10833     #     investigate it a little bit more. (MM)
10834     wlarc='${wl}'
10835
10836     # ancient GNU ld didn't support --whole-archive et. al.
10837     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10838         grep 'no-whole-archive' > /dev/null; then
10839       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10840     else
10841       whole_archive_flag_spec_CXX=
10842     fi
10843   else
10844     with_gnu_ld=no
10845     wlarc=
10846
10847     # A generic and very simple default shared library creation
10848     # command for GNU C++ for the case where it uses the native
10849     # linker, instead of GNU ld.  If possible, this setting should
10850     # overridden to take advantage of the native linker features on
10851     # the platform it is being used on.
10852     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10853   fi
10854
10855   # Commands to make compiler produce verbose output that lists
10856   # what "hidden" libraries, object files and flags are used when
10857   # linking a shared library.
10858   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10859
10860 else
10861   GXX=no
10862   with_gnu_ld=no
10863   wlarc=
10864 fi
10865
10866 # PORTME: fill in a description of your system's C++ link characteristics
10867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10869 ld_shlibs_CXX=yes
10870 case $host_os in
10871   aix3*)
10872     # FIXME: insert proper C++ library support
10873     ld_shlibs_CXX=no
10874     ;;
10875   aix4* | aix5*)
10876     if test "$host_cpu" = ia64; then
10877       # On IA64, the linker does run time linking by default, so we don't
10878       # have to do anything special.
10879       aix_use_runtimelinking=no
10880       exp_sym_flag='-Bexport'
10881       no_entry_flag=""
10882     else
10883       aix_use_runtimelinking=no
10884
10885       # Test if we are trying to use run time linking or normal
10886       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10887       # need to do runtime linking.
10888       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10889         for ld_flag in $LDFLAGS; do
10890           case $ld_flag in
10891           *-brtl*)
10892             aix_use_runtimelinking=yes
10893             break
10894             ;;
10895           esac
10896         done
10897         ;;
10898       esac
10899
10900       exp_sym_flag='-bexport'
10901       no_entry_flag='-bnoentry'
10902     fi
10903
10904     # When large executables or shared objects are built, AIX ld can
10905     # have problems creating the table of contents.  If linking a library
10906     # or program results in "error TOC overflow" add -mminimal-toc to
10907     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10908     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10909
10910     archive_cmds_CXX=''
10911     hardcode_direct_CXX=yes
10912     hardcode_libdir_separator_CXX=':'
10913     link_all_deplibs_CXX=yes
10914
10915     if test "$GXX" = yes; then
10916       case $host_os in aix4.[012]|aix4.[012].*)
10917       # We only want to do this on AIX 4.2 and lower, the check
10918       # below for broken collect2 doesn't work under 4.3+
10919         collect2name=`${CC} -print-prog-name=collect2`
10920         if test -f "$collect2name" && \
10921            strings "$collect2name" | grep resolve_lib_name >/dev/null
10922         then
10923           # We have reworked collect2
10924           :
10925         else
10926           # We have old collect2
10927           hardcode_direct_CXX=unsupported
10928           # It fails to find uninstalled libraries when the uninstalled
10929           # path is not listed in the libpath.  Setting hardcode_minus_L
10930           # to unsupported forces relinking
10931           hardcode_minus_L_CXX=yes
10932           hardcode_libdir_flag_spec_CXX='-L$libdir'
10933           hardcode_libdir_separator_CXX=
10934         fi
10935         ;;
10936       esac
10937       shared_flag='-shared'
10938       if test "$aix_use_runtimelinking" = yes; then
10939         shared_flag="$shared_flag "'${wl}-G'
10940       fi
10941     else
10942       # not using gcc
10943       if test "$host_cpu" = ia64; then
10944         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10945         # chokes on -Wl,-G. The following line is correct:
10946         shared_flag='-G'
10947       else
10948         if test "$aix_use_runtimelinking" = yes; then
10949           shared_flag='${wl}-G'
10950         else
10951           shared_flag='${wl}-bM:SRE'
10952         fi
10953       fi
10954     fi
10955
10956     # It seems that -bexpall does not export symbols beginning with
10957     # underscore (_), so it is better to generate a list of symbols to export.
10958     always_export_symbols_CXX=yes
10959     if test "$aix_use_runtimelinking" = yes; then
10960       # Warning - without using the other runtime loading flags (-brtl),
10961       # -berok will link without error, but may produce a broken library.
10962       allow_undefined_flag_CXX='-berok'
10963       # Determine the default libpath from the value encoded in an empty executable.
10964       cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970
10971 int
10972 main ()
10973 {
10974
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (ac_try="$ac_link"
10981 case "(($ac_try" in
10982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983   *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986   (eval "$ac_link") 2>conftest.er1
10987   ac_status=$?
10988   grep -v '^ *+' conftest.er1 >conftest.err
10989   rm -f conftest.er1
10990   cat conftest.err >&5
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } && {
10993          test -z "$ac_cxx_werror_flag" ||
10994          test ! -s conftest.err
10995        } && test -s conftest$ac_exeext &&
10996        $as_test_x conftest$ac_exeext; then
10997
10998 lt_aix_libpath_sed='
10999     /Import File Strings/,/^$/ {
11000         /^0/ {
11001             s/^0  *\(.*\)$/\1/
11002             p
11003         }
11004     }'
11005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11006 # Check for a 64-bit object if we didn't find anything.
11007 if test -z "$aix_libpath"; then
11008   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11009 fi
11010 else
11011   echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014
11015 fi
11016
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018       conftest$ac_exeext conftest.$ac_ext
11019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11020
11021       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11022
11023       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"
11024      else
11025       if test "$host_cpu" = ia64; then
11026         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11027         allow_undefined_flag_CXX="-z nodefs"
11028         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"
11029       else
11030         # Determine the default libpath from the value encoded in an empty executable.
11031         cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h.  */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h.  */
11037
11038 int
11039 main ()
11040 {
11041
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (ac_try="$ac_link"
11048 case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_link") 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } && {
11060          test -z "$ac_cxx_werror_flag" ||
11061          test ! -s conftest.err
11062        } && test -s conftest$ac_exeext &&
11063        $as_test_x conftest$ac_exeext; then
11064
11065 lt_aix_libpath_sed='
11066     /Import File Strings/,/^$/ {
11067         /^0/ {
11068             s/^0  *\(.*\)$/\1/
11069             p
11070         }
11071     }'
11072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11073 # Check for a 64-bit object if we didn't find anything.
11074 if test -z "$aix_libpath"; then
11075   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11076 fi
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081
11082 fi
11083
11084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11085       conftest$ac_exeext conftest.$ac_ext
11086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11087
11088         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11089         # Warning - without using the other run time loading flags,
11090         # -berok will link without error, but may produce a broken library.
11091         no_undefined_flag_CXX=' ${wl}-bernotok'
11092         allow_undefined_flag_CXX=' ${wl}-berok'
11093         # Exported symbols can be pulled into shared objects from archives
11094         whole_archive_flag_spec_CXX='$convenience'
11095         archive_cmds_need_lc_CXX=yes
11096         # This is similar to how AIX traditionally builds its shared libraries.
11097         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'
11098       fi
11099     fi
11100     ;;
11101
11102   beos*)
11103     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11104       allow_undefined_flag_CXX=unsupported
11105       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11106       # support --undefined.  This deserves some investigation.  FIXME
11107       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11108     else
11109       ld_shlibs_CXX=no
11110     fi
11111     ;;
11112
11113   chorus*)
11114     case $cc_basename in
11115       *)
11116         # FIXME: insert proper C++ library support
11117         ld_shlibs_CXX=no
11118         ;;
11119     esac
11120     ;;
11121
11122   cygwin* | mingw* | pw32*)
11123     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11124     # as there is no search path for DLLs.
11125     hardcode_libdir_flag_spec_CXX='-L$libdir'
11126     allow_undefined_flag_CXX=unsupported
11127     always_export_symbols_CXX=no
11128     enable_shared_with_static_runtimes_CXX=yes
11129
11130     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11131       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'
11132       # If the export-symbols file already is a .def file (1st line
11133       # is EXPORTS), use it as is; otherwise, prepend...
11134       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11135         cp $export_symbols $output_objdir/$soname.def;
11136       else
11137         echo EXPORTS > $output_objdir/$soname.def;
11138         cat $export_symbols >> $output_objdir/$soname.def;
11139       fi~
11140       $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'
11141     else
11142       ld_shlibs_CXX=no
11143     fi
11144   ;;
11145       darwin* | rhapsody*)
11146         case $host_os in
11147         rhapsody* | darwin1.[012])
11148          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11149          ;;
11150        *) # Darwin 1.3 on
11151          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11152            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11153          else
11154            case ${MACOSX_DEPLOYMENT_TARGET} in
11155              10.[012])
11156                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11157                ;;
11158              10.*)
11159                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11160                ;;
11161            esac
11162          fi
11163          ;;
11164         esac
11165       archive_cmds_need_lc_CXX=no
11166       hardcode_direct_CXX=no
11167       hardcode_automatic_CXX=yes
11168       hardcode_shlibpath_var_CXX=unsupported
11169       whole_archive_flag_spec_CXX=''
11170       link_all_deplibs_CXX=yes
11171
11172     if test "$GXX" = yes ; then
11173       lt_int_apple_cc_single_mod=no
11174       output_verbose_link_cmd='echo'
11175       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11176        lt_int_apple_cc_single_mod=yes
11177       fi
11178       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11179        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11180       else
11181           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'
11182         fi
11183         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11184         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11185           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11186             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}'
11187           else
11188             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}'
11189           fi
11190             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}'
11191       else
11192       case $cc_basename in
11193         xlc*)
11194          output_verbose_link_cmd='echo'
11195           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11196           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11197           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11198           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11199           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11200           ;;
11201        *)
11202          ld_shlibs_CXX=no
11203           ;;
11204       esac
11205       fi
11206         ;;
11207
11208   dgux*)
11209     case $cc_basename in
11210       ec++*)
11211         # FIXME: insert proper C++ library support
11212         ld_shlibs_CXX=no
11213         ;;
11214       ghcx*)
11215         # Green Hills C++ Compiler
11216         # FIXME: insert proper C++ library support
11217         ld_shlibs_CXX=no
11218         ;;
11219       *)
11220         # FIXME: insert proper C++ library support
11221         ld_shlibs_CXX=no
11222         ;;
11223     esac
11224     ;;
11225   freebsd[12]*)
11226     # C++ shared libraries reported to be fairly broken before switch to ELF
11227     ld_shlibs_CXX=no
11228     ;;
11229   freebsd-elf*)
11230     archive_cmds_need_lc_CXX=no
11231     ;;
11232   freebsd* | dragonfly*)
11233     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11234     # conventions
11235     ld_shlibs_CXX=yes
11236     ;;
11237   gnu*)
11238     ;;
11239   hpux9*)
11240     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11241     hardcode_libdir_separator_CXX=:
11242     export_dynamic_flag_spec_CXX='${wl}-E'
11243     hardcode_direct_CXX=yes
11244     hardcode_minus_L_CXX=yes # Not in the search PATH,
11245                                 # but as the default
11246                                 # location of the library.
11247
11248     case $cc_basename in
11249     CC*)
11250       # FIXME: insert proper C++ library support
11251       ld_shlibs_CXX=no
11252       ;;
11253     aCC*)
11254       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'
11255       # Commands to make compiler produce verbose output that lists
11256       # what "hidden" libraries, object files and flags are used when
11257       # linking a shared library.
11258       #
11259       # There doesn't appear to be a way to prevent this compiler from
11260       # explicitly linking system object files so we need to strip them
11261       # from the output so that they don't get included in the library
11262       # dependencies.
11263       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'
11264       ;;
11265     *)
11266       if test "$GXX" = yes; then
11267         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'
11268       else
11269         # FIXME: insert proper C++ library support
11270         ld_shlibs_CXX=no
11271       fi
11272       ;;
11273     esac
11274     ;;
11275   hpux10*|hpux11*)
11276     if test $with_gnu_ld = no; then
11277       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11278       hardcode_libdir_separator_CXX=:
11279
11280       case $host_cpu in
11281       hppa*64*|ia64*) ;;
11282       *)
11283         export_dynamic_flag_spec_CXX='${wl}-E'
11284         ;;
11285       esac
11286     fi
11287     case $host_cpu in
11288     hppa*64*|ia64*)
11289       hardcode_direct_CXX=no
11290       hardcode_shlibpath_var_CXX=no
11291       ;;
11292     *)
11293       hardcode_direct_CXX=yes
11294       hardcode_minus_L_CXX=yes # Not in the search PATH,
11295                                               # but as the default
11296                                               # location of the library.
11297       ;;
11298     esac
11299
11300     case $cc_basename in
11301       CC*)
11302         # FIXME: insert proper C++ library support
11303         ld_shlibs_CXX=no
11304         ;;
11305       aCC*)
11306         case $host_cpu in
11307         hppa*64*)
11308           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11309           ;;
11310         ia64*)
11311           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11312           ;;
11313         *)
11314           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11315           ;;
11316         esac
11317         # Commands to make compiler produce verbose output that lists
11318         # what "hidden" libraries, object files and flags are used when
11319         # linking a shared library.
11320         #
11321         # There doesn't appear to be a way to prevent this compiler from
11322         # explicitly linking system object files so we need to strip them
11323         # from the output so that they don't get included in the library
11324         # dependencies.
11325         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'
11326         ;;
11327       *)
11328         if test "$GXX" = yes; then
11329           if test $with_gnu_ld = no; then
11330             case $host_cpu in
11331             hppa*64*)
11332               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11333               ;;
11334             ia64*)
11335               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11336               ;;
11337             *)
11338               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'
11339               ;;
11340             esac
11341           fi
11342         else
11343           # FIXME: insert proper C++ library support
11344           ld_shlibs_CXX=no
11345         fi
11346         ;;
11347     esac
11348     ;;
11349   interix[3-9]*)
11350     hardcode_direct_CXX=no
11351     hardcode_shlibpath_var_CXX=no
11352     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11353     export_dynamic_flag_spec_CXX='${wl}-E'
11354     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11355     # Instead, shared libraries are loaded at an image base (0x10000000 by
11356     # default) and relocated if they conflict, which is a slow very memory
11357     # consuming and fragmenting process.  To avoid this, we pick a random,
11358     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11359     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11360     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'
11361     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'
11362     ;;
11363   irix5* | irix6*)
11364     case $cc_basename in
11365       CC*)
11366         # SGI C++
11367         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'
11368
11369         # Archives containing C++ object files must be created using
11370         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11371         # necessary to make sure instantiated templates are included
11372         # in the archive.
11373         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11374         ;;
11375       *)
11376         if test "$GXX" = yes; then
11377           if test "$with_gnu_ld" = no; then
11378             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'
11379           else
11380             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'
11381           fi
11382         fi
11383         link_all_deplibs_CXX=yes
11384         ;;
11385     esac
11386     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11387     hardcode_libdir_separator_CXX=:
11388     ;;
11389   linux* | k*bsd*-gnu)
11390     case $cc_basename in
11391       KCC*)
11392         # Kuck and Associates, Inc. (KAI) C++ Compiler
11393
11394         # KCC will only create a shared library if the output file
11395         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11396         # to its proper name (with version) after linking.
11397         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'
11398         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'
11399         # Commands to make compiler produce verbose output that lists
11400         # what "hidden" libraries, object files and flags are used when
11401         # linking a shared library.
11402         #
11403         # There doesn't appear to be a way to prevent this compiler from
11404         # explicitly linking system object files so we need to strip them
11405         # from the output so that they don't get included in the library
11406         # dependencies.
11407         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'
11408
11409         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11410         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11411
11412         # Archives containing C++ object files must be created using
11413         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11414         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11415         ;;
11416       icpc*)
11417         # Intel C++
11418         with_gnu_ld=yes
11419         # version 8.0 and above of icpc choke on multiply defined symbols
11420         # if we add $predep_objects and $postdep_objects, however 7.1 and
11421         # earlier do not add the objects themselves.
11422         case `$CC -V 2>&1` in
11423         *"Version 7."*)
11424           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11425           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'
11426           ;;
11427         *)  # Version 8.0 or newer
11428           tmp_idyn=
11429           case $host_cpu in
11430             ia64*) tmp_idyn=' -i_dynamic';;
11431           esac
11432           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11433           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'
11434           ;;
11435         esac
11436         archive_cmds_need_lc_CXX=no
11437         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11439         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11440         ;;
11441       pgCC*)
11442         # Portland Group C++ compiler
11443         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11444         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'
11445
11446         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11447         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11448         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'
11449         ;;
11450       cxx*)
11451         # Compaq C++
11452         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11453         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'
11454
11455         runpath_var=LD_RUN_PATH
11456         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11457         hardcode_libdir_separator_CXX=:
11458
11459         # Commands to make compiler produce verbose output that lists
11460         # what "hidden" libraries, object files and flags are used when
11461         # linking a shared library.
11462         #
11463         # There doesn't appear to be a way to prevent this compiler from
11464         # explicitly linking system object files so we need to strip them
11465         # from the output so that they don't get included in the library
11466         # dependencies.
11467         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'
11468         ;;
11469       *)
11470         case `$CC -V 2>&1 | sed 5q` in
11471         *Sun\ C*)
11472           # Sun C++ 5.9
11473           no_undefined_flag_CXX=' -zdefs'
11474           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11475           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11476           hardcode_libdir_flag_spec_CXX='-R$libdir'
11477           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11478
11479           # Not sure whether something based on
11480           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11481           # would be better.
11482           output_verbose_link_cmd='echo'
11483
11484           # Archives containing C++ object files must be created using
11485           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11486           # necessary to make sure instantiated templates are included
11487           # in the archive.
11488           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11489           ;;
11490         esac
11491         ;;
11492     esac
11493     ;;
11494   lynxos*)
11495     # FIXME: insert proper C++ library support
11496     ld_shlibs_CXX=no
11497     ;;
11498   m88k*)
11499     # FIXME: insert proper C++ library support
11500     ld_shlibs_CXX=no
11501     ;;
11502   mvs*)
11503     case $cc_basename in
11504       cxx*)
11505         # FIXME: insert proper C++ library support
11506         ld_shlibs_CXX=no
11507         ;;
11508       *)
11509         # FIXME: insert proper C++ library support
11510         ld_shlibs_CXX=no
11511         ;;
11512     esac
11513     ;;
11514   netbsd* | netbsdelf*-gnu)
11515     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11516       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11517       wlarc=
11518       hardcode_libdir_flag_spec_CXX='-R$libdir'
11519       hardcode_direct_CXX=yes
11520       hardcode_shlibpath_var_CXX=no
11521     fi
11522     # Workaround some broken pre-1.5 toolchains
11523     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11524     ;;
11525   openbsd2*)
11526     # C++ shared libraries are fairly broken
11527     ld_shlibs_CXX=no
11528     ;;
11529   openbsd*)
11530     if test -f /usr/libexec/ld.so; then
11531       hardcode_direct_CXX=yes
11532       hardcode_shlibpath_var_CXX=no
11533       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11534       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11535       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11536         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11537         export_dynamic_flag_spec_CXX='${wl}-E'
11538         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11539       fi
11540       output_verbose_link_cmd='echo'
11541     else
11542       ld_shlibs_CXX=no
11543     fi
11544     ;;
11545   osf3*)
11546     case $cc_basename in
11547       KCC*)
11548         # Kuck and Associates, Inc. (KAI) C++ Compiler
11549
11550         # KCC will only create a shared library if the output file
11551         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11552         # to its proper name (with version) after linking.
11553         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'
11554
11555         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11556         hardcode_libdir_separator_CXX=:
11557
11558         # Archives containing C++ object files must be created using
11559         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11560         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11561
11562         ;;
11563       RCC*)
11564         # Rational C++ 2.4.1
11565         # FIXME: insert proper C++ library support
11566         ld_shlibs_CXX=no
11567         ;;
11568       cxx*)
11569         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11570         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'
11571
11572         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11573         hardcode_libdir_separator_CXX=:
11574
11575         # Commands to make compiler produce verbose output that lists
11576         # what "hidden" libraries, object files and flags are used when
11577         # linking a shared library.
11578         #
11579         # There doesn't appear to be a way to prevent this compiler from
11580         # explicitly linking system object files so we need to strip them
11581         # from the output so that they don't get included in the library
11582         # dependencies.
11583         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'
11584         ;;
11585       *)
11586         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11587           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11588           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'
11589
11590           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11591           hardcode_libdir_separator_CXX=:
11592
11593           # Commands to make compiler produce verbose output that lists
11594           # what "hidden" libraries, object files and flags are used when
11595           # linking a shared library.
11596           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11597
11598         else
11599           # FIXME: insert proper C++ library support
11600           ld_shlibs_CXX=no
11601         fi
11602         ;;
11603     esac
11604     ;;
11605   osf4* | osf5*)
11606     case $cc_basename in
11607       KCC*)
11608         # Kuck and Associates, Inc. (KAI) C++ Compiler
11609
11610         # KCC will only create a shared library if the output file
11611         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11612         # to its proper name (with version) after linking.
11613         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'
11614
11615         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11616         hardcode_libdir_separator_CXX=:
11617
11618         # Archives containing C++ object files must be created using
11619         # the KAI C++ compiler.
11620         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11621         ;;
11622       RCC*)
11623         # Rational C++ 2.4.1
11624         # FIXME: insert proper C++ library support
11625         ld_shlibs_CXX=no
11626         ;;
11627       cxx*)
11628         allow_undefined_flag_CXX=' -expect_unresolved \*'
11629         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'
11630         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11631           echo "-hidden">> $lib.exp~
11632           $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~
11633           $rm $lib.exp'
11634
11635         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11636         hardcode_libdir_separator_CXX=:
11637
11638         # Commands to make compiler produce verbose output that lists
11639         # what "hidden" libraries, object files and flags are used when
11640         # linking a shared library.
11641         #
11642         # There doesn't appear to be a way to prevent this compiler from
11643         # explicitly linking system object files so we need to strip them
11644         # from the output so that they don't get included in the library
11645         # dependencies.
11646         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'
11647         ;;
11648       *)
11649         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11650           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11651          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'
11652
11653           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11654           hardcode_libdir_separator_CXX=:
11655
11656           # Commands to make compiler produce verbose output that lists
11657           # what "hidden" libraries, object files and flags are used when
11658           # linking a shared library.
11659           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11660
11661         else
11662           # FIXME: insert proper C++ library support
11663           ld_shlibs_CXX=no
11664         fi
11665         ;;
11666     esac
11667     ;;
11668   psos*)
11669     # FIXME: insert proper C++ library support
11670     ld_shlibs_CXX=no
11671     ;;
11672   sunos4*)
11673     case $cc_basename in
11674       CC*)
11675         # Sun C++ 4.x
11676         # FIXME: insert proper C++ library support
11677         ld_shlibs_CXX=no
11678         ;;
11679       lcc*)
11680         # Lucid
11681         # FIXME: insert proper C++ library support
11682         ld_shlibs_CXX=no
11683         ;;
11684       *)
11685         # FIXME: insert proper C++ library support
11686         ld_shlibs_CXX=no
11687         ;;
11688     esac
11689     ;;
11690   solaris*)
11691     case $cc_basename in
11692       CC*)
11693         # Sun C++ 4.2, 5.x and Centerline C++
11694         archive_cmds_need_lc_CXX=yes
11695         no_undefined_flag_CXX=' -zdefs'
11696         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11698         $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'
11699
11700         hardcode_libdir_flag_spec_CXX='-R$libdir'
11701         hardcode_shlibpath_var_CXX=no
11702         case $host_os in
11703           solaris2.[0-5] | solaris2.[0-5].*) ;;
11704           *)
11705             # The compiler driver will combine and reorder linker options,
11706             # but understands `-z linker_flag'.
11707             # Supported since Solaris 2.6 (maybe 2.5.1?)
11708             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11709             ;;
11710         esac
11711         link_all_deplibs_CXX=yes
11712
11713         output_verbose_link_cmd='echo'
11714
11715         # Archives containing C++ object files must be created using
11716         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11717         # necessary to make sure instantiated templates are included
11718         # in the archive.
11719         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11720         ;;
11721       gcx*)
11722         # Green Hills C++ Compiler
11723         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11724
11725         # The C++ compiler must be used to create the archive.
11726         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11727         ;;
11728       *)
11729         # GNU C++ compiler with Solaris linker
11730         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11731           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11732           if $CC --version | grep -v '^2\.7' > /dev/null; then
11733             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11734             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11735                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11736
11737             # Commands to make compiler produce verbose output that lists
11738             # what "hidden" libraries, object files and flags are used when
11739             # linking a shared library.
11740             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11741           else
11742             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11743             # platform.
11744             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11745             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11746                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11747
11748             # Commands to make compiler produce verbose output that lists
11749             # what "hidden" libraries, object files and flags are used when
11750             # linking a shared library.
11751             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11752           fi
11753
11754           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11755           case $host_os in
11756           solaris2.[0-5] | solaris2.[0-5].*) ;;
11757           *)
11758             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11759             ;;
11760           esac
11761         fi
11762         ;;
11763     esac
11764     ;;
11765   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11766     no_undefined_flag_CXX='${wl}-z,text'
11767     archive_cmds_need_lc_CXX=no
11768     hardcode_shlibpath_var_CXX=no
11769     runpath_var='LD_RUN_PATH'
11770
11771     case $cc_basename in
11772       CC*)
11773         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11774         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775         ;;
11776       *)
11777         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779         ;;
11780     esac
11781     ;;
11782   sysv5* | sco3.2v5* | sco5v6*)
11783     # Note: We can NOT use -z defs as we might desire, because we do not
11784     # link with -lc, and that would cause any symbols used from libc to
11785     # always be unresolved, which means just about no library would
11786     # ever link correctly.  If we're not using GNU ld we use -z text
11787     # though, which does catch some bad symbols but isn't as heavy-handed
11788     # as -z defs.
11789     # For security reasons, it is highly recommended that you always
11790     # use absolute paths for naming shared libraries, and exclude the
11791     # DT_RUNPATH tag from executables and libraries.  But doing so
11792     # requires that you compile everything twice, which is a pain.
11793     # So that behaviour is only enabled if SCOABSPATH is set to a
11794     # non-empty value in the environment.  Most likely only useful for
11795     # creating official distributions of packages.
11796     # This is a hack until libtool officially supports absolute path
11797     # names for shared libraries.
11798     no_undefined_flag_CXX='${wl}-z,text'
11799     allow_undefined_flag_CXX='${wl}-z,nodefs'
11800     archive_cmds_need_lc_CXX=no
11801     hardcode_shlibpath_var_CXX=no
11802     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11803     hardcode_libdir_separator_CXX=':'
11804     link_all_deplibs_CXX=yes
11805     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11806     runpath_var='LD_RUN_PATH'
11807
11808     case $cc_basename in
11809       CC*)
11810         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11811         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11812         ;;
11813       *)
11814         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11815         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816         ;;
11817     esac
11818     ;;
11819   tandem*)
11820     case $cc_basename in
11821       NCC*)
11822         # NonStop-UX NCC 3.20
11823         # FIXME: insert proper C++ library support
11824         ld_shlibs_CXX=no
11825         ;;
11826       *)
11827         # FIXME: insert proper C++ library support
11828         ld_shlibs_CXX=no
11829         ;;
11830     esac
11831     ;;
11832   vxworks*)
11833     # FIXME: insert proper C++ library support
11834     ld_shlibs_CXX=no
11835     ;;
11836   *)
11837     # FIXME: insert proper C++ library support
11838     ld_shlibs_CXX=no
11839     ;;
11840 esac
11841 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11842 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11843 test "$ld_shlibs_CXX" = no && can_build_shared=no
11844
11845 GCC_CXX="$GXX"
11846 LD_CXX="$LD"
11847
11848
11849 cat > conftest.$ac_ext <<EOF
11850 class Foo
11851 {
11852 public:
11853   Foo (void) { a = 0; }
11854 private:
11855   int a;
11856 };
11857 EOF
11858
11859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860   (eval $ac_compile) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; then
11864   # Parse the compiler output and extract the necessary
11865   # objects, libraries and library flags.
11866
11867   # Sentinel used to keep track of whether or not we are before
11868   # the conftest object file.
11869   pre_test_object_deps_done=no
11870
11871   # The `*' in the case matches for architectures that use `case' in
11872   # $output_verbose_cmd can trigger glob expansion during the loop
11873   # eval without this substitution.
11874   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11875
11876   for p in `eval $output_verbose_link_cmd`; do
11877     case $p in
11878
11879     -L* | -R* | -l*)
11880        # Some compilers place space between "-{L,R}" and the path.
11881        # Remove the space.
11882        if test $p = "-L" \
11883           || test $p = "-R"; then
11884          prev=$p
11885          continue
11886        else
11887          prev=
11888        fi
11889
11890        if test "$pre_test_object_deps_done" = no; then
11891          case $p in
11892          -L* | -R*)
11893            # Internal compiler library paths should come after those
11894            # provided the user.  The postdeps already come after the
11895            # user supplied libs so there is no need to process them.
11896            if test -z "$compiler_lib_search_path_CXX"; then
11897              compiler_lib_search_path_CXX="${prev}${p}"
11898            else
11899              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11900            fi
11901            ;;
11902          # The "-l" case would never come before the object being
11903          # linked, so don't bother handling this case.
11904          esac
11905        else
11906          if test -z "$postdeps_CXX"; then
11907            postdeps_CXX="${prev}${p}"
11908          else
11909            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11910          fi
11911        fi
11912        ;;
11913
11914     *.$objext)
11915        # This assumes that the test object file only shows up
11916        # once in the compiler output.
11917        if test "$p" = "conftest.$objext"; then
11918          pre_test_object_deps_done=yes
11919          continue
11920        fi
11921
11922        if test "$pre_test_object_deps_done" = no; then
11923          if test -z "$predep_objects_CXX"; then
11924            predep_objects_CXX="$p"
11925          else
11926            predep_objects_CXX="$predep_objects_CXX $p"
11927          fi
11928        else
11929          if test -z "$postdep_objects_CXX"; then
11930            postdep_objects_CXX="$p"
11931          else
11932            postdep_objects_CXX="$postdep_objects_CXX $p"
11933          fi
11934        fi
11935        ;;
11936
11937     *) ;; # Ignore the rest.
11938
11939     esac
11940   done
11941
11942   # Clean up.
11943   rm -f a.out a.exe
11944 else
11945   echo "libtool.m4: error: problem compiling CXX test program"
11946 fi
11947
11948 $rm -f confest.$objext
11949
11950 # PORTME: override above test on systems where it is broken
11951 case $host_os in
11952 interix[3-9]*)
11953   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11954   # hack all around it, let's just trust "g++" to DTRT.
11955   predep_objects_CXX=
11956   postdep_objects_CXX=
11957   postdeps_CXX=
11958   ;;
11959
11960 linux*)
11961   case `$CC -V 2>&1 | sed 5q` in
11962   *Sun\ C*)
11963     # Sun C++ 5.9
11964     #
11965     # The more standards-conforming stlport4 library is
11966     # incompatible with the Cstd library. Avoid specifying
11967     # it if it's in CXXFLAGS. Ignore libCrun as
11968     # -library=stlport4 depends on it.
11969     case " $CXX $CXXFLAGS " in
11970     *" -library=stlport4 "*)
11971       solaris_use_stlport4=yes
11972       ;;
11973     esac
11974     if test "$solaris_use_stlport4" != yes; then
11975       postdeps_CXX='-library=Cstd -library=Crun'
11976     fi
11977     ;;
11978   esac
11979   ;;
11980
11981 solaris*)
11982   case $cc_basename in
11983   CC*)
11984     # The more standards-conforming stlport4 library is
11985     # incompatible with the Cstd library. Avoid specifying
11986     # it if it's in CXXFLAGS. Ignore libCrun as
11987     # -library=stlport4 depends on it.
11988     case " $CXX $CXXFLAGS " in
11989     *" -library=stlport4 "*)
11990       solaris_use_stlport4=yes
11991       ;;
11992     esac
11993
11994     # Adding this requires a known-good setup of shared libraries for
11995     # Sun compiler versions before 5.6, else PIC objects from an old
11996     # archive will be linked into the output, leading to subtle bugs.
11997     if test "$solaris_use_stlport4" != yes; then
11998       postdeps_CXX='-library=Cstd -library=Crun'
11999     fi
12000     ;;
12001   esac
12002   ;;
12003 esac
12004
12005
12006 case " $postdeps_CXX " in
12007 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12008 esac
12009
12010 lt_prog_compiler_wl_CXX=
12011 lt_prog_compiler_pic_CXX=
12012 lt_prog_compiler_static_CXX=
12013
12014 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12015 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12016
12017   # C++ specific cases for pic, static, wl, etc.
12018   if test "$GXX" = yes; then
12019     lt_prog_compiler_wl_CXX='-Wl,'
12020     lt_prog_compiler_static_CXX='-static'
12021
12022     case $host_os in
12023     aix*)
12024       # All AIX code is PIC.
12025       if test "$host_cpu" = ia64; then
12026         # AIX 5 now supports IA64 processor
12027         lt_prog_compiler_static_CXX='-Bstatic'
12028       fi
12029       ;;
12030     amigaos*)
12031       # FIXME: we need at least 68020 code to build shared libraries, but
12032       # adding the `-m68020' flag to GCC prevents building anything better,
12033       # like `-m68040'.
12034       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12035       ;;
12036     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12037       # PIC is the default for these OSes.
12038       ;;
12039     mingw* | cygwin* | os2* | pw32*)
12040       # This hack is so that the source file can tell whether it is being
12041       # built for inclusion in a dll (and should export symbols for example).
12042       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12043       # (--disable-auto-import) libraries
12044       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12045       ;;
12046     darwin* | rhapsody*)
12047       # PIC is the default on this platform
12048       # Common symbols not allowed in MH_DYLIB files
12049       lt_prog_compiler_pic_CXX='-fno-common'
12050       ;;
12051     *djgpp*)
12052       # DJGPP does not support shared libraries at all
12053       lt_prog_compiler_pic_CXX=
12054       ;;
12055     interix[3-9]*)
12056       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12057       # Instead, we relocate shared libraries at runtime.
12058       ;;
12059     sysv4*MP*)
12060       if test -d /usr/nec; then
12061         lt_prog_compiler_pic_CXX=-Kconform_pic
12062       fi
12063       ;;
12064     hpux*)
12065       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12066       # not for PA HP-UX.
12067       case $host_cpu in
12068       hppa*64*|ia64*)
12069         ;;
12070       *)
12071         lt_prog_compiler_pic_CXX='-fPIC'
12072         ;;
12073       esac
12074       ;;
12075     *)
12076       lt_prog_compiler_pic_CXX='-fPIC'
12077       ;;
12078     esac
12079   else
12080     case $host_os in
12081       aix4* | aix5*)
12082         # All AIX code is PIC.
12083         if test "$host_cpu" = ia64; then
12084           # AIX 5 now supports IA64 processor
12085           lt_prog_compiler_static_CXX='-Bstatic'
12086         else
12087           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12088         fi
12089         ;;
12090       chorus*)
12091         case $cc_basename in
12092         cxch68*)
12093           # Green Hills C++ Compiler
12094           # _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"
12095           ;;
12096         esac
12097         ;;
12098        darwin*)
12099          # PIC is the default on this platform
12100          # Common symbols not allowed in MH_DYLIB files
12101          case $cc_basename in
12102            xlc*)
12103            lt_prog_compiler_pic_CXX='-qnocommon'
12104            lt_prog_compiler_wl_CXX='-Wl,'
12105            ;;
12106          esac
12107        ;;
12108       dgux*)
12109         case $cc_basename in
12110           ec++*)
12111             lt_prog_compiler_pic_CXX='-KPIC'
12112             ;;
12113           ghcx*)
12114             # Green Hills C++ Compiler
12115             lt_prog_compiler_pic_CXX='-pic'
12116             ;;
12117           *)
12118             ;;
12119         esac
12120         ;;
12121       freebsd* | dragonfly*)
12122         # FreeBSD uses GNU C++
12123         ;;
12124       hpux9* | hpux10* | hpux11*)
12125         case $cc_basename in
12126           CC*)
12127             lt_prog_compiler_wl_CXX='-Wl,'
12128             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12129             if test "$host_cpu" != ia64; then
12130               lt_prog_compiler_pic_CXX='+Z'
12131             fi
12132             ;;
12133           aCC*)
12134             lt_prog_compiler_wl_CXX='-Wl,'
12135             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12136             case $host_cpu in
12137             hppa*64*|ia64*)
12138               # +Z the default
12139               ;;
12140             *)
12141               lt_prog_compiler_pic_CXX='+Z'
12142               ;;
12143             esac
12144             ;;
12145           *)
12146             ;;
12147         esac
12148         ;;
12149       interix*)
12150         # This is c89, which is MS Visual C++ (no shared libs)
12151         # Anyone wants to do a port?
12152         ;;
12153       irix5* | irix6* | nonstopux*)
12154         case $cc_basename in
12155           CC*)
12156             lt_prog_compiler_wl_CXX='-Wl,'
12157             lt_prog_compiler_static_CXX='-non_shared'
12158             # CC pic flag -KPIC is the default.
12159             ;;
12160           *)
12161             ;;
12162         esac
12163         ;;
12164       linux* | k*bsd*-gnu)
12165         case $cc_basename in
12166           KCC*)
12167             # KAI C++ Compiler
12168             lt_prog_compiler_wl_CXX='--backend -Wl,'
12169             lt_prog_compiler_pic_CXX='-fPIC'
12170             ;;
12171           icpc* | ecpc*)
12172             # Intel C++
12173             lt_prog_compiler_wl_CXX='-Wl,'
12174             lt_prog_compiler_pic_CXX='-KPIC'
12175             lt_prog_compiler_static_CXX='-static'
12176             ;;
12177           pgCC*)
12178             # Portland Group C++ compiler.
12179             lt_prog_compiler_wl_CXX='-Wl,'
12180             lt_prog_compiler_pic_CXX='-fpic'
12181             lt_prog_compiler_static_CXX='-Bstatic'
12182             ;;
12183           cxx*)
12184             # Compaq C++
12185             # Make sure the PIC flag is empty.  It appears that all Alpha
12186             # Linux and Compaq Tru64 Unix objects are PIC.
12187             lt_prog_compiler_pic_CXX=
12188             lt_prog_compiler_static_CXX='-non_shared'
12189             ;;
12190           *)
12191             case `$CC -V 2>&1 | sed 5q` in
12192             *Sun\ C*)
12193               # Sun C++ 5.9
12194               lt_prog_compiler_pic_CXX='-KPIC'
12195               lt_prog_compiler_static_CXX='-Bstatic'
12196               lt_prog_compiler_wl_CXX='-Qoption ld '
12197               ;;
12198             esac
12199             ;;
12200         esac
12201         ;;
12202       lynxos*)
12203         ;;
12204       m88k*)
12205         ;;
12206       mvs*)
12207         case $cc_basename in
12208           cxx*)
12209             lt_prog_compiler_pic_CXX='-W c,exportall'
12210             ;;
12211           *)
12212             ;;
12213         esac
12214         ;;
12215       netbsd* | netbsdelf*-gnu)
12216         ;;
12217       osf3* | osf4* | osf5*)
12218         case $cc_basename in
12219           KCC*)
12220             lt_prog_compiler_wl_CXX='--backend -Wl,'
12221             ;;
12222           RCC*)
12223             # Rational C++ 2.4.1
12224             lt_prog_compiler_pic_CXX='-pic'
12225             ;;
12226           cxx*)
12227             # Digital/Compaq C++
12228             lt_prog_compiler_wl_CXX='-Wl,'
12229             # Make sure the PIC flag is empty.  It appears that all Alpha
12230             # Linux and Compaq Tru64 Unix objects are PIC.
12231             lt_prog_compiler_pic_CXX=
12232             lt_prog_compiler_static_CXX='-non_shared'
12233             ;;
12234           *)
12235             ;;
12236         esac
12237         ;;
12238       psos*)
12239         ;;
12240       solaris*)
12241         case $cc_basename in
12242           CC*)
12243             # Sun C++ 4.2, 5.x and Centerline C++
12244             lt_prog_compiler_pic_CXX='-KPIC'
12245             lt_prog_compiler_static_CXX='-Bstatic'
12246             lt_prog_compiler_wl_CXX='-Qoption ld '
12247             ;;
12248           gcx*)
12249             # Green Hills C++ Compiler
12250             lt_prog_compiler_pic_CXX='-PIC'
12251             ;;
12252           *)
12253             ;;
12254         esac
12255         ;;
12256       sunos4*)
12257         case $cc_basename in
12258           CC*)
12259             # Sun C++ 4.x
12260             lt_prog_compiler_pic_CXX='-pic'
12261             lt_prog_compiler_static_CXX='-Bstatic'
12262             ;;
12263           lcc*)
12264             # Lucid
12265             lt_prog_compiler_pic_CXX='-pic'
12266             ;;
12267           *)
12268             ;;
12269         esac
12270         ;;
12271       tandem*)
12272         case $cc_basename in
12273           NCC*)
12274             # NonStop-UX NCC 3.20
12275             lt_prog_compiler_pic_CXX='-KPIC'
12276             ;;
12277           *)
12278             ;;
12279         esac
12280         ;;
12281       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12282         case $cc_basename in
12283           CC*)
12284             lt_prog_compiler_wl_CXX='-Wl,'
12285             lt_prog_compiler_pic_CXX='-KPIC'
12286             lt_prog_compiler_static_CXX='-Bstatic'
12287             ;;
12288         esac
12289         ;;
12290       vxworks*)
12291         ;;
12292       *)
12293         lt_prog_compiler_can_build_shared_CXX=no
12294         ;;
12295     esac
12296   fi
12297
12298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12299 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12300
12301 #
12302 # Check to make sure the PIC flag actually works.
12303 #
12304 if test -n "$lt_prog_compiler_pic_CXX"; then
12305
12306 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12307 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12308 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311   lt_prog_compiler_pic_works_CXX=no
12312   ac_outfile=conftest.$ac_objext
12313    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12314    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12315    # Insert the option either (1) after the last *FLAGS variable, or
12316    # (2) before a word containing "conftest.", or (3) at the end.
12317    # Note that $ac_compile itself does not contain backslashes and begins
12318    # with a dollar sign (not a hyphen), so the echo should work correctly.
12319    # The option is referenced via a variable to avoid confusing sed.
12320    lt_compile=`echo "$ac_compile" | $SED \
12321    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12323    -e 's:$: $lt_compiler_flag:'`
12324    (eval echo "\"\$as_me:12324: $lt_compile\"" >&5)
12325    (eval "$lt_compile" 2>conftest.err)
12326    ac_status=$?
12327    cat conftest.err >&5
12328    echo "$as_me:12328: \$? = $ac_status" >&5
12329    if (exit $ac_status) && test -s "$ac_outfile"; then
12330      # The compiler can only warn and ignore the option if not recognized
12331      # So say no if there are warnings other than the usual output.
12332      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12333      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12334      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12335        lt_prog_compiler_pic_works_CXX=yes
12336      fi
12337    fi
12338    $rm conftest*
12339
12340 fi
12341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12342 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12343
12344 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12345     case $lt_prog_compiler_pic_CXX in
12346      "" | " "*) ;;
12347      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12348      esac
12349 else
12350     lt_prog_compiler_pic_CXX=
12351      lt_prog_compiler_can_build_shared_CXX=no
12352 fi
12353
12354 fi
12355 case $host_os in
12356   # For platforms which do not support PIC, -DPIC is meaningless:
12357   *djgpp*)
12358     lt_prog_compiler_pic_CXX=
12359     ;;
12360   *)
12361     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12362     ;;
12363 esac
12364
12365 #
12366 # Check to make sure the static flag actually works.
12367 #
12368 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12369 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12370 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12371 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   lt_prog_compiler_static_works_CXX=no
12375    save_LDFLAGS="$LDFLAGS"
12376    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12377    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12378    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12379      # The linker can only warn and ignore the option if not recognized
12380      # So say no if there are warnings
12381      if test -s conftest.err; then
12382        # Append any errors to the config.log.
12383        cat conftest.err 1>&5
12384        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12385        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12386        if diff conftest.exp conftest.er2 >/dev/null; then
12387          lt_prog_compiler_static_works_CXX=yes
12388        fi
12389      else
12390        lt_prog_compiler_static_works_CXX=yes
12391      fi
12392    fi
12393    $rm conftest*
12394    LDFLAGS="$save_LDFLAGS"
12395
12396 fi
12397 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12398 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12399
12400 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12401     :
12402 else
12403     lt_prog_compiler_static_CXX=
12404 fi
12405
12406
12407 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12408 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12409 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12410   echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412   lt_cv_prog_compiler_c_o_CXX=no
12413    $rm -r conftest 2>/dev/null
12414    mkdir conftest
12415    cd conftest
12416    mkdir out
12417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12418
12419    lt_compiler_flag="-o out/conftest2.$ac_objext"
12420    # Insert the option either (1) after the last *FLAGS variable, or
12421    # (2) before a word containing "conftest.", or (3) at the end.
12422    # Note that $ac_compile itself does not contain backslashes and begins
12423    # with a dollar sign (not a hyphen), so the echo should work correctly.
12424    lt_compile=`echo "$ac_compile" | $SED \
12425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12427    -e 's:$: $lt_compiler_flag:'`
12428    (eval echo "\"\$as_me:12428: $lt_compile\"" >&5)
12429    (eval "$lt_compile" 2>out/conftest.err)
12430    ac_status=$?
12431    cat out/conftest.err >&5
12432    echo "$as_me:12432: \$? = $ac_status" >&5
12433    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12434    then
12435      # The compiler can only warn and ignore the option if not recognized
12436      # So say no if there are warnings
12437      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12438      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12439      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12440        lt_cv_prog_compiler_c_o_CXX=yes
12441      fi
12442    fi
12443    chmod u+w . 2>&5
12444    $rm conftest*
12445    # SGI C++ compiler will create directory out/ii_files/ for
12446    # template instantiation
12447    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12448    $rm out/* && rmdir out
12449    cd ..
12450    rmdir conftest
12451    $rm conftest*
12452
12453 fi
12454 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12455 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12456
12457
12458 hard_links="nottested"
12459 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12460   # do not overwrite the value of need_locks provided by the user
12461   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12462 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12463   hard_links=yes
12464   $rm conftest*
12465   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12466   touch conftest.a
12467   ln conftest.a conftest.b 2>&5 || hard_links=no
12468   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12469   { echo "$as_me:$LINENO: result: $hard_links" >&5
12470 echo "${ECHO_T}$hard_links" >&6; }
12471   if test "$hard_links" = no; then
12472     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12473 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12474     need_locks=warn
12475   fi
12476 else
12477   need_locks=no
12478 fi
12479
12480 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12481 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12482
12483   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12484   case $host_os in
12485   aix4* | aix5*)
12486     # If we're using GNU nm, then we don't want the "-C" option.
12487     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12488     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12489       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'
12490     else
12491       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'
12492     fi
12493     ;;
12494   pw32*)
12495     export_symbols_cmds_CXX="$ltdll_cmds"
12496   ;;
12497   cygwin* | mingw*)
12498     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'
12499   ;;
12500   linux* | k*bsd*-gnu)
12501     link_all_deplibs_CXX=no
12502   ;;
12503   *)
12504     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12505   ;;
12506   esac
12507
12508 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12509 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12510 test "$ld_shlibs_CXX" = no && can_build_shared=no
12511
12512 #
12513 # Do we need to explicitly link libc?
12514 #
12515 case "x$archive_cmds_need_lc_CXX" in
12516 x|xyes)
12517   # Assume -lc should be added
12518   archive_cmds_need_lc_CXX=yes
12519
12520   if test "$enable_shared" = yes && test "$GCC" = yes; then
12521     case $archive_cmds_CXX in
12522     *'~'*)
12523       # FIXME: we may have to deal with multi-command sequences.
12524       ;;
12525     '$CC '*)
12526       # Test whether the compiler implicitly links with -lc since on some
12527       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12528       # to ld, don't add -lc before -lgcc.
12529       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12530 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12531       $rm conftest*
12532       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12533
12534       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535   (eval $ac_compile) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); } 2>conftest.err; then
12539         soname=conftest
12540         lib=conftest
12541         libobjs=conftest.$ac_objext
12542         deplibs=
12543         wl=$lt_prog_compiler_wl_CXX
12544         pic_flag=$lt_prog_compiler_pic_CXX
12545         compiler_flags=-v
12546         linker_flags=-v
12547         verstring=
12548         output_objdir=.
12549         libname=conftest
12550         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12551         allow_undefined_flag_CXX=
12552         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12553   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }
12557         then
12558           archive_cmds_need_lc_CXX=no
12559         else
12560           archive_cmds_need_lc_CXX=yes
12561         fi
12562         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12563       else
12564         cat conftest.err 1>&5
12565       fi
12566       $rm conftest*
12567       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12568 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12569       ;;
12570     esac
12571   fi
12572   ;;
12573 esac
12574
12575 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12576 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12577 library_names_spec=
12578 libname_spec='lib$name'
12579 soname_spec=
12580 shrext_cmds=".so"
12581 postinstall_cmds=
12582 postuninstall_cmds=
12583 finish_cmds=
12584 finish_eval=
12585 shlibpath_var=
12586 shlibpath_overrides_runpath=unknown
12587 version_type=none
12588 dynamic_linker="$host_os ld.so"
12589 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12590
12591 need_lib_prefix=unknown
12592 hardcode_into_libs=no
12593
12594 # when you set need_version to no, make sure it does not cause -set_version
12595 # flags to be left without arguments
12596 need_version=unknown
12597
12598 case $host_os in
12599 aix3*)
12600   version_type=linux
12601   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12602   shlibpath_var=LIBPATH
12603
12604   # AIX 3 has no versioning support, so we append a major version to the name.
12605   soname_spec='${libname}${release}${shared_ext}$major'
12606   ;;
12607
12608 aix4* | aix5*)
12609   version_type=linux
12610   need_lib_prefix=no
12611   need_version=no
12612   hardcode_into_libs=yes
12613   if test "$host_cpu" = ia64; then
12614     # AIX 5 supports IA64
12615     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12616     shlibpath_var=LD_LIBRARY_PATH
12617   else
12618     # With GCC up to 2.95.x, collect2 would create an import file
12619     # for dependence libraries.  The import file would start with
12620     # the line `#! .'.  This would cause the generated library to
12621     # depend on `.', always an invalid library.  This was fixed in
12622     # development snapshots of GCC prior to 3.0.
12623     case $host_os in
12624       aix4 | aix4.[01] | aix4.[01].*)
12625       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12626            echo ' yes '
12627            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12628         :
12629       else
12630         can_build_shared=no
12631       fi
12632       ;;
12633     esac
12634     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12635     # soname into executable. Probably we can add versioning support to
12636     # collect2, so additional links can be useful in future.
12637     if test "$aix_use_runtimelinking" = yes; then
12638       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12639       # instead of lib<name>.a to let people know that these are not
12640       # typical AIX shared libraries.
12641       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642     else
12643       # We preserve .a as extension for shared libraries through AIX4.2
12644       # and later when we are not doing run time linking.
12645       library_names_spec='${libname}${release}.a $libname.a'
12646       soname_spec='${libname}${release}${shared_ext}$major'
12647     fi
12648     shlibpath_var=LIBPATH
12649   fi
12650   ;;
12651
12652 amigaos*)
12653   library_names_spec='$libname.ixlibrary $libname.a'
12654   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12655   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'
12656   ;;
12657
12658 beos*)
12659   library_names_spec='${libname}${shared_ext}'
12660   dynamic_linker="$host_os ld.so"
12661   shlibpath_var=LIBRARY_PATH
12662   ;;
12663
12664 bsdi[45]*)
12665   version_type=linux
12666   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12670   shlibpath_var=LD_LIBRARY_PATH
12671   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12672   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12673   # the default ld.so.conf also contains /usr/contrib/lib and
12674   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12675   # libtool to hard-code these into programs
12676   ;;
12677
12678 cygwin* | mingw* | pw32*)
12679   version_type=windows
12680   shrext_cmds=".dll"
12681   need_version=no
12682   need_lib_prefix=no
12683
12684   case $GCC,$host_os in
12685   yes,cygwin* | yes,mingw* | yes,pw32*)
12686     library_names_spec='$libname.dll.a'
12687     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12688     postinstall_cmds='base_file=`basename \${file}`~
12689       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12690       dldir=$destdir/`dirname \$dlpath`~
12691       test -d \$dldir || mkdir -p \$dldir~
12692       $install_prog $dir/$dlname \$dldir/$dlname~
12693       chmod a+x \$dldir/$dlname'
12694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12695       dlpath=$dir/\$dldll~
12696        $rm \$dlpath'
12697     shlibpath_overrides_runpath=yes
12698
12699     case $host_os in
12700     cygwin*)
12701       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12702       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12703       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12704       ;;
12705     mingw*)
12706       # MinGW DLLs use traditional 'lib' prefix
12707       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12708       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12709       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12710         # It is most probably a Windows format PATH printed by
12711         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12712         # path with ; separators, and with drive letters. We can handle the
12713         # drive letters (cygwin fileutils understands them), so leave them,
12714         # especially as we might pass files found there to a mingw objdump,
12715         # which wouldn't understand a cygwinified path. Ahh.
12716         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12717       else
12718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12719       fi
12720       ;;
12721     pw32*)
12722       # pw32 DLLs use 'pw' prefix rather than 'lib'
12723       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12724       ;;
12725     esac
12726     ;;
12727
12728   *)
12729     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12730     ;;
12731   esac
12732   dynamic_linker='Win32 ld.exe'
12733   # FIXME: first we should search . and the directory the executable is in
12734   shlibpath_var=PATH
12735   ;;
12736
12737 darwin* | rhapsody*)
12738   dynamic_linker="$host_os dyld"
12739   version_type=darwin
12740   need_lib_prefix=no
12741   need_version=no
12742   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12743   soname_spec='${libname}${release}${major}$shared_ext'
12744   shlibpath_overrides_runpath=yes
12745   shlibpath_var=DYLD_LIBRARY_PATH
12746   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12747
12748   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12749   ;;
12750
12751 dgux*)
12752   version_type=linux
12753   need_lib_prefix=no
12754   need_version=no
12755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12756   soname_spec='${libname}${release}${shared_ext}$major'
12757   shlibpath_var=LD_LIBRARY_PATH
12758   ;;
12759
12760 freebsd1*)
12761   dynamic_linker=no
12762   ;;
12763
12764 freebsd* | dragonfly*)
12765   # DragonFly does not have aout.  When/if they implement a new
12766   # versioning mechanism, adjust this.
12767   if test -x /usr/bin/objformat; then
12768     objformat=`/usr/bin/objformat`
12769   else
12770     case $host_os in
12771     freebsd[123]*) objformat=aout ;;
12772     *) objformat=elf ;;
12773     esac
12774   fi
12775   version_type=freebsd-$objformat
12776   case $version_type in
12777     freebsd-elf*)
12778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12779       need_version=no
12780       need_lib_prefix=no
12781       ;;
12782     freebsd-*)
12783       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12784       need_version=yes
12785       ;;
12786   esac
12787   shlibpath_var=LD_LIBRARY_PATH
12788   case $host_os in
12789   freebsd2*)
12790     shlibpath_overrides_runpath=yes
12791     ;;
12792   freebsd3.[01]* | freebsdelf3.[01]*)
12793     shlibpath_overrides_runpath=yes
12794     hardcode_into_libs=yes
12795     ;;
12796   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12797   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12798     shlibpath_overrides_runpath=no
12799     hardcode_into_libs=yes
12800     ;;
12801   *) # from 4.6 on, and DragonFly
12802     shlibpath_overrides_runpath=yes
12803     hardcode_into_libs=yes
12804     ;;
12805   esac
12806   ;;
12807
12808 gnu*)
12809   version_type=linux
12810   need_lib_prefix=no
12811   need_version=no
12812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12813   soname_spec='${libname}${release}${shared_ext}$major'
12814   shlibpath_var=LD_LIBRARY_PATH
12815   hardcode_into_libs=yes
12816   ;;
12817
12818 hpux9* | hpux10* | hpux11*)
12819   # Give a soname corresponding to the major version so that dld.sl refuses to
12820   # link against other versions.
12821   version_type=sunos
12822   need_lib_prefix=no
12823   need_version=no
12824   case $host_cpu in
12825   ia64*)
12826     shrext_cmds='.so'
12827     hardcode_into_libs=yes
12828     dynamic_linker="$host_os dld.so"
12829     shlibpath_var=LD_LIBRARY_PATH
12830     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832     soname_spec='${libname}${release}${shared_ext}$major'
12833     if test "X$HPUX_IA64_MODE" = X32; then
12834       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12835     else
12836       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12837     fi
12838     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12839     ;;
12840    hppa*64*)
12841      shrext_cmds='.sl'
12842      hardcode_into_libs=yes
12843      dynamic_linker="$host_os dld.sl"
12844      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12845      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12846      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847      soname_spec='${libname}${release}${shared_ext}$major'
12848      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12849      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12850      ;;
12851    *)
12852     shrext_cmds='.sl'
12853     dynamic_linker="$host_os dld.sl"
12854     shlibpath_var=SHLIB_PATH
12855     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
12859   esac
12860   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12861   postinstall_cmds='chmod 555 $lib'
12862   ;;
12863
12864 interix[3-9]*)
12865   version_type=linux
12866   need_lib_prefix=no
12867   need_version=no
12868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12869   soname_spec='${libname}${release}${shared_ext}$major'
12870   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12871   shlibpath_var=LD_LIBRARY_PATH
12872   shlibpath_overrides_runpath=no
12873   hardcode_into_libs=yes
12874   ;;
12875
12876 irix5* | irix6* | nonstopux*)
12877   case $host_os in
12878     nonstopux*) version_type=nonstopux ;;
12879     *)
12880         if test "$lt_cv_prog_gnu_ld" = yes; then
12881                 version_type=linux
12882         else
12883                 version_type=irix
12884         fi ;;
12885   esac
12886   need_lib_prefix=no
12887   need_version=no
12888   soname_spec='${libname}${release}${shared_ext}$major'
12889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12890   case $host_os in
12891   irix5* | nonstopux*)
12892     libsuff= shlibsuff=
12893     ;;
12894   *)
12895     case $LD in # libtool.m4 will add one of these switches to LD
12896     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12897       libsuff= shlibsuff= libmagic=32-bit;;
12898     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12899       libsuff=32 shlibsuff=N32 libmagic=N32;;
12900     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12901       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12902     *) libsuff= shlibsuff= libmagic=never-match;;
12903     esac
12904     ;;
12905   esac
12906   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12907   shlibpath_overrides_runpath=no
12908   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12909   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12910   hardcode_into_libs=yes
12911   ;;
12912
12913 # No shared lib support for Linux oldld, aout, or coff.
12914 linux*oldld* | linux*aout* | linux*coff*)
12915   dynamic_linker=no
12916   ;;
12917
12918 # This must be Linux ELF.
12919 linux* | k*bsd*-gnu)
12920   version_type=linux
12921   need_lib_prefix=no
12922   need_version=no
12923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12924   soname_spec='${libname}${release}${shared_ext}$major'
12925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12926   shlibpath_var=LD_LIBRARY_PATH
12927   shlibpath_overrides_runpath=no
12928   # This implies no fast_install, which is unacceptable.
12929   # Some rework will be needed to allow for fast_install
12930   # before this can be enabled.
12931   hardcode_into_libs=yes
12932
12933   # Append ld.so.conf contents to the search path
12934   if test -f /etc/ld.so.conf; then
12935     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12936     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12937   fi
12938
12939   # We used to test for /lib/ld.so.1 and disable shared libraries on
12940   # powerpc, because MkLinux only supported shared libraries with the
12941   # GNU dynamic linker.  Since this was broken with cross compilers,
12942   # most powerpc-linux boxes support dynamic linking these days and
12943   # people can always --disable-shared, the test was removed, and we
12944   # assume the GNU/Linux dynamic linker is in use.
12945   dynamic_linker='GNU/Linux ld.so'
12946   ;;
12947
12948 netbsdelf*-gnu)
12949   version_type=linux
12950   need_lib_prefix=no
12951   need_version=no
12952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12953   soname_spec='${libname}${release}${shared_ext}$major'
12954   shlibpath_var=LD_LIBRARY_PATH
12955   shlibpath_overrides_runpath=no
12956   hardcode_into_libs=yes
12957   dynamic_linker='NetBSD ld.elf_so'
12958   ;;
12959
12960 netbsd*)
12961   version_type=sunos
12962   need_lib_prefix=no
12963   need_version=no
12964   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12967     dynamic_linker='NetBSD (a.out) ld.so'
12968   else
12969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12970     soname_spec='${libname}${release}${shared_ext}$major'
12971     dynamic_linker='NetBSD ld.elf_so'
12972   fi
12973   shlibpath_var=LD_LIBRARY_PATH
12974   shlibpath_overrides_runpath=yes
12975   hardcode_into_libs=yes
12976   ;;
12977
12978 newsos6)
12979   version_type=linux
12980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981   shlibpath_var=LD_LIBRARY_PATH
12982   shlibpath_overrides_runpath=yes
12983   ;;
12984
12985 nto-qnx*)
12986   version_type=linux
12987   need_lib_prefix=no
12988   need_version=no
12989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990   soname_spec='${libname}${release}${shared_ext}$major'
12991   shlibpath_var=LD_LIBRARY_PATH
12992   shlibpath_overrides_runpath=yes
12993   ;;
12994
12995 openbsd*)
12996   version_type=sunos
12997   sys_lib_dlsearch_path_spec="/usr/lib"
12998   need_lib_prefix=no
12999   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13000   case $host_os in
13001     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13002     *)                         need_version=no  ;;
13003   esac
13004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13006   shlibpath_var=LD_LIBRARY_PATH
13007   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13008     case $host_os in
13009       openbsd2.[89] | openbsd2.[89].*)
13010         shlibpath_overrides_runpath=no
13011         ;;
13012       *)
13013         shlibpath_overrides_runpath=yes
13014         ;;
13015       esac
13016   else
13017     shlibpath_overrides_runpath=yes
13018   fi
13019   ;;
13020
13021 os2*)
13022   libname_spec='$name'
13023   shrext_cmds=".dll"
13024   need_lib_prefix=no
13025   library_names_spec='$libname${shared_ext} $libname.a'
13026   dynamic_linker='OS/2 ld.exe'
13027   shlibpath_var=LIBPATH
13028   ;;
13029
13030 osf3* | osf4* | osf5*)
13031   version_type=osf
13032   need_lib_prefix=no
13033   need_version=no
13034   soname_spec='${libname}${release}${shared_ext}$major'
13035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13036   shlibpath_var=LD_LIBRARY_PATH
13037   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13038   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13039   ;;
13040
13041 rdos*)
13042   dynamic_linker=no
13043   ;;
13044
13045 solaris*)
13046   version_type=linux
13047   need_lib_prefix=no
13048   need_version=no
13049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050   soname_spec='${libname}${release}${shared_ext}$major'
13051   shlibpath_var=LD_LIBRARY_PATH
13052   shlibpath_overrides_runpath=yes
13053   hardcode_into_libs=yes
13054   # ldd complains unless libraries are executable
13055   postinstall_cmds='chmod +x $lib'
13056   ;;
13057
13058 sunos4*)
13059   version_type=sunos
13060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13061   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13062   shlibpath_var=LD_LIBRARY_PATH
13063   shlibpath_overrides_runpath=yes
13064   if test "$with_gnu_ld" = yes; then
13065     need_lib_prefix=no
13066   fi
13067   need_version=yes
13068   ;;
13069
13070 sysv4 | sysv4.3*)
13071   version_type=linux
13072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073   soname_spec='${libname}${release}${shared_ext}$major'
13074   shlibpath_var=LD_LIBRARY_PATH
13075   case $host_vendor in
13076     sni)
13077       shlibpath_overrides_runpath=no
13078       need_lib_prefix=no
13079       export_dynamic_flag_spec='${wl}-Blargedynsym'
13080       runpath_var=LD_RUN_PATH
13081       ;;
13082     siemens)
13083       need_lib_prefix=no
13084       ;;
13085     motorola)
13086       need_lib_prefix=no
13087       need_version=no
13088       shlibpath_overrides_runpath=no
13089       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13090       ;;
13091   esac
13092   ;;
13093
13094 sysv4*MP*)
13095   if test -d /usr/nec ;then
13096     version_type=linux
13097     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13098     soname_spec='$libname${shared_ext}.$major'
13099     shlibpath_var=LD_LIBRARY_PATH
13100   fi
13101   ;;
13102
13103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13104   version_type=freebsd-elf
13105   need_lib_prefix=no
13106   need_version=no
13107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13108   soname_spec='${libname}${release}${shared_ext}$major'
13109   shlibpath_var=LD_LIBRARY_PATH
13110   hardcode_into_libs=yes
13111   if test "$with_gnu_ld" = yes; then
13112     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13113     shlibpath_overrides_runpath=no
13114   else
13115     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13116     shlibpath_overrides_runpath=yes
13117     case $host_os in
13118       sco3.2v5*)
13119         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13120         ;;
13121     esac
13122   fi
13123   sys_lib_dlsearch_path_spec='/usr/lib'
13124   ;;
13125
13126 uts4*)
13127   version_type=linux
13128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13129   soname_spec='${libname}${release}${shared_ext}$major'
13130   shlibpath_var=LD_LIBRARY_PATH
13131   ;;
13132
13133 *)
13134   dynamic_linker=no
13135   ;;
13136 esac
13137 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13138 echo "${ECHO_T}$dynamic_linker" >&6; }
13139 test "$dynamic_linker" = no && can_build_shared=no
13140
13141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13142 if test "$GCC" = yes; then
13143   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13144 fi
13145
13146 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13148 hardcode_action_CXX=
13149 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13150    test -n "$runpath_var_CXX" || \
13151    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13152
13153   # We can hardcode non-existant directories.
13154   if test "$hardcode_direct_CXX" != no &&
13155      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13156      # have to relink, otherwise we might link with an installed library
13157      # when we should be linking with a yet-to-be-installed one
13158      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13159      test "$hardcode_minus_L_CXX" != no; then
13160     # Linking always hardcodes the temporary library directory.
13161     hardcode_action_CXX=relink
13162   else
13163     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13164     hardcode_action_CXX=immediate
13165   fi
13166 else
13167   # We cannot hardcode anything, or else we can only hardcode existing
13168   # directories.
13169   hardcode_action_CXX=unsupported
13170 fi
13171 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13172 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13173
13174 if test "$hardcode_action_CXX" = relink; then
13175   # Fast installation is not supported
13176   enable_fast_install=no
13177 elif test "$shlibpath_overrides_runpath" = yes ||
13178      test "$enable_shared" = no; then
13179   # Fast installation is not necessary
13180   enable_fast_install=needless
13181 fi
13182
13183
13184 # The else clause should only fire when bootstrapping the
13185 # libtool distribution, otherwise you forgot to ship ltmain.sh
13186 # with your package, and you will get complaints that there are
13187 # no rules to generate ltmain.sh.
13188 if test -f "$ltmain"; then
13189   # See if we are running on zsh, and set the options which allow our commands through
13190   # without removal of \ escapes.
13191   if test -n "${ZSH_VERSION+set}" ; then
13192     setopt NO_GLOB_SUBST
13193   fi
13194   # Now quote all the things that may contain metacharacters while being
13195   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13196   # variables and quote the copies for generation of the libtool script.
13197   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13198     SED SHELL STRIP \
13199     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13200     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13201     deplibs_check_method reload_flag reload_cmds need_locks \
13202     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13203     lt_cv_sys_global_symbol_to_c_name_address \
13204     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13205     old_postinstall_cmds old_postuninstall_cmds \
13206     compiler_CXX \
13207     CC_CXX \
13208     LD_CXX \
13209     lt_prog_compiler_wl_CXX \
13210     lt_prog_compiler_pic_CXX \
13211     lt_prog_compiler_static_CXX \
13212     lt_prog_compiler_no_builtin_flag_CXX \
13213     export_dynamic_flag_spec_CXX \
13214     thread_safe_flag_spec_CXX \
13215     whole_archive_flag_spec_CXX \
13216     enable_shared_with_static_runtimes_CXX \
13217     old_archive_cmds_CXX \
13218     old_archive_from_new_cmds_CXX \
13219     predep_objects_CXX \
13220     postdep_objects_CXX \
13221     predeps_CXX \
13222     postdeps_CXX \
13223     compiler_lib_search_path_CXX \
13224     archive_cmds_CXX \
13225     archive_expsym_cmds_CXX \
13226     postinstall_cmds_CXX \
13227     postuninstall_cmds_CXX \
13228     old_archive_from_expsyms_cmds_CXX \
13229     allow_undefined_flag_CXX \
13230     no_undefined_flag_CXX \
13231     export_symbols_cmds_CXX \
13232     hardcode_libdir_flag_spec_CXX \
13233     hardcode_libdir_flag_spec_ld_CXX \
13234     hardcode_libdir_separator_CXX \
13235     hardcode_automatic_CXX \
13236     module_cmds_CXX \
13237     module_expsym_cmds_CXX \
13238     lt_cv_prog_compiler_c_o_CXX \
13239     fix_srcfile_path_CXX \
13240     exclude_expsyms_CXX \
13241     include_expsyms_CXX; do
13242
13243     case $var in
13244     old_archive_cmds_CXX | \
13245     old_archive_from_new_cmds_CXX | \
13246     archive_cmds_CXX | \
13247     archive_expsym_cmds_CXX | \
13248     module_cmds_CXX | \
13249     module_expsym_cmds_CXX | \
13250     old_archive_from_expsyms_cmds_CXX | \
13251     export_symbols_cmds_CXX | \
13252     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13253     postinstall_cmds | postuninstall_cmds | \
13254     old_postinstall_cmds | old_postuninstall_cmds | \
13255     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13256       # Double-quote double-evaled strings.
13257       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13258       ;;
13259     *)
13260       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13261       ;;
13262     esac
13263   done
13264
13265   case $lt_echo in
13266   *'\$0 --fallback-echo"')
13267     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13268     ;;
13269   esac
13270
13271 cfgfile="$ofile"
13272
13273   cat <<__EOF__ >> "$cfgfile"
13274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13275
13276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13277
13278 # Shell to use when invoking shell scripts.
13279 SHELL=$lt_SHELL
13280
13281 # Whether or not to build shared libraries.
13282 build_libtool_libs=$enable_shared
13283
13284 # Whether or not to build static libraries.
13285 build_old_libs=$enable_static
13286
13287 # Whether or not to add -lc for building shared libraries.
13288 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13289
13290 # Whether or not to disallow shared libs when runtime libs are static
13291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13292
13293 # Whether or not to optimize for fast installation.
13294 fast_install=$enable_fast_install
13295
13296 # The host system.
13297 host_alias=$host_alias
13298 host=$host
13299 host_os=$host_os
13300
13301 # The build system.
13302 build_alias=$build_alias
13303 build=$build
13304 build_os=$build_os
13305
13306 # An echo program that does not interpret backslashes.
13307 echo=$lt_echo
13308
13309 # The archiver.
13310 AR=$lt_AR
13311 AR_FLAGS=$lt_AR_FLAGS
13312
13313 # A C compiler.
13314 LTCC=$lt_LTCC
13315
13316 # LTCC compiler flags.
13317 LTCFLAGS=$lt_LTCFLAGS
13318
13319 # A language-specific compiler.
13320 CC=$lt_compiler_CXX
13321
13322 # Is the compiler the GNU C compiler?
13323 with_gcc=$GCC_CXX
13324
13325 # An ERE matcher.
13326 EGREP=$lt_EGREP
13327
13328 # The linker used to build libraries.
13329 LD=$lt_LD_CXX
13330
13331 # Whether we need hard or soft links.
13332 LN_S=$lt_LN_S
13333
13334 # A BSD-compatible nm program.
13335 NM=$lt_NM
13336
13337 # A symbol stripping program
13338 STRIP=$lt_STRIP
13339
13340 # Used to examine libraries when file_magic_cmd begins "file"
13341 MAGIC_CMD=$MAGIC_CMD
13342
13343 # Used on cygwin: DLL creation program.
13344 DLLTOOL="$DLLTOOL"
13345
13346 # Used on cygwin: object dumper.
13347 OBJDUMP="$OBJDUMP"
13348
13349 # Used on cygwin: assembler.
13350 AS="$AS"
13351
13352 # The name of the directory that contains temporary libtool files.
13353 objdir=$objdir
13354
13355 # How to create reloadable object files.
13356 reload_flag=$lt_reload_flag
13357 reload_cmds=$lt_reload_cmds
13358
13359 # How to pass a linker flag through the compiler.
13360 wl=$lt_lt_prog_compiler_wl_CXX
13361
13362 # Object file suffix (normally "o").
13363 objext="$ac_objext"
13364
13365 # Old archive suffix (normally "a").
13366 libext="$libext"
13367
13368 # Shared library suffix (normally ".so").
13369 shrext_cmds='$shrext_cmds'
13370
13371 # Executable file suffix (normally "").
13372 exeext="$exeext"
13373
13374 # Additional compiler flags for building library objects.
13375 pic_flag=$lt_lt_prog_compiler_pic_CXX
13376 pic_mode=$pic_mode
13377
13378 # What is the maximum length of a command?
13379 max_cmd_len=$lt_cv_sys_max_cmd_len
13380
13381 # Does compiler simultaneously support -c and -o options?
13382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13383
13384 # Must we lock files when doing compilation?
13385 need_locks=$lt_need_locks
13386
13387 # Do we need the lib prefix for modules?
13388 need_lib_prefix=$need_lib_prefix
13389
13390 # Do we need a version for libraries?
13391 need_version=$need_version
13392
13393 # Whether dlopen is supported.
13394 dlopen_support=$enable_dlopen
13395
13396 # Whether dlopen of programs is supported.
13397 dlopen_self=$enable_dlopen_self
13398
13399 # Whether dlopen of statically linked programs is supported.
13400 dlopen_self_static=$enable_dlopen_self_static
13401
13402 # Compiler flag to prevent dynamic linking.
13403 link_static_flag=$lt_lt_prog_compiler_static_CXX
13404
13405 # Compiler flag to turn off builtin functions.
13406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13407
13408 # Compiler flag to allow reflexive dlopens.
13409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13410
13411 # Compiler flag to generate shared objects directly from archives.
13412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13413
13414 # Compiler flag to generate thread-safe objects.
13415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13416
13417 # Library versioning type.
13418 version_type=$version_type
13419
13420 # Format of library name prefix.
13421 libname_spec=$lt_libname_spec
13422
13423 # List of archive names.  First name is the real one, the rest are links.
13424 # The last name is the one that the linker finds with -lNAME.
13425 library_names_spec=$lt_library_names_spec
13426
13427 # The coded name of the library, if different from the real name.
13428 soname_spec=$lt_soname_spec
13429
13430 # Commands used to build and install an old-style archive.
13431 RANLIB=$lt_RANLIB
13432 old_archive_cmds=$lt_old_archive_cmds_CXX
13433 old_postinstall_cmds=$lt_old_postinstall_cmds
13434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13435
13436 # Create an old-style archive from a shared archive.
13437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13438
13439 # Create a temporary old-style archive to link instead of a shared archive.
13440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13441
13442 # Commands used to build and install a shared archive.
13443 archive_cmds=$lt_archive_cmds_CXX
13444 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13445 postinstall_cmds=$lt_postinstall_cmds
13446 postuninstall_cmds=$lt_postuninstall_cmds
13447
13448 # Commands used to build a loadable module (assumed same as above if empty)
13449 module_cmds=$lt_module_cmds_CXX
13450 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13451
13452 # Commands to strip libraries.
13453 old_striplib=$lt_old_striplib
13454 striplib=$lt_striplib
13455
13456 # Dependencies to place before the objects being linked to create a
13457 # shared library.
13458 predep_objects=$lt_predep_objects_CXX
13459
13460 # Dependencies to place after the objects being linked to create a
13461 # shared library.
13462 postdep_objects=$lt_postdep_objects_CXX
13463
13464 # Dependencies to place before the objects being linked to create a
13465 # shared library.
13466 predeps=$lt_predeps_CXX
13467
13468 # Dependencies to place after the objects being linked to create a
13469 # shared library.
13470 postdeps=$lt_postdeps_CXX
13471
13472 # The library search path used internally by the compiler when linking
13473 # a shared library.
13474 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13475
13476 # Method to check whether dependent libraries are shared objects.
13477 deplibs_check_method=$lt_deplibs_check_method
13478
13479 # Command to use when deplibs_check_method == file_magic.
13480 file_magic_cmd=$lt_file_magic_cmd
13481
13482 # Flag that allows shared libraries with undefined symbols to be built.
13483 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13484
13485 # Flag that forces no undefined symbols.
13486 no_undefined_flag=$lt_no_undefined_flag_CXX
13487
13488 # Commands used to finish a libtool library installation in a directory.
13489 finish_cmds=$lt_finish_cmds
13490
13491 # Same as above, but a single script fragment to be evaled but not shown.
13492 finish_eval=$lt_finish_eval
13493
13494 # Take the output of nm and produce a listing of raw symbols and C names.
13495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13496
13497 # Transform the output of nm in a proper C declaration
13498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13499
13500 # Transform the output of nm in a C name address pair
13501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13502
13503 # This is the shared library runtime path variable.
13504 runpath_var=$runpath_var
13505
13506 # This is the shared library path variable.
13507 shlibpath_var=$shlibpath_var
13508
13509 # Is shlibpath searched before the hard-coded library search path?
13510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13511
13512 # How to hardcode a shared library path into an executable.
13513 hardcode_action=$hardcode_action_CXX
13514
13515 # Whether we should hardcode library paths into libraries.
13516 hardcode_into_libs=$hardcode_into_libs
13517
13518 # Flag to hardcode \$libdir into a binary during linking.
13519 # This must work even if \$libdir does not exist.
13520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13521
13522 # If ld is used when linking, flag to hardcode \$libdir into
13523 # a binary during linking. This must work even if \$libdir does
13524 # not exist.
13525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13526
13527 # Whether we need a single -rpath flag with a separated argument.
13528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13529
13530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13531 # resulting binary.
13532 hardcode_direct=$hardcode_direct_CXX
13533
13534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13535 # resulting binary.
13536 hardcode_minus_L=$hardcode_minus_L_CXX
13537
13538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13539 # the resulting binary.
13540 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13541
13542 # Set to yes if building a shared library automatically hardcodes DIR into the library
13543 # and all subsequent libraries and executables linked against it.
13544 hardcode_automatic=$hardcode_automatic_CXX
13545
13546 # Variables whose values should be saved in libtool wrapper scripts and
13547 # restored at relink time.
13548 variables_saved_for_relink="$variables_saved_for_relink"
13549
13550 # Whether libtool must link a program against all its dependency libraries.
13551 link_all_deplibs=$link_all_deplibs_CXX
13552
13553 # Compile-time system search path for libraries
13554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13555
13556 # Run-time system search path for libraries
13557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13558
13559 # Fix the shell variable \$srcfile for the compiler.
13560 fix_srcfile_path=$lt_fix_srcfile_path
13561
13562 # Set to yes if exported symbols are required.
13563 always_export_symbols=$always_export_symbols_CXX
13564
13565 # The commands to list exported symbols.
13566 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13567
13568 # The commands to extract the exported symbol list from a shared archive.
13569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13570
13571 # Symbols that should not be listed in the preloaded symbols.
13572 exclude_expsyms=$lt_exclude_expsyms_CXX
13573
13574 # Symbols that must always be exported.
13575 include_expsyms=$lt_include_expsyms_CXX
13576
13577 # ### END LIBTOOL TAG CONFIG: $tagname
13578
13579 __EOF__
13580
13581
13582 else
13583   # If there is no Makefile yet, we rely on a make rule to execute
13584   # `config.status --recheck' to rerun these tests and create the
13585   # libtool script then.
13586   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13587   if test -f "$ltmain_in"; then
13588     test -f Makefile && make "$ltmain"
13589   fi
13590 fi
13591
13592
13593 ac_ext=c
13594 ac_cpp='$CPP $CPPFLAGS'
13595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13598
13599 CC=$lt_save_CC
13600 LDCXX=$LD
13601 LD=$lt_save_LD
13602 GCC=$lt_save_GCC
13603 with_gnu_ldcxx=$with_gnu_ld
13604 with_gnu_ld=$lt_save_with_gnu_ld
13605 lt_cv_path_LDCXX=$lt_cv_path_LD
13606 lt_cv_path_LD=$lt_save_path_LD
13607 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13608 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13609
13610         else
13611           tagname=""
13612         fi
13613         ;;
13614
13615       F77)
13616         if test -n "$F77" && test "X$F77" != "Xno"; then
13617
13618 ac_ext=f
13619 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13620 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13621 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13622
13623
13624 archive_cmds_need_lc_F77=no
13625 allow_undefined_flag_F77=
13626 always_export_symbols_F77=no
13627 archive_expsym_cmds_F77=
13628 export_dynamic_flag_spec_F77=
13629 hardcode_direct_F77=no
13630 hardcode_libdir_flag_spec_F77=
13631 hardcode_libdir_flag_spec_ld_F77=
13632 hardcode_libdir_separator_F77=
13633 hardcode_minus_L_F77=no
13634 hardcode_automatic_F77=no
13635 module_cmds_F77=
13636 module_expsym_cmds_F77=
13637 link_all_deplibs_F77=unknown
13638 old_archive_cmds_F77=$old_archive_cmds
13639 no_undefined_flag_F77=
13640 whole_archive_flag_spec_F77=
13641 enable_shared_with_static_runtimes_F77=no
13642
13643 # Source file extension for f77 test sources.
13644 ac_ext=f
13645
13646 # Object file extension for compiled f77 test sources.
13647 objext=o
13648 objext_F77=$objext
13649
13650 # Code to be used in simple compile tests
13651 lt_simple_compile_test_code="\
13652       subroutine t
13653       return
13654       end
13655 "
13656
13657 # Code to be used in simple link tests
13658 lt_simple_link_test_code="\
13659       program t
13660       end
13661 "
13662
13663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13664
13665 # If no C compiler was specified, use CC.
13666 LTCC=${LTCC-"$CC"}
13667
13668 # If no C compiler flags were specified, use CFLAGS.
13669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13670
13671 # Allow CC to be a program name with arguments.
13672 compiler=$CC
13673
13674
13675 # save warnings/boilerplate of simple test code
13676 ac_outfile=conftest.$ac_objext
13677 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13679 _lt_compiler_boilerplate=`cat conftest.err`
13680 $rm conftest*
13681
13682 ac_outfile=conftest.$ac_objext
13683 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13685 _lt_linker_boilerplate=`cat conftest.err`
13686 $rm conftest*
13687
13688
13689 # Allow CC to be a program name with arguments.
13690 lt_save_CC="$CC"
13691 CC=${F77-"f77"}
13692 compiler=$CC
13693 compiler_F77=$CC
13694 for cc_temp in $compiler""; do
13695   case $cc_temp in
13696     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13697     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13698     \-*) ;;
13699     *) break;;
13700   esac
13701 done
13702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13703
13704
13705 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13706 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13707 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13708 echo "${ECHO_T}$can_build_shared" >&6; }
13709
13710 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13711 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13712 test "$can_build_shared" = "no" && enable_shared=no
13713
13714 # On AIX, shared libraries and static libraries use the same namespace, and
13715 # are all built from PIC.
13716 case $host_os in
13717 aix3*)
13718   test "$enable_shared" = yes && enable_static=no
13719   if test -n "$RANLIB"; then
13720     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13721     postinstall_cmds='$RANLIB $lib'
13722   fi
13723   ;;
13724 aix4* | aix5*)
13725   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13726     test "$enable_shared" = yes && enable_static=no
13727   fi
13728   ;;
13729 esac
13730 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13731 echo "${ECHO_T}$enable_shared" >&6; }
13732
13733 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13734 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13735 # Make sure either enable_shared or enable_static is yes.
13736 test "$enable_shared" = yes || enable_static=yes
13737 { echo "$as_me:$LINENO: result: $enable_static" >&5
13738 echo "${ECHO_T}$enable_static" >&6; }
13739
13740 GCC_F77="$G77"
13741 LD_F77="$LD"
13742
13743 lt_prog_compiler_wl_F77=
13744 lt_prog_compiler_pic_F77=
13745 lt_prog_compiler_static_F77=
13746
13747 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13748 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13749
13750   if test "$GCC" = yes; then
13751     lt_prog_compiler_wl_F77='-Wl,'
13752     lt_prog_compiler_static_F77='-static'
13753
13754     case $host_os in
13755       aix*)
13756       # All AIX code is PIC.
13757       if test "$host_cpu" = ia64; then
13758         # AIX 5 now supports IA64 processor
13759         lt_prog_compiler_static_F77='-Bstatic'
13760       fi
13761       ;;
13762
13763     amigaos*)
13764       # FIXME: we need at least 68020 code to build shared libraries, but
13765       # adding the `-m68020' flag to GCC prevents building anything better,
13766       # like `-m68040'.
13767       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13768       ;;
13769
13770     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13771       # PIC is the default for these OSes.
13772       ;;
13773
13774     mingw* | cygwin* | pw32* | os2*)
13775       # This hack is so that the source file can tell whether it is being
13776       # built for inclusion in a dll (and should export symbols for example).
13777       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13778       # (--disable-auto-import) libraries
13779       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13780       ;;
13781
13782     darwin* | rhapsody*)
13783       # PIC is the default on this platform
13784       # Common symbols not allowed in MH_DYLIB files
13785       lt_prog_compiler_pic_F77='-fno-common'
13786       ;;
13787
13788     interix[3-9]*)
13789       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13790       # Instead, we relocate shared libraries at runtime.
13791       ;;
13792
13793     msdosdjgpp*)
13794       # Just because we use GCC doesn't mean we suddenly get shared libraries
13795       # on systems that don't support them.
13796       lt_prog_compiler_can_build_shared_F77=no
13797       enable_shared=no
13798       ;;
13799
13800     sysv4*MP*)
13801       if test -d /usr/nec; then
13802         lt_prog_compiler_pic_F77=-Kconform_pic
13803       fi
13804       ;;
13805
13806     hpux*)
13807       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13808       # not for PA HP-UX.
13809       case $host_cpu in
13810       hppa*64*|ia64*)
13811         # +Z the default
13812         ;;
13813       *)
13814         lt_prog_compiler_pic_F77='-fPIC'
13815         ;;
13816       esac
13817       ;;
13818
13819     *)
13820       lt_prog_compiler_pic_F77='-fPIC'
13821       ;;
13822     esac
13823   else
13824     # PORTME Check for flag to pass linker flags through the system compiler.
13825     case $host_os in
13826     aix*)
13827       lt_prog_compiler_wl_F77='-Wl,'
13828       if test "$host_cpu" = ia64; then
13829         # AIX 5 now supports IA64 processor
13830         lt_prog_compiler_static_F77='-Bstatic'
13831       else
13832         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13833       fi
13834       ;;
13835       darwin*)
13836         # PIC is the default on this platform
13837         # Common symbols not allowed in MH_DYLIB files
13838        case $cc_basename in
13839          xlc*)
13840          lt_prog_compiler_pic_F77='-qnocommon'
13841          lt_prog_compiler_wl_F77='-Wl,'
13842          ;;
13843        esac
13844        ;;
13845
13846     mingw* | cygwin* | pw32* | os2*)
13847       # This hack is so that the source file can tell whether it is being
13848       # built for inclusion in a dll (and should export symbols for example).
13849       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13850       ;;
13851
13852     hpux9* | hpux10* | hpux11*)
13853       lt_prog_compiler_wl_F77='-Wl,'
13854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13855       # not for PA HP-UX.
13856       case $host_cpu in
13857       hppa*64*|ia64*)
13858         # +Z the default
13859         ;;
13860       *)
13861         lt_prog_compiler_pic_F77='+Z'
13862         ;;
13863       esac
13864       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13865       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13866       ;;
13867
13868     irix5* | irix6* | nonstopux*)
13869       lt_prog_compiler_wl_F77='-Wl,'
13870       # PIC (with -KPIC) is the default.
13871       lt_prog_compiler_static_F77='-non_shared'
13872       ;;
13873
13874     newsos6)
13875       lt_prog_compiler_pic_F77='-KPIC'
13876       lt_prog_compiler_static_F77='-Bstatic'
13877       ;;
13878
13879     linux* | k*bsd*-gnu)
13880       case $cc_basename in
13881       icc* | ecc*)
13882         lt_prog_compiler_wl_F77='-Wl,'
13883         lt_prog_compiler_pic_F77='-KPIC'
13884         lt_prog_compiler_static_F77='-static'
13885         ;;
13886       pgcc* | pgf77* | pgf90* | pgf95*)
13887         # Portland Group compilers (*not* the Pentium gcc compiler,
13888         # which looks to be a dead project)
13889         lt_prog_compiler_wl_F77='-Wl,'
13890         lt_prog_compiler_pic_F77='-fpic'
13891         lt_prog_compiler_static_F77='-Bstatic'
13892         ;;
13893       ccc*)
13894         lt_prog_compiler_wl_F77='-Wl,'
13895         # All Alpha code is PIC.
13896         lt_prog_compiler_static_F77='-non_shared'
13897         ;;
13898       *)
13899         case `$CC -V 2>&1 | sed 5q` in
13900         *Sun\ C*)
13901           # Sun C 5.9
13902           lt_prog_compiler_pic_F77='-KPIC'
13903           lt_prog_compiler_static_F77='-Bstatic'
13904           lt_prog_compiler_wl_F77='-Wl,'
13905           ;;
13906         *Sun\ F*)
13907           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13908           lt_prog_compiler_pic_F77='-KPIC'
13909           lt_prog_compiler_static_F77='-Bstatic'
13910           lt_prog_compiler_wl_F77=''
13911           ;;
13912         esac
13913         ;;
13914       esac
13915       ;;
13916
13917     osf3* | osf4* | osf5*)
13918       lt_prog_compiler_wl_F77='-Wl,'
13919       # All OSF/1 code is PIC.
13920       lt_prog_compiler_static_F77='-non_shared'
13921       ;;
13922
13923     rdos*)
13924       lt_prog_compiler_static_F77='-non_shared'
13925       ;;
13926
13927     solaris*)
13928       lt_prog_compiler_pic_F77='-KPIC'
13929       lt_prog_compiler_static_F77='-Bstatic'
13930       case $cc_basename in
13931       f77* | f90* | f95*)
13932         lt_prog_compiler_wl_F77='-Qoption ld ';;
13933       *)
13934         lt_prog_compiler_wl_F77='-Wl,';;
13935       esac
13936       ;;
13937
13938     sunos4*)
13939       lt_prog_compiler_wl_F77='-Qoption ld '
13940       lt_prog_compiler_pic_F77='-PIC'
13941       lt_prog_compiler_static_F77='-Bstatic'
13942       ;;
13943
13944     sysv4 | sysv4.2uw2* | sysv4.3*)
13945       lt_prog_compiler_wl_F77='-Wl,'
13946       lt_prog_compiler_pic_F77='-KPIC'
13947       lt_prog_compiler_static_F77='-Bstatic'
13948       ;;
13949
13950     sysv4*MP*)
13951       if test -d /usr/nec ;then
13952         lt_prog_compiler_pic_F77='-Kconform_pic'
13953         lt_prog_compiler_static_F77='-Bstatic'
13954       fi
13955       ;;
13956
13957     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13958       lt_prog_compiler_wl_F77='-Wl,'
13959       lt_prog_compiler_pic_F77='-KPIC'
13960       lt_prog_compiler_static_F77='-Bstatic'
13961       ;;
13962
13963     unicos*)
13964       lt_prog_compiler_wl_F77='-Wl,'
13965       lt_prog_compiler_can_build_shared_F77=no
13966       ;;
13967
13968     uts4*)
13969       lt_prog_compiler_pic_F77='-pic'
13970       lt_prog_compiler_static_F77='-Bstatic'
13971       ;;
13972
13973     *)
13974       lt_prog_compiler_can_build_shared_F77=no
13975       ;;
13976     esac
13977   fi
13978
13979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13980 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13981
13982 #
13983 # Check to make sure the PIC flag actually works.
13984 #
13985 if test -n "$lt_prog_compiler_pic_F77"; then
13986
13987 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13989 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   lt_prog_compiler_pic_works_F77=no
13993   ac_outfile=conftest.$ac_objext
13994    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13995    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13996    # Insert the option either (1) after the last *FLAGS variable, or
13997    # (2) before a word containing "conftest.", or (3) at the end.
13998    # Note that $ac_compile itself does not contain backslashes and begins
13999    # with a dollar sign (not a hyphen), so the echo should work correctly.
14000    # The option is referenced via a variable to avoid confusing sed.
14001    lt_compile=`echo "$ac_compile" | $SED \
14002    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14004    -e 's:$: $lt_compiler_flag:'`
14005    (eval echo "\"\$as_me:14005: $lt_compile\"" >&5)
14006    (eval "$lt_compile" 2>conftest.err)
14007    ac_status=$?
14008    cat conftest.err >&5
14009    echo "$as_me:14009: \$? = $ac_status" >&5
14010    if (exit $ac_status) && test -s "$ac_outfile"; then
14011      # The compiler can only warn and ignore the option if not recognized
14012      # So say no if there are warnings other than the usual output.
14013      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14014      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14016        lt_prog_compiler_pic_works_F77=yes
14017      fi
14018    fi
14019    $rm conftest*
14020
14021 fi
14022 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14023 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14024
14025 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14026     case $lt_prog_compiler_pic_F77 in
14027      "" | " "*) ;;
14028      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14029      esac
14030 else
14031     lt_prog_compiler_pic_F77=
14032      lt_prog_compiler_can_build_shared_F77=no
14033 fi
14034
14035 fi
14036 case $host_os in
14037   # For platforms which do not support PIC, -DPIC is meaningless:
14038   *djgpp*)
14039     lt_prog_compiler_pic_F77=
14040     ;;
14041   *)
14042     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14043     ;;
14044 esac
14045
14046 #
14047 # Check to make sure the static flag actually works.
14048 #
14049 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14050 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14051 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14052 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   lt_prog_compiler_static_works_F77=no
14056    save_LDFLAGS="$LDFLAGS"
14057    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14058    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14059    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14060      # The linker can only warn and ignore the option if not recognized
14061      # So say no if there are warnings
14062      if test -s conftest.err; then
14063        # Append any errors to the config.log.
14064        cat conftest.err 1>&5
14065        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14066        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14067        if diff conftest.exp conftest.er2 >/dev/null; then
14068          lt_prog_compiler_static_works_F77=yes
14069        fi
14070      else
14071        lt_prog_compiler_static_works_F77=yes
14072      fi
14073    fi
14074    $rm conftest*
14075    LDFLAGS="$save_LDFLAGS"
14076
14077 fi
14078 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14079 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14080
14081 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14082     :
14083 else
14084     lt_prog_compiler_static_F77=
14085 fi
14086
14087
14088 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14089 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14090 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14091   echo $ECHO_N "(cached) $ECHO_C" >&6
14092 else
14093   lt_cv_prog_compiler_c_o_F77=no
14094    $rm -r conftest 2>/dev/null
14095    mkdir conftest
14096    cd conftest
14097    mkdir out
14098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14099
14100    lt_compiler_flag="-o out/conftest2.$ac_objext"
14101    # Insert the option either (1) after the last *FLAGS variable, or
14102    # (2) before a word containing "conftest.", or (3) at the end.
14103    # Note that $ac_compile itself does not contain backslashes and begins
14104    # with a dollar sign (not a hyphen), so the echo should work correctly.
14105    lt_compile=`echo "$ac_compile" | $SED \
14106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108    -e 's:$: $lt_compiler_flag:'`
14109    (eval echo "\"\$as_me:14109: $lt_compile\"" >&5)
14110    (eval "$lt_compile" 2>out/conftest.err)
14111    ac_status=$?
14112    cat out/conftest.err >&5
14113    echo "$as_me:14113: \$? = $ac_status" >&5
14114    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14115    then
14116      # The compiler can only warn and ignore the option if not recognized
14117      # So say no if there are warnings
14118      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14119      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121        lt_cv_prog_compiler_c_o_F77=yes
14122      fi
14123    fi
14124    chmod u+w . 2>&5
14125    $rm conftest*
14126    # SGI C++ compiler will create directory out/ii_files/ for
14127    # template instantiation
14128    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14129    $rm out/* && rmdir out
14130    cd ..
14131    rmdir conftest
14132    $rm conftest*
14133
14134 fi
14135 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14136 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14137
14138
14139 hard_links="nottested"
14140 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14141   # do not overwrite the value of need_locks provided by the user
14142   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14143 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14144   hard_links=yes
14145   $rm conftest*
14146   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147   touch conftest.a
14148   ln conftest.a conftest.b 2>&5 || hard_links=no
14149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150   { echo "$as_me:$LINENO: result: $hard_links" >&5
14151 echo "${ECHO_T}$hard_links" >&6; }
14152   if test "$hard_links" = no; then
14153     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14155     need_locks=warn
14156   fi
14157 else
14158   need_locks=no
14159 fi
14160
14161 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14162 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14163
14164   runpath_var=
14165   allow_undefined_flag_F77=
14166   enable_shared_with_static_runtimes_F77=no
14167   archive_cmds_F77=
14168   archive_expsym_cmds_F77=
14169   old_archive_From_new_cmds_F77=
14170   old_archive_from_expsyms_cmds_F77=
14171   export_dynamic_flag_spec_F77=
14172   whole_archive_flag_spec_F77=
14173   thread_safe_flag_spec_F77=
14174   hardcode_libdir_flag_spec_F77=
14175   hardcode_libdir_flag_spec_ld_F77=
14176   hardcode_libdir_separator_F77=
14177   hardcode_direct_F77=no
14178   hardcode_minus_L_F77=no
14179   hardcode_shlibpath_var_F77=unsupported
14180   link_all_deplibs_F77=unknown
14181   hardcode_automatic_F77=no
14182   module_cmds_F77=
14183   module_expsym_cmds_F77=
14184   always_export_symbols_F77=no
14185   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14186   # include_expsyms should be a list of space-separated symbols to be *always*
14187   # included in the symbol list
14188   include_expsyms_F77=
14189   # exclude_expsyms can be an extended regexp of symbols to exclude
14190   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14191   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14192   # as well as any symbol that contains `d'.
14193   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14194   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14195   # platforms (ab)use it in PIC code, but their linkers get confused if
14196   # the symbol is explicitly referenced.  Since portable code cannot
14197   # rely on this symbol name, it's probably fine to never include it in
14198   # preloaded symbol tables.
14199   extract_expsyms_cmds=
14200   # Just being paranoid about ensuring that cc_basename is set.
14201   for cc_temp in $compiler""; do
14202   case $cc_temp in
14203     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14204     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14205     \-*) ;;
14206     *) break;;
14207   esac
14208 done
14209 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14210
14211   case $host_os in
14212   cygwin* | mingw* | pw32*)
14213     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14214     # When not using gcc, we currently assume that we are using
14215     # Microsoft Visual C++.
14216     if test "$GCC" != yes; then
14217       with_gnu_ld=no
14218     fi
14219     ;;
14220   interix*)
14221     # we just hope/assume this is gcc and not c89 (= MSVC++)
14222     with_gnu_ld=yes
14223     ;;
14224   openbsd*)
14225     with_gnu_ld=no
14226     ;;
14227   esac
14228
14229   ld_shlibs_F77=yes
14230   if test "$with_gnu_ld" = yes; then
14231     # If archive_cmds runs LD, not CC, wlarc should be empty
14232     wlarc='${wl}'
14233
14234     # Set some defaults for GNU ld with shared library support. These
14235     # are reset later if shared libraries are not supported. Putting them
14236     # here allows them to be overridden if necessary.
14237     runpath_var=LD_RUN_PATH
14238     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14239     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14240     # ancient GNU ld didn't support --whole-archive et. al.
14241     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14242         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14243       else
14244         whole_archive_flag_spec_F77=
14245     fi
14246     supports_anon_versioning=no
14247     case `$LD -v 2>/dev/null` in
14248       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14249       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14250       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14251       *\ 2.11.*) ;; # other 2.11 versions
14252       *) supports_anon_versioning=yes ;;
14253     esac
14254
14255     # See if GNU ld supports shared libraries.
14256     case $host_os in
14257     aix3* | aix4* | aix5*)
14258       # On AIX/PPC, the GNU linker is very broken
14259       if test "$host_cpu" != ia64; then
14260         ld_shlibs_F77=no
14261         cat <<EOF 1>&2
14262
14263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14264 *** to be unable to reliably create shared libraries on AIX.
14265 *** Therefore, libtool is disabling shared libraries support.  If you
14266 *** really care for shared libraries, you may want to modify your PATH
14267 *** so that a non-GNU linker is found, and then restart.
14268
14269 EOF
14270       fi
14271       ;;
14272
14273     amigaos*)
14274       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)'
14275       hardcode_libdir_flag_spec_F77='-L$libdir'
14276       hardcode_minus_L_F77=yes
14277
14278       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14279       # that the semantics of dynamic libraries on AmigaOS, at least up
14280       # to version 4, is to share data among multiple programs linked
14281       # with the same dynamic library.  Since this doesn't match the
14282       # behavior of shared libraries on other platforms, we can't use
14283       # them.
14284       ld_shlibs_F77=no
14285       ;;
14286
14287     beos*)
14288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14289         allow_undefined_flag_F77=unsupported
14290         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14291         # support --undefined.  This deserves some investigation.  FIXME
14292         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14293       else
14294         ld_shlibs_F77=no
14295       fi
14296       ;;
14297
14298     cygwin* | mingw* | pw32*)
14299       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14300       # as there is no search path for DLLs.
14301       hardcode_libdir_flag_spec_F77='-L$libdir'
14302       allow_undefined_flag_F77=unsupported
14303       always_export_symbols_F77=no
14304       enable_shared_with_static_runtimes_F77=yes
14305       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14306
14307       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14308         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14309         # If the export-symbols file already is a .def file (1st line
14310         # is EXPORTS), use it as is; otherwise, prepend...
14311         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14312           cp $export_symbols $output_objdir/$soname.def;
14313         else
14314           echo EXPORTS > $output_objdir/$soname.def;
14315           cat $export_symbols >> $output_objdir/$soname.def;
14316         fi~
14317         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14318       else
14319         ld_shlibs_F77=no
14320       fi
14321       ;;
14322
14323     interix[3-9]*)
14324       hardcode_direct_F77=no
14325       hardcode_shlibpath_var_F77=no
14326       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14327       export_dynamic_flag_spec_F77='${wl}-E'
14328       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14329       # Instead, shared libraries are loaded at an image base (0x10000000 by
14330       # default) and relocated if they conflict, which is a slow very memory
14331       # consuming and fragmenting process.  To avoid this, we pick a random,
14332       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14333       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14334       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'
14335       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'
14336       ;;
14337
14338     gnu* | linux* | k*bsd*-gnu)
14339       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14340         tmp_addflag=
14341         case $cc_basename,$host_cpu in
14342         pgcc*)                          # Portland Group C compiler
14343           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'
14344           tmp_addflag=' $pic_flag'
14345           ;;
14346         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14347           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'
14348           tmp_addflag=' $pic_flag -Mnomain' ;;
14349         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14350           tmp_addflag=' -i_dynamic' ;;
14351         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14352           tmp_addflag=' -i_dynamic -nofor_main' ;;
14353         ifc* | ifort*)                  # Intel Fortran compiler
14354           tmp_addflag=' -nofor_main' ;;
14355         esac
14356         case `$CC -V 2>&1 | sed 5q` in
14357         *Sun\ C*)                       # Sun C 5.9
14358           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14359           tmp_sharedflag='-G' ;;
14360         *Sun\ F*)                       # Sun Fortran 8.3
14361           tmp_sharedflag='-G' ;;
14362         *)
14363           tmp_sharedflag='-shared' ;;
14364         esac
14365         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14366
14367         if test $supports_anon_versioning = yes; then
14368           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14369   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14370   $echo "local: *; };" >> $output_objdir/$libname.ver~
14371           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14372         fi
14373         link_all_deplibs_F77=no
14374       else
14375         ld_shlibs_F77=no
14376       fi
14377       ;;
14378
14379     netbsd* | netbsdelf*-gnu)
14380       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14381         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14382         wlarc=
14383       else
14384         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14385         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14386       fi
14387       ;;
14388
14389     solaris*)
14390       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14391         ld_shlibs_F77=no
14392         cat <<EOF 1>&2
14393
14394 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14395 *** create shared libraries on Solaris systems.  Therefore, libtool
14396 *** is disabling shared libraries support.  We urge you to upgrade GNU
14397 *** binutils to release 2.9.1 or newer.  Another option is to modify
14398 *** your PATH or compiler configuration so that the native linker is
14399 *** used, and then restart.
14400
14401 EOF
14402       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14403         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14404         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14405       else
14406         ld_shlibs_F77=no
14407       fi
14408       ;;
14409
14410     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14411       case `$LD -v 2>&1` in
14412         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14413         ld_shlibs_F77=no
14414         cat <<_LT_EOF 1>&2
14415
14416 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14417 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14418 *** is disabling shared libraries support.  We urge you to upgrade GNU
14419 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14420 *** your PATH or compiler configuration so that the native linker is
14421 *** used, and then restart.
14422
14423 _LT_EOF
14424         ;;
14425         *)
14426           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14427             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14428             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14429             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14430           else
14431             ld_shlibs_F77=no
14432           fi
14433         ;;
14434       esac
14435       ;;
14436
14437     sunos4*)
14438       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14439       wlarc=
14440       hardcode_direct_F77=yes
14441       hardcode_shlibpath_var_F77=no
14442       ;;
14443
14444     *)
14445       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14446         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14447         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14448       else
14449         ld_shlibs_F77=no
14450       fi
14451       ;;
14452     esac
14453
14454     if test "$ld_shlibs_F77" = no; then
14455       runpath_var=
14456       hardcode_libdir_flag_spec_F77=
14457       export_dynamic_flag_spec_F77=
14458       whole_archive_flag_spec_F77=
14459     fi
14460   else
14461     # PORTME fill in a description of your system's linker (not GNU ld)
14462     case $host_os in
14463     aix3*)
14464       allow_undefined_flag_F77=unsupported
14465       always_export_symbols_F77=yes
14466       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'
14467       # Note: this linker hardcodes the directories in LIBPATH if there
14468       # are no directories specified by -L.
14469       hardcode_minus_L_F77=yes
14470       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14471         # Neither direct hardcoding nor static linking is supported with a
14472         # broken collect2.
14473         hardcode_direct_F77=unsupported
14474       fi
14475       ;;
14476
14477     aix4* | aix5*)
14478       if test "$host_cpu" = ia64; then
14479         # On IA64, the linker does run time linking by default, so we don't
14480         # have to do anything special.
14481         aix_use_runtimelinking=no
14482         exp_sym_flag='-Bexport'
14483         no_entry_flag=""
14484       else
14485         # If we're using GNU nm, then we don't want the "-C" option.
14486         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14487         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14488           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'
14489         else
14490           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'
14491         fi
14492         aix_use_runtimelinking=no
14493
14494         # Test if we are trying to use run time linking or normal
14495         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14496         # need to do runtime linking.
14497         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14498           for ld_flag in $LDFLAGS; do
14499           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14500             aix_use_runtimelinking=yes
14501             break
14502           fi
14503           done
14504           ;;
14505         esac
14506
14507         exp_sym_flag='-bexport'
14508         no_entry_flag='-bnoentry'
14509       fi
14510
14511       # When large executables or shared objects are built, AIX ld can
14512       # have problems creating the table of contents.  If linking a library
14513       # or program results in "error TOC overflow" add -mminimal-toc to
14514       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14515       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14516
14517       archive_cmds_F77=''
14518       hardcode_direct_F77=yes
14519       hardcode_libdir_separator_F77=':'
14520       link_all_deplibs_F77=yes
14521
14522       if test "$GCC" = yes; then
14523         case $host_os in aix4.[012]|aix4.[012].*)
14524         # We only want to do this on AIX 4.2 and lower, the check
14525         # below for broken collect2 doesn't work under 4.3+
14526           collect2name=`${CC} -print-prog-name=collect2`
14527           if test -f "$collect2name" && \
14528            strings "$collect2name" | grep resolve_lib_name >/dev/null
14529           then
14530           # We have reworked collect2
14531           :
14532           else
14533           # We have old collect2
14534           hardcode_direct_F77=unsupported
14535           # It fails to find uninstalled libraries when the uninstalled
14536           # path is not listed in the libpath.  Setting hardcode_minus_L
14537           # to unsupported forces relinking
14538           hardcode_minus_L_F77=yes
14539           hardcode_libdir_flag_spec_F77='-L$libdir'
14540           hardcode_libdir_separator_F77=
14541           fi
14542           ;;
14543         esac
14544         shared_flag='-shared'
14545         if test "$aix_use_runtimelinking" = yes; then
14546           shared_flag="$shared_flag "'${wl}-G'
14547         fi
14548       else
14549         # not using gcc
14550         if test "$host_cpu" = ia64; then
14551         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14552         # chokes on -Wl,-G. The following line is correct:
14553           shared_flag='-G'
14554         else
14555           if test "$aix_use_runtimelinking" = yes; then
14556             shared_flag='${wl}-G'
14557           else
14558             shared_flag='${wl}-bM:SRE'
14559           fi
14560         fi
14561       fi
14562
14563       # It seems that -bexpall does not export symbols beginning with
14564       # underscore (_), so it is better to generate a list of symbols to export.
14565       always_export_symbols_F77=yes
14566       if test "$aix_use_runtimelinking" = yes; then
14567         # Warning - without using the other runtime loading flags (-brtl),
14568         # -berok will link without error, but may produce a broken library.
14569         allow_undefined_flag_F77='-berok'
14570        # Determine the default libpath from the value encoded in an empty executable.
14571        cat >conftest.$ac_ext <<_ACEOF
14572       program main
14573
14574       end
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (ac_try="$ac_link"
14578 case "(($ac_try" in
14579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580   *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583   (eval "$ac_link") 2>conftest.er1
14584   ac_status=$?
14585   grep -v '^ *+' conftest.er1 >conftest.err
14586   rm -f conftest.er1
14587   cat conftest.err >&5
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } && {
14590          test -z "$ac_f77_werror_flag" ||
14591          test ! -s conftest.err
14592        } && test -s conftest$ac_exeext &&
14593        $as_test_x conftest$ac_exeext; then
14594
14595 lt_aix_libpath_sed='
14596     /Import File Strings/,/^$/ {
14597         /^0/ {
14598             s/^0  *\(.*\)$/\1/
14599             p
14600         }
14601     }'
14602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14603 # Check for a 64-bit object if we didn't find anything.
14604 if test -z "$aix_libpath"; then
14605   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14606 fi
14607 else
14608   echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14610
14611
14612 fi
14613
14614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14615       conftest$ac_exeext conftest.$ac_ext
14616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14617
14618        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14619         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"
14620        else
14621         if test "$host_cpu" = ia64; then
14622           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14623           allow_undefined_flag_F77="-z nodefs"
14624           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"
14625         else
14626          # Determine the default libpath from the value encoded in an empty executable.
14627          cat >conftest.$ac_ext <<_ACEOF
14628       program main
14629
14630       end
14631 _ACEOF
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (ac_try="$ac_link"
14634 case "(($ac_try" in
14635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636   *) ac_try_echo=$ac_try;;
14637 esac
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639   (eval "$ac_link") 2>conftest.er1
14640   ac_status=$?
14641   grep -v '^ *+' conftest.er1 >conftest.err
14642   rm -f conftest.er1
14643   cat conftest.err >&5
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); } && {
14646          test -z "$ac_f77_werror_flag" ||
14647          test ! -s conftest.err
14648        } && test -s conftest$ac_exeext &&
14649        $as_test_x conftest$ac_exeext; then
14650
14651 lt_aix_libpath_sed='
14652     /Import File Strings/,/^$/ {
14653         /^0/ {
14654             s/^0  *\(.*\)$/\1/
14655             p
14656         }
14657     }'
14658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14659 # Check for a 64-bit object if we didn't find anything.
14660 if test -z "$aix_libpath"; then
14661   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14662 fi
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667
14668 fi
14669
14670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14671       conftest$ac_exeext conftest.$ac_ext
14672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14673
14674          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14675           # Warning - without using the other run time loading flags,
14676           # -berok will link without error, but may produce a broken library.
14677           no_undefined_flag_F77=' ${wl}-bernotok'
14678           allow_undefined_flag_F77=' ${wl}-berok'
14679           # Exported symbols can be pulled into shared objects from archives
14680           whole_archive_flag_spec_F77='$convenience'
14681           archive_cmds_need_lc_F77=yes
14682           # This is similar to how AIX traditionally builds its shared libraries.
14683           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'
14684         fi
14685       fi
14686       ;;
14687
14688     amigaos*)
14689       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)'
14690       hardcode_libdir_flag_spec_F77='-L$libdir'
14691       hardcode_minus_L_F77=yes
14692       # see comment about different semantics on the GNU ld section
14693       ld_shlibs_F77=no
14694       ;;
14695
14696     bsdi[45]*)
14697       export_dynamic_flag_spec_F77=-rdynamic
14698       ;;
14699
14700     cygwin* | mingw* | pw32*)
14701       # When not using gcc, we currently assume that we are using
14702       # Microsoft Visual C++.
14703       # hardcode_libdir_flag_spec is actually meaningless, as there is
14704       # no search path for DLLs.
14705       hardcode_libdir_flag_spec_F77=' '
14706       allow_undefined_flag_F77=unsupported
14707       # Tell ltmain to make .lib files, not .a files.
14708       libext=lib
14709       # Tell ltmain to make .dll files, not .so files.
14710       shrext_cmds=".dll"
14711       # FIXME: Setting linknames here is a bad hack.
14712       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14713       # The linker will automatically build a .lib file if we build a DLL.
14714       old_archive_From_new_cmds_F77='true'
14715       # FIXME: Should let the user specify the lib program.
14716       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14717       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14718       enable_shared_with_static_runtimes_F77=yes
14719       ;;
14720
14721     darwin* | rhapsody*)
14722       case $host_os in
14723         rhapsody* | darwin1.[012])
14724          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14725          ;;
14726        *) # Darwin 1.3 on
14727          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14728            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14729          else
14730            case ${MACOSX_DEPLOYMENT_TARGET} in
14731              10.[012])
14732                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14733                ;;
14734              10.*)
14735                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14736                ;;
14737            esac
14738          fi
14739          ;;
14740       esac
14741       archive_cmds_need_lc_F77=no
14742       hardcode_direct_F77=no
14743       hardcode_automatic_F77=yes
14744       hardcode_shlibpath_var_F77=unsupported
14745       whole_archive_flag_spec_F77=''
14746       link_all_deplibs_F77=yes
14747     if test "$GCC" = yes ; then
14748         output_verbose_link_cmd='echo'
14749         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14750       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14751       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14752       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}'
14753       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}'
14754     else
14755       case $cc_basename in
14756         xlc*)
14757          output_verbose_link_cmd='echo'
14758          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14759          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14760           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14761          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14762           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}'
14763           ;;
14764        *)
14765          ld_shlibs_F77=no
14766           ;;
14767       esac
14768     fi
14769       ;;
14770
14771     dgux*)
14772       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773       hardcode_libdir_flag_spec_F77='-L$libdir'
14774       hardcode_shlibpath_var_F77=no
14775       ;;
14776
14777     freebsd1*)
14778       ld_shlibs_F77=no
14779       ;;
14780
14781     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14782     # support.  Future versions do this automatically, but an explicit c++rt0.o
14783     # does not break anything, and helps significantly (at the cost of a little
14784     # extra space).
14785     freebsd2.2*)
14786       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14787       hardcode_libdir_flag_spec_F77='-R$libdir'
14788       hardcode_direct_F77=yes
14789       hardcode_shlibpath_var_F77=no
14790       ;;
14791
14792     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14793     freebsd2*)
14794       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14795       hardcode_direct_F77=yes
14796       hardcode_minus_L_F77=yes
14797       hardcode_shlibpath_var_F77=no
14798       ;;
14799
14800     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14801     freebsd* | dragonfly*)
14802       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14803       hardcode_libdir_flag_spec_F77='-R$libdir'
14804       hardcode_direct_F77=yes
14805       hardcode_shlibpath_var_F77=no
14806       ;;
14807
14808     hpux9*)
14809       if test "$GCC" = yes; then
14810         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'
14811       else
14812         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'
14813       fi
14814       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14815       hardcode_libdir_separator_F77=:
14816       hardcode_direct_F77=yes
14817
14818       # hardcode_minus_L: Not really in the search PATH,
14819       # but as the default location of the library.
14820       hardcode_minus_L_F77=yes
14821       export_dynamic_flag_spec_F77='${wl}-E'
14822       ;;
14823
14824     hpux10*)
14825       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14826         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14827       else
14828         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14829       fi
14830       if test "$with_gnu_ld" = no; then
14831         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14832         hardcode_libdir_separator_F77=:
14833
14834         hardcode_direct_F77=yes
14835         export_dynamic_flag_spec_F77='${wl}-E'
14836
14837         # hardcode_minus_L: Not really in the search PATH,
14838         # but as the default location of the library.
14839         hardcode_minus_L_F77=yes
14840       fi
14841       ;;
14842
14843     hpux11*)
14844       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14845         case $host_cpu in
14846         hppa*64*)
14847           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14848           ;;
14849         ia64*)
14850           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14851           ;;
14852         *)
14853           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14854           ;;
14855         esac
14856       else
14857         case $host_cpu in
14858         hppa*64*)
14859           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14860           ;;
14861         ia64*)
14862           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14863           ;;
14864         *)
14865           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14866           ;;
14867         esac
14868       fi
14869       if test "$with_gnu_ld" = no; then
14870         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14871         hardcode_libdir_separator_F77=:
14872
14873         case $host_cpu in
14874         hppa*64*|ia64*)
14875           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14876           hardcode_direct_F77=no
14877           hardcode_shlibpath_var_F77=no
14878           ;;
14879         *)
14880           hardcode_direct_F77=yes
14881           export_dynamic_flag_spec_F77='${wl}-E'
14882
14883           # hardcode_minus_L: Not really in the search PATH,
14884           # but as the default location of the library.
14885           hardcode_minus_L_F77=yes
14886           ;;
14887         esac
14888       fi
14889       ;;
14890
14891     irix5* | irix6* | nonstopux*)
14892       if test "$GCC" = yes; then
14893         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'
14894       else
14895         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'
14896         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14897       fi
14898       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14899       hardcode_libdir_separator_F77=:
14900       link_all_deplibs_F77=yes
14901       ;;
14902
14903     netbsd* | netbsdelf*-gnu)
14904       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14905         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14906       else
14907         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14908       fi
14909       hardcode_libdir_flag_spec_F77='-R$libdir'
14910       hardcode_direct_F77=yes
14911       hardcode_shlibpath_var_F77=no
14912       ;;
14913
14914     newsos6)
14915       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14916       hardcode_direct_F77=yes
14917       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14918       hardcode_libdir_separator_F77=:
14919       hardcode_shlibpath_var_F77=no
14920       ;;
14921
14922     openbsd*)
14923       if test -f /usr/libexec/ld.so; then
14924         hardcode_direct_F77=yes
14925         hardcode_shlibpath_var_F77=no
14926         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14927           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14928           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14929           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14930           export_dynamic_flag_spec_F77='${wl}-E'
14931         else
14932           case $host_os in
14933            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14934              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14935              hardcode_libdir_flag_spec_F77='-R$libdir'
14936              ;;
14937            *)
14938              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14939              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14940              ;;
14941           esac
14942         fi
14943       else
14944         ld_shlibs_F77=no
14945       fi
14946       ;;
14947
14948     os2*)
14949       hardcode_libdir_flag_spec_F77='-L$libdir'
14950       hardcode_minus_L_F77=yes
14951       allow_undefined_flag_F77=unsupported
14952       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'
14953       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14954       ;;
14955
14956     osf3*)
14957       if test "$GCC" = yes; then
14958         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14959         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'
14960       else
14961         allow_undefined_flag_F77=' -expect_unresolved \*'
14962         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'
14963       fi
14964       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14965       hardcode_libdir_separator_F77=:
14966       ;;
14967
14968     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14969       if test "$GCC" = yes; then
14970         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14971         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'
14972         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14973       else
14974         allow_undefined_flag_F77=' -expect_unresolved \*'
14975         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'
14976         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~
14977         $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'
14978
14979         # Both c and cxx compiler support -rpath directly
14980         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14981       fi
14982       hardcode_libdir_separator_F77=:
14983       ;;
14984
14985     solaris*)
14986       no_undefined_flag_F77=' -z text'
14987       if test "$GCC" = yes; then
14988         wlarc='${wl}'
14989         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14990         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14991           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14992       else
14993         wlarc=''
14994         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14995         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14996         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14997       fi
14998       hardcode_libdir_flag_spec_F77='-R$libdir'
14999       hardcode_shlibpath_var_F77=no
15000       case $host_os in
15001       solaris2.[0-5] | solaris2.[0-5].*) ;;
15002       *)
15003         # The compiler driver will combine and reorder linker options,
15004         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15005         # but is careful enough not to reorder.
15006         # Supported since Solaris 2.6 (maybe 2.5.1?)
15007         if test "$GCC" = yes; then
15008           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15009         else
15010           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15011         fi
15012         ;;
15013       esac
15014       link_all_deplibs_F77=yes
15015       ;;
15016
15017     sunos4*)
15018       if test "x$host_vendor" = xsequent; then
15019         # Use $CC to link under sequent, because it throws in some extra .o
15020         # files that make .init and .fini sections work.
15021         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15022       else
15023         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15024       fi
15025       hardcode_libdir_flag_spec_F77='-L$libdir'
15026       hardcode_direct_F77=yes
15027       hardcode_minus_L_F77=yes
15028       hardcode_shlibpath_var_F77=no
15029       ;;
15030
15031     sysv4)
15032       case $host_vendor in
15033         sni)
15034           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15035           hardcode_direct_F77=yes # is this really true???
15036         ;;
15037         siemens)
15038           ## LD is ld it makes a PLAMLIB
15039           ## CC just makes a GrossModule.
15040           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15041           reload_cmds_F77='$CC -r -o $output$reload_objs'
15042           hardcode_direct_F77=no
15043         ;;
15044         motorola)
15045           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15047         ;;
15048       esac
15049       runpath_var='LD_RUN_PATH'
15050       hardcode_shlibpath_var_F77=no
15051       ;;
15052
15053     sysv4.3*)
15054       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15055       hardcode_shlibpath_var_F77=no
15056       export_dynamic_flag_spec_F77='-Bexport'
15057       ;;
15058
15059     sysv4*MP*)
15060       if test -d /usr/nec; then
15061         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15062         hardcode_shlibpath_var_F77=no
15063         runpath_var=LD_RUN_PATH
15064         hardcode_runpath_var=yes
15065         ld_shlibs_F77=yes
15066       fi
15067       ;;
15068
15069     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15070       no_undefined_flag_F77='${wl}-z,text'
15071       archive_cmds_need_lc_F77=no
15072       hardcode_shlibpath_var_F77=no
15073       runpath_var='LD_RUN_PATH'
15074
15075       if test "$GCC" = yes; then
15076         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15077         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15078       else
15079         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15080         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15081       fi
15082       ;;
15083
15084     sysv5* | sco3.2v5* | sco5v6*)
15085       # Note: We can NOT use -z defs as we might desire, because we do not
15086       # link with -lc, and that would cause any symbols used from libc to
15087       # always be unresolved, which means just about no library would
15088       # ever link correctly.  If we're not using GNU ld we use -z text
15089       # though, which does catch some bad symbols but isn't as heavy-handed
15090       # as -z defs.
15091       no_undefined_flag_F77='${wl}-z,text'
15092       allow_undefined_flag_F77='${wl}-z,nodefs'
15093       archive_cmds_need_lc_F77=no
15094       hardcode_shlibpath_var_F77=no
15095       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15096       hardcode_libdir_separator_F77=':'
15097       link_all_deplibs_F77=yes
15098       export_dynamic_flag_spec_F77='${wl}-Bexport'
15099       runpath_var='LD_RUN_PATH'
15100
15101       if test "$GCC" = yes; then
15102         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15103         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15104       else
15105         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15106         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15107       fi
15108       ;;
15109
15110     uts4*)
15111       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112       hardcode_libdir_flag_spec_F77='-L$libdir'
15113       hardcode_shlibpath_var_F77=no
15114       ;;
15115
15116     *)
15117       ld_shlibs_F77=no
15118       ;;
15119     esac
15120   fi
15121
15122 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15123 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15124 test "$ld_shlibs_F77" = no && can_build_shared=no
15125
15126 #
15127 # Do we need to explicitly link libc?
15128 #
15129 case "x$archive_cmds_need_lc_F77" in
15130 x|xyes)
15131   # Assume -lc should be added
15132   archive_cmds_need_lc_F77=yes
15133
15134   if test "$enable_shared" = yes && test "$GCC" = yes; then
15135     case $archive_cmds_F77 in
15136     *'~'*)
15137       # FIXME: we may have to deal with multi-command sequences.
15138       ;;
15139     '$CC '*)
15140       # Test whether the compiler implicitly links with -lc since on some
15141       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15142       # to ld, don't add -lc before -lgcc.
15143       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15144 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15145       $rm conftest*
15146       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15147
15148       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149   (eval $ac_compile) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); } 2>conftest.err; then
15153         soname=conftest
15154         lib=conftest
15155         libobjs=conftest.$ac_objext
15156         deplibs=
15157         wl=$lt_prog_compiler_wl_F77
15158         pic_flag=$lt_prog_compiler_pic_F77
15159         compiler_flags=-v
15160         linker_flags=-v
15161         verstring=
15162         output_objdir=.
15163         libname=conftest
15164         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15165         allow_undefined_flag_F77=
15166         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15167   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); }
15171         then
15172           archive_cmds_need_lc_F77=no
15173         else
15174           archive_cmds_need_lc_F77=yes
15175         fi
15176         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15177       else
15178         cat conftest.err 1>&5
15179       fi
15180       $rm conftest*
15181       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15182 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15183       ;;
15184     esac
15185   fi
15186   ;;
15187 esac
15188
15189 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15190 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15191 library_names_spec=
15192 libname_spec='lib$name'
15193 soname_spec=
15194 shrext_cmds=".so"
15195 postinstall_cmds=
15196 postuninstall_cmds=
15197 finish_cmds=
15198 finish_eval=
15199 shlibpath_var=
15200 shlibpath_overrides_runpath=unknown
15201 version_type=none
15202 dynamic_linker="$host_os ld.so"
15203 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15204
15205 need_lib_prefix=unknown
15206 hardcode_into_libs=no
15207
15208 # when you set need_version to no, make sure it does not cause -set_version
15209 # flags to be left without arguments
15210 need_version=unknown
15211
15212 case $host_os in
15213 aix3*)
15214   version_type=linux
15215   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15216   shlibpath_var=LIBPATH
15217
15218   # AIX 3 has no versioning support, so we append a major version to the name.
15219   soname_spec='${libname}${release}${shared_ext}$major'
15220   ;;
15221
15222 aix4* | aix5*)
15223   version_type=linux
15224   need_lib_prefix=no
15225   need_version=no
15226   hardcode_into_libs=yes
15227   if test "$host_cpu" = ia64; then
15228     # AIX 5 supports IA64
15229     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15230     shlibpath_var=LD_LIBRARY_PATH
15231   else
15232     # With GCC up to 2.95.x, collect2 would create an import file
15233     # for dependence libraries.  The import file would start with
15234     # the line `#! .'.  This would cause the generated library to
15235     # depend on `.', always an invalid library.  This was fixed in
15236     # development snapshots of GCC prior to 3.0.
15237     case $host_os in
15238       aix4 | aix4.[01] | aix4.[01].*)
15239       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15240            echo ' yes '
15241            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15242         :
15243       else
15244         can_build_shared=no
15245       fi
15246       ;;
15247     esac
15248     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15249     # soname into executable. Probably we can add versioning support to
15250     # collect2, so additional links can be useful in future.
15251     if test "$aix_use_runtimelinking" = yes; then
15252       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15253       # instead of lib<name>.a to let people know that these are not
15254       # typical AIX shared libraries.
15255       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256     else
15257       # We preserve .a as extension for shared libraries through AIX4.2
15258       # and later when we are not doing run time linking.
15259       library_names_spec='${libname}${release}.a $libname.a'
15260       soname_spec='${libname}${release}${shared_ext}$major'
15261     fi
15262     shlibpath_var=LIBPATH
15263   fi
15264   ;;
15265
15266 amigaos*)
15267   library_names_spec='$libname.ixlibrary $libname.a'
15268   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15269   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'
15270   ;;
15271
15272 beos*)
15273   library_names_spec='${libname}${shared_ext}'
15274   dynamic_linker="$host_os ld.so"
15275   shlibpath_var=LIBRARY_PATH
15276   ;;
15277
15278 bsdi[45]*)
15279   version_type=linux
15280   need_version=no
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282   soname_spec='${libname}${release}${shared_ext}$major'
15283   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15284   shlibpath_var=LD_LIBRARY_PATH
15285   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15286   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15287   # the default ld.so.conf also contains /usr/contrib/lib and
15288   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15289   # libtool to hard-code these into programs
15290   ;;
15291
15292 cygwin* | mingw* | pw32*)
15293   version_type=windows
15294   shrext_cmds=".dll"
15295   need_version=no
15296   need_lib_prefix=no
15297
15298   case $GCC,$host_os in
15299   yes,cygwin* | yes,mingw* | yes,pw32*)
15300     library_names_spec='$libname.dll.a'
15301     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15302     postinstall_cmds='base_file=`basename \${file}`~
15303       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15304       dldir=$destdir/`dirname \$dlpath`~
15305       test -d \$dldir || mkdir -p \$dldir~
15306       $install_prog $dir/$dlname \$dldir/$dlname~
15307       chmod a+x \$dldir/$dlname'
15308     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15309       dlpath=$dir/\$dldll~
15310        $rm \$dlpath'
15311     shlibpath_overrides_runpath=yes
15312
15313     case $host_os in
15314     cygwin*)
15315       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15316       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15317       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15318       ;;
15319     mingw*)
15320       # MinGW DLLs use traditional 'lib' prefix
15321       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15322       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15323       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15324         # It is most probably a Windows format PATH printed by
15325         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15326         # path with ; separators, and with drive letters. We can handle the
15327         # drive letters (cygwin fileutils understands them), so leave them,
15328         # especially as we might pass files found there to a mingw objdump,
15329         # which wouldn't understand a cygwinified path. Ahh.
15330         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15331       else
15332         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15333       fi
15334       ;;
15335     pw32*)
15336       # pw32 DLLs use 'pw' prefix rather than 'lib'
15337       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15338       ;;
15339     esac
15340     ;;
15341
15342   *)
15343     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15344     ;;
15345   esac
15346   dynamic_linker='Win32 ld.exe'
15347   # FIXME: first we should search . and the directory the executable is in
15348   shlibpath_var=PATH
15349   ;;
15350
15351 darwin* | rhapsody*)
15352   dynamic_linker="$host_os dyld"
15353   version_type=darwin
15354   need_lib_prefix=no
15355   need_version=no
15356   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15357   soname_spec='${libname}${release}${major}$shared_ext'
15358   shlibpath_overrides_runpath=yes
15359   shlibpath_var=DYLD_LIBRARY_PATH
15360   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15361
15362   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15363   ;;
15364
15365 dgux*)
15366   version_type=linux
15367   need_lib_prefix=no
15368   need_version=no
15369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15370   soname_spec='${libname}${release}${shared_ext}$major'
15371   shlibpath_var=LD_LIBRARY_PATH
15372   ;;
15373
15374 freebsd1*)
15375   dynamic_linker=no
15376   ;;
15377
15378 freebsd* | dragonfly*)
15379   # DragonFly does not have aout.  When/if they implement a new
15380   # versioning mechanism, adjust this.
15381   if test -x /usr/bin/objformat; then
15382     objformat=`/usr/bin/objformat`
15383   else
15384     case $host_os in
15385     freebsd[123]*) objformat=aout ;;
15386     *) objformat=elf ;;
15387     esac
15388   fi
15389   version_type=freebsd-$objformat
15390   case $version_type in
15391     freebsd-elf*)
15392       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15393       need_version=no
15394       need_lib_prefix=no
15395       ;;
15396     freebsd-*)
15397       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15398       need_version=yes
15399       ;;
15400   esac
15401   shlibpath_var=LD_LIBRARY_PATH
15402   case $host_os in
15403   freebsd2*)
15404     shlibpath_overrides_runpath=yes
15405     ;;
15406   freebsd3.[01]* | freebsdelf3.[01]*)
15407     shlibpath_overrides_runpath=yes
15408     hardcode_into_libs=yes
15409     ;;
15410   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15411   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15412     shlibpath_overrides_runpath=no
15413     hardcode_into_libs=yes
15414     ;;
15415   *) # from 4.6 on, and DragonFly
15416     shlibpath_overrides_runpath=yes
15417     hardcode_into_libs=yes
15418     ;;
15419   esac
15420   ;;
15421
15422 gnu*)
15423   version_type=linux
15424   need_lib_prefix=no
15425   need_version=no
15426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15427   soname_spec='${libname}${release}${shared_ext}$major'
15428   shlibpath_var=LD_LIBRARY_PATH
15429   hardcode_into_libs=yes
15430   ;;
15431
15432 hpux9* | hpux10* | hpux11*)
15433   # Give a soname corresponding to the major version so that dld.sl refuses to
15434   # link against other versions.
15435   version_type=sunos
15436   need_lib_prefix=no
15437   need_version=no
15438   case $host_cpu in
15439   ia64*)
15440     shrext_cmds='.so'
15441     hardcode_into_libs=yes
15442     dynamic_linker="$host_os dld.so"
15443     shlibpath_var=LD_LIBRARY_PATH
15444     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446     soname_spec='${libname}${release}${shared_ext}$major'
15447     if test "X$HPUX_IA64_MODE" = X32; then
15448       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15449     else
15450       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15451     fi
15452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15453     ;;
15454    hppa*64*)
15455      shrext_cmds='.sl'
15456      hardcode_into_libs=yes
15457      dynamic_linker="$host_os dld.sl"
15458      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15459      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15460      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461      soname_spec='${libname}${release}${shared_ext}$major'
15462      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15463      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15464      ;;
15465    *)
15466     shrext_cmds='.sl'
15467     dynamic_linker="$host_os dld.sl"
15468     shlibpath_var=SHLIB_PATH
15469     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471     soname_spec='${libname}${release}${shared_ext}$major'
15472     ;;
15473   esac
15474   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15475   postinstall_cmds='chmod 555 $lib'
15476   ;;
15477
15478 interix[3-9]*)
15479   version_type=linux
15480   need_lib_prefix=no
15481   need_version=no
15482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15483   soname_spec='${libname}${release}${shared_ext}$major'
15484   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15485   shlibpath_var=LD_LIBRARY_PATH
15486   shlibpath_overrides_runpath=no
15487   hardcode_into_libs=yes
15488   ;;
15489
15490 irix5* | irix6* | nonstopux*)
15491   case $host_os in
15492     nonstopux*) version_type=nonstopux ;;
15493     *)
15494         if test "$lt_cv_prog_gnu_ld" = yes; then
15495                 version_type=linux
15496         else
15497                 version_type=irix
15498         fi ;;
15499   esac
15500   need_lib_prefix=no
15501   need_version=no
15502   soname_spec='${libname}${release}${shared_ext}$major'
15503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15504   case $host_os in
15505   irix5* | nonstopux*)
15506     libsuff= shlibsuff=
15507     ;;
15508   *)
15509     case $LD in # libtool.m4 will add one of these switches to LD
15510     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15511       libsuff= shlibsuff= libmagic=32-bit;;
15512     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15513       libsuff=32 shlibsuff=N32 libmagic=N32;;
15514     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15515       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15516     *) libsuff= shlibsuff= libmagic=never-match;;
15517     esac
15518     ;;
15519   esac
15520   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15521   shlibpath_overrides_runpath=no
15522   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15523   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15524   hardcode_into_libs=yes
15525   ;;
15526
15527 # No shared lib support for Linux oldld, aout, or coff.
15528 linux*oldld* | linux*aout* | linux*coff*)
15529   dynamic_linker=no
15530   ;;
15531
15532 # This must be Linux ELF.
15533 linux* | k*bsd*-gnu)
15534   version_type=linux
15535   need_lib_prefix=no
15536   need_version=no
15537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538   soname_spec='${libname}${release}${shared_ext}$major'
15539   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15540   shlibpath_var=LD_LIBRARY_PATH
15541   shlibpath_overrides_runpath=no
15542   # This implies no fast_install, which is unacceptable.
15543   # Some rework will be needed to allow for fast_install
15544   # before this can be enabled.
15545   hardcode_into_libs=yes
15546
15547   # Append ld.so.conf contents to the search path
15548   if test -f /etc/ld.so.conf; then
15549     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15550     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15551   fi
15552
15553   # We used to test for /lib/ld.so.1 and disable shared libraries on
15554   # powerpc, because MkLinux only supported shared libraries with the
15555   # GNU dynamic linker.  Since this was broken with cross compilers,
15556   # most powerpc-linux boxes support dynamic linking these days and
15557   # people can always --disable-shared, the test was removed, and we
15558   # assume the GNU/Linux dynamic linker is in use.
15559   dynamic_linker='GNU/Linux ld.so'
15560   ;;
15561
15562 netbsdelf*-gnu)
15563   version_type=linux
15564   need_lib_prefix=no
15565   need_version=no
15566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15567   soname_spec='${libname}${release}${shared_ext}$major'
15568   shlibpath_var=LD_LIBRARY_PATH
15569   shlibpath_overrides_runpath=no
15570   hardcode_into_libs=yes
15571   dynamic_linker='NetBSD ld.elf_so'
15572   ;;
15573
15574 netbsd*)
15575   version_type=sunos
15576   need_lib_prefix=no
15577   need_version=no
15578   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15580     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15581     dynamic_linker='NetBSD (a.out) ld.so'
15582   else
15583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15584     soname_spec='${libname}${release}${shared_ext}$major'
15585     dynamic_linker='NetBSD ld.elf_so'
15586   fi
15587   shlibpath_var=LD_LIBRARY_PATH
15588   shlibpath_overrides_runpath=yes
15589   hardcode_into_libs=yes
15590   ;;
15591
15592 newsos6)
15593   version_type=linux
15594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595   shlibpath_var=LD_LIBRARY_PATH
15596   shlibpath_overrides_runpath=yes
15597   ;;
15598
15599 nto-qnx*)
15600   version_type=linux
15601   need_lib_prefix=no
15602   need_version=no
15603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604   soname_spec='${libname}${release}${shared_ext}$major'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   shlibpath_overrides_runpath=yes
15607   ;;
15608
15609 openbsd*)
15610   version_type=sunos
15611   sys_lib_dlsearch_path_spec="/usr/lib"
15612   need_lib_prefix=no
15613   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15614   case $host_os in
15615     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15616     *)                         need_version=no  ;;
15617   esac
15618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15619   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15620   shlibpath_var=LD_LIBRARY_PATH
15621   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15622     case $host_os in
15623       openbsd2.[89] | openbsd2.[89].*)
15624         shlibpath_overrides_runpath=no
15625         ;;
15626       *)
15627         shlibpath_overrides_runpath=yes
15628         ;;
15629       esac
15630   else
15631     shlibpath_overrides_runpath=yes
15632   fi
15633   ;;
15634
15635 os2*)
15636   libname_spec='$name'
15637   shrext_cmds=".dll"
15638   need_lib_prefix=no
15639   library_names_spec='$libname${shared_ext} $libname.a'
15640   dynamic_linker='OS/2 ld.exe'
15641   shlibpath_var=LIBPATH
15642   ;;
15643
15644 osf3* | osf4* | osf5*)
15645   version_type=osf
15646   need_lib_prefix=no
15647   need_version=no
15648   soname_spec='${libname}${release}${shared_ext}$major'
15649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650   shlibpath_var=LD_LIBRARY_PATH
15651   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15652   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15653   ;;
15654
15655 rdos*)
15656   dynamic_linker=no
15657   ;;
15658
15659 solaris*)
15660   version_type=linux
15661   need_lib_prefix=no
15662   need_version=no
15663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664   soname_spec='${libname}${release}${shared_ext}$major'
15665   shlibpath_var=LD_LIBRARY_PATH
15666   shlibpath_overrides_runpath=yes
15667   hardcode_into_libs=yes
15668   # ldd complains unless libraries are executable
15669   postinstall_cmds='chmod +x $lib'
15670   ;;
15671
15672 sunos4*)
15673   version_type=sunos
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15675   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15676   shlibpath_var=LD_LIBRARY_PATH
15677   shlibpath_overrides_runpath=yes
15678   if test "$with_gnu_ld" = yes; then
15679     need_lib_prefix=no
15680   fi
15681   need_version=yes
15682   ;;
15683
15684 sysv4 | sysv4.3*)
15685   version_type=linux
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687   soname_spec='${libname}${release}${shared_ext}$major'
15688   shlibpath_var=LD_LIBRARY_PATH
15689   case $host_vendor in
15690     sni)
15691       shlibpath_overrides_runpath=no
15692       need_lib_prefix=no
15693       export_dynamic_flag_spec='${wl}-Blargedynsym'
15694       runpath_var=LD_RUN_PATH
15695       ;;
15696     siemens)
15697       need_lib_prefix=no
15698       ;;
15699     motorola)
15700       need_lib_prefix=no
15701       need_version=no
15702       shlibpath_overrides_runpath=no
15703       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15704       ;;
15705   esac
15706   ;;
15707
15708 sysv4*MP*)
15709   if test -d /usr/nec ;then
15710     version_type=linux
15711     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15712     soname_spec='$libname${shared_ext}.$major'
15713     shlibpath_var=LD_LIBRARY_PATH
15714   fi
15715   ;;
15716
15717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15718   version_type=freebsd-elf
15719   need_lib_prefix=no
15720   need_version=no
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   shlibpath_var=LD_LIBRARY_PATH
15724   hardcode_into_libs=yes
15725   if test "$with_gnu_ld" = yes; then
15726     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15727     shlibpath_overrides_runpath=no
15728   else
15729     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15730     shlibpath_overrides_runpath=yes
15731     case $host_os in
15732       sco3.2v5*)
15733         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15734         ;;
15735     esac
15736   fi
15737   sys_lib_dlsearch_path_spec='/usr/lib'
15738   ;;
15739
15740 uts4*)
15741   version_type=linux
15742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743   soname_spec='${libname}${release}${shared_ext}$major'
15744   shlibpath_var=LD_LIBRARY_PATH
15745   ;;
15746
15747 *)
15748   dynamic_linker=no
15749   ;;
15750 esac
15751 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15752 echo "${ECHO_T}$dynamic_linker" >&6; }
15753 test "$dynamic_linker" = no && can_build_shared=no
15754
15755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15756 if test "$GCC" = yes; then
15757   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15758 fi
15759
15760 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15761 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15762 hardcode_action_F77=
15763 if test -n "$hardcode_libdir_flag_spec_F77" || \
15764    test -n "$runpath_var_F77" || \
15765    test "X$hardcode_automatic_F77" = "Xyes" ; then
15766
15767   # We can hardcode non-existant directories.
15768   if test "$hardcode_direct_F77" != no &&
15769      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15770      # have to relink, otherwise we might link with an installed library
15771      # when we should be linking with a yet-to-be-installed one
15772      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15773      test "$hardcode_minus_L_F77" != no; then
15774     # Linking always hardcodes the temporary library directory.
15775     hardcode_action_F77=relink
15776   else
15777     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15778     hardcode_action_F77=immediate
15779   fi
15780 else
15781   # We cannot hardcode anything, or else we can only hardcode existing
15782   # directories.
15783   hardcode_action_F77=unsupported
15784 fi
15785 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15786 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15787
15788 if test "$hardcode_action_F77" = relink; then
15789   # Fast installation is not supported
15790   enable_fast_install=no
15791 elif test "$shlibpath_overrides_runpath" = yes ||
15792      test "$enable_shared" = no; then
15793   # Fast installation is not necessary
15794   enable_fast_install=needless
15795 fi
15796
15797
15798 # The else clause should only fire when bootstrapping the
15799 # libtool distribution, otherwise you forgot to ship ltmain.sh
15800 # with your package, and you will get complaints that there are
15801 # no rules to generate ltmain.sh.
15802 if test -f "$ltmain"; then
15803   # See if we are running on zsh, and set the options which allow our commands through
15804   # without removal of \ escapes.
15805   if test -n "${ZSH_VERSION+set}" ; then
15806     setopt NO_GLOB_SUBST
15807   fi
15808   # Now quote all the things that may contain metacharacters while being
15809   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15810   # variables and quote the copies for generation of the libtool script.
15811   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15812     SED SHELL STRIP \
15813     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15814     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15815     deplibs_check_method reload_flag reload_cmds need_locks \
15816     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15817     lt_cv_sys_global_symbol_to_c_name_address \
15818     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15819     old_postinstall_cmds old_postuninstall_cmds \
15820     compiler_F77 \
15821     CC_F77 \
15822     LD_F77 \
15823     lt_prog_compiler_wl_F77 \
15824     lt_prog_compiler_pic_F77 \
15825     lt_prog_compiler_static_F77 \
15826     lt_prog_compiler_no_builtin_flag_F77 \
15827     export_dynamic_flag_spec_F77 \
15828     thread_safe_flag_spec_F77 \
15829     whole_archive_flag_spec_F77 \
15830     enable_shared_with_static_runtimes_F77 \
15831     old_archive_cmds_F77 \
15832     old_archive_from_new_cmds_F77 \
15833     predep_objects_F77 \
15834     postdep_objects_F77 \
15835     predeps_F77 \
15836     postdeps_F77 \
15837     compiler_lib_search_path_F77 \
15838     archive_cmds_F77 \
15839     archive_expsym_cmds_F77 \
15840     postinstall_cmds_F77 \
15841     postuninstall_cmds_F77 \
15842     old_archive_from_expsyms_cmds_F77 \
15843     allow_undefined_flag_F77 \
15844     no_undefined_flag_F77 \
15845     export_symbols_cmds_F77 \
15846     hardcode_libdir_flag_spec_F77 \
15847     hardcode_libdir_flag_spec_ld_F77 \
15848     hardcode_libdir_separator_F77 \
15849     hardcode_automatic_F77 \
15850     module_cmds_F77 \
15851     module_expsym_cmds_F77 \
15852     lt_cv_prog_compiler_c_o_F77 \
15853     fix_srcfile_path_F77 \
15854     exclude_expsyms_F77 \
15855     include_expsyms_F77; do
15856
15857     case $var in
15858     old_archive_cmds_F77 | \
15859     old_archive_from_new_cmds_F77 | \
15860     archive_cmds_F77 | \
15861     archive_expsym_cmds_F77 | \
15862     module_cmds_F77 | \
15863     module_expsym_cmds_F77 | \
15864     old_archive_from_expsyms_cmds_F77 | \
15865     export_symbols_cmds_F77 | \
15866     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15867     postinstall_cmds | postuninstall_cmds | \
15868     old_postinstall_cmds | old_postuninstall_cmds | \
15869     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15870       # Double-quote double-evaled strings.
15871       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15872       ;;
15873     *)
15874       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15875       ;;
15876     esac
15877   done
15878
15879   case $lt_echo in
15880   *'\$0 --fallback-echo"')
15881     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15882     ;;
15883   esac
15884
15885 cfgfile="$ofile"
15886
15887   cat <<__EOF__ >> "$cfgfile"
15888 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15889
15890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15891
15892 # Shell to use when invoking shell scripts.
15893 SHELL=$lt_SHELL
15894
15895 # Whether or not to build shared libraries.
15896 build_libtool_libs=$enable_shared
15897
15898 # Whether or not to build static libraries.
15899 build_old_libs=$enable_static
15900
15901 # Whether or not to add -lc for building shared libraries.
15902 build_libtool_need_lc=$archive_cmds_need_lc_F77
15903
15904 # Whether or not to disallow shared libs when runtime libs are static
15905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15906
15907 # Whether or not to optimize for fast installation.
15908 fast_install=$enable_fast_install
15909
15910 # The host system.
15911 host_alias=$host_alias
15912 host=$host
15913 host_os=$host_os
15914
15915 # The build system.
15916 build_alias=$build_alias
15917 build=$build
15918 build_os=$build_os
15919
15920 # An echo program that does not interpret backslashes.
15921 echo=$lt_echo
15922
15923 # The archiver.
15924 AR=$lt_AR
15925 AR_FLAGS=$lt_AR_FLAGS
15926
15927 # A C compiler.
15928 LTCC=$lt_LTCC
15929
15930 # LTCC compiler flags.
15931 LTCFLAGS=$lt_LTCFLAGS
15932
15933 # A language-specific compiler.
15934 CC=$lt_compiler_F77
15935
15936 # Is the compiler the GNU C compiler?
15937 with_gcc=$GCC_F77
15938
15939 # An ERE matcher.
15940 EGREP=$lt_EGREP
15941
15942 # The linker used to build libraries.
15943 LD=$lt_LD_F77
15944
15945 # Whether we need hard or soft links.
15946 LN_S=$lt_LN_S
15947
15948 # A BSD-compatible nm program.
15949 NM=$lt_NM
15950
15951 # A symbol stripping program
15952 STRIP=$lt_STRIP
15953
15954 # Used to examine libraries when file_magic_cmd begins "file"
15955 MAGIC_CMD=$MAGIC_CMD
15956
15957 # Used on cygwin: DLL creation program.
15958 DLLTOOL="$DLLTOOL"
15959
15960 # Used on cygwin: object dumper.
15961 OBJDUMP="$OBJDUMP"
15962
15963 # Used on cygwin: assembler.
15964 AS="$AS"
15965
15966 # The name of the directory that contains temporary libtool files.
15967 objdir=$objdir
15968
15969 # How to create reloadable object files.
15970 reload_flag=$lt_reload_flag
15971 reload_cmds=$lt_reload_cmds
15972
15973 # How to pass a linker flag through the compiler.
15974 wl=$lt_lt_prog_compiler_wl_F77
15975
15976 # Object file suffix (normally "o").
15977 objext="$ac_objext"
15978
15979 # Old archive suffix (normally "a").
15980 libext="$libext"
15981
15982 # Shared library suffix (normally ".so").
15983 shrext_cmds='$shrext_cmds'
15984
15985 # Executable file suffix (normally "").
15986 exeext="$exeext"
15987
15988 # Additional compiler flags for building library objects.
15989 pic_flag=$lt_lt_prog_compiler_pic_F77
15990 pic_mode=$pic_mode
15991
15992 # What is the maximum length of a command?
15993 max_cmd_len=$lt_cv_sys_max_cmd_len
15994
15995 # Does compiler simultaneously support -c and -o options?
15996 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15997
15998 # Must we lock files when doing compilation?
15999 need_locks=$lt_need_locks
16000
16001 # Do we need the lib prefix for modules?
16002 need_lib_prefix=$need_lib_prefix
16003
16004 # Do we need a version for libraries?
16005 need_version=$need_version
16006
16007 # Whether dlopen is supported.
16008 dlopen_support=$enable_dlopen
16009
16010 # Whether dlopen of programs is supported.
16011 dlopen_self=$enable_dlopen_self
16012
16013 # Whether dlopen of statically linked programs is supported.
16014 dlopen_self_static=$enable_dlopen_self_static
16015
16016 # Compiler flag to prevent dynamic linking.
16017 link_static_flag=$lt_lt_prog_compiler_static_F77
16018
16019 # Compiler flag to turn off builtin functions.
16020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16021
16022 # Compiler flag to allow reflexive dlopens.
16023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16024
16025 # Compiler flag to generate shared objects directly from archives.
16026 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16027
16028 # Compiler flag to generate thread-safe objects.
16029 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16030
16031 # Library versioning type.
16032 version_type=$version_type
16033
16034 # Format of library name prefix.
16035 libname_spec=$lt_libname_spec
16036
16037 # List of archive names.  First name is the real one, the rest are links.
16038 # The last name is the one that the linker finds with -lNAME.
16039 library_names_spec=$lt_library_names_spec
16040
16041 # The coded name of the library, if different from the real name.
16042 soname_spec=$lt_soname_spec
16043
16044 # Commands used to build and install an old-style archive.
16045 RANLIB=$lt_RANLIB
16046 old_archive_cmds=$lt_old_archive_cmds_F77
16047 old_postinstall_cmds=$lt_old_postinstall_cmds
16048 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16049
16050 # Create an old-style archive from a shared archive.
16051 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16052
16053 # Create a temporary old-style archive to link instead of a shared archive.
16054 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16055
16056 # Commands used to build and install a shared archive.
16057 archive_cmds=$lt_archive_cmds_F77
16058 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16059 postinstall_cmds=$lt_postinstall_cmds
16060 postuninstall_cmds=$lt_postuninstall_cmds
16061
16062 # Commands used to build a loadable module (assumed same as above if empty)
16063 module_cmds=$lt_module_cmds_F77
16064 module_expsym_cmds=$lt_module_expsym_cmds_F77
16065
16066 # Commands to strip libraries.
16067 old_striplib=$lt_old_striplib
16068 striplib=$lt_striplib
16069
16070 # Dependencies to place before the objects being linked to create a
16071 # shared library.
16072 predep_objects=$lt_predep_objects_F77
16073
16074 # Dependencies to place after the objects being linked to create a
16075 # shared library.
16076 postdep_objects=$lt_postdep_objects_F77
16077
16078 # Dependencies to place before the objects being linked to create a
16079 # shared library.
16080 predeps=$lt_predeps_F77
16081
16082 # Dependencies to place after the objects being linked to create a
16083 # shared library.
16084 postdeps=$lt_postdeps_F77
16085
16086 # The library search path used internally by the compiler when linking
16087 # a shared library.
16088 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16089
16090 # Method to check whether dependent libraries are shared objects.
16091 deplibs_check_method=$lt_deplibs_check_method
16092
16093 # Command to use when deplibs_check_method == file_magic.
16094 file_magic_cmd=$lt_file_magic_cmd
16095
16096 # Flag that allows shared libraries with undefined symbols to be built.
16097 allow_undefined_flag=$lt_allow_undefined_flag_F77
16098
16099 # Flag that forces no undefined symbols.
16100 no_undefined_flag=$lt_no_undefined_flag_F77
16101
16102 # Commands used to finish a libtool library installation in a directory.
16103 finish_cmds=$lt_finish_cmds
16104
16105 # Same as above, but a single script fragment to be evaled but not shown.
16106 finish_eval=$lt_finish_eval
16107
16108 # Take the output of nm and produce a listing of raw symbols and C names.
16109 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16110
16111 # Transform the output of nm in a proper C declaration
16112 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16113
16114 # Transform the output of nm in a C name address pair
16115 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16116
16117 # This is the shared library runtime path variable.
16118 runpath_var=$runpath_var
16119
16120 # This is the shared library path variable.
16121 shlibpath_var=$shlibpath_var
16122
16123 # Is shlibpath searched before the hard-coded library search path?
16124 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16125
16126 # How to hardcode a shared library path into an executable.
16127 hardcode_action=$hardcode_action_F77
16128
16129 # Whether we should hardcode library paths into libraries.
16130 hardcode_into_libs=$hardcode_into_libs
16131
16132 # Flag to hardcode \$libdir into a binary during linking.
16133 # This must work even if \$libdir does not exist.
16134 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16135
16136 # If ld is used when linking, flag to hardcode \$libdir into
16137 # a binary during linking. This must work even if \$libdir does
16138 # not exist.
16139 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16140
16141 # Whether we need a single -rpath flag with a separated argument.
16142 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16143
16144 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16145 # resulting binary.
16146 hardcode_direct=$hardcode_direct_F77
16147
16148 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16149 # resulting binary.
16150 hardcode_minus_L=$hardcode_minus_L_F77
16151
16152 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16153 # the resulting binary.
16154 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16155
16156 # Set to yes if building a shared library automatically hardcodes DIR into the library
16157 # and all subsequent libraries and executables linked against it.
16158 hardcode_automatic=$hardcode_automatic_F77
16159
16160 # Variables whose values should be saved in libtool wrapper scripts and
16161 # restored at relink time.
16162 variables_saved_for_relink="$variables_saved_for_relink"
16163
16164 # Whether libtool must link a program against all its dependency libraries.
16165 link_all_deplibs=$link_all_deplibs_F77
16166
16167 # Compile-time system search path for libraries
16168 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16169
16170 # Run-time system search path for libraries
16171 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16172
16173 # Fix the shell variable \$srcfile for the compiler.
16174 fix_srcfile_path=$lt_fix_srcfile_path
16175
16176 # Set to yes if exported symbols are required.
16177 always_export_symbols=$always_export_symbols_F77
16178
16179 # The commands to list exported symbols.
16180 export_symbols_cmds=$lt_export_symbols_cmds_F77
16181
16182 # The commands to extract the exported symbol list from a shared archive.
16183 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16184
16185 # Symbols that should not be listed in the preloaded symbols.
16186 exclude_expsyms=$lt_exclude_expsyms_F77
16187
16188 # Symbols that must always be exported.
16189 include_expsyms=$lt_include_expsyms_F77
16190
16191 # ### END LIBTOOL TAG CONFIG: $tagname
16192
16193 __EOF__
16194
16195
16196 else
16197   # If there is no Makefile yet, we rely on a make rule to execute
16198   # `config.status --recheck' to rerun these tests and create the
16199   # libtool script then.
16200   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16201   if test -f "$ltmain_in"; then
16202     test -f Makefile && make "$ltmain"
16203   fi
16204 fi
16205
16206
16207 ac_ext=c
16208 ac_cpp='$CPP $CPPFLAGS'
16209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16212
16213 CC="$lt_save_CC"
16214
16215         else
16216           tagname=""
16217         fi
16218         ;;
16219
16220       GCJ)
16221         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16222
16223
16224 # Source file extension for Java test sources.
16225 ac_ext=java
16226
16227 # Object file extension for compiled Java test sources.
16228 objext=o
16229 objext_GCJ=$objext
16230
16231 # Code to be used in simple compile tests
16232 lt_simple_compile_test_code="class foo {}"
16233
16234 # Code to be used in simple link tests
16235 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16236
16237 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16238
16239 # If no C compiler was specified, use CC.
16240 LTCC=${LTCC-"$CC"}
16241
16242 # If no C compiler flags were specified, use CFLAGS.
16243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16244
16245 # Allow CC to be a program name with arguments.
16246 compiler=$CC
16247
16248
16249 # save warnings/boilerplate of simple test code
16250 ac_outfile=conftest.$ac_objext
16251 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16253 _lt_compiler_boilerplate=`cat conftest.err`
16254 $rm conftest*
16255
16256 ac_outfile=conftest.$ac_objext
16257 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16259 _lt_linker_boilerplate=`cat conftest.err`
16260 $rm conftest*
16261
16262
16263 # Allow CC to be a program name with arguments.
16264 lt_save_CC="$CC"
16265 CC=${GCJ-"gcj"}
16266 compiler=$CC
16267 compiler_GCJ=$CC
16268 for cc_temp in $compiler""; do
16269   case $cc_temp in
16270     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16271     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16272     \-*) ;;
16273     *) break;;
16274   esac
16275 done
16276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16277
16278
16279 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16280 archive_cmds_need_lc_GCJ=no
16281
16282 old_archive_cmds_GCJ=$old_archive_cmds
16283
16284
16285 lt_prog_compiler_no_builtin_flag_GCJ=
16286
16287 if test "$GCC" = yes; then
16288   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16289
16290
16291 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16292 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296   lt_cv_prog_compiler_rtti_exceptions=no
16297   ac_outfile=conftest.$ac_objext
16298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16299    lt_compiler_flag="-fno-rtti -fno-exceptions"
16300    # Insert the option either (1) after the last *FLAGS variable, or
16301    # (2) before a word containing "conftest.", or (3) at the end.
16302    # Note that $ac_compile itself does not contain backslashes and begins
16303    # with a dollar sign (not a hyphen), so the echo should work correctly.
16304    # The option is referenced via a variable to avoid confusing sed.
16305    lt_compile=`echo "$ac_compile" | $SED \
16306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16308    -e 's:$: $lt_compiler_flag:'`
16309    (eval echo "\"\$as_me:16309: $lt_compile\"" >&5)
16310    (eval "$lt_compile" 2>conftest.err)
16311    ac_status=$?
16312    cat conftest.err >&5
16313    echo "$as_me:16313: \$? = $ac_status" >&5
16314    if (exit $ac_status) && test -s "$ac_outfile"; then
16315      # The compiler can only warn and ignore the option if not recognized
16316      # So say no if there are warnings other than the usual output.
16317      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16318      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16319      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16320        lt_cv_prog_compiler_rtti_exceptions=yes
16321      fi
16322    fi
16323    $rm conftest*
16324
16325 fi
16326 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16327 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16328
16329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16330     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16331 else
16332     :
16333 fi
16334
16335 fi
16336
16337 lt_prog_compiler_wl_GCJ=
16338 lt_prog_compiler_pic_GCJ=
16339 lt_prog_compiler_static_GCJ=
16340
16341 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16342 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16343
16344   if test "$GCC" = yes; then
16345     lt_prog_compiler_wl_GCJ='-Wl,'
16346     lt_prog_compiler_static_GCJ='-static'
16347
16348     case $host_os in
16349       aix*)
16350       # All AIX code is PIC.
16351       if test "$host_cpu" = ia64; then
16352         # AIX 5 now supports IA64 processor
16353         lt_prog_compiler_static_GCJ='-Bstatic'
16354       fi
16355       ;;
16356
16357     amigaos*)
16358       # FIXME: we need at least 68020 code to build shared libraries, but
16359       # adding the `-m68020' flag to GCC prevents building anything better,
16360       # like `-m68040'.
16361       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16362       ;;
16363
16364     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16365       # PIC is the default for these OSes.
16366       ;;
16367
16368     mingw* | cygwin* | pw32* | os2*)
16369       # This hack is so that the source file can tell whether it is being
16370       # built for inclusion in a dll (and should export symbols for example).
16371       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16372       # (--disable-auto-import) libraries
16373       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16374       ;;
16375
16376     darwin* | rhapsody*)
16377       # PIC is the default on this platform
16378       # Common symbols not allowed in MH_DYLIB files
16379       lt_prog_compiler_pic_GCJ='-fno-common'
16380       ;;
16381
16382     interix[3-9]*)
16383       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16384       # Instead, we relocate shared libraries at runtime.
16385       ;;
16386
16387     msdosdjgpp*)
16388       # Just because we use GCC doesn't mean we suddenly get shared libraries
16389       # on systems that don't support them.
16390       lt_prog_compiler_can_build_shared_GCJ=no
16391       enable_shared=no
16392       ;;
16393
16394     sysv4*MP*)
16395       if test -d /usr/nec; then
16396         lt_prog_compiler_pic_GCJ=-Kconform_pic
16397       fi
16398       ;;
16399
16400     hpux*)
16401       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16402       # not for PA HP-UX.
16403       case $host_cpu in
16404       hppa*64*|ia64*)
16405         # +Z the default
16406         ;;
16407       *)
16408         lt_prog_compiler_pic_GCJ='-fPIC'
16409         ;;
16410       esac
16411       ;;
16412
16413     *)
16414       lt_prog_compiler_pic_GCJ='-fPIC'
16415       ;;
16416     esac
16417   else
16418     # PORTME Check for flag to pass linker flags through the system compiler.
16419     case $host_os in
16420     aix*)
16421       lt_prog_compiler_wl_GCJ='-Wl,'
16422       if test "$host_cpu" = ia64; then
16423         # AIX 5 now supports IA64 processor
16424         lt_prog_compiler_static_GCJ='-Bstatic'
16425       else
16426         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16427       fi
16428       ;;
16429       darwin*)
16430         # PIC is the default on this platform
16431         # Common symbols not allowed in MH_DYLIB files
16432        case $cc_basename in
16433          xlc*)
16434          lt_prog_compiler_pic_GCJ='-qnocommon'
16435          lt_prog_compiler_wl_GCJ='-Wl,'
16436          ;;
16437        esac
16438        ;;
16439
16440     mingw* | cygwin* | pw32* | os2*)
16441       # This hack is so that the source file can tell whether it is being
16442       # built for inclusion in a dll (and should export symbols for example).
16443       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16444       ;;
16445
16446     hpux9* | hpux10* | hpux11*)
16447       lt_prog_compiler_wl_GCJ='-Wl,'
16448       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16449       # not for PA HP-UX.
16450       case $host_cpu in
16451       hppa*64*|ia64*)
16452         # +Z the default
16453         ;;
16454       *)
16455         lt_prog_compiler_pic_GCJ='+Z'
16456         ;;
16457       esac
16458       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16459       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16460       ;;
16461
16462     irix5* | irix6* | nonstopux*)
16463       lt_prog_compiler_wl_GCJ='-Wl,'
16464       # PIC (with -KPIC) is the default.
16465       lt_prog_compiler_static_GCJ='-non_shared'
16466       ;;
16467
16468     newsos6)
16469       lt_prog_compiler_pic_GCJ='-KPIC'
16470       lt_prog_compiler_static_GCJ='-Bstatic'
16471       ;;
16472
16473     linux* | k*bsd*-gnu)
16474       case $cc_basename in
16475       icc* | ecc*)
16476         lt_prog_compiler_wl_GCJ='-Wl,'
16477         lt_prog_compiler_pic_GCJ='-KPIC'
16478         lt_prog_compiler_static_GCJ='-static'
16479         ;;
16480       pgcc* | pgf77* | pgf90* | pgf95*)
16481         # Portland Group compilers (*not* the Pentium gcc compiler,
16482         # which looks to be a dead project)
16483         lt_prog_compiler_wl_GCJ='-Wl,'
16484         lt_prog_compiler_pic_GCJ='-fpic'
16485         lt_prog_compiler_static_GCJ='-Bstatic'
16486         ;;
16487       ccc*)
16488         lt_prog_compiler_wl_GCJ='-Wl,'
16489         # All Alpha code is PIC.
16490         lt_prog_compiler_static_GCJ='-non_shared'
16491         ;;
16492       *)
16493         case `$CC -V 2>&1 | sed 5q` in
16494         *Sun\ C*)
16495           # Sun C 5.9
16496           lt_prog_compiler_pic_GCJ='-KPIC'
16497           lt_prog_compiler_static_GCJ='-Bstatic'
16498           lt_prog_compiler_wl_GCJ='-Wl,'
16499           ;;
16500         *Sun\ F*)
16501           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16502           lt_prog_compiler_pic_GCJ='-KPIC'
16503           lt_prog_compiler_static_GCJ='-Bstatic'
16504           lt_prog_compiler_wl_GCJ=''
16505           ;;
16506         esac
16507         ;;
16508       esac
16509       ;;
16510
16511     osf3* | osf4* | osf5*)
16512       lt_prog_compiler_wl_GCJ='-Wl,'
16513       # All OSF/1 code is PIC.
16514       lt_prog_compiler_static_GCJ='-non_shared'
16515       ;;
16516
16517     rdos*)
16518       lt_prog_compiler_static_GCJ='-non_shared'
16519       ;;
16520
16521     solaris*)
16522       lt_prog_compiler_pic_GCJ='-KPIC'
16523       lt_prog_compiler_static_GCJ='-Bstatic'
16524       case $cc_basename in
16525       f77* | f90* | f95*)
16526         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16527       *)
16528         lt_prog_compiler_wl_GCJ='-Wl,';;
16529       esac
16530       ;;
16531
16532     sunos4*)
16533       lt_prog_compiler_wl_GCJ='-Qoption ld '
16534       lt_prog_compiler_pic_GCJ='-PIC'
16535       lt_prog_compiler_static_GCJ='-Bstatic'
16536       ;;
16537
16538     sysv4 | sysv4.2uw2* | sysv4.3*)
16539       lt_prog_compiler_wl_GCJ='-Wl,'
16540       lt_prog_compiler_pic_GCJ='-KPIC'
16541       lt_prog_compiler_static_GCJ='-Bstatic'
16542       ;;
16543
16544     sysv4*MP*)
16545       if test -d /usr/nec ;then
16546         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16547         lt_prog_compiler_static_GCJ='-Bstatic'
16548       fi
16549       ;;
16550
16551     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16552       lt_prog_compiler_wl_GCJ='-Wl,'
16553       lt_prog_compiler_pic_GCJ='-KPIC'
16554       lt_prog_compiler_static_GCJ='-Bstatic'
16555       ;;
16556
16557     unicos*)
16558       lt_prog_compiler_wl_GCJ='-Wl,'
16559       lt_prog_compiler_can_build_shared_GCJ=no
16560       ;;
16561
16562     uts4*)
16563       lt_prog_compiler_pic_GCJ='-pic'
16564       lt_prog_compiler_static_GCJ='-Bstatic'
16565       ;;
16566
16567     *)
16568       lt_prog_compiler_can_build_shared_GCJ=no
16569       ;;
16570     esac
16571   fi
16572
16573 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16574 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16575
16576 #
16577 # Check to make sure the PIC flag actually works.
16578 #
16579 if test -n "$lt_prog_compiler_pic_GCJ"; then
16580
16581 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16582 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16583 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16584   echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586   lt_prog_compiler_pic_works_GCJ=no
16587   ac_outfile=conftest.$ac_objext
16588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16589    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16590    # Insert the option either (1) after the last *FLAGS variable, or
16591    # (2) before a word containing "conftest.", or (3) at the end.
16592    # Note that $ac_compile itself does not contain backslashes and begins
16593    # with a dollar sign (not a hyphen), so the echo should work correctly.
16594    # The option is referenced via a variable to avoid confusing sed.
16595    lt_compile=`echo "$ac_compile" | $SED \
16596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16598    -e 's:$: $lt_compiler_flag:'`
16599    (eval echo "\"\$as_me:16599: $lt_compile\"" >&5)
16600    (eval "$lt_compile" 2>conftest.err)
16601    ac_status=$?
16602    cat conftest.err >&5
16603    echo "$as_me:16603: \$? = $ac_status" >&5
16604    if (exit $ac_status) && test -s "$ac_outfile"; then
16605      # The compiler can only warn and ignore the option if not recognized
16606      # So say no if there are warnings other than the usual output.
16607      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16608      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16609      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16610        lt_prog_compiler_pic_works_GCJ=yes
16611      fi
16612    fi
16613    $rm conftest*
16614
16615 fi
16616 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16617 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16618
16619 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16620     case $lt_prog_compiler_pic_GCJ in
16621      "" | " "*) ;;
16622      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16623      esac
16624 else
16625     lt_prog_compiler_pic_GCJ=
16626      lt_prog_compiler_can_build_shared_GCJ=no
16627 fi
16628
16629 fi
16630 case $host_os in
16631   # For platforms which do not support PIC, -DPIC is meaningless:
16632   *djgpp*)
16633     lt_prog_compiler_pic_GCJ=
16634     ;;
16635   *)
16636     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16637     ;;
16638 esac
16639
16640 #
16641 # Check to make sure the static flag actually works.
16642 #
16643 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16644 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16645 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16646 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   lt_prog_compiler_static_works_GCJ=no
16650    save_LDFLAGS="$LDFLAGS"
16651    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16652    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16653    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16654      # The linker can only warn and ignore the option if not recognized
16655      # So say no if there are warnings
16656      if test -s conftest.err; then
16657        # Append any errors to the config.log.
16658        cat conftest.err 1>&5
16659        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16660        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16661        if diff conftest.exp conftest.er2 >/dev/null; then
16662          lt_prog_compiler_static_works_GCJ=yes
16663        fi
16664      else
16665        lt_prog_compiler_static_works_GCJ=yes
16666      fi
16667    fi
16668    $rm conftest*
16669    LDFLAGS="$save_LDFLAGS"
16670
16671 fi
16672 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16673 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16674
16675 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16676     :
16677 else
16678     lt_prog_compiler_static_GCJ=
16679 fi
16680
16681
16682 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16683 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16684 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   lt_cv_prog_compiler_c_o_GCJ=no
16688    $rm -r conftest 2>/dev/null
16689    mkdir conftest
16690    cd conftest
16691    mkdir out
16692    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16693
16694    lt_compiler_flag="-o out/conftest2.$ac_objext"
16695    # Insert the option either (1) after the last *FLAGS variable, or
16696    # (2) before a word containing "conftest.", or (3) at the end.
16697    # Note that $ac_compile itself does not contain backslashes and begins
16698    # with a dollar sign (not a hyphen), so the echo should work correctly.
16699    lt_compile=`echo "$ac_compile" | $SED \
16700    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16701    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16702    -e 's:$: $lt_compiler_flag:'`
16703    (eval echo "\"\$as_me:16703: $lt_compile\"" >&5)
16704    (eval "$lt_compile" 2>out/conftest.err)
16705    ac_status=$?
16706    cat out/conftest.err >&5
16707    echo "$as_me:16707: \$? = $ac_status" >&5
16708    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16709    then
16710      # The compiler can only warn and ignore the option if not recognized
16711      # So say no if there are warnings
16712      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16713      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16714      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16715        lt_cv_prog_compiler_c_o_GCJ=yes
16716      fi
16717    fi
16718    chmod u+w . 2>&5
16719    $rm conftest*
16720    # SGI C++ compiler will create directory out/ii_files/ for
16721    # template instantiation
16722    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16723    $rm out/* && rmdir out
16724    cd ..
16725    rmdir conftest
16726    $rm conftest*
16727
16728 fi
16729 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16730 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16731
16732
16733 hard_links="nottested"
16734 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16735   # do not overwrite the value of need_locks provided by the user
16736   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16737 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16738   hard_links=yes
16739   $rm conftest*
16740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16741   touch conftest.a
16742   ln conftest.a conftest.b 2>&5 || hard_links=no
16743   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16744   { echo "$as_me:$LINENO: result: $hard_links" >&5
16745 echo "${ECHO_T}$hard_links" >&6; }
16746   if test "$hard_links" = no; then
16747     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16748 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16749     need_locks=warn
16750   fi
16751 else
16752   need_locks=no
16753 fi
16754
16755 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16756 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16757
16758   runpath_var=
16759   allow_undefined_flag_GCJ=
16760   enable_shared_with_static_runtimes_GCJ=no
16761   archive_cmds_GCJ=
16762   archive_expsym_cmds_GCJ=
16763   old_archive_From_new_cmds_GCJ=
16764   old_archive_from_expsyms_cmds_GCJ=
16765   export_dynamic_flag_spec_GCJ=
16766   whole_archive_flag_spec_GCJ=
16767   thread_safe_flag_spec_GCJ=
16768   hardcode_libdir_flag_spec_GCJ=
16769   hardcode_libdir_flag_spec_ld_GCJ=
16770   hardcode_libdir_separator_GCJ=
16771   hardcode_direct_GCJ=no
16772   hardcode_minus_L_GCJ=no
16773   hardcode_shlibpath_var_GCJ=unsupported
16774   link_all_deplibs_GCJ=unknown
16775   hardcode_automatic_GCJ=no
16776   module_cmds_GCJ=
16777   module_expsym_cmds_GCJ=
16778   always_export_symbols_GCJ=no
16779   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16780   # include_expsyms should be a list of space-separated symbols to be *always*
16781   # included in the symbol list
16782   include_expsyms_GCJ=
16783   # exclude_expsyms can be an extended regexp of symbols to exclude
16784   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16785   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16786   # as well as any symbol that contains `d'.
16787   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16788   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16789   # platforms (ab)use it in PIC code, but their linkers get confused if
16790   # the symbol is explicitly referenced.  Since portable code cannot
16791   # rely on this symbol name, it's probably fine to never include it in
16792   # preloaded symbol tables.
16793   extract_expsyms_cmds=
16794   # Just being paranoid about ensuring that cc_basename is set.
16795   for cc_temp in $compiler""; do
16796   case $cc_temp in
16797     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16798     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16799     \-*) ;;
16800     *) break;;
16801   esac
16802 done
16803 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16804
16805   case $host_os in
16806   cygwin* | mingw* | pw32*)
16807     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16808     # When not using gcc, we currently assume that we are using
16809     # Microsoft Visual C++.
16810     if test "$GCC" != yes; then
16811       with_gnu_ld=no
16812     fi
16813     ;;
16814   interix*)
16815     # we just hope/assume this is gcc and not c89 (= MSVC++)
16816     with_gnu_ld=yes
16817     ;;
16818   openbsd*)
16819     with_gnu_ld=no
16820     ;;
16821   esac
16822
16823   ld_shlibs_GCJ=yes
16824   if test "$with_gnu_ld" = yes; then
16825     # If archive_cmds runs LD, not CC, wlarc should be empty
16826     wlarc='${wl}'
16827
16828     # Set some defaults for GNU ld with shared library support. These
16829     # are reset later if shared libraries are not supported. Putting them
16830     # here allows them to be overridden if necessary.
16831     runpath_var=LD_RUN_PATH
16832     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16833     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16834     # ancient GNU ld didn't support --whole-archive et. al.
16835     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16836         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16837       else
16838         whole_archive_flag_spec_GCJ=
16839     fi
16840     supports_anon_versioning=no
16841     case `$LD -v 2>/dev/null` in
16842       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16843       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16844       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16845       *\ 2.11.*) ;; # other 2.11 versions
16846       *) supports_anon_versioning=yes ;;
16847     esac
16848
16849     # See if GNU ld supports shared libraries.
16850     case $host_os in
16851     aix3* | aix4* | aix5*)
16852       # On AIX/PPC, the GNU linker is very broken
16853       if test "$host_cpu" != ia64; then
16854         ld_shlibs_GCJ=no
16855         cat <<EOF 1>&2
16856
16857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16858 *** to be unable to reliably create shared libraries on AIX.
16859 *** Therefore, libtool is disabling shared libraries support.  If you
16860 *** really care for shared libraries, you may want to modify your PATH
16861 *** so that a non-GNU linker is found, and then restart.
16862
16863 EOF
16864       fi
16865       ;;
16866
16867     amigaos*)
16868       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)'
16869       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16870       hardcode_minus_L_GCJ=yes
16871
16872       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16873       # that the semantics of dynamic libraries on AmigaOS, at least up
16874       # to version 4, is to share data among multiple programs linked
16875       # with the same dynamic library.  Since this doesn't match the
16876       # behavior of shared libraries on other platforms, we can't use
16877       # them.
16878       ld_shlibs_GCJ=no
16879       ;;
16880
16881     beos*)
16882       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16883         allow_undefined_flag_GCJ=unsupported
16884         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16885         # support --undefined.  This deserves some investigation.  FIXME
16886         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16887       else
16888         ld_shlibs_GCJ=no
16889       fi
16890       ;;
16891
16892     cygwin* | mingw* | pw32*)
16893       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16894       # as there is no search path for DLLs.
16895       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16896       allow_undefined_flag_GCJ=unsupported
16897       always_export_symbols_GCJ=no
16898       enable_shared_with_static_runtimes_GCJ=yes
16899       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16900
16901       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16902         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16903         # If the export-symbols file already is a .def file (1st line
16904         # is EXPORTS), use it as is; otherwise, prepend...
16905         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16906           cp $export_symbols $output_objdir/$soname.def;
16907         else
16908           echo EXPORTS > $output_objdir/$soname.def;
16909           cat $export_symbols >> $output_objdir/$soname.def;
16910         fi~
16911         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16912       else
16913         ld_shlibs_GCJ=no
16914       fi
16915       ;;
16916
16917     interix[3-9]*)
16918       hardcode_direct_GCJ=no
16919       hardcode_shlibpath_var_GCJ=no
16920       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16921       export_dynamic_flag_spec_GCJ='${wl}-E'
16922       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16923       # Instead, shared libraries are loaded at an image base (0x10000000 by
16924       # default) and relocated if they conflict, which is a slow very memory
16925       # consuming and fragmenting process.  To avoid this, we pick a random,
16926       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16927       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16928       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'
16929       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'
16930       ;;
16931
16932     gnu* | linux* | k*bsd*-gnu)
16933       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16934         tmp_addflag=
16935         case $cc_basename,$host_cpu in
16936         pgcc*)                          # Portland Group C compiler
16937           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'
16938           tmp_addflag=' $pic_flag'
16939           ;;
16940         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16941           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'
16942           tmp_addflag=' $pic_flag -Mnomain' ;;
16943         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16944           tmp_addflag=' -i_dynamic' ;;
16945         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16946           tmp_addflag=' -i_dynamic -nofor_main' ;;
16947         ifc* | ifort*)                  # Intel Fortran compiler
16948           tmp_addflag=' -nofor_main' ;;
16949         esac
16950         case `$CC -V 2>&1 | sed 5q` in
16951         *Sun\ C*)                       # Sun C 5.9
16952           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16953           tmp_sharedflag='-G' ;;
16954         *Sun\ F*)                       # Sun Fortran 8.3
16955           tmp_sharedflag='-G' ;;
16956         *)
16957           tmp_sharedflag='-shared' ;;
16958         esac
16959         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16960
16961         if test $supports_anon_versioning = yes; then
16962           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16963   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16964   $echo "local: *; };" >> $output_objdir/$libname.ver~
16965           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16966         fi
16967         link_all_deplibs_GCJ=no
16968       else
16969         ld_shlibs_GCJ=no
16970       fi
16971       ;;
16972
16973     netbsd* | netbsdelf*-gnu)
16974       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16975         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16976         wlarc=
16977       else
16978         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16979         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16980       fi
16981       ;;
16982
16983     solaris*)
16984       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16985         ld_shlibs_GCJ=no
16986         cat <<EOF 1>&2
16987
16988 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16989 *** create shared libraries on Solaris systems.  Therefore, libtool
16990 *** is disabling shared libraries support.  We urge you to upgrade GNU
16991 *** binutils to release 2.9.1 or newer.  Another option is to modify
16992 *** your PATH or compiler configuration so that the native linker is
16993 *** used, and then restart.
16994
16995 EOF
16996       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16997         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16998         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16999       else
17000         ld_shlibs_GCJ=no
17001       fi
17002       ;;
17003
17004     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17005       case `$LD -v 2>&1` in
17006         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17007         ld_shlibs_GCJ=no
17008         cat <<_LT_EOF 1>&2
17009
17010 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17011 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17012 *** is disabling shared libraries support.  We urge you to upgrade GNU
17013 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17014 *** your PATH or compiler configuration so that the native linker is
17015 *** used, and then restart.
17016
17017 _LT_EOF
17018         ;;
17019         *)
17020           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17021             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17022             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17023             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17024           else
17025             ld_shlibs_GCJ=no
17026           fi
17027         ;;
17028       esac
17029       ;;
17030
17031     sunos4*)
17032       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17033       wlarc=
17034       hardcode_direct_GCJ=yes
17035       hardcode_shlibpath_var_GCJ=no
17036       ;;
17037
17038     *)
17039       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17040         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17041         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17042       else
17043         ld_shlibs_GCJ=no
17044       fi
17045       ;;
17046     esac
17047
17048     if test "$ld_shlibs_GCJ" = no; then
17049       runpath_var=
17050       hardcode_libdir_flag_spec_GCJ=
17051       export_dynamic_flag_spec_GCJ=
17052       whole_archive_flag_spec_GCJ=
17053     fi
17054   else
17055     # PORTME fill in a description of your system's linker (not GNU ld)
17056     case $host_os in
17057     aix3*)
17058       allow_undefined_flag_GCJ=unsupported
17059       always_export_symbols_GCJ=yes
17060       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'
17061       # Note: this linker hardcodes the directories in LIBPATH if there
17062       # are no directories specified by -L.
17063       hardcode_minus_L_GCJ=yes
17064       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17065         # Neither direct hardcoding nor static linking is supported with a
17066         # broken collect2.
17067         hardcode_direct_GCJ=unsupported
17068       fi
17069       ;;
17070
17071     aix4* | aix5*)
17072       if test "$host_cpu" = ia64; then
17073         # On IA64, the linker does run time linking by default, so we don't
17074         # have to do anything special.
17075         aix_use_runtimelinking=no
17076         exp_sym_flag='-Bexport'
17077         no_entry_flag=""
17078       else
17079         # If we're using GNU nm, then we don't want the "-C" option.
17080         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17081         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17082           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'
17083         else
17084           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'
17085         fi
17086         aix_use_runtimelinking=no
17087
17088         # Test if we are trying to use run time linking or normal
17089         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17090         # need to do runtime linking.
17091         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17092           for ld_flag in $LDFLAGS; do
17093           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17094             aix_use_runtimelinking=yes
17095             break
17096           fi
17097           done
17098           ;;
17099         esac
17100
17101         exp_sym_flag='-bexport'
17102         no_entry_flag='-bnoentry'
17103       fi
17104
17105       # When large executables or shared objects are built, AIX ld can
17106       # have problems creating the table of contents.  If linking a library
17107       # or program results in "error TOC overflow" add -mminimal-toc to
17108       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17109       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17110
17111       archive_cmds_GCJ=''
17112       hardcode_direct_GCJ=yes
17113       hardcode_libdir_separator_GCJ=':'
17114       link_all_deplibs_GCJ=yes
17115
17116       if test "$GCC" = yes; then
17117         case $host_os in aix4.[012]|aix4.[012].*)
17118         # We only want to do this on AIX 4.2 and lower, the check
17119         # below for broken collect2 doesn't work under 4.3+
17120           collect2name=`${CC} -print-prog-name=collect2`
17121           if test -f "$collect2name" && \
17122            strings "$collect2name" | grep resolve_lib_name >/dev/null
17123           then
17124           # We have reworked collect2
17125           :
17126           else
17127           # We have old collect2
17128           hardcode_direct_GCJ=unsupported
17129           # It fails to find uninstalled libraries when the uninstalled
17130           # path is not listed in the libpath.  Setting hardcode_minus_L
17131           # to unsupported forces relinking
17132           hardcode_minus_L_GCJ=yes
17133           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17134           hardcode_libdir_separator_GCJ=
17135           fi
17136           ;;
17137         esac
17138         shared_flag='-shared'
17139         if test "$aix_use_runtimelinking" = yes; then
17140           shared_flag="$shared_flag "'${wl}-G'
17141         fi
17142       else
17143         # not using gcc
17144         if test "$host_cpu" = ia64; then
17145         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17146         # chokes on -Wl,-G. The following line is correct:
17147           shared_flag='-G'
17148         else
17149           if test "$aix_use_runtimelinking" = yes; then
17150             shared_flag='${wl}-G'
17151           else
17152             shared_flag='${wl}-bM:SRE'
17153           fi
17154         fi
17155       fi
17156
17157       # It seems that -bexpall does not export symbols beginning with
17158       # underscore (_), so it is better to generate a list of symbols to export.
17159       always_export_symbols_GCJ=yes
17160       if test "$aix_use_runtimelinking" = yes; then
17161         # Warning - without using the other runtime loading flags (-brtl),
17162         # -berok will link without error, but may produce a broken library.
17163         allow_undefined_flag_GCJ='-berok'
17164        # Determine the default libpath from the value encoded in an empty executable.
17165        cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h.  */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h.  */
17171
17172 int
17173 main ()
17174 {
17175
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (ac_try="$ac_link"
17182 case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_link") 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } && {
17194          test -z "$ac_c_werror_flag" ||
17195          test ! -s conftest.err
17196        } && test -s conftest$ac_exeext &&
17197        $as_test_x conftest$ac_exeext; then
17198
17199 lt_aix_libpath_sed='
17200     /Import File Strings/,/^$/ {
17201         /^0/ {
17202             s/^0  *\(.*\)$/\1/
17203             p
17204         }
17205     }'
17206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17207 # Check for a 64-bit object if we didn't find anything.
17208 if test -z "$aix_libpath"; then
17209   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17210 fi
17211 else
17212   echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215
17216 fi
17217
17218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17219       conftest$ac_exeext conftest.$ac_ext
17220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17221
17222        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17223         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"
17224        else
17225         if test "$host_cpu" = ia64; then
17226           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17227           allow_undefined_flag_GCJ="-z nodefs"
17228           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"
17229         else
17230          # Determine the default libpath from the value encoded in an empty executable.
17231          cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237
17238 int
17239 main ()
17240 {
17241
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (ac_try="$ac_link"
17248 case "(($ac_try" in
17249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250   *) ac_try_echo=$ac_try;;
17251 esac
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253   (eval "$ac_link") 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } && {
17260          test -z "$ac_c_werror_flag" ||
17261          test ! -s conftest.err
17262        } && test -s conftest$ac_exeext &&
17263        $as_test_x conftest$ac_exeext; then
17264
17265 lt_aix_libpath_sed='
17266     /Import File Strings/,/^$/ {
17267         /^0/ {
17268             s/^0  *\(.*\)$/\1/
17269             p
17270         }
17271     }'
17272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17273 # Check for a 64-bit object if we didn't find anything.
17274 if test -z "$aix_libpath"; then
17275   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17276 fi
17277 else
17278   echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17280
17281
17282 fi
17283
17284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17285       conftest$ac_exeext conftest.$ac_ext
17286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17287
17288          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17289           # Warning - without using the other run time loading flags,
17290           # -berok will link without error, but may produce a broken library.
17291           no_undefined_flag_GCJ=' ${wl}-bernotok'
17292           allow_undefined_flag_GCJ=' ${wl}-berok'
17293           # Exported symbols can be pulled into shared objects from archives
17294           whole_archive_flag_spec_GCJ='$convenience'
17295           archive_cmds_need_lc_GCJ=yes
17296           # This is similar to how AIX traditionally builds its shared libraries.
17297           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'
17298         fi
17299       fi
17300       ;;
17301
17302     amigaos*)
17303       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)'
17304       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17305       hardcode_minus_L_GCJ=yes
17306       # see comment about different semantics on the GNU ld section
17307       ld_shlibs_GCJ=no
17308       ;;
17309
17310     bsdi[45]*)
17311       export_dynamic_flag_spec_GCJ=-rdynamic
17312       ;;
17313
17314     cygwin* | mingw* | pw32*)
17315       # When not using gcc, we currently assume that we are using
17316       # Microsoft Visual C++.
17317       # hardcode_libdir_flag_spec is actually meaningless, as there is
17318       # no search path for DLLs.
17319       hardcode_libdir_flag_spec_GCJ=' '
17320       allow_undefined_flag_GCJ=unsupported
17321       # Tell ltmain to make .lib files, not .a files.
17322       libext=lib
17323       # Tell ltmain to make .dll files, not .so files.
17324       shrext_cmds=".dll"
17325       # FIXME: Setting linknames here is a bad hack.
17326       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17327       # The linker will automatically build a .lib file if we build a DLL.
17328       old_archive_From_new_cmds_GCJ='true'
17329       # FIXME: Should let the user specify the lib program.
17330       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17331       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17332       enable_shared_with_static_runtimes_GCJ=yes
17333       ;;
17334
17335     darwin* | rhapsody*)
17336       case $host_os in
17337         rhapsody* | darwin1.[012])
17338          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17339          ;;
17340        *) # Darwin 1.3 on
17341          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17342            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17343          else
17344            case ${MACOSX_DEPLOYMENT_TARGET} in
17345              10.[012])
17346                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17347                ;;
17348              10.*)
17349                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17350                ;;
17351            esac
17352          fi
17353          ;;
17354       esac
17355       archive_cmds_need_lc_GCJ=no
17356       hardcode_direct_GCJ=no
17357       hardcode_automatic_GCJ=yes
17358       hardcode_shlibpath_var_GCJ=unsupported
17359       whole_archive_flag_spec_GCJ=''
17360       link_all_deplibs_GCJ=yes
17361     if test "$GCC" = yes ; then
17362         output_verbose_link_cmd='echo'
17363         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17364       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17365       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17366       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}'
17367       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}'
17368     else
17369       case $cc_basename in
17370         xlc*)
17371          output_verbose_link_cmd='echo'
17372          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17373          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17374           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17375          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17376           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}'
17377           ;;
17378        *)
17379          ld_shlibs_GCJ=no
17380           ;;
17381       esac
17382     fi
17383       ;;
17384
17385     dgux*)
17386       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17388       hardcode_shlibpath_var_GCJ=no
17389       ;;
17390
17391     freebsd1*)
17392       ld_shlibs_GCJ=no
17393       ;;
17394
17395     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17396     # support.  Future versions do this automatically, but an explicit c++rt0.o
17397     # does not break anything, and helps significantly (at the cost of a little
17398     # extra space).
17399     freebsd2.2*)
17400       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17401       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17402       hardcode_direct_GCJ=yes
17403       hardcode_shlibpath_var_GCJ=no
17404       ;;
17405
17406     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17407     freebsd2*)
17408       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17409       hardcode_direct_GCJ=yes
17410       hardcode_minus_L_GCJ=yes
17411       hardcode_shlibpath_var_GCJ=no
17412       ;;
17413
17414     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17415     freebsd* | dragonfly*)
17416       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17418       hardcode_direct_GCJ=yes
17419       hardcode_shlibpath_var_GCJ=no
17420       ;;
17421
17422     hpux9*)
17423       if test "$GCC" = yes; then
17424         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'
17425       else
17426         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'
17427       fi
17428       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17429       hardcode_libdir_separator_GCJ=:
17430       hardcode_direct_GCJ=yes
17431
17432       # hardcode_minus_L: Not really in the search PATH,
17433       # but as the default location of the library.
17434       hardcode_minus_L_GCJ=yes
17435       export_dynamic_flag_spec_GCJ='${wl}-E'
17436       ;;
17437
17438     hpux10*)
17439       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17440         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17441       else
17442         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17443       fi
17444       if test "$with_gnu_ld" = no; then
17445         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17446         hardcode_libdir_separator_GCJ=:
17447
17448         hardcode_direct_GCJ=yes
17449         export_dynamic_flag_spec_GCJ='${wl}-E'
17450
17451         # hardcode_minus_L: Not really in the search PATH,
17452         # but as the default location of the library.
17453         hardcode_minus_L_GCJ=yes
17454       fi
17455       ;;
17456
17457     hpux11*)
17458       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17459         case $host_cpu in
17460         hppa*64*)
17461           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17462           ;;
17463         ia64*)
17464           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17465           ;;
17466         *)
17467           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17468           ;;
17469         esac
17470       else
17471         case $host_cpu in
17472         hppa*64*)
17473           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17474           ;;
17475         ia64*)
17476           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17477           ;;
17478         *)
17479           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17480           ;;
17481         esac
17482       fi
17483       if test "$with_gnu_ld" = no; then
17484         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17485         hardcode_libdir_separator_GCJ=:
17486
17487         case $host_cpu in
17488         hppa*64*|ia64*)
17489           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17490           hardcode_direct_GCJ=no
17491           hardcode_shlibpath_var_GCJ=no
17492           ;;
17493         *)
17494           hardcode_direct_GCJ=yes
17495           export_dynamic_flag_spec_GCJ='${wl}-E'
17496
17497           # hardcode_minus_L: Not really in the search PATH,
17498           # but as the default location of the library.
17499           hardcode_minus_L_GCJ=yes
17500           ;;
17501         esac
17502       fi
17503       ;;
17504
17505     irix5* | irix6* | nonstopux*)
17506       if test "$GCC" = yes; then
17507         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'
17508       else
17509         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'
17510         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17511       fi
17512       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17513       hardcode_libdir_separator_GCJ=:
17514       link_all_deplibs_GCJ=yes
17515       ;;
17516
17517     netbsd* | netbsdelf*-gnu)
17518       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17519         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17520       else
17521         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17522       fi
17523       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17524       hardcode_direct_GCJ=yes
17525       hardcode_shlibpath_var_GCJ=no
17526       ;;
17527
17528     newsos6)
17529       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530       hardcode_direct_GCJ=yes
17531       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17532       hardcode_libdir_separator_GCJ=:
17533       hardcode_shlibpath_var_GCJ=no
17534       ;;
17535
17536     openbsd*)
17537       if test -f /usr/libexec/ld.so; then
17538         hardcode_direct_GCJ=yes
17539         hardcode_shlibpath_var_GCJ=no
17540         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17541           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17542           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17543           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17544           export_dynamic_flag_spec_GCJ='${wl}-E'
17545         else
17546           case $host_os in
17547            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17548              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17549              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17550              ;;
17551            *)
17552              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17553              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17554              ;;
17555           esac
17556         fi
17557       else
17558         ld_shlibs_GCJ=no
17559       fi
17560       ;;
17561
17562     os2*)
17563       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17564       hardcode_minus_L_GCJ=yes
17565       allow_undefined_flag_GCJ=unsupported
17566       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'
17567       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17568       ;;
17569
17570     osf3*)
17571       if test "$GCC" = yes; then
17572         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17573         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'
17574       else
17575         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17576         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'
17577       fi
17578       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17579       hardcode_libdir_separator_GCJ=:
17580       ;;
17581
17582     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17583       if test "$GCC" = yes; then
17584         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17585         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'
17586         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17587       else
17588         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17589         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'
17590         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~
17591         $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'
17592
17593         # Both c and cxx compiler support -rpath directly
17594         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17595       fi
17596       hardcode_libdir_separator_GCJ=:
17597       ;;
17598
17599     solaris*)
17600       no_undefined_flag_GCJ=' -z text'
17601       if test "$GCC" = yes; then
17602         wlarc='${wl}'
17603         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17604         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17605           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17606       else
17607         wlarc=''
17608         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17609         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17610         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17611       fi
17612       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17613       hardcode_shlibpath_var_GCJ=no
17614       case $host_os in
17615       solaris2.[0-5] | solaris2.[0-5].*) ;;
17616       *)
17617         # The compiler driver will combine and reorder linker options,
17618         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17619         # but is careful enough not to reorder.
17620         # Supported since Solaris 2.6 (maybe 2.5.1?)
17621         if test "$GCC" = yes; then
17622           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17623         else
17624           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17625         fi
17626         ;;
17627       esac
17628       link_all_deplibs_GCJ=yes
17629       ;;
17630
17631     sunos4*)
17632       if test "x$host_vendor" = xsequent; then
17633         # Use $CC to link under sequent, because it throws in some extra .o
17634         # files that make .init and .fini sections work.
17635         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17636       else
17637         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17638       fi
17639       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17640       hardcode_direct_GCJ=yes
17641       hardcode_minus_L_GCJ=yes
17642       hardcode_shlibpath_var_GCJ=no
17643       ;;
17644
17645     sysv4)
17646       case $host_vendor in
17647         sni)
17648           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649           hardcode_direct_GCJ=yes # is this really true???
17650         ;;
17651         siemens)
17652           ## LD is ld it makes a PLAMLIB
17653           ## CC just makes a GrossModule.
17654           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17655           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17656           hardcode_direct_GCJ=no
17657         ;;
17658         motorola)
17659           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17660           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17661         ;;
17662       esac
17663       runpath_var='LD_RUN_PATH'
17664       hardcode_shlibpath_var_GCJ=no
17665       ;;
17666
17667     sysv4.3*)
17668       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17669       hardcode_shlibpath_var_GCJ=no
17670       export_dynamic_flag_spec_GCJ='-Bexport'
17671       ;;
17672
17673     sysv4*MP*)
17674       if test -d /usr/nec; then
17675         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676         hardcode_shlibpath_var_GCJ=no
17677         runpath_var=LD_RUN_PATH
17678         hardcode_runpath_var=yes
17679         ld_shlibs_GCJ=yes
17680       fi
17681       ;;
17682
17683     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17684       no_undefined_flag_GCJ='${wl}-z,text'
17685       archive_cmds_need_lc_GCJ=no
17686       hardcode_shlibpath_var_GCJ=no
17687       runpath_var='LD_RUN_PATH'
17688
17689       if test "$GCC" = yes; then
17690         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17691         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17692       else
17693         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17694         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17695       fi
17696       ;;
17697
17698     sysv5* | sco3.2v5* | sco5v6*)
17699       # Note: We can NOT use -z defs as we might desire, because we do not
17700       # link with -lc, and that would cause any symbols used from libc to
17701       # always be unresolved, which means just about no library would
17702       # ever link correctly.  If we're not using GNU ld we use -z text
17703       # though, which does catch some bad symbols but isn't as heavy-handed
17704       # as -z defs.
17705       no_undefined_flag_GCJ='${wl}-z,text'
17706       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17707       archive_cmds_need_lc_GCJ=no
17708       hardcode_shlibpath_var_GCJ=no
17709       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17710       hardcode_libdir_separator_GCJ=':'
17711       link_all_deplibs_GCJ=yes
17712       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17713       runpath_var='LD_RUN_PATH'
17714
17715       if test "$GCC" = yes; then
17716         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17717         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17718       else
17719         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17720         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17721       fi
17722       ;;
17723
17724     uts4*)
17725       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17727       hardcode_shlibpath_var_GCJ=no
17728       ;;
17729
17730     *)
17731       ld_shlibs_GCJ=no
17732       ;;
17733     esac
17734   fi
17735
17736 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17737 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17738 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17739
17740 #
17741 # Do we need to explicitly link libc?
17742 #
17743 case "x$archive_cmds_need_lc_GCJ" in
17744 x|xyes)
17745   # Assume -lc should be added
17746   archive_cmds_need_lc_GCJ=yes
17747
17748   if test "$enable_shared" = yes && test "$GCC" = yes; then
17749     case $archive_cmds_GCJ in
17750     *'~'*)
17751       # FIXME: we may have to deal with multi-command sequences.
17752       ;;
17753     '$CC '*)
17754       # Test whether the compiler implicitly links with -lc since on some
17755       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17756       # to ld, don't add -lc before -lgcc.
17757       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17758 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17759       $rm conftest*
17760       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17761
17762       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763   (eval $ac_compile) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); } 2>conftest.err; then
17767         soname=conftest
17768         lib=conftest
17769         libobjs=conftest.$ac_objext
17770         deplibs=
17771         wl=$lt_prog_compiler_wl_GCJ
17772         pic_flag=$lt_prog_compiler_pic_GCJ
17773         compiler_flags=-v
17774         linker_flags=-v
17775         verstring=
17776         output_objdir=.
17777         libname=conftest
17778         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17779         allow_undefined_flag_GCJ=
17780         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17781   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); }
17785         then
17786           archive_cmds_need_lc_GCJ=no
17787         else
17788           archive_cmds_need_lc_GCJ=yes
17789         fi
17790         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17791       else
17792         cat conftest.err 1>&5
17793       fi
17794       $rm conftest*
17795       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17796 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17797       ;;
17798     esac
17799   fi
17800   ;;
17801 esac
17802
17803 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17804 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17805 library_names_spec=
17806 libname_spec='lib$name'
17807 soname_spec=
17808 shrext_cmds=".so"
17809 postinstall_cmds=
17810 postuninstall_cmds=
17811 finish_cmds=
17812 finish_eval=
17813 shlibpath_var=
17814 shlibpath_overrides_runpath=unknown
17815 version_type=none
17816 dynamic_linker="$host_os ld.so"
17817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17818
17819 need_lib_prefix=unknown
17820 hardcode_into_libs=no
17821
17822 # when you set need_version to no, make sure it does not cause -set_version
17823 # flags to be left without arguments
17824 need_version=unknown
17825
17826 case $host_os in
17827 aix3*)
17828   version_type=linux
17829   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17830   shlibpath_var=LIBPATH
17831
17832   # AIX 3 has no versioning support, so we append a major version to the name.
17833   soname_spec='${libname}${release}${shared_ext}$major'
17834   ;;
17835
17836 aix4* | aix5*)
17837   version_type=linux
17838   need_lib_prefix=no
17839   need_version=no
17840   hardcode_into_libs=yes
17841   if test "$host_cpu" = ia64; then
17842     # AIX 5 supports IA64
17843     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17844     shlibpath_var=LD_LIBRARY_PATH
17845   else
17846     # With GCC up to 2.95.x, collect2 would create an import file
17847     # for dependence libraries.  The import file would start with
17848     # the line `#! .'.  This would cause the generated library to
17849     # depend on `.', always an invalid library.  This was fixed in
17850     # development snapshots of GCC prior to 3.0.
17851     case $host_os in
17852       aix4 | aix4.[01] | aix4.[01].*)
17853       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17854            echo ' yes '
17855            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17856         :
17857       else
17858         can_build_shared=no
17859       fi
17860       ;;
17861     esac
17862     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17863     # soname into executable. Probably we can add versioning support to
17864     # collect2, so additional links can be useful in future.
17865     if test "$aix_use_runtimelinking" = yes; then
17866       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17867       # instead of lib<name>.a to let people know that these are not
17868       # typical AIX shared libraries.
17869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870     else
17871       # We preserve .a as extension for shared libraries through AIX4.2
17872       # and later when we are not doing run time linking.
17873       library_names_spec='${libname}${release}.a $libname.a'
17874       soname_spec='${libname}${release}${shared_ext}$major'
17875     fi
17876     shlibpath_var=LIBPATH
17877   fi
17878   ;;
17879
17880 amigaos*)
17881   library_names_spec='$libname.ixlibrary $libname.a'
17882   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17883   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'
17884   ;;
17885
17886 beos*)
17887   library_names_spec='${libname}${shared_ext}'
17888   dynamic_linker="$host_os ld.so"
17889   shlibpath_var=LIBRARY_PATH
17890   ;;
17891
17892 bsdi[45]*)
17893   version_type=linux
17894   need_version=no
17895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896   soname_spec='${libname}${release}${shared_ext}$major'
17897   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17898   shlibpath_var=LD_LIBRARY_PATH
17899   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17900   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17901   # the default ld.so.conf also contains /usr/contrib/lib and
17902   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17903   # libtool to hard-code these into programs
17904   ;;
17905
17906 cygwin* | mingw* | pw32*)
17907   version_type=windows
17908   shrext_cmds=".dll"
17909   need_version=no
17910   need_lib_prefix=no
17911
17912   case $GCC,$host_os in
17913   yes,cygwin* | yes,mingw* | yes,pw32*)
17914     library_names_spec='$libname.dll.a'
17915     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17916     postinstall_cmds='base_file=`basename \${file}`~
17917       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17918       dldir=$destdir/`dirname \$dlpath`~
17919       test -d \$dldir || mkdir -p \$dldir~
17920       $install_prog $dir/$dlname \$dldir/$dlname~
17921       chmod a+x \$dldir/$dlname'
17922     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17923       dlpath=$dir/\$dldll~
17924        $rm \$dlpath'
17925     shlibpath_overrides_runpath=yes
17926
17927     case $host_os in
17928     cygwin*)
17929       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17930       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17931       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17932       ;;
17933     mingw*)
17934       # MinGW DLLs use traditional 'lib' prefix
17935       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17936       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17937       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17938         # It is most probably a Windows format PATH printed by
17939         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17940         # path with ; separators, and with drive letters. We can handle the
17941         # drive letters (cygwin fileutils understands them), so leave them,
17942         # especially as we might pass files found there to a mingw objdump,
17943         # which wouldn't understand a cygwinified path. Ahh.
17944         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17945       else
17946         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17947       fi
17948       ;;
17949     pw32*)
17950       # pw32 DLLs use 'pw' prefix rather than 'lib'
17951       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17952       ;;
17953     esac
17954     ;;
17955
17956   *)
17957     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17958     ;;
17959   esac
17960   dynamic_linker='Win32 ld.exe'
17961   # FIXME: first we should search . and the directory the executable is in
17962   shlibpath_var=PATH
17963   ;;
17964
17965 darwin* | rhapsody*)
17966   dynamic_linker="$host_os dyld"
17967   version_type=darwin
17968   need_lib_prefix=no
17969   need_version=no
17970   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17971   soname_spec='${libname}${release}${major}$shared_ext'
17972   shlibpath_overrides_runpath=yes
17973   shlibpath_var=DYLD_LIBRARY_PATH
17974   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17975
17976   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17977   ;;
17978
17979 dgux*)
17980   version_type=linux
17981   need_lib_prefix=no
17982   need_version=no
17983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17984   soname_spec='${libname}${release}${shared_ext}$major'
17985   shlibpath_var=LD_LIBRARY_PATH
17986   ;;
17987
17988 freebsd1*)
17989   dynamic_linker=no
17990   ;;
17991
17992 freebsd* | dragonfly*)
17993   # DragonFly does not have aout.  When/if they implement a new
17994   # versioning mechanism, adjust this.
17995   if test -x /usr/bin/objformat; then
17996     objformat=`/usr/bin/objformat`
17997   else
17998     case $host_os in
17999     freebsd[123]*) objformat=aout ;;
18000     *) objformat=elf ;;
18001     esac
18002   fi
18003   version_type=freebsd-$objformat
18004   case $version_type in
18005     freebsd-elf*)
18006       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18007       need_version=no
18008       need_lib_prefix=no
18009       ;;
18010     freebsd-*)
18011       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18012       need_version=yes
18013       ;;
18014   esac
18015   shlibpath_var=LD_LIBRARY_PATH
18016   case $host_os in
18017   freebsd2*)
18018     shlibpath_overrides_runpath=yes
18019     ;;
18020   freebsd3.[01]* | freebsdelf3.[01]*)
18021     shlibpath_overrides_runpath=yes
18022     hardcode_into_libs=yes
18023     ;;
18024   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18025   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18026     shlibpath_overrides_runpath=no
18027     hardcode_into_libs=yes
18028     ;;
18029   *) # from 4.6 on, and DragonFly
18030     shlibpath_overrides_runpath=yes
18031     hardcode_into_libs=yes
18032     ;;
18033   esac
18034   ;;
18035
18036 gnu*)
18037   version_type=linux
18038   need_lib_prefix=no
18039   need_version=no
18040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18041   soname_spec='${libname}${release}${shared_ext}$major'
18042   shlibpath_var=LD_LIBRARY_PATH
18043   hardcode_into_libs=yes
18044   ;;
18045
18046 hpux9* | hpux10* | hpux11*)
18047   # Give a soname corresponding to the major version so that dld.sl refuses to
18048   # link against other versions.
18049   version_type=sunos
18050   need_lib_prefix=no
18051   need_version=no
18052   case $host_cpu in
18053   ia64*)
18054     shrext_cmds='.so'
18055     hardcode_into_libs=yes
18056     dynamic_linker="$host_os dld.so"
18057     shlibpath_var=LD_LIBRARY_PATH
18058     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060     soname_spec='${libname}${release}${shared_ext}$major'
18061     if test "X$HPUX_IA64_MODE" = X32; then
18062       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18063     else
18064       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18065     fi
18066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18067     ;;
18068    hppa*64*)
18069      shrext_cmds='.sl'
18070      hardcode_into_libs=yes
18071      dynamic_linker="$host_os dld.sl"
18072      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18073      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18074      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075      soname_spec='${libname}${release}${shared_ext}$major'
18076      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18077      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18078      ;;
18079    *)
18080     shrext_cmds='.sl'
18081     dynamic_linker="$host_os dld.sl"
18082     shlibpath_var=SHLIB_PATH
18083     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085     soname_spec='${libname}${release}${shared_ext}$major'
18086     ;;
18087   esac
18088   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18089   postinstall_cmds='chmod 555 $lib'
18090   ;;
18091
18092 interix[3-9]*)
18093   version_type=linux
18094   need_lib_prefix=no
18095   need_version=no
18096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18097   soname_spec='${libname}${release}${shared_ext}$major'
18098   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18099   shlibpath_var=LD_LIBRARY_PATH
18100   shlibpath_overrides_runpath=no
18101   hardcode_into_libs=yes
18102   ;;
18103
18104 irix5* | irix6* | nonstopux*)
18105   case $host_os in
18106     nonstopux*) version_type=nonstopux ;;
18107     *)
18108         if test "$lt_cv_prog_gnu_ld" = yes; then
18109                 version_type=linux
18110         else
18111                 version_type=irix
18112         fi ;;
18113   esac
18114   need_lib_prefix=no
18115   need_version=no
18116   soname_spec='${libname}${release}${shared_ext}$major'
18117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18118   case $host_os in
18119   irix5* | nonstopux*)
18120     libsuff= shlibsuff=
18121     ;;
18122   *)
18123     case $LD in # libtool.m4 will add one of these switches to LD
18124     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18125       libsuff= shlibsuff= libmagic=32-bit;;
18126     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18127       libsuff=32 shlibsuff=N32 libmagic=N32;;
18128     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18129       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18130     *) libsuff= shlibsuff= libmagic=never-match;;
18131     esac
18132     ;;
18133   esac
18134   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18135   shlibpath_overrides_runpath=no
18136   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18137   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18138   hardcode_into_libs=yes
18139   ;;
18140
18141 # No shared lib support for Linux oldld, aout, or coff.
18142 linux*oldld* | linux*aout* | linux*coff*)
18143   dynamic_linker=no
18144   ;;
18145
18146 # This must be Linux ELF.
18147 linux* | k*bsd*-gnu)
18148   version_type=linux
18149   need_lib_prefix=no
18150   need_version=no
18151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152   soname_spec='${libname}${release}${shared_ext}$major'
18153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18154   shlibpath_var=LD_LIBRARY_PATH
18155   shlibpath_overrides_runpath=no
18156   # This implies no fast_install, which is unacceptable.
18157   # Some rework will be needed to allow for fast_install
18158   # before this can be enabled.
18159   hardcode_into_libs=yes
18160
18161   # Append ld.so.conf contents to the search path
18162   if test -f /etc/ld.so.conf; then
18163     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18164     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18165   fi
18166
18167   # We used to test for /lib/ld.so.1 and disable shared libraries on
18168   # powerpc, because MkLinux only supported shared libraries with the
18169   # GNU dynamic linker.  Since this was broken with cross compilers,
18170   # most powerpc-linux boxes support dynamic linking these days and
18171   # people can always --disable-shared, the test was removed, and we
18172   # assume the GNU/Linux dynamic linker is in use.
18173   dynamic_linker='GNU/Linux ld.so'
18174   ;;
18175
18176 netbsdelf*-gnu)
18177   version_type=linux
18178   need_lib_prefix=no
18179   need_version=no
18180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18181   soname_spec='${libname}${release}${shared_ext}$major'
18182   shlibpath_var=LD_LIBRARY_PATH
18183   shlibpath_overrides_runpath=no
18184   hardcode_into_libs=yes
18185   dynamic_linker='NetBSD ld.elf_so'
18186   ;;
18187
18188 netbsd*)
18189   version_type=sunos
18190   need_lib_prefix=no
18191   need_version=no
18192   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18194     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18195     dynamic_linker='NetBSD (a.out) ld.so'
18196   else
18197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18198     soname_spec='${libname}${release}${shared_ext}$major'
18199     dynamic_linker='NetBSD ld.elf_so'
18200   fi
18201   shlibpath_var=LD_LIBRARY_PATH
18202   shlibpath_overrides_runpath=yes
18203   hardcode_into_libs=yes
18204   ;;
18205
18206 newsos6)
18207   version_type=linux
18208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18209   shlibpath_var=LD_LIBRARY_PATH
18210   shlibpath_overrides_runpath=yes
18211   ;;
18212
18213 nto-qnx*)
18214   version_type=linux
18215   need_lib_prefix=no
18216   need_version=no
18217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18218   soname_spec='${libname}${release}${shared_ext}$major'
18219   shlibpath_var=LD_LIBRARY_PATH
18220   shlibpath_overrides_runpath=yes
18221   ;;
18222
18223 openbsd*)
18224   version_type=sunos
18225   sys_lib_dlsearch_path_spec="/usr/lib"
18226   need_lib_prefix=no
18227   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18228   case $host_os in
18229     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18230     *)                         need_version=no  ;;
18231   esac
18232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18234   shlibpath_var=LD_LIBRARY_PATH
18235   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18236     case $host_os in
18237       openbsd2.[89] | openbsd2.[89].*)
18238         shlibpath_overrides_runpath=no
18239         ;;
18240       *)
18241         shlibpath_overrides_runpath=yes
18242         ;;
18243       esac
18244   else
18245     shlibpath_overrides_runpath=yes
18246   fi
18247   ;;
18248
18249 os2*)
18250   libname_spec='$name'
18251   shrext_cmds=".dll"
18252   need_lib_prefix=no
18253   library_names_spec='$libname${shared_ext} $libname.a'
18254   dynamic_linker='OS/2 ld.exe'
18255   shlibpath_var=LIBPATH
18256   ;;
18257
18258 osf3* | osf4* | osf5*)
18259   version_type=osf
18260   need_lib_prefix=no
18261   need_version=no
18262   soname_spec='${libname}${release}${shared_ext}$major'
18263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18264   shlibpath_var=LD_LIBRARY_PATH
18265   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18266   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18267   ;;
18268
18269 rdos*)
18270   dynamic_linker=no
18271   ;;
18272
18273 solaris*)
18274   version_type=linux
18275   need_lib_prefix=no
18276   need_version=no
18277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278   soname_spec='${libname}${release}${shared_ext}$major'
18279   shlibpath_var=LD_LIBRARY_PATH
18280   shlibpath_overrides_runpath=yes
18281   hardcode_into_libs=yes
18282   # ldd complains unless libraries are executable
18283   postinstall_cmds='chmod +x $lib'
18284   ;;
18285
18286 sunos4*)
18287   version_type=sunos
18288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18289   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18290   shlibpath_var=LD_LIBRARY_PATH
18291   shlibpath_overrides_runpath=yes
18292   if test "$with_gnu_ld" = yes; then
18293     need_lib_prefix=no
18294   fi
18295   need_version=yes
18296   ;;
18297
18298 sysv4 | sysv4.3*)
18299   version_type=linux
18300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301   soname_spec='${libname}${release}${shared_ext}$major'
18302   shlibpath_var=LD_LIBRARY_PATH
18303   case $host_vendor in
18304     sni)
18305       shlibpath_overrides_runpath=no
18306       need_lib_prefix=no
18307       export_dynamic_flag_spec='${wl}-Blargedynsym'
18308       runpath_var=LD_RUN_PATH
18309       ;;
18310     siemens)
18311       need_lib_prefix=no
18312       ;;
18313     motorola)
18314       need_lib_prefix=no
18315       need_version=no
18316       shlibpath_overrides_runpath=no
18317       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18318       ;;
18319   esac
18320   ;;
18321
18322 sysv4*MP*)
18323   if test -d /usr/nec ;then
18324     version_type=linux
18325     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18326     soname_spec='$libname${shared_ext}.$major'
18327     shlibpath_var=LD_LIBRARY_PATH
18328   fi
18329   ;;
18330
18331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18332   version_type=freebsd-elf
18333   need_lib_prefix=no
18334   need_version=no
18335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18336   soname_spec='${libname}${release}${shared_ext}$major'
18337   shlibpath_var=LD_LIBRARY_PATH
18338   hardcode_into_libs=yes
18339   if test "$with_gnu_ld" = yes; then
18340     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18341     shlibpath_overrides_runpath=no
18342   else
18343     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18344     shlibpath_overrides_runpath=yes
18345     case $host_os in
18346       sco3.2v5*)
18347         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18348         ;;
18349     esac
18350   fi
18351   sys_lib_dlsearch_path_spec='/usr/lib'
18352   ;;
18353
18354 uts4*)
18355   version_type=linux
18356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357   soname_spec='${libname}${release}${shared_ext}$major'
18358   shlibpath_var=LD_LIBRARY_PATH
18359   ;;
18360
18361 *)
18362   dynamic_linker=no
18363   ;;
18364 esac
18365 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18366 echo "${ECHO_T}$dynamic_linker" >&6; }
18367 test "$dynamic_linker" = no && can_build_shared=no
18368
18369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18370 if test "$GCC" = yes; then
18371   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18372 fi
18373
18374 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18375 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18376 hardcode_action_GCJ=
18377 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18378    test -n "$runpath_var_GCJ" || \
18379    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18380
18381   # We can hardcode non-existant directories.
18382   if test "$hardcode_direct_GCJ" != no &&
18383      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18384      # have to relink, otherwise we might link with an installed library
18385      # when we should be linking with a yet-to-be-installed one
18386      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18387      test "$hardcode_minus_L_GCJ" != no; then
18388     # Linking always hardcodes the temporary library directory.
18389     hardcode_action_GCJ=relink
18390   else
18391     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18392     hardcode_action_GCJ=immediate
18393   fi
18394 else
18395   # We cannot hardcode anything, or else we can only hardcode existing
18396   # directories.
18397   hardcode_action_GCJ=unsupported
18398 fi
18399 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18400 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18401
18402 if test "$hardcode_action_GCJ" = relink; then
18403   # Fast installation is not supported
18404   enable_fast_install=no
18405 elif test "$shlibpath_overrides_runpath" = yes ||
18406      test "$enable_shared" = no; then
18407   # Fast installation is not necessary
18408   enable_fast_install=needless
18409 fi
18410
18411
18412 # The else clause should only fire when bootstrapping the
18413 # libtool distribution, otherwise you forgot to ship ltmain.sh
18414 # with your package, and you will get complaints that there are
18415 # no rules to generate ltmain.sh.
18416 if test -f "$ltmain"; then
18417   # See if we are running on zsh, and set the options which allow our commands through
18418   # without removal of \ escapes.
18419   if test -n "${ZSH_VERSION+set}" ; then
18420     setopt NO_GLOB_SUBST
18421   fi
18422   # Now quote all the things that may contain metacharacters while being
18423   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18424   # variables and quote the copies for generation of the libtool script.
18425   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18426     SED SHELL STRIP \
18427     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18428     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18429     deplibs_check_method reload_flag reload_cmds need_locks \
18430     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18431     lt_cv_sys_global_symbol_to_c_name_address \
18432     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18433     old_postinstall_cmds old_postuninstall_cmds \
18434     compiler_GCJ \
18435     CC_GCJ \
18436     LD_GCJ \
18437     lt_prog_compiler_wl_GCJ \
18438     lt_prog_compiler_pic_GCJ \
18439     lt_prog_compiler_static_GCJ \
18440     lt_prog_compiler_no_builtin_flag_GCJ \
18441     export_dynamic_flag_spec_GCJ \
18442     thread_safe_flag_spec_GCJ \
18443     whole_archive_flag_spec_GCJ \
18444     enable_shared_with_static_runtimes_GCJ \
18445     old_archive_cmds_GCJ \
18446     old_archive_from_new_cmds_GCJ \
18447     predep_objects_GCJ \
18448     postdep_objects_GCJ \
18449     predeps_GCJ \
18450     postdeps_GCJ \
18451     compiler_lib_search_path_GCJ \
18452     archive_cmds_GCJ \
18453     archive_expsym_cmds_GCJ \
18454     postinstall_cmds_GCJ \
18455     postuninstall_cmds_GCJ \
18456     old_archive_from_expsyms_cmds_GCJ \
18457     allow_undefined_flag_GCJ \
18458     no_undefined_flag_GCJ \
18459     export_symbols_cmds_GCJ \
18460     hardcode_libdir_flag_spec_GCJ \
18461     hardcode_libdir_flag_spec_ld_GCJ \
18462     hardcode_libdir_separator_GCJ \
18463     hardcode_automatic_GCJ \
18464     module_cmds_GCJ \
18465     module_expsym_cmds_GCJ \
18466     lt_cv_prog_compiler_c_o_GCJ \
18467     fix_srcfile_path_GCJ \
18468     exclude_expsyms_GCJ \
18469     include_expsyms_GCJ; do
18470
18471     case $var in
18472     old_archive_cmds_GCJ | \
18473     old_archive_from_new_cmds_GCJ | \
18474     archive_cmds_GCJ | \
18475     archive_expsym_cmds_GCJ | \
18476     module_cmds_GCJ | \
18477     module_expsym_cmds_GCJ | \
18478     old_archive_from_expsyms_cmds_GCJ | \
18479     export_symbols_cmds_GCJ | \
18480     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18481     postinstall_cmds | postuninstall_cmds | \
18482     old_postinstall_cmds | old_postuninstall_cmds | \
18483     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18484       # Double-quote double-evaled strings.
18485       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18486       ;;
18487     *)
18488       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18489       ;;
18490     esac
18491   done
18492
18493   case $lt_echo in
18494   *'\$0 --fallback-echo"')
18495     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18496     ;;
18497   esac
18498
18499 cfgfile="$ofile"
18500
18501   cat <<__EOF__ >> "$cfgfile"
18502 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18503
18504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18505
18506 # Shell to use when invoking shell scripts.
18507 SHELL=$lt_SHELL
18508
18509 # Whether or not to build shared libraries.
18510 build_libtool_libs=$enable_shared
18511
18512 # Whether or not to build static libraries.
18513 build_old_libs=$enable_static
18514
18515 # Whether or not to add -lc for building shared libraries.
18516 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18517
18518 # Whether or not to disallow shared libs when runtime libs are static
18519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18520
18521 # Whether or not to optimize for fast installation.
18522 fast_install=$enable_fast_install
18523
18524 # The host system.
18525 host_alias=$host_alias
18526 host=$host
18527 host_os=$host_os
18528
18529 # The build system.
18530 build_alias=$build_alias
18531 build=$build
18532 build_os=$build_os
18533
18534 # An echo program that does not interpret backslashes.
18535 echo=$lt_echo
18536
18537 # The archiver.
18538 AR=$lt_AR
18539 AR_FLAGS=$lt_AR_FLAGS
18540
18541 # A C compiler.
18542 LTCC=$lt_LTCC
18543
18544 # LTCC compiler flags.
18545 LTCFLAGS=$lt_LTCFLAGS
18546
18547 # A language-specific compiler.
18548 CC=$lt_compiler_GCJ
18549
18550 # Is the compiler the GNU C compiler?
18551 with_gcc=$GCC_GCJ
18552
18553 # An ERE matcher.
18554 EGREP=$lt_EGREP
18555
18556 # The linker used to build libraries.
18557 LD=$lt_LD_GCJ
18558
18559 # Whether we need hard or soft links.
18560 LN_S=$lt_LN_S
18561
18562 # A BSD-compatible nm program.
18563 NM=$lt_NM
18564
18565 # A symbol stripping program
18566 STRIP=$lt_STRIP
18567
18568 # Used to examine libraries when file_magic_cmd begins "file"
18569 MAGIC_CMD=$MAGIC_CMD
18570
18571 # Used on cygwin: DLL creation program.
18572 DLLTOOL="$DLLTOOL"
18573
18574 # Used on cygwin: object dumper.
18575 OBJDUMP="$OBJDUMP"
18576
18577 # Used on cygwin: assembler.
18578 AS="$AS"
18579
18580 # The name of the directory that contains temporary libtool files.
18581 objdir=$objdir
18582
18583 # How to create reloadable object files.
18584 reload_flag=$lt_reload_flag
18585 reload_cmds=$lt_reload_cmds
18586
18587 # How to pass a linker flag through the compiler.
18588 wl=$lt_lt_prog_compiler_wl_GCJ
18589
18590 # Object file suffix (normally "o").
18591 objext="$ac_objext"
18592
18593 # Old archive suffix (normally "a").
18594 libext="$libext"
18595
18596 # Shared library suffix (normally ".so").
18597 shrext_cmds='$shrext_cmds'
18598
18599 # Executable file suffix (normally "").
18600 exeext="$exeext"
18601
18602 # Additional compiler flags for building library objects.
18603 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18604 pic_mode=$pic_mode
18605
18606 # What is the maximum length of a command?
18607 max_cmd_len=$lt_cv_sys_max_cmd_len
18608
18609 # Does compiler simultaneously support -c and -o options?
18610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18611
18612 # Must we lock files when doing compilation?
18613 need_locks=$lt_need_locks
18614
18615 # Do we need the lib prefix for modules?
18616 need_lib_prefix=$need_lib_prefix
18617
18618 # Do we need a version for libraries?
18619 need_version=$need_version
18620
18621 # Whether dlopen is supported.
18622 dlopen_support=$enable_dlopen
18623
18624 # Whether dlopen of programs is supported.
18625 dlopen_self=$enable_dlopen_self
18626
18627 # Whether dlopen of statically linked programs is supported.
18628 dlopen_self_static=$enable_dlopen_self_static
18629
18630 # Compiler flag to prevent dynamic linking.
18631 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18632
18633 # Compiler flag to turn off builtin functions.
18634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18635
18636 # Compiler flag to allow reflexive dlopens.
18637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18638
18639 # Compiler flag to generate shared objects directly from archives.
18640 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18641
18642 # Compiler flag to generate thread-safe objects.
18643 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18644
18645 # Library versioning type.
18646 version_type=$version_type
18647
18648 # Format of library name prefix.
18649 libname_spec=$lt_libname_spec
18650
18651 # List of archive names.  First name is the real one, the rest are links.
18652 # The last name is the one that the linker finds with -lNAME.
18653 library_names_spec=$lt_library_names_spec
18654
18655 # The coded name of the library, if different from the real name.
18656 soname_spec=$lt_soname_spec
18657
18658 # Commands used to build and install an old-style archive.
18659 RANLIB=$lt_RANLIB
18660 old_archive_cmds=$lt_old_archive_cmds_GCJ
18661 old_postinstall_cmds=$lt_old_postinstall_cmds
18662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18663
18664 # Create an old-style archive from a shared archive.
18665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18666
18667 # Create a temporary old-style archive to link instead of a shared archive.
18668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18669
18670 # Commands used to build and install a shared archive.
18671 archive_cmds=$lt_archive_cmds_GCJ
18672 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18673 postinstall_cmds=$lt_postinstall_cmds
18674 postuninstall_cmds=$lt_postuninstall_cmds
18675
18676 # Commands used to build a loadable module (assumed same as above if empty)
18677 module_cmds=$lt_module_cmds_GCJ
18678 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18679
18680 # Commands to strip libraries.
18681 old_striplib=$lt_old_striplib
18682 striplib=$lt_striplib
18683
18684 # Dependencies to place before the objects being linked to create a
18685 # shared library.
18686 predep_objects=$lt_predep_objects_GCJ
18687
18688 # Dependencies to place after the objects being linked to create a
18689 # shared library.
18690 postdep_objects=$lt_postdep_objects_GCJ
18691
18692 # Dependencies to place before the objects being linked to create a
18693 # shared library.
18694 predeps=$lt_predeps_GCJ
18695
18696 # Dependencies to place after the objects being linked to create a
18697 # shared library.
18698 postdeps=$lt_postdeps_GCJ
18699
18700 # The library search path used internally by the compiler when linking
18701 # a shared library.
18702 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18703
18704 # Method to check whether dependent libraries are shared objects.
18705 deplibs_check_method=$lt_deplibs_check_method
18706
18707 # Command to use when deplibs_check_method == file_magic.
18708 file_magic_cmd=$lt_file_magic_cmd
18709
18710 # Flag that allows shared libraries with undefined symbols to be built.
18711 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18712
18713 # Flag that forces no undefined symbols.
18714 no_undefined_flag=$lt_no_undefined_flag_GCJ
18715
18716 # Commands used to finish a libtool library installation in a directory.
18717 finish_cmds=$lt_finish_cmds
18718
18719 # Same as above, but a single script fragment to be evaled but not shown.
18720 finish_eval=$lt_finish_eval
18721
18722 # Take the output of nm and produce a listing of raw symbols and C names.
18723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18724
18725 # Transform the output of nm in a proper C declaration
18726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18727
18728 # Transform the output of nm in a C name address pair
18729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18730
18731 # This is the shared library runtime path variable.
18732 runpath_var=$runpath_var
18733
18734 # This is the shared library path variable.
18735 shlibpath_var=$shlibpath_var
18736
18737 # Is shlibpath searched before the hard-coded library search path?
18738 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18739
18740 # How to hardcode a shared library path into an executable.
18741 hardcode_action=$hardcode_action_GCJ
18742
18743 # Whether we should hardcode library paths into libraries.
18744 hardcode_into_libs=$hardcode_into_libs
18745
18746 # Flag to hardcode \$libdir into a binary during linking.
18747 # This must work even if \$libdir does not exist.
18748 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18749
18750 # If ld is used when linking, flag to hardcode \$libdir into
18751 # a binary during linking. This must work even if \$libdir does
18752 # not exist.
18753 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18754
18755 # Whether we need a single -rpath flag with a separated argument.
18756 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18757
18758 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18759 # resulting binary.
18760 hardcode_direct=$hardcode_direct_GCJ
18761
18762 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18763 # resulting binary.
18764 hardcode_minus_L=$hardcode_minus_L_GCJ
18765
18766 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18767 # the resulting binary.
18768 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18769
18770 # Set to yes if building a shared library automatically hardcodes DIR into the library
18771 # and all subsequent libraries and executables linked against it.
18772 hardcode_automatic=$hardcode_automatic_GCJ
18773
18774 # Variables whose values should be saved in libtool wrapper scripts and
18775 # restored at relink time.
18776 variables_saved_for_relink="$variables_saved_for_relink"
18777
18778 # Whether libtool must link a program against all its dependency libraries.
18779 link_all_deplibs=$link_all_deplibs_GCJ
18780
18781 # Compile-time system search path for libraries
18782 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18783
18784 # Run-time system search path for libraries
18785 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18786
18787 # Fix the shell variable \$srcfile for the compiler.
18788 fix_srcfile_path=$lt_fix_srcfile_path
18789
18790 # Set to yes if exported symbols are required.
18791 always_export_symbols=$always_export_symbols_GCJ
18792
18793 # The commands to list exported symbols.
18794 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18795
18796 # The commands to extract the exported symbol list from a shared archive.
18797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18798
18799 # Symbols that should not be listed in the preloaded symbols.
18800 exclude_expsyms=$lt_exclude_expsyms_GCJ
18801
18802 # Symbols that must always be exported.
18803 include_expsyms=$lt_include_expsyms_GCJ
18804
18805 # ### END LIBTOOL TAG CONFIG: $tagname
18806
18807 __EOF__
18808
18809
18810 else
18811   # If there is no Makefile yet, we rely on a make rule to execute
18812   # `config.status --recheck' to rerun these tests and create the
18813   # libtool script then.
18814   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18815   if test -f "$ltmain_in"; then
18816     test -f Makefile && make "$ltmain"
18817   fi
18818 fi
18819
18820
18821 ac_ext=c
18822 ac_cpp='$CPP $CPPFLAGS'
18823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18826
18827 CC="$lt_save_CC"
18828
18829         else
18830           tagname=""
18831         fi
18832         ;;
18833
18834       RC)
18835
18836
18837 # Source file extension for RC test sources.
18838 ac_ext=rc
18839
18840 # Object file extension for compiled RC test sources.
18841 objext=o
18842 objext_RC=$objext
18843
18844 # Code to be used in simple compile tests
18845 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18846
18847 # Code to be used in simple link tests
18848 lt_simple_link_test_code="$lt_simple_compile_test_code"
18849
18850 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18851
18852 # If no C compiler was specified, use CC.
18853 LTCC=${LTCC-"$CC"}
18854
18855 # If no C compiler flags were specified, use CFLAGS.
18856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18857
18858 # Allow CC to be a program name with arguments.
18859 compiler=$CC
18860
18861
18862 # save warnings/boilerplate of simple test code
18863 ac_outfile=conftest.$ac_objext
18864 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18866 _lt_compiler_boilerplate=`cat conftest.err`
18867 $rm conftest*
18868
18869 ac_outfile=conftest.$ac_objext
18870 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18872 _lt_linker_boilerplate=`cat conftest.err`
18873 $rm conftest*
18874
18875
18876 # Allow CC to be a program name with arguments.
18877 lt_save_CC="$CC"
18878 CC=${RC-"windres"}
18879 compiler=$CC
18880 compiler_RC=$CC
18881 for cc_temp in $compiler""; do
18882   case $cc_temp in
18883     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18884     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18885     \-*) ;;
18886     *) break;;
18887   esac
18888 done
18889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18890
18891 lt_cv_prog_compiler_c_o_RC=yes
18892
18893 # The else clause should only fire when bootstrapping the
18894 # libtool distribution, otherwise you forgot to ship ltmain.sh
18895 # with your package, and you will get complaints that there are
18896 # no rules to generate ltmain.sh.
18897 if test -f "$ltmain"; then
18898   # See if we are running on zsh, and set the options which allow our commands through
18899   # without removal of \ escapes.
18900   if test -n "${ZSH_VERSION+set}" ; then
18901     setopt NO_GLOB_SUBST
18902   fi
18903   # Now quote all the things that may contain metacharacters while being
18904   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18905   # variables and quote the copies for generation of the libtool script.
18906   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18907     SED SHELL STRIP \
18908     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18909     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18910     deplibs_check_method reload_flag reload_cmds need_locks \
18911     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18912     lt_cv_sys_global_symbol_to_c_name_address \
18913     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18914     old_postinstall_cmds old_postuninstall_cmds \
18915     compiler_RC \
18916     CC_RC \
18917     LD_RC \
18918     lt_prog_compiler_wl_RC \
18919     lt_prog_compiler_pic_RC \
18920     lt_prog_compiler_static_RC \
18921     lt_prog_compiler_no_builtin_flag_RC \
18922     export_dynamic_flag_spec_RC \
18923     thread_safe_flag_spec_RC \
18924     whole_archive_flag_spec_RC \
18925     enable_shared_with_static_runtimes_RC \
18926     old_archive_cmds_RC \
18927     old_archive_from_new_cmds_RC \
18928     predep_objects_RC \
18929     postdep_objects_RC \
18930     predeps_RC \
18931     postdeps_RC \
18932     compiler_lib_search_path_RC \
18933     archive_cmds_RC \
18934     archive_expsym_cmds_RC \
18935     postinstall_cmds_RC \
18936     postuninstall_cmds_RC \
18937     old_archive_from_expsyms_cmds_RC \
18938     allow_undefined_flag_RC \
18939     no_undefined_flag_RC \
18940     export_symbols_cmds_RC \
18941     hardcode_libdir_flag_spec_RC \
18942     hardcode_libdir_flag_spec_ld_RC \
18943     hardcode_libdir_separator_RC \
18944     hardcode_automatic_RC \
18945     module_cmds_RC \
18946     module_expsym_cmds_RC \
18947     lt_cv_prog_compiler_c_o_RC \
18948     fix_srcfile_path_RC \
18949     exclude_expsyms_RC \
18950     include_expsyms_RC; do
18951
18952     case $var in
18953     old_archive_cmds_RC | \
18954     old_archive_from_new_cmds_RC | \
18955     archive_cmds_RC | \
18956     archive_expsym_cmds_RC | \
18957     module_cmds_RC | \
18958     module_expsym_cmds_RC | \
18959     old_archive_from_expsyms_cmds_RC | \
18960     export_symbols_cmds_RC | \
18961     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18962     postinstall_cmds | postuninstall_cmds | \
18963     old_postinstall_cmds | old_postuninstall_cmds | \
18964     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18965       # Double-quote double-evaled strings.
18966       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18967       ;;
18968     *)
18969       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18970       ;;
18971     esac
18972   done
18973
18974   case $lt_echo in
18975   *'\$0 --fallback-echo"')
18976     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18977     ;;
18978   esac
18979
18980 cfgfile="$ofile"
18981
18982   cat <<__EOF__ >> "$cfgfile"
18983 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18984
18985 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18986
18987 # Shell to use when invoking shell scripts.
18988 SHELL=$lt_SHELL
18989
18990 # Whether or not to build shared libraries.
18991 build_libtool_libs=$enable_shared
18992
18993 # Whether or not to build static libraries.
18994 build_old_libs=$enable_static
18995
18996 # Whether or not to add -lc for building shared libraries.
18997 build_libtool_need_lc=$archive_cmds_need_lc_RC
18998
18999 # Whether or not to disallow shared libs when runtime libs are static
19000 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19001
19002 # Whether or not to optimize for fast installation.
19003 fast_install=$enable_fast_install
19004
19005 # The host system.
19006 host_alias=$host_alias
19007 host=$host
19008 host_os=$host_os
19009
19010 # The build system.
19011 build_alias=$build_alias
19012 build=$build
19013 build_os=$build_os
19014
19015 # An echo program that does not interpret backslashes.
19016 echo=$lt_echo
19017
19018 # The archiver.
19019 AR=$lt_AR
19020 AR_FLAGS=$lt_AR_FLAGS
19021
19022 # A C compiler.
19023 LTCC=$lt_LTCC
19024
19025 # LTCC compiler flags.
19026 LTCFLAGS=$lt_LTCFLAGS
19027
19028 # A language-specific compiler.
19029 CC=$lt_compiler_RC
19030
19031 # Is the compiler the GNU C compiler?
19032 with_gcc=$GCC_RC
19033
19034 # An ERE matcher.
19035 EGREP=$lt_EGREP
19036
19037 # The linker used to build libraries.
19038 LD=$lt_LD_RC
19039
19040 # Whether we need hard or soft links.
19041 LN_S=$lt_LN_S
19042
19043 # A BSD-compatible nm program.
19044 NM=$lt_NM
19045
19046 # A symbol stripping program
19047 STRIP=$lt_STRIP
19048
19049 # Used to examine libraries when file_magic_cmd begins "file"
19050 MAGIC_CMD=$MAGIC_CMD
19051
19052 # Used on cygwin: DLL creation program.
19053 DLLTOOL="$DLLTOOL"
19054
19055 # Used on cygwin: object dumper.
19056 OBJDUMP="$OBJDUMP"
19057
19058 # Used on cygwin: assembler.
19059 AS="$AS"
19060
19061 # The name of the directory that contains temporary libtool files.
19062 objdir=$objdir
19063
19064 # How to create reloadable object files.
19065 reload_flag=$lt_reload_flag
19066 reload_cmds=$lt_reload_cmds
19067
19068 # How to pass a linker flag through the compiler.
19069 wl=$lt_lt_prog_compiler_wl_RC
19070
19071 # Object file suffix (normally "o").
19072 objext="$ac_objext"
19073
19074 # Old archive suffix (normally "a").
19075 libext="$libext"
19076
19077 # Shared library suffix (normally ".so").
19078 shrext_cmds='$shrext_cmds'
19079
19080 # Executable file suffix (normally "").
19081 exeext="$exeext"
19082
19083 # Additional compiler flags for building library objects.
19084 pic_flag=$lt_lt_prog_compiler_pic_RC
19085 pic_mode=$pic_mode
19086
19087 # What is the maximum length of a command?
19088 max_cmd_len=$lt_cv_sys_max_cmd_len
19089
19090 # Does compiler simultaneously support -c and -o options?
19091 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19092
19093 # Must we lock files when doing compilation?
19094 need_locks=$lt_need_locks
19095
19096 # Do we need the lib prefix for modules?
19097 need_lib_prefix=$need_lib_prefix
19098
19099 # Do we need a version for libraries?
19100 need_version=$need_version
19101
19102 # Whether dlopen is supported.
19103 dlopen_support=$enable_dlopen
19104
19105 # Whether dlopen of programs is supported.
19106 dlopen_self=$enable_dlopen_self
19107
19108 # Whether dlopen of statically linked programs is supported.
19109 dlopen_self_static=$enable_dlopen_self_static
19110
19111 # Compiler flag to prevent dynamic linking.
19112 link_static_flag=$lt_lt_prog_compiler_static_RC
19113
19114 # Compiler flag to turn off builtin functions.
19115 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19116
19117 # Compiler flag to allow reflexive dlopens.
19118 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19119
19120 # Compiler flag to generate shared objects directly from archives.
19121 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19122
19123 # Compiler flag to generate thread-safe objects.
19124 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19125
19126 # Library versioning type.
19127 version_type=$version_type
19128
19129 # Format of library name prefix.
19130 libname_spec=$lt_libname_spec
19131
19132 # List of archive names.  First name is the real one, the rest are links.
19133 # The last name is the one that the linker finds with -lNAME.
19134 library_names_spec=$lt_library_names_spec
19135
19136 # The coded name of the library, if different from the real name.
19137 soname_spec=$lt_soname_spec
19138
19139 # Commands used to build and install an old-style archive.
19140 RANLIB=$lt_RANLIB
19141 old_archive_cmds=$lt_old_archive_cmds_RC
19142 old_postinstall_cmds=$lt_old_postinstall_cmds
19143 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19144
19145 # Create an old-style archive from a shared archive.
19146 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19147
19148 # Create a temporary old-style archive to link instead of a shared archive.
19149 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19150
19151 # Commands used to build and install a shared archive.
19152 archive_cmds=$lt_archive_cmds_RC
19153 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19154 postinstall_cmds=$lt_postinstall_cmds
19155 postuninstall_cmds=$lt_postuninstall_cmds
19156
19157 # Commands used to build a loadable module (assumed same as above if empty)
19158 module_cmds=$lt_module_cmds_RC
19159 module_expsym_cmds=$lt_module_expsym_cmds_RC
19160
19161 # Commands to strip libraries.
19162 old_striplib=$lt_old_striplib
19163 striplib=$lt_striplib
19164
19165 # Dependencies to place before the objects being linked to create a
19166 # shared library.
19167 predep_objects=$lt_predep_objects_RC
19168
19169 # Dependencies to place after the objects being linked to create a
19170 # shared library.
19171 postdep_objects=$lt_postdep_objects_RC
19172
19173 # Dependencies to place before the objects being linked to create a
19174 # shared library.
19175 predeps=$lt_predeps_RC
19176
19177 # Dependencies to place after the objects being linked to create a
19178 # shared library.
19179 postdeps=$lt_postdeps_RC
19180
19181 # The library search path used internally by the compiler when linking
19182 # a shared library.
19183 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19184
19185 # Method to check whether dependent libraries are shared objects.
19186 deplibs_check_method=$lt_deplibs_check_method
19187
19188 # Command to use when deplibs_check_method == file_magic.
19189 file_magic_cmd=$lt_file_magic_cmd
19190
19191 # Flag that allows shared libraries with undefined symbols to be built.
19192 allow_undefined_flag=$lt_allow_undefined_flag_RC
19193
19194 # Flag that forces no undefined symbols.
19195 no_undefined_flag=$lt_no_undefined_flag_RC
19196
19197 # Commands used to finish a libtool library installation in a directory.
19198 finish_cmds=$lt_finish_cmds
19199
19200 # Same as above, but a single script fragment to be evaled but not shown.
19201 finish_eval=$lt_finish_eval
19202
19203 # Take the output of nm and produce a listing of raw symbols and C names.
19204 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19205
19206 # Transform the output of nm in a proper C declaration
19207 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19208
19209 # Transform the output of nm in a C name address pair
19210 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19211
19212 # This is the shared library runtime path variable.
19213 runpath_var=$runpath_var
19214
19215 # This is the shared library path variable.
19216 shlibpath_var=$shlibpath_var
19217
19218 # Is shlibpath searched before the hard-coded library search path?
19219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19220
19221 # How to hardcode a shared library path into an executable.
19222 hardcode_action=$hardcode_action_RC
19223
19224 # Whether we should hardcode library paths into libraries.
19225 hardcode_into_libs=$hardcode_into_libs
19226
19227 # Flag to hardcode \$libdir into a binary during linking.
19228 # This must work even if \$libdir does not exist.
19229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19230
19231 # If ld is used when linking, flag to hardcode \$libdir into
19232 # a binary during linking. This must work even if \$libdir does
19233 # not exist.
19234 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19235
19236 # Whether we need a single -rpath flag with a separated argument.
19237 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19238
19239 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19240 # resulting binary.
19241 hardcode_direct=$hardcode_direct_RC
19242
19243 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19244 # resulting binary.
19245 hardcode_minus_L=$hardcode_minus_L_RC
19246
19247 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19248 # the resulting binary.
19249 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19250
19251 # Set to yes if building a shared library automatically hardcodes DIR into the library
19252 # and all subsequent libraries and executables linked against it.
19253 hardcode_automatic=$hardcode_automatic_RC
19254
19255 # Variables whose values should be saved in libtool wrapper scripts and
19256 # restored at relink time.
19257 variables_saved_for_relink="$variables_saved_for_relink"
19258
19259 # Whether libtool must link a program against all its dependency libraries.
19260 link_all_deplibs=$link_all_deplibs_RC
19261
19262 # Compile-time system search path for libraries
19263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19264
19265 # Run-time system search path for libraries
19266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19267
19268 # Fix the shell variable \$srcfile for the compiler.
19269 fix_srcfile_path=$lt_fix_srcfile_path
19270
19271 # Set to yes if exported symbols are required.
19272 always_export_symbols=$always_export_symbols_RC
19273
19274 # The commands to list exported symbols.
19275 export_symbols_cmds=$lt_export_symbols_cmds_RC
19276
19277 # The commands to extract the exported symbol list from a shared archive.
19278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19279
19280 # Symbols that should not be listed in the preloaded symbols.
19281 exclude_expsyms=$lt_exclude_expsyms_RC
19282
19283 # Symbols that must always be exported.
19284 include_expsyms=$lt_include_expsyms_RC
19285
19286 # ### END LIBTOOL TAG CONFIG: $tagname
19287
19288 __EOF__
19289
19290
19291 else
19292   # If there is no Makefile yet, we rely on a make rule to execute
19293   # `config.status --recheck' to rerun these tests and create the
19294   # libtool script then.
19295   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19296   if test -f "$ltmain_in"; then
19297     test -f Makefile && make "$ltmain"
19298   fi
19299 fi
19300
19301
19302 ac_ext=c
19303 ac_cpp='$CPP $CPPFLAGS'
19304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19307
19308 CC="$lt_save_CC"
19309
19310         ;;
19311
19312       *)
19313         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19314 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19315    { (exit 1); exit 1; }; }
19316         ;;
19317       esac
19318
19319       # Append the new tag name to the list of available tags.
19320       if test -n "$tagname" ; then
19321       available_tags="$available_tags $tagname"
19322     fi
19323     fi
19324   done
19325   IFS="$lt_save_ifs"
19326
19327   # Now substitute the updated list of available tags.
19328   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19329     mv "${ofile}T" "$ofile"
19330     chmod +x "$ofile"
19331   else
19332     rm -f "${ofile}T"
19333     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19334 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19335    { (exit 1); exit 1; }; }
19336   fi
19337 fi
19338
19339
19340
19341 # This can be used to rebuild libtool when needed
19342 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19343
19344 # Always use our own libtool.
19345 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19346
19347 # Prevent multiple expansion
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368 # Find a good install program.  We prefer a C program (faster),
19369 # so one script is as good as another.  But avoid the broken or
19370 # incompatible versions:
19371 # SysV /etc/install, /usr/sbin/install
19372 # SunOS /usr/etc/install
19373 # IRIX /sbin/install
19374 # AIX /bin/install
19375 # AmigaOS /C/install, which installs bootblocks on floppy discs
19376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19379 # OS/2's system install, which has a completely different semantic
19380 # ./install, which can be erroneously created by make from ./install.sh.
19381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19383 if test -z "$INSTALL"; then
19384 if test "${ac_cv_path_install+set}" = set; then
19385   echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19388 for as_dir in $PATH
19389 do
19390   IFS=$as_save_IFS
19391   test -z "$as_dir" && as_dir=.
19392   # Account for people who put trailing slashes in PATH elements.
19393 case $as_dir/ in
19394   ./ | .// | /cC/* | \
19395   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19396   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19397   /usr/ucb/* ) ;;
19398   *)
19399     # OSF1 and SCO ODT 3.0 have their own names for install.
19400     # Don't use installbsd from OSF since it installs stuff as root
19401     # by default.
19402     for ac_prog in ginstall scoinst install; do
19403       for ac_exec_ext in '' $ac_executable_extensions; do
19404         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19405           if test $ac_prog = install &&
19406             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19407             # AIX install.  It has an incompatible calling convention.
19408             :
19409           elif test $ac_prog = install &&
19410             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19411             # program-specific install script used by HP pwplus--don't use.
19412             :
19413           else
19414             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19415             break 3
19416           fi
19417         fi
19418       done
19419     done
19420     ;;
19421 esac
19422 done
19423 IFS=$as_save_IFS
19424
19425
19426 fi
19427   if test "${ac_cv_path_install+set}" = set; then
19428     INSTALL=$ac_cv_path_install
19429   else
19430     # As a last resort, use the slow shell script.  Don't cache a
19431     # value for INSTALL within a source directory, because that will
19432     # break other packages using the cache if that directory is
19433     # removed, or if the value is a relative name.
19434     INSTALL=$ac_install_sh
19435   fi
19436 fi
19437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19438 echo "${ECHO_T}$INSTALL" >&6; }
19439
19440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19441 # It thinks the first close brace ends the variable substitution.
19442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19443
19444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19445
19446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19447
19448
19449 # Checks for libraries
19450 case "$host" in
19451         *-*-*freebsd4*)
19452                 LDFLAGS="$LDFLAGS -pthread"
19453                 HAVE_LIBPTHREAD=1
19454                 ;;
19455         *)
19456
19457 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
19458 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
19459 if test "${ac_cv_lib_pthread_main+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   ac_check_lib_save_LIBS=$LIBS
19463 LIBS="-lpthread  $LIBS"
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470
19471
19472 int
19473 main ()
19474 {
19475 return main ();
19476   ;
19477   return 0;
19478 }
19479 _ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484   *) ac_try_echo=$ac_try;;
19485 esac
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487   (eval "$ac_link") 2>conftest.er1
19488   ac_status=$?
19489   grep -v '^ *+' conftest.er1 >conftest.err
19490   rm -f conftest.er1
19491   cat conftest.err >&5
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); } && {
19494          test -z "$ac_c_werror_flag" ||
19495          test ! -s conftest.err
19496        } && test -s conftest$ac_exeext &&
19497        $as_test_x conftest$ac_exeext; then
19498   ac_cv_lib_pthread_main=yes
19499 else
19500   echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19502
19503         ac_cv_lib_pthread_main=no
19504 fi
19505
19506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19507       conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19509 fi
19510 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
19511 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
19512 if test $ac_cv_lib_pthread_main = yes; then
19513   cat >>confdefs.h <<_ACEOF
19514 #define HAVE_LIBPTHREAD 1
19515 _ACEOF
19516
19517   LIBS="-lpthread $LIBS"
19518
19519 fi
19520
19521                 ;;
19522 esac
19523
19524 # Checks for header files
19525 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19526 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19527 if test "${ac_cv_header_stdc+set}" = set; then
19528   echo $ECHO_N "(cached) $ECHO_C" >&6
19529 else
19530   cat >conftest.$ac_ext <<_ACEOF
19531 /* confdefs.h.  */
19532 _ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h.  */
19536 #include <stdlib.h>
19537 #include <stdarg.h>
19538 #include <string.h>
19539 #include <float.h>
19540
19541 int
19542 main ()
19543 {
19544
19545   ;
19546   return 0;
19547 }
19548 _ACEOF
19549 rm -f conftest.$ac_objext
19550 if { (ac_try="$ac_compile"
19551 case "(($ac_try" in
19552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553   *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556   (eval "$ac_compile") 2>conftest.er1
19557   ac_status=$?
19558   grep -v '^ *+' conftest.er1 >conftest.err
19559   rm -f conftest.er1
19560   cat conftest.err >&5
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); } && {
19563          test -z "$ac_c_werror_flag" ||
19564          test ! -s conftest.err
19565        } && test -s conftest.$ac_objext; then
19566   ac_cv_header_stdc=yes
19567 else
19568   echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571         ac_cv_header_stdc=no
19572 fi
19573
19574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575
19576 if test $ac_cv_header_stdc = yes; then
19577   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19578   cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h.  */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h.  */
19584 #include <string.h>
19585
19586 _ACEOF
19587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19588   $EGREP "memchr" >/dev/null 2>&1; then
19589   :
19590 else
19591   ac_cv_header_stdc=no
19592 fi
19593 rm -f conftest*
19594
19595 fi
19596
19597 if test $ac_cv_header_stdc = yes; then
19598   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19599   cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h.  */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h.  */
19605 #include <stdlib.h>
19606
19607 _ACEOF
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609   $EGREP "free" >/dev/null 2>&1; then
19610   :
19611 else
19612   ac_cv_header_stdc=no
19613 fi
19614 rm -f conftest*
19615
19616 fi
19617
19618 if test $ac_cv_header_stdc = yes; then
19619   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19620   if test "$cross_compiling" = yes; then
19621   :
19622 else
19623   cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h.  */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h.  */
19629 #include <ctype.h>
19630 #include <stdlib.h>
19631 #if ((' ' & 0x0FF) == 0x020)
19632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19634 #else
19635 # define ISLOWER(c) \
19636                    (('a' <= (c) && (c) <= 'i') \
19637                      || ('j' <= (c) && (c) <= 'r') \
19638                      || ('s' <= (c) && (c) <= 'z'))
19639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19640 #endif
19641
19642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19643 int
19644 main ()
19645 {
19646   int i;
19647   for (i = 0; i < 256; i++)
19648     if (XOR (islower (i), ISLOWER (i))
19649         || toupper (i) != TOUPPER (i))
19650       return 2;
19651   return 0;
19652 }
19653 _ACEOF
19654 rm -f conftest$ac_exeext
19655 if { (ac_try="$ac_link"
19656 case "(($ac_try" in
19657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658   *) ac_try_echo=$ac_try;;
19659 esac
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661   (eval "$ac_link") 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19665   { (case "(($ac_try" in
19666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667   *) ac_try_echo=$ac_try;;
19668 esac
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670   (eval "$ac_try") 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; }; then
19674   :
19675 else
19676   echo "$as_me: program exited with status $ac_status" >&5
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680 ( exit $ac_status )
19681 ac_cv_header_stdc=no
19682 fi
19683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19684 fi
19685
19686
19687 fi
19688 fi
19689 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19690 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19691 if test $ac_cv_header_stdc = yes; then
19692
19693 cat >>confdefs.h <<\_ACEOF
19694 #define STDC_HEADERS 1
19695 _ACEOF
19696
19697 fi
19698
19699
19700 for ac_header in stdlib.h
19701 do
19702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19704   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19707   echo $ECHO_N "(cached) $ECHO_C" >&6
19708 fi
19709 ac_res=`eval echo '${'$as_ac_Header'}'`
19710                { echo "$as_me:$LINENO: result: $ac_res" >&5
19711 echo "${ECHO_T}$ac_res" >&6; }
19712 else
19713   # Is the header compilable?
19714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h.  */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h.  */
19722 $ac_includes_default
19723 #include <$ac_header>
19724 _ACEOF
19725 rm -f conftest.$ac_objext
19726 if { (ac_try="$ac_compile"
19727 case "(($ac_try" in
19728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729   *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732   (eval "$ac_compile") 2>conftest.er1
19733   ac_status=$?
19734   grep -v '^ *+' conftest.er1 >conftest.err
19735   rm -f conftest.er1
19736   cat conftest.err >&5
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } && {
19739          test -z "$ac_c_werror_flag" ||
19740          test ! -s conftest.err
19741        } && test -s conftest.$ac_objext; then
19742   ac_header_compiler=yes
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747         ac_header_compiler=no
19748 fi
19749
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19752 echo "${ECHO_T}$ac_header_compiler" >&6; }
19753
19754 # Is the header present?
19755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h.  */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h.  */
19763 #include <$ac_header>
19764 _ACEOF
19765 if { (ac_try="$ac_cpp conftest.$ac_ext"
19766 case "(($ac_try" in
19767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768   *) ac_try_echo=$ac_try;;
19769 esac
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19772   ac_status=$?
19773   grep -v '^ *+' conftest.er1 >conftest.err
19774   rm -f conftest.er1
19775   cat conftest.err >&5
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); } >/dev/null && {
19778          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19779          test ! -s conftest.err
19780        }; then
19781   ac_header_preproc=yes
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786   ac_header_preproc=no
19787 fi
19788
19789 rm -f conftest.err conftest.$ac_ext
19790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19791 echo "${ECHO_T}$ac_header_preproc" >&6; }
19792
19793 # So?  What about this header?
19794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19795   yes:no: )
19796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19800     ac_header_preproc=yes
19801     ;;
19802   no:yes:* )
19803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19815
19816     ;;
19817 esac
19818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821   echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823   eval "$as_ac_Header=\$ac_header_preproc"
19824 fi
19825 ac_res=`eval echo '${'$as_ac_Header'}'`
19826                { echo "$as_me:$LINENO: result: $ac_res" >&5
19827 echo "${ECHO_T}$ac_res" >&6; }
19828
19829 fi
19830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19831   cat >>confdefs.h <<_ACEOF
19832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19833 _ACEOF
19834
19835 fi
19836
19837 done
19838
19839
19840 for ac_header in pthread.h
19841 do
19842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19844   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19847   echo $ECHO_N "(cached) $ECHO_C" >&6
19848 fi
19849 ac_res=`eval echo '${'$as_ac_Header'}'`
19850                { echo "$as_me:$LINENO: result: $ac_res" >&5
19851 echo "${ECHO_T}$ac_res" >&6; }
19852 else
19853   # Is the header compilable?
19854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19856 cat >conftest.$ac_ext <<_ACEOF
19857 /* confdefs.h.  */
19858 _ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h.  */
19862 $ac_includes_default
19863 #include <$ac_header>
19864 _ACEOF
19865 rm -f conftest.$ac_objext
19866 if { (ac_try="$ac_compile"
19867 case "(($ac_try" in
19868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869   *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872   (eval "$ac_compile") 2>conftest.er1
19873   ac_status=$?
19874   grep -v '^ *+' conftest.er1 >conftest.err
19875   rm -f conftest.er1
19876   cat conftest.err >&5
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } && {
19879          test -z "$ac_c_werror_flag" ||
19880          test ! -s conftest.err
19881        } && test -s conftest.$ac_objext; then
19882   ac_header_compiler=yes
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887         ac_header_compiler=no
19888 fi
19889
19890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19892 echo "${ECHO_T}$ac_header_compiler" >&6; }
19893
19894 # Is the header present?
19895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h.  */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h.  */
19903 #include <$ac_header>
19904 _ACEOF
19905 if { (ac_try="$ac_cpp conftest.$ac_ext"
19906 case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19912   ac_status=$?
19913   grep -v '^ *+' conftest.er1 >conftest.err
19914   rm -f conftest.er1
19915   cat conftest.err >&5
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } >/dev/null && {
19918          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19919          test ! -s conftest.err
19920        }; then
19921   ac_header_preproc=yes
19922 else
19923   echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926   ac_header_preproc=no
19927 fi
19928
19929 rm -f conftest.err conftest.$ac_ext
19930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931 echo "${ECHO_T}$ac_header_preproc" >&6; }
19932
19933 # So?  What about this header?
19934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19935   yes:no: )
19936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19940     ac_header_preproc=yes
19941     ;;
19942   no:yes:* )
19943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19955
19956     ;;
19957 esac
19958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19961   echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963   eval "$as_ac_Header=\$ac_header_preproc"
19964 fi
19965 ac_res=`eval echo '${'$as_ac_Header'}'`
19966                { echo "$as_me:$LINENO: result: $ac_res" >&5
19967 echo "${ECHO_T}$ac_res" >&6; }
19968
19969 fi
19970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19971   cat >>confdefs.h <<_ACEOF
19972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19973 _ACEOF
19974
19975 fi
19976
19977 done
19978
19979
19980 # Checks for  typedefs, structures, and compiler characteristics.
19981 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19982 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19983 if test "${ac_cv_c_const+set}" = set; then
19984   echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986   cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992
19993 int
19994 main ()
19995 {
19996 /* FIXME: Include the comments suggested by Paul. */
19997 #ifndef __cplusplus
19998   /* Ultrix mips cc rejects this.  */
19999   typedef int charset[2];
20000   const charset cs;
20001   /* SunOS 4.1.1 cc rejects this.  */
20002   char const *const *pcpcc;
20003   char **ppc;
20004   /* NEC SVR4.0.2 mips cc rejects this.  */
20005   struct point {int x, y;};
20006   static struct point const zero = {0,0};
20007   /* AIX XL C 1.02.0.0 rejects this.
20008      It does not let you subtract one const X* pointer from another in
20009      an arm of an if-expression whose if-part is not a constant
20010      expression */
20011   const char *g = "string";
20012   pcpcc = &g + (g ? g-g : 0);
20013   /* HPUX 7.0 cc rejects these. */
20014   ++pcpcc;
20015   ppc = (char**) pcpcc;
20016   pcpcc = (char const *const *) ppc;
20017   { /* SCO 3.2v4 cc rejects this.  */
20018     char *t;
20019     char const *s = 0 ? (char *) 0 : (char const *) 0;
20020
20021     *t++ = 0;
20022     if (s) return 0;
20023   }
20024   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20025     int x[] = {25, 17};
20026     const int *foo = &x[0];
20027     ++foo;
20028   }
20029   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20030     typedef const int *iptr;
20031     iptr p = 0;
20032     ++p;
20033   }
20034   { /* AIX XL C 1.02.0.0 rejects this saying
20035        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20036     struct s { int j; const int *ap[3]; };
20037     struct s *b; b->j = 5;
20038   }
20039   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20040     const int foo = 10;
20041     if (!foo) return 0;
20042   }
20043   return !cs[0] && !zero.x;
20044 #endif
20045
20046   ;
20047   return 0;
20048 }
20049 _ACEOF
20050 rm -f conftest.$ac_objext
20051 if { (ac_try="$ac_compile"
20052 case "(($ac_try" in
20053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054   *) ac_try_echo=$ac_try;;
20055 esac
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057   (eval "$ac_compile") 2>conftest.er1
20058   ac_status=$?
20059   grep -v '^ *+' conftest.er1 >conftest.err
20060   rm -f conftest.er1
20061   cat conftest.err >&5
20062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); } && {
20064          test -z "$ac_c_werror_flag" ||
20065          test ! -s conftest.err
20066        } && test -s conftest.$ac_objext; then
20067   ac_cv_c_const=yes
20068 else
20069   echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20071
20072         ac_cv_c_const=no
20073 fi
20074
20075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20076 fi
20077 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20078 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20079 if test $ac_cv_c_const = no; then
20080
20081 cat >>confdefs.h <<\_ACEOF
20082 #define const
20083 _ACEOF
20084
20085 fi
20086
20087
20088 # Checks for library functions.
20089
20090 for ac_func in vprintf
20091 do
20092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h.  */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h.  */
20104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20106 #define $ac_func innocuous_$ac_func
20107
20108 /* System header to define __stub macros and hopefully few prototypes,
20109     which can conflict with char $ac_func (); below.
20110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20111     <limits.h> exists even on freestanding compilers.  */
20112
20113 #ifdef __STDC__
20114 # include <limits.h>
20115 #else
20116 # include <assert.h>
20117 #endif
20118
20119 #undef $ac_func
20120
20121 /* Override any GCC internal prototype to avoid an error.
20122    Use char because int might match the return type of a GCC
20123    builtin and then its argument prototype would still apply.  */
20124 #ifdef __cplusplus
20125 extern "C"
20126 #endif
20127 char $ac_func ();
20128 /* The GNU C library defines this for functions which it implements
20129     to always fail with ENOSYS.  Some functions are actually named
20130     something starting with __ and the normal name is an alias.  */
20131 #if defined __stub_$ac_func || defined __stub___$ac_func
20132 choke me
20133 #endif
20134
20135 int
20136 main ()
20137 {
20138 return $ac_func ();
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_link") 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } && {
20157          test -z "$ac_c_werror_flag" ||
20158          test ! -s conftest.err
20159        } && test -s conftest$ac_exeext &&
20160        $as_test_x conftest$ac_exeext; then
20161   eval "$as_ac_var=yes"
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166         eval "$as_ac_var=no"
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20170       conftest$ac_exeext conftest.$ac_ext
20171 fi
20172 ac_res=`eval echo '${'$as_ac_var'}'`
20173                { echo "$as_me:$LINENO: result: $ac_res" >&5
20174 echo "${ECHO_T}$ac_res" >&6; }
20175 if test `eval echo '${'$as_ac_var'}'` = yes; then
20176   cat >>confdefs.h <<_ACEOF
20177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20178 _ACEOF
20179
20180 { echo "$as_me:$LINENO: checking for _doprnt" >&5
20181 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
20182 if test "${ac_cv_func__doprnt+set}" = set; then
20183   echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185   cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20193 #define _doprnt innocuous__doprnt
20194
20195 /* System header to define __stub macros and hopefully few prototypes,
20196     which can conflict with char _doprnt (); below.
20197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20198     <limits.h> exists even on freestanding compilers.  */
20199
20200 #ifdef __STDC__
20201 # include <limits.h>
20202 #else
20203 # include <assert.h>
20204 #endif
20205
20206 #undef _doprnt
20207
20208 /* Override any GCC internal prototype to avoid an error.
20209    Use char because int might match the return type of a GCC
20210    builtin and then its argument prototype would still apply.  */
20211 #ifdef __cplusplus
20212 extern "C"
20213 #endif
20214 char _doprnt ();
20215 /* The GNU C library defines this for functions which it implements
20216     to always fail with ENOSYS.  Some functions are actually named
20217     something starting with __ and the normal name is an alias.  */
20218 #if defined __stub__doprnt || defined __stub____doprnt
20219 choke me
20220 #endif
20221
20222 int
20223 main ()
20224 {
20225 return _doprnt ();
20226   ;
20227   return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234   *) ac_try_echo=$ac_try;;
20235 esac
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237   (eval "$ac_link") 2>conftest.er1
20238   ac_status=$?
20239   grep -v '^ *+' conftest.er1 >conftest.err
20240   rm -f conftest.er1
20241   cat conftest.err >&5
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); } && {
20244          test -z "$ac_c_werror_flag" ||
20245          test ! -s conftest.err
20246        } && test -s conftest$ac_exeext &&
20247        $as_test_x conftest$ac_exeext; then
20248   ac_cv_func__doprnt=yes
20249 else
20250   echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253         ac_cv_func__doprnt=no
20254 fi
20255
20256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20257       conftest$ac_exeext conftest.$ac_ext
20258 fi
20259 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20260 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
20261 if test $ac_cv_func__doprnt = yes; then
20262
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_DOPRNT 1
20265 _ACEOF
20266
20267 fi
20268
20269 fi
20270 done
20271
20272
20273
20274 for ac_func in atexit
20275 do
20276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20280   echo $ECHO_N "(cached) $ECHO_C" >&6
20281 else
20282   cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20290 #define $ac_func innocuous_$ac_func
20291
20292 /* System header to define __stub macros and hopefully few prototypes,
20293     which can conflict with char $ac_func (); below.
20294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20295     <limits.h> exists even on freestanding compilers.  */
20296
20297 #ifdef __STDC__
20298 # include <limits.h>
20299 #else
20300 # include <assert.h>
20301 #endif
20302
20303 #undef $ac_func
20304
20305 /* Override any GCC internal prototype to avoid an error.
20306    Use char because int might match the return type of a GCC
20307    builtin and then its argument prototype would still apply.  */
20308 #ifdef __cplusplus
20309 extern "C"
20310 #endif
20311 char $ac_func ();
20312 /* The GNU C library defines this for functions which it implements
20313     to always fail with ENOSYS.  Some functions are actually named
20314     something starting with __ and the normal name is an alias.  */
20315 #if defined __stub_$ac_func || defined __stub___$ac_func
20316 choke me
20317 #endif
20318
20319 int
20320 main ()
20321 {
20322 return $ac_func ();
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (ac_try="$ac_link"
20329 case "(($ac_try" in
20330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331   *) ac_try_echo=$ac_try;;
20332 esac
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334   (eval "$ac_link") 2>conftest.er1
20335   ac_status=$?
20336   grep -v '^ *+' conftest.er1 >conftest.err
20337   rm -f conftest.er1
20338   cat conftest.err >&5
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } && {
20341          test -z "$ac_c_werror_flag" ||
20342          test ! -s conftest.err
20343        } && test -s conftest$ac_exeext &&
20344        $as_test_x conftest$ac_exeext; then
20345   eval "$as_ac_var=yes"
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350         eval "$as_ac_var=no"
20351 fi
20352
20353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20354       conftest$ac_exeext conftest.$ac_ext
20355 fi
20356 ac_res=`eval echo '${'$as_ac_var'}'`
20357                { echo "$as_me:$LINENO: result: $ac_res" >&5
20358 echo "${ECHO_T}$ac_res" >&6; }
20359 if test `eval echo '${'$as_ac_var'}'` = yes; then
20360   cat >>confdefs.h <<_ACEOF
20361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20362 _ACEOF
20363
20364 fi
20365 done
20366
20367
20368 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/diag/Makefile tests/fail/Makefile tests/ok/Makefile tests/ok/ok-hash/Makefile tests/ok/ok-numeric/Makefile tests/ok/ok/Makefile tests/pass/Makefile tests/plan/Makefile tests/plan/no-tests/Makefile tests/plan/no_plan/Makefile tests/plan/not-enough-tests/Makefile tests/plan/sane/Makefile tests/plan/skip_all/Makefile tests/plan/too-many-plans/Makefile tests/plan/too-many-tests/Makefile tests/skip/Makefile tests/todo/Makefile"
20369
20370 cat >confcache <<\_ACEOF
20371 # This file is a shell script that caches the results of configure
20372 # tests run on this system so they can be shared between configure
20373 # scripts and configure runs, see configure's option --config-cache.
20374 # It is not useful on other systems.  If it contains results you don't
20375 # want to keep, you may remove or edit it.
20376 #
20377 # config.status only pays attention to the cache file if you give it
20378 # the --recheck option to rerun configure.
20379 #
20380 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20381 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20382 # following values.
20383
20384 _ACEOF
20385
20386 # The following way of writing the cache mishandles newlines in values,
20387 # but we know of no workaround that is simple, portable, and efficient.
20388 # So, we kill variables containing newlines.
20389 # Ultrix sh set writes to stderr and can't be redirected directly,
20390 # and sets the high bit in the cache file unless we assign to the vars.
20391 (
20392   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20393     eval ac_val=\$$ac_var
20394     case $ac_val in #(
20395     *${as_nl}*)
20396       case $ac_var in #(
20397       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20398 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20399       esac
20400       case $ac_var in #(
20401       _ | IFS | as_nl) ;; #(
20402       *) $as_unset $ac_var ;;
20403       esac ;;
20404     esac
20405   done
20406
20407   (set) 2>&1 |
20408     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20409     *${as_nl}ac_space=\ *)
20410       # `set' does not quote correctly, so add quotes (double-quote
20411       # substitution turns \\\\ into \\, and sed turns \\ into \).
20412       sed -n \
20413         "s/'/'\\\\''/g;
20414           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20415       ;; #(
20416     *)
20417       # `set' quotes correctly as required by POSIX, so do not add quotes.
20418       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20419       ;;
20420     esac |
20421     sort
20422 ) |
20423   sed '
20424      /^ac_cv_env_/b end
20425      t clear
20426      :clear
20427      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20428      t end
20429      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20430      :end' >>confcache
20431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20432   if test -w "$cache_file"; then
20433     test "x$cache_file" != "x/dev/null" &&
20434       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20435 echo "$as_me: updating cache $cache_file" >&6;}
20436     cat confcache >$cache_file
20437   else
20438     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20439 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20440   fi
20441 fi
20442 rm -f confcache
20443
20444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20445 # Let make expand exec_prefix.
20446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20447
20448 # Transform confdefs.h into DEFS.
20449 # Protect against shell expansion while executing Makefile rules.
20450 # Protect against Makefile macro expansion.
20451 #
20452 # If the first sed substitution is executed (which looks for macros that
20453 # take arguments), then branch to the quote section.  Otherwise,
20454 # look for a macro that doesn't take arguments.
20455 ac_script='
20456 t clear
20457 :clear
20458 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
20459 t quote
20460 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
20461 t quote
20462 b any
20463 :quote
20464 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20465 s/\[/\\&/g
20466 s/\]/\\&/g
20467 s/\$/$$/g
20468 H
20469 :any
20470 ${
20471         g
20472         s/^\n//
20473         s/\n/ /g
20474         p
20475 }
20476 '
20477 DEFS=`sed -n "$ac_script" confdefs.h`
20478
20479
20480 ac_libobjs=
20481 ac_ltlibobjs=
20482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20483   # 1. Remove the extension, and $U if already installed.
20484   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20485   ac_i=`echo "$ac_i" | sed "$ac_script"`
20486   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20487   #    will be set to the directory where LIBOBJS objects are built.
20488   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20489   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20490 done
20491 LIBOBJS=$ac_libobjs
20492
20493 LTLIBOBJS=$ac_ltlibobjs
20494
20495
20496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20497   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20498 Usually this means the macro was only invoked conditionally." >&5
20499 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20500 Usually this means the macro was only invoked conditionally." >&2;}
20501    { (exit 1); exit 1; }; }
20502 fi
20503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20504   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20505 Usually this means the macro was only invoked conditionally." >&5
20506 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20507 Usually this means the macro was only invoked conditionally." >&2;}
20508    { (exit 1); exit 1; }; }
20509 fi
20510 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20511   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20512 Usually this means the macro was only invoked conditionally." >&5
20513 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20514 Usually this means the macro was only invoked conditionally." >&2;}
20515    { (exit 1); exit 1; }; }
20516 fi
20517
20518 : ${CONFIG_STATUS=./config.status}
20519 ac_clean_files_save=$ac_clean_files
20520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20521 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20522 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20523 cat >$CONFIG_STATUS <<_ACEOF
20524 #! $SHELL
20525 # Generated by $as_me.
20526 # Run this file to recreate the current configuration.
20527 # Compiler output produced by configure, useful for debugging
20528 # configure, is in config.log if it exists.
20529
20530 debug=false
20531 ac_cs_recheck=false
20532 ac_cs_silent=false
20533 SHELL=\${CONFIG_SHELL-$SHELL}
20534 _ACEOF
20535
20536 cat >>$CONFIG_STATUS <<\_ACEOF
20537 ## --------------------- ##
20538 ## M4sh Initialization.  ##
20539 ## --------------------- ##
20540
20541 # Be more Bourne compatible
20542 DUALCASE=1; export DUALCASE # for MKS sh
20543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20544   emulate sh
20545   NULLCMD=:
20546   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20547   # is contrary to our usage.  Disable this feature.
20548   alias -g '${1+"$@"}'='"$@"'
20549   setopt NO_GLOB_SUBST
20550 else
20551   case `(set -o) 2>/dev/null` in
20552   *posix*) set -o posix ;;
20553 esac
20554
20555 fi
20556
20557
20558
20559
20560 # PATH needs CR
20561 # Avoid depending upon Character Ranges.
20562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20565 as_cr_digits='0123456789'
20566 as_cr_alnum=$as_cr_Letters$as_cr_digits
20567
20568 # The user is always right.
20569 if test "${PATH_SEPARATOR+set}" != set; then
20570   echo "#! /bin/sh" >conf$$.sh
20571   echo  "exit 0"   >>conf$$.sh
20572   chmod +x conf$$.sh
20573   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20574     PATH_SEPARATOR=';'
20575   else
20576     PATH_SEPARATOR=:
20577   fi
20578   rm -f conf$$.sh
20579 fi
20580
20581 # Support unset when possible.
20582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20583   as_unset=unset
20584 else
20585   as_unset=false
20586 fi
20587
20588
20589 # IFS
20590 # We need space, tab and new line, in precisely that order.  Quoting is
20591 # there to prevent editors from complaining about space-tab.
20592 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20593 # splitting by setting IFS to empty value.)
20594 as_nl='
20595 '
20596 IFS=" ""        $as_nl"
20597
20598 # Find who we are.  Look in the path if we contain no directory separator.
20599 case $0 in
20600   *[\\/]* ) as_myself=$0 ;;
20601   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20602 for as_dir in $PATH
20603 do
20604   IFS=$as_save_IFS
20605   test -z "$as_dir" && as_dir=.
20606   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20607 done
20608 IFS=$as_save_IFS
20609
20610      ;;
20611 esac
20612 # We did not find ourselves, most probably we were run as `sh COMMAND'
20613 # in which case we are not to be found in the path.
20614 if test "x$as_myself" = x; then
20615   as_myself=$0
20616 fi
20617 if test ! -f "$as_myself"; then
20618   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20619   { (exit 1); exit 1; }
20620 fi
20621
20622 # Work around bugs in pre-3.0 UWIN ksh.
20623 for as_var in ENV MAIL MAILPATH
20624 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20625 done
20626 PS1='$ '
20627 PS2='> '
20628 PS4='+ '
20629
20630 # NLS nuisances.
20631 for as_var in \
20632   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20633   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20634   LC_TELEPHONE LC_TIME
20635 do
20636   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20637     eval $as_var=C; export $as_var
20638   else
20639     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20640   fi
20641 done
20642
20643 # Required to use basename.
20644 if expr a : '\(a\)' >/dev/null 2>&1 &&
20645    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20646   as_expr=expr
20647 else
20648   as_expr=false
20649 fi
20650
20651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20652   as_basename=basename
20653 else
20654   as_basename=false
20655 fi
20656
20657
20658 # Name of the executable.
20659 as_me=`$as_basename -- "$0" ||
20660 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20661          X"$0" : 'X\(//\)$' \| \
20662          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20663 echo X/"$0" |
20664     sed '/^.*\/\([^/][^/]*\)\/*$/{
20665             s//\1/
20666             q
20667           }
20668           /^X\/\(\/\/\)$/{
20669             s//\1/
20670             q
20671           }
20672           /^X\/\(\/\).*/{
20673             s//\1/
20674             q
20675           }
20676           s/.*/./; q'`
20677
20678 # CDPATH.
20679 $as_unset CDPATH
20680
20681
20682
20683   as_lineno_1=$LINENO
20684   as_lineno_2=$LINENO
20685   test "x$as_lineno_1" != "x$as_lineno_2" &&
20686   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20687
20688   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20689   # uniformly replaced by the line number.  The first 'sed' inserts a
20690   # line-number line after each line using $LINENO; the second 'sed'
20691   # does the real work.  The second script uses 'N' to pair each
20692   # line-number line with the line containing $LINENO, and appends
20693   # trailing '-' during substitution so that $LINENO is not a special
20694   # case at line end.
20695   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20696   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20697   # E. McMahon (1931-1989) for sed's syntax.  :-)
20698   sed -n '
20699     p
20700     /[$]LINENO/=
20701   ' <$as_myself |
20702     sed '
20703       s/[$]LINENO.*/&-/
20704       t lineno
20705       b
20706       :lineno
20707       N
20708       :loop
20709       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20710       t loop
20711       s/-\n.*//
20712     ' >$as_me.lineno &&
20713   chmod +x "$as_me.lineno" ||
20714     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20715    { (exit 1); exit 1; }; }
20716
20717   # Don't try to exec as it changes $[0], causing all sort of problems
20718   # (the dirname of $[0] is not the place where we might find the
20719   # original and so on.  Autoconf is especially sensitive to this).
20720   . "./$as_me.lineno"
20721   # Exit status is that of the last command.
20722   exit
20723 }
20724
20725
20726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20727   as_dirname=dirname
20728 else
20729   as_dirname=false
20730 fi
20731
20732 ECHO_C= ECHO_N= ECHO_T=
20733 case `echo -n x` in
20734 -n*)
20735   case `echo 'x\c'` in
20736   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20737   *)   ECHO_C='\c';;
20738   esac;;
20739 *)
20740   ECHO_N='-n';;
20741 esac
20742
20743 if expr a : '\(a\)' >/dev/null 2>&1 &&
20744    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20745   as_expr=expr
20746 else
20747   as_expr=false
20748 fi
20749
20750 rm -f conf$$ conf$$.exe conf$$.file
20751 if test -d conf$$.dir; then
20752   rm -f conf$$.dir/conf$$.file
20753 else
20754   rm -f conf$$.dir
20755   mkdir conf$$.dir
20756 fi
20757 echo >conf$$.file
20758 if ln -s conf$$.file conf$$ 2>/dev/null; then
20759   as_ln_s='ln -s'
20760   # ... but there are two gotchas:
20761   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20762   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20763   # In both cases, we have to default to `cp -p'.
20764   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20765     as_ln_s='cp -p'
20766 elif ln conf$$.file conf$$ 2>/dev/null; then
20767   as_ln_s=ln
20768 else
20769   as_ln_s='cp -p'
20770 fi
20771 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20772 rmdir conf$$.dir 2>/dev/null
20773
20774 if mkdir -p . 2>/dev/null; then
20775   as_mkdir_p=:
20776 else
20777   test -d ./-p && rmdir ./-p
20778   as_mkdir_p=false
20779 fi
20780
20781 if test -x / >/dev/null 2>&1; then
20782   as_test_x='test -x'
20783 else
20784   if ls -dL / >/dev/null 2>&1; then
20785     as_ls_L_option=L
20786   else
20787     as_ls_L_option=
20788   fi
20789   as_test_x='
20790     eval sh -c '\''
20791       if test -d "$1"; then
20792         test -d "$1/.";
20793       else
20794         case $1 in
20795         -*)set "./$1";;
20796         esac;
20797         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20798         ???[sx]*):;;*)false;;esac;fi
20799     '\'' sh
20800   '
20801 fi
20802 as_executable_p=$as_test_x
20803
20804 # Sed expression to map a string onto a valid CPP name.
20805 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20806
20807 # Sed expression to map a string onto a valid variable name.
20808 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20809
20810
20811 exec 6>&1
20812
20813 # Save the log message, to keep $[0] and so on meaningful, and to
20814 # report actual input values of CONFIG_FILES etc. instead of their
20815 # values after options handling.
20816 ac_log="
20817 This file was extended by tap $as_me 1.01, which was
20818 generated by GNU Autoconf 2.61.  Invocation command line was
20819
20820   CONFIG_FILES    = $CONFIG_FILES
20821   CONFIG_HEADERS  = $CONFIG_HEADERS
20822   CONFIG_LINKS    = $CONFIG_LINKS
20823   CONFIG_COMMANDS = $CONFIG_COMMANDS
20824   $ $0 $@
20825
20826 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20827 "
20828
20829 _ACEOF
20830
20831 cat >>$CONFIG_STATUS <<_ACEOF
20832 # Files that config.status was made for.
20833 config_files="$ac_config_files"
20834 config_commands="$ac_config_commands"
20835
20836 _ACEOF
20837
20838 cat >>$CONFIG_STATUS <<\_ACEOF
20839 ac_cs_usage="\
20840 \`$as_me' instantiates files from templates according to the
20841 current configuration.
20842
20843 Usage: $0 [OPTIONS] [FILE]...
20844
20845   -h, --help       print this help, then exit
20846   -V, --version    print version number and configuration settings, then exit
20847   -q, --quiet      do not print progress messages
20848   -d, --debug      don't remove temporary files
20849       --recheck    update $as_me by reconfiguring in the same conditions
20850   --file=FILE[:TEMPLATE]
20851                    instantiate the configuration file FILE
20852
20853 Configuration files:
20854 $config_files
20855
20856 Configuration commands:
20857 $config_commands
20858
20859 Report bugs to <bug-autoconf@gnu.org>."
20860
20861 _ACEOF
20862 cat >>$CONFIG_STATUS <<_ACEOF
20863 ac_cs_version="\\
20864 tap config.status 1.01
20865 configured by $0, generated by GNU Autoconf 2.61,
20866   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20867
20868 Copyright (C) 2006 Free Software Foundation, Inc.
20869 This config.status script is free software; the Free Software Foundation
20870 gives unlimited permission to copy, distribute and modify it."
20871
20872 ac_pwd='$ac_pwd'
20873 srcdir='$srcdir'
20874 INSTALL='$INSTALL'
20875 MKDIR_P='$MKDIR_P'
20876 _ACEOF
20877
20878 cat >>$CONFIG_STATUS <<\_ACEOF
20879 # If no file are specified by the user, then we need to provide default
20880 # value.  By we need to know if files were specified by the user.
20881 ac_need_defaults=:
20882 while test $# != 0
20883 do
20884   case $1 in
20885   --*=*)
20886     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20887     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20888     ac_shift=:
20889     ;;
20890   *)
20891     ac_option=$1
20892     ac_optarg=$2
20893     ac_shift=shift
20894     ;;
20895   esac
20896
20897   case $ac_option in
20898   # Handling of the options.
20899   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20900     ac_cs_recheck=: ;;
20901   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20902     echo "$ac_cs_version"; exit ;;
20903   --debug | --debu | --deb | --de | --d | -d )
20904     debug=: ;;
20905   --file | --fil | --fi | --f )
20906     $ac_shift
20907     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20908     ac_need_defaults=false;;
20909   --he | --h |  --help | --hel | -h )
20910     echo "$ac_cs_usage"; exit ;;
20911   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20912   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20913     ac_cs_silent=: ;;
20914
20915   # This is an error.
20916   -*) { echo "$as_me: error: unrecognized option: $1
20917 Try \`$0 --help' for more information." >&2
20918    { (exit 1); exit 1; }; } ;;
20919
20920   *) ac_config_targets="$ac_config_targets $1"
20921      ac_need_defaults=false ;;
20922
20923   esac
20924   shift
20925 done
20926
20927 ac_configure_extra_args=
20928
20929 if $ac_cs_silent; then
20930   exec 6>/dev/null
20931   ac_configure_extra_args="$ac_configure_extra_args --silent"
20932 fi
20933
20934 _ACEOF
20935 cat >>$CONFIG_STATUS <<_ACEOF
20936 if \$ac_cs_recheck; then
20937   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20938   CONFIG_SHELL=$SHELL
20939   export CONFIG_SHELL
20940   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20941 fi
20942
20943 _ACEOF
20944 cat >>$CONFIG_STATUS <<\_ACEOF
20945 exec 5>>config.log
20946 {
20947   echo
20948   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20949 ## Running $as_me. ##
20950 _ASBOX
20951   echo "$ac_log"
20952 } >&5
20953
20954 _ACEOF
20955 cat >>$CONFIG_STATUS <<_ACEOF
20956 #
20957 # INIT-COMMANDS
20958 #
20959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20960
20961 _ACEOF
20962
20963 cat >>$CONFIG_STATUS <<\_ACEOF
20964
20965 # Handling of arguments.
20966 for ac_config_target in $ac_config_targets
20967 do
20968   case $ac_config_target in
20969     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20970     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20971     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20972     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20973     "tests/diag/Makefile") CONFIG_FILES="$CONFIG_FILES tests/diag/Makefile" ;;
20974     "tests/fail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fail/Makefile" ;;
20975     "tests/ok/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/Makefile" ;;
20976     "tests/ok/ok-hash/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok-hash/Makefile" ;;
20977     "tests/ok/ok-numeric/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok-numeric/Makefile" ;;
20978     "tests/ok/ok/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok/Makefile" ;;
20979     "tests/pass/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pass/Makefile" ;;
20980     "tests/plan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/Makefile" ;;
20981     "tests/plan/no-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/no-tests/Makefile" ;;
20982     "tests/plan/no_plan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/no_plan/Makefile" ;;
20983     "tests/plan/not-enough-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/not-enough-tests/Makefile" ;;
20984     "tests/plan/sane/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/sane/Makefile" ;;
20985     "tests/plan/skip_all/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/skip_all/Makefile" ;;
20986     "tests/plan/too-many-plans/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/too-many-plans/Makefile" ;;
20987     "tests/plan/too-many-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/too-many-tests/Makefile" ;;
20988     "tests/skip/Makefile") CONFIG_FILES="$CONFIG_FILES tests/skip/Makefile" ;;
20989     "tests/todo/Makefile") CONFIG_FILES="$CONFIG_FILES tests/todo/Makefile" ;;
20990
20991   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20992 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20993    { (exit 1); exit 1; }; };;
20994   esac
20995 done
20996
20997
20998 # If the user did not use the arguments to specify the items to instantiate,
20999 # then the envvar interface is used.  Set only those that are not.
21000 # We use the long form for the default assignment because of an extremely
21001 # bizarre bug on SunOS 4.1.3.
21002 if $ac_need_defaults; then
21003   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21004   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21005 fi
21006
21007 # Have a temporary directory for convenience.  Make it in the build tree
21008 # simply because there is no reason against having it here, and in addition,
21009 # creating and moving files from /tmp can sometimes cause problems.
21010 # Hook for its removal unless debugging.
21011 # Note that there is a small window in which the directory will not be cleaned:
21012 # after its creation but before its name has been assigned to `$tmp'.
21013 $debug ||
21014 {
21015   tmp=
21016   trap 'exit_status=$?
21017   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21018 ' 0
21019   trap '{ (exit 1); exit 1; }' 1 2 13 15
21020 }
21021 # Create a (secure) tmp directory for tmp files.
21022
21023 {
21024   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21025   test -n "$tmp" && test -d "$tmp"
21026 }  ||
21027 {
21028   tmp=./conf$$-$RANDOM
21029   (umask 077 && mkdir "$tmp")
21030 } ||
21031 {
21032    echo "$me: cannot create a temporary directory in ." >&2
21033    { (exit 1); exit 1; }
21034 }
21035
21036 #
21037 # Set up the sed scripts for CONFIG_FILES section.
21038 #
21039
21040 # No need to generate the scripts if there are no CONFIG_FILES.
21041 # This happens for instance when ./config.status config.h
21042 if test -n "$CONFIG_FILES"; then
21043
21044 _ACEOF
21045
21046
21047
21048 ac_delim='%!_!# '
21049 for ac_last_try in false false false false false :; do
21050   cat >conf$$subs.sed <<_ACEOF
21051 SHELL!$SHELL$ac_delim
21052 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21053 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21054 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21055 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21056 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21057 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21058 exec_prefix!$exec_prefix$ac_delim
21059 prefix!$prefix$ac_delim
21060 program_transform_name!$program_transform_name$ac_delim
21061 bindir!$bindir$ac_delim
21062 sbindir!$sbindir$ac_delim
21063 libexecdir!$libexecdir$ac_delim
21064 datarootdir!$datarootdir$ac_delim
21065 datadir!$datadir$ac_delim
21066 sysconfdir!$sysconfdir$ac_delim
21067 sharedstatedir!$sharedstatedir$ac_delim
21068 localstatedir!$localstatedir$ac_delim
21069 includedir!$includedir$ac_delim
21070 oldincludedir!$oldincludedir$ac_delim
21071 docdir!$docdir$ac_delim
21072 infodir!$infodir$ac_delim
21073 htmldir!$htmldir$ac_delim
21074 dvidir!$dvidir$ac_delim
21075 pdfdir!$pdfdir$ac_delim
21076 psdir!$psdir$ac_delim
21077 libdir!$libdir$ac_delim
21078 localedir!$localedir$ac_delim
21079 mandir!$mandir$ac_delim
21080 DEFS!$DEFS$ac_delim
21081 ECHO_C!$ECHO_C$ac_delim
21082 ECHO_N!$ECHO_N$ac_delim
21083 ECHO_T!$ECHO_T$ac_delim
21084 LIBS!$LIBS$ac_delim
21085 build_alias!$build_alias$ac_delim
21086 host_alias!$host_alias$ac_delim
21087 target_alias!$target_alias$ac_delim
21088 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21089 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21090 INSTALL_DATA!$INSTALL_DATA$ac_delim
21091 am__isrc!$am__isrc$ac_delim
21092 CYGPATH_W!$CYGPATH_W$ac_delim
21093 PACKAGE!$PACKAGE$ac_delim
21094 VERSION!$VERSION$ac_delim
21095 ACLOCAL!$ACLOCAL$ac_delim
21096 AUTOCONF!$AUTOCONF$ac_delim
21097 AUTOMAKE!$AUTOMAKE$ac_delim
21098 AUTOHEADER!$AUTOHEADER$ac_delim
21099 MAKEINFO!$MAKEINFO$ac_delim
21100 install_sh!$install_sh$ac_delim
21101 STRIP!$STRIP$ac_delim
21102 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21103 mkdir_p!$mkdir_p$ac_delim
21104 AWK!$AWK$ac_delim
21105 SET_MAKE!$SET_MAKE$ac_delim
21106 am__leading_dot!$am__leading_dot$ac_delim
21107 AMTAR!$AMTAR$ac_delim
21108 am__tar!$am__tar$ac_delim
21109 am__untar!$am__untar$ac_delim
21110 CC!$CC$ac_delim
21111 CFLAGS!$CFLAGS$ac_delim
21112 LDFLAGS!$LDFLAGS$ac_delim
21113 CPPFLAGS!$CPPFLAGS$ac_delim
21114 ac_ct_CC!$ac_ct_CC$ac_delim
21115 EXEEXT!$EXEEXT$ac_delim
21116 OBJEXT!$OBJEXT$ac_delim
21117 DEPDIR!$DEPDIR$ac_delim
21118 am__include!$am__include$ac_delim
21119 am__quote!$am__quote$ac_delim
21120 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21121 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21122 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21123 CCDEPMODE!$CCDEPMODE$ac_delim
21124 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21125 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21126 build!$build$ac_delim
21127 build_cpu!$build_cpu$ac_delim
21128 build_vendor!$build_vendor$ac_delim
21129 build_os!$build_os$ac_delim
21130 host!$host$ac_delim
21131 host_cpu!$host_cpu$ac_delim
21132 host_vendor!$host_vendor$ac_delim
21133 host_os!$host_os$ac_delim
21134 SED!$SED$ac_delim
21135 GREP!$GREP$ac_delim
21136 EGREP!$EGREP$ac_delim
21137 LN_S!$LN_S$ac_delim
21138 ECHO!$ECHO$ac_delim
21139 AR!$AR$ac_delim
21140 RANLIB!$RANLIB$ac_delim
21141 CPP!$CPP$ac_delim
21142 CXX!$CXX$ac_delim
21143 CXXFLAGS!$CXXFLAGS$ac_delim
21144 ac_ct_CXX!$ac_ct_CXX$ac_delim
21145 CXXDEPMODE!$CXXDEPMODE$ac_delim
21146 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21147 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21148 _ACEOF
21149
21150   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21151     break
21152   elif $ac_last_try; then
21153     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21154 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21155    { (exit 1); exit 1; }; }
21156   else
21157     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21158   fi
21159 done
21160
21161 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21162 if test -n "$ac_eof"; then
21163   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21164   ac_eof=`expr $ac_eof + 1`
21165 fi
21166
21167 cat >>$CONFIG_STATUS <<_ACEOF
21168 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21170 _ACEOF
21171 sed '
21172 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21173 s/^/s,@/; s/!/@,|#_!!_#|/
21174 :n
21175 t n
21176 s/'"$ac_delim"'$/,g/; t
21177 s/$/\\/; p
21178 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21179 ' >>$CONFIG_STATUS <conf$$subs.sed
21180 rm -f conf$$subs.sed
21181 cat >>$CONFIG_STATUS <<_ACEOF
21182 CEOF$ac_eof
21183 _ACEOF
21184
21185
21186 ac_delim='%!_!# '
21187 for ac_last_try in false false false false false :; do
21188   cat >conf$$subs.sed <<_ACEOF
21189 CXXCPP!$CXXCPP$ac_delim
21190 F77!$F77$ac_delim
21191 FFLAGS!$FFLAGS$ac_delim
21192 ac_ct_F77!$ac_ct_F77$ac_delim
21193 LIBTOOL!$LIBTOOL$ac_delim
21194 LIBOBJS!$LIBOBJS$ac_delim
21195 LTLIBOBJS!$LTLIBOBJS$ac_delim
21196 _ACEOF
21197
21198   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
21199     break
21200   elif $ac_last_try; then
21201     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21202 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21203    { (exit 1); exit 1; }; }
21204   else
21205     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21206   fi
21207 done
21208
21209 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21210 if test -n "$ac_eof"; then
21211   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21212   ac_eof=`expr $ac_eof + 1`
21213 fi
21214
21215 cat >>$CONFIG_STATUS <<_ACEOF
21216 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21218 _ACEOF
21219 sed '
21220 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21221 s/^/s,@/; s/!/@,|#_!!_#|/
21222 :n
21223 t n
21224 s/'"$ac_delim"'$/,g/; t
21225 s/$/\\/; p
21226 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21227 ' >>$CONFIG_STATUS <conf$$subs.sed
21228 rm -f conf$$subs.sed
21229 cat >>$CONFIG_STATUS <<_ACEOF
21230 :end
21231 s/|#_!!_#|//g
21232 CEOF$ac_eof
21233 _ACEOF
21234
21235
21236 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21237 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21238 # trailing colons and then remove the whole line if VPATH becomes empty
21239 # (actually we leave an empty line to preserve line numbers).
21240 if test "x$srcdir" = x.; then
21241   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21242 s/:*\$(srcdir):*/:/
21243 s/:*\${srcdir}:*/:/
21244 s/:*@srcdir@:*/:/
21245 s/^\([^=]*=[     ]*\):*/\1/
21246 s/:*$//
21247 s/^[^=]*=[       ]*$//
21248 }'
21249 fi
21250
21251 cat >>$CONFIG_STATUS <<\_ACEOF
21252 fi # test -n "$CONFIG_FILES"
21253
21254
21255 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21256 do
21257   case $ac_tag in
21258   :[FHLC]) ac_mode=$ac_tag; continue;;
21259   esac
21260   case $ac_mode$ac_tag in
21261   :[FHL]*:*);;
21262   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21263 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21264    { (exit 1); exit 1; }; };;
21265   :[FH]-) ac_tag=-:-;;
21266   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21267   esac
21268   ac_save_IFS=$IFS
21269   IFS=:
21270   set x $ac_tag
21271   IFS=$ac_save_IFS
21272   shift
21273   ac_file=$1
21274   shift
21275
21276   case $ac_mode in
21277   :L) ac_source=$1;;
21278   :[FH])
21279     ac_file_inputs=
21280     for ac_f
21281     do
21282       case $ac_f in
21283       -) ac_f="$tmp/stdin";;
21284       *) # Look for the file first in the build tree, then in the source tree
21285          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21286          # because $ac_f cannot contain `:'.
21287          test -f "$ac_f" ||
21288            case $ac_f in
21289            [\\/$]*) false;;
21290            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21291            esac ||
21292            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21293 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21294    { (exit 1); exit 1; }; };;
21295       esac
21296       ac_file_inputs="$ac_file_inputs $ac_f"
21297     done
21298
21299     # Let's still pretend it is `configure' which instantiates (i.e., don't
21300     # use $as_me), people would be surprised to read:
21301     #    /* config.h.  Generated by config.status.  */
21302     configure_input="Generated from "`IFS=:
21303           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21304     if test x"$ac_file" != x-; then
21305       configure_input="$ac_file.  $configure_input"
21306       { echo "$as_me:$LINENO: creating $ac_file" >&5
21307 echo "$as_me: creating $ac_file" >&6;}
21308     fi
21309
21310     case $ac_tag in
21311     *:-:* | *:-) cat >"$tmp/stdin";;
21312     esac
21313     ;;
21314   esac
21315
21316   ac_dir=`$as_dirname -- "$ac_file" ||
21317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21318          X"$ac_file" : 'X\(//\)[^/]' \| \
21319          X"$ac_file" : 'X\(//\)$' \| \
21320          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21321 echo X"$ac_file" |
21322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21323             s//\1/
21324             q
21325           }
21326           /^X\(\/\/\)[^/].*/{
21327             s//\1/
21328             q
21329           }
21330           /^X\(\/\/\)$/{
21331             s//\1/
21332             q
21333           }
21334           /^X\(\/\).*/{
21335             s//\1/
21336             q
21337           }
21338           s/.*/./; q'`
21339   { as_dir="$ac_dir"
21340   case $as_dir in #(
21341   -*) as_dir=./$as_dir;;
21342   esac
21343   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21344     as_dirs=
21345     while :; do
21346       case $as_dir in #(
21347       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21348       *) as_qdir=$as_dir;;
21349       esac
21350       as_dirs="'$as_qdir' $as_dirs"
21351       as_dir=`$as_dirname -- "$as_dir" ||
21352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21353          X"$as_dir" : 'X\(//\)[^/]' \| \
21354          X"$as_dir" : 'X\(//\)$' \| \
21355          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21356 echo X"$as_dir" |
21357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21358             s//\1/
21359             q
21360           }
21361           /^X\(\/\/\)[^/].*/{
21362             s//\1/
21363             q
21364           }
21365           /^X\(\/\/\)$/{
21366             s//\1/
21367             q
21368           }
21369           /^X\(\/\).*/{
21370             s//\1/
21371             q
21372           }
21373           s/.*/./; q'`
21374       test -d "$as_dir" && break
21375     done
21376     test -z "$as_dirs" || eval "mkdir $as_dirs"
21377   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21378 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21379    { (exit 1); exit 1; }; }; }
21380   ac_builddir=.
21381
21382 case "$ac_dir" in
21383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21384 *)
21385   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21386   # A ".." for each directory in $ac_dir_suffix.
21387   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21388   case $ac_top_builddir_sub in
21389   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21390   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21391   esac ;;
21392 esac
21393 ac_abs_top_builddir=$ac_pwd
21394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21395 # for backward compatibility:
21396 ac_top_builddir=$ac_top_build_prefix
21397
21398 case $srcdir in
21399   .)  # We are building in place.
21400     ac_srcdir=.
21401     ac_top_srcdir=$ac_top_builddir_sub
21402     ac_abs_top_srcdir=$ac_pwd ;;
21403   [\\/]* | ?:[\\/]* )  # Absolute name.
21404     ac_srcdir=$srcdir$ac_dir_suffix;
21405     ac_top_srcdir=$srcdir
21406     ac_abs_top_srcdir=$srcdir ;;
21407   *) # Relative name.
21408     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21409     ac_top_srcdir=$ac_top_build_prefix$srcdir
21410     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21411 esac
21412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21413
21414
21415   case $ac_mode in
21416   :F)
21417   #
21418   # CONFIG_FILE
21419   #
21420
21421   case $INSTALL in
21422   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21423   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21424   esac
21425   ac_MKDIR_P=$MKDIR_P
21426   case $MKDIR_P in
21427   [\\/$]* | ?:[\\/]* ) ;;
21428   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21429   esac
21430 _ACEOF
21431
21432 cat >>$CONFIG_STATUS <<\_ACEOF
21433 # If the template does not know about datarootdir, expand it.
21434 # FIXME: This hack should be removed a few years after 2.60.
21435 ac_datarootdir_hack=; ac_datarootdir_seen=
21436
21437 case `sed -n '/datarootdir/ {
21438   p
21439   q
21440 }
21441 /@datadir@/p
21442 /@docdir@/p
21443 /@infodir@/p
21444 /@localedir@/p
21445 /@mandir@/p
21446 ' $ac_file_inputs` in
21447 *datarootdir*) ac_datarootdir_seen=yes;;
21448 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21449   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21450 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21451 _ACEOF
21452 cat >>$CONFIG_STATUS <<_ACEOF
21453   ac_datarootdir_hack='
21454   s&@datadir@&$datadir&g
21455   s&@docdir@&$docdir&g
21456   s&@infodir@&$infodir&g
21457   s&@localedir@&$localedir&g
21458   s&@mandir@&$mandir&g
21459     s&\\\${datarootdir}&$datarootdir&g' ;;
21460 esac
21461 _ACEOF
21462
21463 # Neutralize VPATH when `$srcdir' = `.'.
21464 # Shell code in configure.ac might set extrasub.
21465 # FIXME: do we really want to maintain this feature?
21466 cat >>$CONFIG_STATUS <<_ACEOF
21467   sed "$ac_vpsub
21468 $extrasub
21469 _ACEOF
21470 cat >>$CONFIG_STATUS <<\_ACEOF
21471 :t
21472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21473 s&@configure_input@&$configure_input&;t t
21474 s&@top_builddir@&$ac_top_builddir_sub&;t t
21475 s&@srcdir@&$ac_srcdir&;t t
21476 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21477 s&@top_srcdir@&$ac_top_srcdir&;t t
21478 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21479 s&@builddir@&$ac_builddir&;t t
21480 s&@abs_builddir@&$ac_abs_builddir&;t t
21481 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21482 s&@INSTALL@&$ac_INSTALL&;t t
21483 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21484 $ac_datarootdir_hack
21485 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21486
21487 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21488   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21489   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21490   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21491 which seems to be undefined.  Please make sure it is defined." >&5
21492 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21493 which seems to be undefined.  Please make sure it is defined." >&2;}
21494
21495   rm -f "$tmp/stdin"
21496   case $ac_file in
21497   -) cat "$tmp/out"; rm -f "$tmp/out";;
21498   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21499   esac
21500  ;;
21501
21502
21503   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21504 echo "$as_me: executing $ac_file commands" >&6;}
21505  ;;
21506   esac
21507
21508
21509   case $ac_file$ac_mode in
21510     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21511   # Strip MF so we end up with the name of the file.
21512   mf=`echo "$mf" | sed -e 's/:.*$//'`
21513   # Check whether this is an Automake generated Makefile or not.
21514   # We used to match only the files named `Makefile.in', but
21515   # some people rename them; so instead we look at the file content.
21516   # Grep'ing the first line is not enough: some people post-process
21517   # each Makefile.in and add a new line on top of each file to say so.
21518   # Grep'ing the whole file is not good either: AIX grep has a line
21519   # limit of 2048, but all sed's we know have understand at least 4000.
21520   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21521     dirpart=`$as_dirname -- "$mf" ||
21522 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21523          X"$mf" : 'X\(//\)[^/]' \| \
21524          X"$mf" : 'X\(//\)$' \| \
21525          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21526 echo X"$mf" |
21527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21528             s//\1/
21529             q
21530           }
21531           /^X\(\/\/\)[^/].*/{
21532             s//\1/
21533             q
21534           }
21535           /^X\(\/\/\)$/{
21536             s//\1/
21537             q
21538           }
21539           /^X\(\/\).*/{
21540             s//\1/
21541             q
21542           }
21543           s/.*/./; q'`
21544   else
21545     continue
21546   fi
21547   # Extract the definition of DEPDIR, am__include, and am__quote
21548   # from the Makefile without running `make'.
21549   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21550   test -z "$DEPDIR" && continue
21551   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21552   test -z "am__include" && continue
21553   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21554   # When using ansi2knr, U may be empty or an underscore; expand it
21555   U=`sed -n 's/^U = //p' < "$mf"`
21556   # Find all dependency output files, they are included files with
21557   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21558   # simplest approach to changing $(DEPDIR) to its actual value in the
21559   # expansion.
21560   for file in `sed -n "
21561     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21562        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21563     # Make sure the directory exists.
21564     test -f "$dirpart/$file" && continue
21565     fdir=`$as_dirname -- "$file" ||
21566 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21567          X"$file" : 'X\(//\)[^/]' \| \
21568          X"$file" : 'X\(//\)$' \| \
21569          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21570 echo X"$file" |
21571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21572             s//\1/
21573             q
21574           }
21575           /^X\(\/\/\)[^/].*/{
21576             s//\1/
21577             q
21578           }
21579           /^X\(\/\/\)$/{
21580             s//\1/
21581             q
21582           }
21583           /^X\(\/\).*/{
21584             s//\1/
21585             q
21586           }
21587           s/.*/./; q'`
21588     { as_dir=$dirpart/$fdir
21589   case $as_dir in #(
21590   -*) as_dir=./$as_dir;;
21591   esac
21592   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21593     as_dirs=
21594     while :; do
21595       case $as_dir in #(
21596       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21597       *) as_qdir=$as_dir;;
21598       esac
21599       as_dirs="'$as_qdir' $as_dirs"
21600       as_dir=`$as_dirname -- "$as_dir" ||
21601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21602          X"$as_dir" : 'X\(//\)[^/]' \| \
21603          X"$as_dir" : 'X\(//\)$' \| \
21604          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21605 echo X"$as_dir" |
21606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21607             s//\1/
21608             q
21609           }
21610           /^X\(\/\/\)[^/].*/{
21611             s//\1/
21612             q
21613           }
21614           /^X\(\/\/\)$/{
21615             s//\1/
21616             q
21617           }
21618           /^X\(\/\).*/{
21619             s//\1/
21620             q
21621           }
21622           s/.*/./; q'`
21623       test -d "$as_dir" && break
21624     done
21625     test -z "$as_dirs" || eval "mkdir $as_dirs"
21626   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21627 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21628    { (exit 1); exit 1; }; }; }
21629     # echo "creating $dirpart/$file"
21630     echo '# dummy' > "$dirpart/$file"
21631   done
21632 done
21633  ;;
21634
21635   esac
21636 done # for ac_tag
21637
21638
21639 { (exit 0); exit 0; }
21640 _ACEOF
21641 chmod +x $CONFIG_STATUS
21642 ac_clean_files=$ac_clean_files_save
21643
21644
21645 # configure is writing to config.log, and then calls config.status.
21646 # config.status does its own redirection, appending to config.log.
21647 # Unfortunately, on DOS this fails, as config.log is still kept open
21648 # by configure, so config.status won't be able to write to it; its
21649 # output is simply discarded.  So we exec the FD to /dev/null,
21650 # effectively closing config.log, so it can be properly (re)opened and
21651 # appended to by config.status.  When coming back to configure, we
21652 # need to make the FD available again.
21653 if test "$no_create" != yes; then
21654   ac_cs_success=:
21655   ac_config_status_args=
21656   test "$silent" = yes &&
21657     ac_config_status_args="$ac_config_status_args --quiet"
21658   exec 5>/dev/null
21659   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21660   exec 5>>config.log
21661   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21662   # would make configure fail if this is the last instruction.
21663   $ac_cs_success || { (exit 1); exit 1; }
21664 fi
21665