Convert gaim references to purple. Remove some unneeded code in sip-ntlm
[siplcs.git] / autom4te.cache / output.0
blobcd7970ae05a7977ea20ef191f8f58768a1d5aa73
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61.
4 @%:@ 
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
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
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
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
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
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='
68 IFS=" ""        $as_nl"
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
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
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
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; }
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='+ '
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
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
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
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
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'`
150 # CDPATH.
151 $as_unset CDPATH
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
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
165 as_func_success () {
166   as_func_return 0
168 as_func_failure () {
169   as_func_return 1
171 as_func_ret_success () {
172   return 0
174 as_func_ret_failure () {
175   return 1
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
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.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
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
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
277 (as_func_return () {
278   (exit $1)
280 as_func_success () {
281   as_func_return 0
283 as_func_failure () {
284   as_func_return 1
286 as_func_ret_success () {
287   return 0
289 as_func_ret_failure () {
290   return 1
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
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.
325 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
333 _ASEOF
334 }; then
335   break
340       done
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+"$@"}
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; }
359     
366 (eval "as_func_return () {
367   (exit \$1)
369 as_func_success () {
370   as_func_return 0
372 as_func_failure () {
373   as_func_return 1
375 as_func_ret_success () {
376   return 0
378 as_func_ret_failure () {
379   return 1
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
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.
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
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" || {
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; }; }
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
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
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;;
480   ECHO_N='-n';;
481 esac
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
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
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'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
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
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   '
542 as_executable_p=$as_test_x
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'"
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'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
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
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+"$@"}
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
584   exit 0
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
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
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.
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"
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=:
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
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
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"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
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`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIB@&t@OBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 install_sh
818 STRIP
819 INSTALL_STRIP_PROGRAM
820 mkdir_p
822 SET_MAKE
823 am__leading_dot
824 AMTAR
825 am__tar
826 am__untar
828 CFLAGS
829 LDFLAGS
830 CPPFLAGS
831 ac_ct_CC
832 EXEEXT
833 OBJEXT
834 DEPDIR
835 am__include
836 am__quote
837 AMDEP_TRUE
838 AMDEP_FALSE
839 AMDEPBACKSLASH
840 CCDEPMODE
841 am__fastdepCC_TRUE
842 am__fastdepCC_FALSE
843 build
844 build_cpu
845 build_vendor
846 build_os
847 host
848 host_cpu
849 host_vendor
850 host_os
851 GREP
852 EGREP
853 LN_S
854 ECHO
856 RANLIB
859 CXXFLAGS
860 ac_ct_CXX
861 CXXDEPMODE
862 am__fastdepCXX_TRUE
863 am__fastdepCXX_FALSE
864 CXXCPP
866 FFLAGS
867 ac_ct_F77
868 LIBTOOL
869 PIDGIN_MIN
870 PIDGIN_MAX
871 PKG_CONFIG
872 libpurple_CFLAGS
873 libpurple_LIBS
874 PIDGIN_CFLAGS
875 PIDGIN_LIBS
876 SIPE_LIBA
877 SIPE_STATIC_TRUE
878 SIPE_STATIC_FALSE
879 LIB@&t@OBJS
880 LTLIBOBJS'
881 ac_subst_files=''
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
892 CXXFLAGS
894 CXXCPP
896 FFLAGS
897 PKG_CONFIG
898 libpurple_CFLAGS
899 libpurple_LIBS'
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
948 ac_prev=
949 ac_dashdash=
950 for ac_option
952   # If the previous option needs an argument, assign it.
953   if test -n "$ac_prev"; then
954     eval $ac_prev=\$ac_option
955     ac_prev=
956     continue
957   fi
959   case $ac_option in
960   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961   *)    ac_optarg=yes ;;
962   esac
964   # Accept the important Cygnus configure options, so we can diagnose typos.
966   case $ac_dashdash$ac_option in
967   --)
968     ac_dashdash=yes ;;
970   -bindir | --bindir | --bindi | --bind | --bin | --bi)
971     ac_prev=bindir ;;
972   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973     bindir=$ac_optarg ;;
975   -build | --build | --buil | --bui | --bu)
976     ac_prev=build_alias ;;
977   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978     build_alias=$ac_optarg ;;
980   -cache-file | --cache-file | --cache-fil | --cache-fi \
981   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982     ac_prev=cache_file ;;
983   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985     cache_file=$ac_optarg ;;
987   --config-cache | -C)
988     cache_file=config.cache ;;
990   -datadir | --datadir | --datadi | --datad)
991     ac_prev=datadir ;;
992   -datadir=* | --datadir=* | --datadi=* | --datad=*)
993     datadir=$ac_optarg ;;
995   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996   | --dataroo | --dataro | --datar)
997     ac_prev=datarootdir ;;
998   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000     datarootdir=$ac_optarg ;;
1002   -disable-* | --disable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009     eval enable_$ac_feature=no ;;
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1021   -enable-* | --enable-*)
1022     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026    { (exit 1); exit 1; }; }
1027     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028     eval enable_$ac_feature=\$ac_optarg ;;
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1218   -with-* | --with-*)
1219     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid package name: $ac_package" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225     eval with_$ac_package=\$ac_optarg ;;
1227   -without-* | --without-*)
1228     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231       { echo "$as_me: error: invalid package name: $ac_package" >&2
1232    { (exit 1); exit 1; }; }
1233     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234     eval with_$ac_package=no ;;
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1254   -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1276   esac
1277 done
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287                 datadir sysconfdir sharedstatedir localstatedir includedir \
1288                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289                 libdir localedir mandir
1291   eval ac_val=\$$ac_var
1292   case $ac_val in
1293     [\\/$]* | ?:[\\/]* )  continue;;
1294     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295   esac
1296   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297    { (exit 1); exit 1; }; }
1298 done
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309   if test "x$build_alias" = x; then
1310     cross_compiling=maybe
1311     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312     If a cross compiler is detected then cross compile mode will be used." >&2
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   { echo "$as_me: error: Working directory cannot be determined" >&2
1328    { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330   { echo "$as_me: error: pwd does not report name of working directory" >&2
1331    { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336   ac_srcdir_defaulted=yes
1337   # Try the directory containing this script, then the parent directory.
1338   ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340          X"$0" : 'X\(//\)[^/]' \| \
1341          X"$0" : 'X\(//\)$' \| \
1342          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 echo X"$0" |
1344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\/\)[^/].*/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\/\)$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\).*/{
1357             s//\1/
1358             q
1359           }
1360           s/.*/./; q'`
1361   srcdir=$ac_confdir
1362   if test ! -r "$srcdir/$ac_unique_file"; then
1363     srcdir=..
1364   fi
1365 else
1366   ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371    { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376    { (exit 1); exit 1; }; }
1377         pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380   srcdir=.
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390   eval ac_env_${ac_var}_value=\$${ac_var}
1391   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399   # Omit some internal or obsolete options to make the list less imposing.
1400   # This message is too long to be a string in the A/UX 3.1 sh.
1401   cat <<_ACEOF
1402 \`configure' configures this package to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1411 Configuration:
1412   -h, --help              display this help and exit
1413       --help=short        display options specific to this package
1414       --help=recursive    display the short help of all the included packages
1415   -V, --version           display version information and exit
1416   -q, --quiet, --silent   do not print \`checking...' messages
1417       --cache-file=FILE   cache test results in FILE [disabled]
1418   -C, --config-cache      alias for \`--cache-file=config.cache'
1419   -n, --no-create         do not create output files
1420       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423   --prefix=PREFIX         install architecture-independent files in PREFIX
1424                           [$ac_default_prefix]
1425   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                           [PREFIX]
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436   --bindir=DIR           user executables [EPREFIX/bin]
1437   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438   --libexecdir=DIR       program executables [EPREFIX/libexec]
1439   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442   --libdir=DIR           object code libraries [EPREFIX/lib]
1443   --includedir=DIR       C header files [PREFIX/include]
1444   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447   --infodir=DIR          info documentation [DATAROOTDIR/info]
1448   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449   --mandir=DIR           man documentation [DATAROOTDIR/man]
1450   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1451   --htmldir=DIR          html documentation [DOCDIR]
1452   --dvidir=DIR           dvi documentation [DOCDIR]
1453   --pdfdir=DIR           pdf documentation [DOCDIR]
1454   --psdir=DIR            ps documentation [DOCDIR]
1455 _ACEOF
1457   cat <<\_ACEOF
1459 Program names:
1460   --program-prefix=PREFIX            prepend PREFIX to installed program names
1461   --program-suffix=SUFFIX            append SUFFIX to installed program names
1462   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1464 System types:
1465   --build=BUILD     configure for building on BUILD [guessed]
1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1470 if test -n "$ac_init_help"; then
1472   cat <<\_ACEOF
1474 Optional Features:
1475   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
1478   --disable-dependency-tracking  speeds up one-time build
1479   --enable-dependency-tracking   do not reject slow dependency extractors
1480   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1481   --enable-fast-install@<:@=PKGS@:>@ 
1482                           optimize for fast installation @<:@default=yes@:>@
1483   --disable-libtool-lock  avoid locking (might break parallel builds)
1484   --enable-debug          compile with debugging support
1485   --enable-static-sipe  statically link in Simple Exchange
1487 Optional Packages:
1488   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1491   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1492                           both@:>@
1493   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1495 Some influential environment variables:
1496   CC          C compiler command
1497   CFLAGS      C compiler flags
1498   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1499               nonstandard directory <lib dir>
1500   LIBS        libraries to pass to the linker, e.g. -l<library>
1501   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1502               you have headers in a nonstandard directory <include dir>
1503   CPP         C preprocessor
1504   CXX         C++ compiler command
1505   CXXFLAGS    C++ compiler flags
1506   CXXCPP      C++ preprocessor
1507   F77         Fortran 77 compiler command
1508   FFLAGS      Fortran 77 compiler flags
1509   PKG_CONFIG  path to pkg-config utility
1510   libpurple_CFLAGS 
1511               C compiler flags for libpurple, overriding pkg-config
1512   libpurple_LIBS 
1513               linker flags for libpurple, overriding pkg-config
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1518 _ACEOF
1519 ac_status=$?
1522 if test "$ac_init_help" = "recursive"; then
1523   # If there are subdirs, report their specific --help.
1524   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525     test -d "$ac_dir" || continue
1526     ac_builddir=.
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 configure
1579 generated by GNU Autoconf 2.61
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586   exit
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61.  Invocation command line was
1595   $ $0 $@
1597 _ACEOF
1598 exec 5>>config.log
1600 cat <<_ASUNAME
1601 @%:@@%:@ --------- @%:@@%:@
1602 @%:@@%:@ Platform. @%:@@%:@
1603 @%:@@%:@ --------- @%:@@%:@
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1614 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1615 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1618 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1619 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1620 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1622 _ASUNAME
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   echo "PATH: $as_dir"
1630 done
1631 IFS=$as_save_IFS
1633 } >&5
1635 cat >&5 <<_ACEOF
1638 @%:@@%:@ ----------- @%:@@%:@
1639 @%:@@%:@ Core tests. @%:@@%:@
1640 @%:@@%:@ ----------- @%:@@%:@
1642 _ACEOF
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_configure_args=
1651 ac_configure_args0=
1652 ac_configure_args1=
1653 ac_must_keep_next=false
1654 for ac_pass in 1 2
1656   for ac_arg
1657   do
1658     case $ac_arg in
1659     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661     | -silent | --silent | --silen | --sile | --sil)
1662       continue ;;
1663     *\'*)
1664       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665     esac
1666     case $ac_pass in
1667     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668     2)
1669       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670       if test $ac_must_keep_next = true; then
1671         ac_must_keep_next=false # Got value, back to normal.
1672       else
1673         case $ac_arg in
1674           *=* | --config-cache | -C | -disable-* | --disable-* \
1675           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677           | -with-* | --with-* | -without-* | --without-* | --x)
1678             case "$ac_configure_args0 " in
1679               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680             esac
1681             ;;
1682           -* ) ac_must_keep_next=true ;;
1683         esac
1684       fi
1685       ac_configure_args="$ac_configure_args '$ac_arg'"
1686       ;;
1687     esac
1688   done
1689 done
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log.  We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699   # Save into config.log some information that might help in debugging.
1700   {
1701     echo
1703     cat <<\_ASBOX
1704 @%:@@%:@ ---------------- @%:@@%:@
1705 @%:@@%:@ Cache variables. @%:@@%:@
1706 @%:@@%:@ ---------------- @%:@@%:@
1707 _ASBOX
1708     echo
1709     # The following way of writing the cache mishandles newlines in values,
1711   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712     eval ac_val=\$$ac_var
1713     case $ac_val in #(
1714     *${as_nl}*)
1715       case $ac_var in #(
1716       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718       esac
1719       case $ac_var in #(
1720       _ | IFS | as_nl) ;; #(
1721       *) $as_unset $ac_var ;;
1722       esac ;;
1723     esac
1724   done
1725   (set) 2>&1 |
1726     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727     *${as_nl}ac_space=\ *)
1728       sed -n \
1729         "s/'\''/'\''\\\\'\'''\''/g;
1730           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731       ;; #(
1732     *)
1733       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734       ;;
1735     esac |
1736     sort
1738     echo
1740     cat <<\_ASBOX
1741 @%:@@%:@ ----------------- @%:@@%:@
1742 @%:@@%:@ Output variables. @%:@@%:@
1743 @%:@@%:@ ----------------- @%:@@%:@
1744 _ASBOX
1745     echo
1746     for ac_var in $ac_subst_vars
1747     do
1748       eval ac_val=\$$ac_var
1749       case $ac_val in
1750       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751       esac
1752       echo "$ac_var='\''$ac_val'\''"
1753     done | sort
1754     echo
1756     if test -n "$ac_subst_files"; then
1757       cat <<\_ASBOX
1758 @%:@@%:@ ------------------- @%:@@%:@
1759 @%:@@%:@ File substitutions. @%:@@%:@
1760 @%:@@%:@ ------------------- @%:@@%:@
1761 _ASBOX
1762       echo
1763       for ac_var in $ac_subst_files
1764       do
1765         eval ac_val=\$$ac_var
1766         case $ac_val in
1767         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768         esac
1769         echo "$ac_var='\''$ac_val'\''"
1770       done | sort
1771       echo
1772     fi
1774     if test -s confdefs.h; then
1775       cat <<\_ASBOX
1776 @%:@@%:@ ----------- @%:@@%:@
1777 @%:@@%:@ confdefs.h. @%:@@%:@
1778 @%:@@%:@ ----------- @%:@@%:@
1779 _ASBOX
1780       echo
1781       cat confdefs.h
1782       echo
1783     fi
1784     test "$ac_signal" != 0 &&
1785       echo "$as_me: caught signal $ac_signal"
1786     echo "$as_me: exit $exit_status"
1787   } >&5
1788   rm -f core *.core core.conftest.* &&
1789     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790     exit $exit_status
1791 ' 0
1792 for ac_signal in 1 2 13 15; do
1793   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 done
1795 ac_signal=0
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1800 # Predefined preprocessor variables.
1802 cat >>confdefs.h <<_ACEOF
1803 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1804 _ACEOF
1807 cat >>confdefs.h <<_ACEOF
1808 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 _ACEOF
1817 cat >>confdefs.h <<_ACEOF
1818 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1819 _ACEOF
1822 cat >>confdefs.h <<_ACEOF
1823 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 _ACEOF
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830   set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 else
1834   set x "$ac_default_prefix/share/config.site" \
1835         "$ac_default_prefix/etc/config.site"
1837 shift
1838 for ac_site_file
1840   if test -r "$ac_site_file"; then
1841     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843     sed 's/^/| /' "$ac_site_file" >&5
1844     . "$ac_site_file"
1845   fi
1846 done
1848 if test -r "$cache_file"; then
1849   # Some versions of bash will fail to source /dev/null (special
1850   # files actually), so we avoid doing that.
1851   if test -f "$cache_file"; then
1852     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1854     case $cache_file in
1855       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856       *)                      . "./$cache_file";;
1857     esac
1858   fi
1859 else
1860   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1862   >$cache_file
1865 # Check that the precious variables saved in the cache have kept the same
1866 # value.
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870   eval ac_new_set=\$ac_env_${ac_var}_set
1871   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872   eval ac_new_val=\$ac_env_${ac_var}_value
1873   case $ac_old_set,$ac_new_set in
1874     set,)
1875       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877       ac_cache_corrupted=: ;;
1878     ,set)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,);;
1883     *)
1884       if test "x$ac_old_val" != "x$ac_new_val"; then
1885         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1888 echo "$as_me:   former value:  $ac_old_val" >&2;}
1889         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1890 echo "$as_me:   current value: $ac_new_val" >&2;}
1891         ac_cache_corrupted=:
1892       fi;;
1893   esac
1894   # Pass precious variables to config.status.
1895   if test "$ac_new_set" = set; then
1896     case $ac_new_val in
1897     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898     *) ac_arg=$ac_var=$ac_new_val ;;
1899     esac
1900     case " $ac_configure_args " in
1901       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1902       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903     esac
1904   fi
1905 done
1906 if $ac_cache_corrupted; then
1907   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911    { (exit 1); exit 1; }; }
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 am__api_version="1.9"
1938 ac_aux_dir=
1939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1940   if test -f "$ac_dir/install-sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install-sh -c"
1943     break
1944   elif test -f "$ac_dir/install.sh"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/install.sh -c"
1947     break
1948   elif test -f "$ac_dir/shtool"; then
1949     ac_aux_dir=$ac_dir
1950     ac_install_sh="$ac_aux_dir/shtool install -c"
1951     break
1952   fi
1953 done
1954 if test -z "$ac_aux_dir"; then
1955   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1956 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1957    { (exit 1); exit 1; }; }
1960 # These three variables are undocumented and unsupported,
1961 # and are intended to be withdrawn in a future Autoconf release.
1962 # They can cause serious problems if a builder's source tree is in a directory
1963 # whose full name contains unusual characters.
1964 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1965 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1966 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1969 # Find a good install program.  We prefer a C program (faster),
1970 # so one script is as good as another.  But avoid the broken or
1971 # incompatible versions:
1972 # SysV /etc/install, /usr/sbin/install
1973 # SunOS /usr/etc/install
1974 # IRIX /sbin/install
1975 # AIX /bin/install
1976 # AmigaOS /C/install, which installs bootblocks on floppy discs
1977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980 # OS/2's system install, which has a completely different semantic
1981 # ./install, which can be erroneously created by make from ./install.sh.
1982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1984 if test -z "$INSTALL"; then
1985 if test "${ac_cv_path_install+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   # Account for people who put trailing slashes in PATH elements.
1994 case $as_dir/ in
1995   ./ | .// | /cC/* | \
1996   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1997   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1998   /usr/ucb/* ) ;;
1999   *)
2000     # OSF1 and SCO ODT 3.0 have their own names for install.
2001     # Don't use installbsd from OSF since it installs stuff as root
2002     # by default.
2003     for ac_prog in ginstall scoinst install; do
2004       for ac_exec_ext in '' $ac_executable_extensions; do
2005         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006           if test $ac_prog = install &&
2007             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008             # AIX install.  It has an incompatible calling convention.
2009             :
2010           elif test $ac_prog = install &&
2011             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012             # program-specific install script used by HP pwplus--don't use.
2013             :
2014           else
2015             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2016             break 3
2017           fi
2018         fi
2019       done
2020     done
2021     ;;
2022 esac
2023 done
2024 IFS=$as_save_IFS
2028   if test "${ac_cv_path_install+set}" = set; then
2029     INSTALL=$ac_cv_path_install
2030   else
2031     # As a last resort, use the slow shell script.  Don't cache a
2032     # value for INSTALL within a source directory, because that will
2033     # break other packages using the cache if that directory is
2034     # removed, or if the value is a relative name.
2035     INSTALL=$ac_install_sh
2036   fi
2038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2039 echo "${ECHO_T}$INSTALL" >&6; }
2041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042 # It thinks the first close brace ends the variable substitution.
2043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2049 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2051 # Just in case
2052 sleep 1
2053 echo timestamp > conftest.file
2054 # Do `set' in a subshell so we don't clobber the current shell's
2055 # arguments.  Must try -L first in case configure is actually a
2056 # symlink; some systems play weird games with the mod time of symlinks
2057 # (eg FreeBSD returns the mod time of the symlink's containing
2058 # directory).
2059 if (
2060    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061    if test "$*" = "X"; then
2062       # -L didn't work.
2063       set X `ls -t $srcdir/configure conftest.file`
2064    fi
2065    rm -f conftest.file
2066    if test "$*" != "X $srcdir/configure conftest.file" \
2067       && test "$*" != "X conftest.file $srcdir/configure"; then
2069       # If neither matched, then we have a broken ls.  This can happen
2070       # if, for instance, CONFIG_SHELL is bash and it inherits a
2071       # broken ls alias from the environment.  This has actually
2072       # happened.  Such a system could not be considered "sane".
2073       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2074 alias in your environment" >&5
2075 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2076 alias in your environment" >&2;}
2077    { (exit 1); exit 1; }; }
2078    fi
2080    test "$2" = conftest.file
2081    )
2082 then
2083    # Ok.
2084    :
2085 else
2086    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087 Check your system clock" >&5
2088 echo "$as_me: error: newly created file is older than distributed files!
2089 Check your system clock" >&2;}
2090    { (exit 1); exit 1; }; }
2092 { echo "$as_me:$LINENO: result: yes" >&5
2093 echo "${ECHO_T}yes" >&6; }
2094 test "$program_prefix" != NONE &&
2095   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2096 # Use a double $ so make ignores it.
2097 test "$program_suffix" != NONE &&
2098   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2099 # Double any \ or $.  echo might interpret backslashes.
2100 # By default was `s,x,x', remove it if useless.
2101 cat <<\_ACEOF >conftest.sed
2102 s/[\\$]/&&/g;s/;s,x,x,$//
2103 _ACEOF
2104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2105 rm -f conftest.sed
2107 # expand $ac_aux_dir to an absolute path
2108 am_aux_dir=`cd $ac_aux_dir && pwd`
2110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111 # Use eval to expand $SHELL
2112 if eval "$MISSING --run true"; then
2113   am_missing_run="$MISSING --run "
2114 else
2115   am_missing_run=
2116   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2120 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2121   # We used to keeping the `.' as first argument, in order to
2122   # allow $(mkdir_p) to be used without argument.  As in
2123   #   $(mkdir_p) $(somedir)
2124   # where $(somedir) is conditionally defined.  However this is wrong
2125   # for two reasons:
2126   #  1. if the package is installed by a user who cannot write `.'
2127   #     make install will fail,
2128   #  2. the above comment should most certainly read
2129   #     $(mkdir_p) $(DESTDIR)$(somedir)
2130   #     so it does not work when $(somedir) is undefined and
2131   #     $(DESTDIR) is not.
2132   #  To support the latter case, we have to write
2133   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2134   #  so the `.' trick is pointless.
2135   mkdir_p='mkdir -p --'
2136 else
2137   # On NextStep and OpenStep, the `mkdir' command does not
2138   # recognize any option.  It will interpret all options as
2139   # directories to create, and then abort because `.' already
2140   # exists.
2141   for d in ./-p ./--version;
2142   do
2143     test -d $d && rmdir $d
2144   done
2145   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2146   if test -f "$ac_aux_dir/mkinstalldirs"; then
2147     mkdir_p='$(mkinstalldirs)'
2148   else
2149     mkdir_p='$(install_sh) -d'
2150   fi
2153 for ac_prog in gawk mawk nawk awk
2155   # Extract the first word of "$ac_prog", so it can be a program name with args.
2156 set dummy $ac_prog; ac_word=$2
2157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159 if test "${ac_cv_prog_AWK+set}" = set; then
2160   echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162   if test -n "$AWK"; then
2163   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2168   IFS=$as_save_IFS
2169   test -z "$as_dir" && as_dir=.
2170   for ac_exec_ext in '' $ac_executable_extensions; do
2171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172     ac_cv_prog_AWK="$ac_prog"
2173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174     break 2
2175   fi
2176 done
2177 done
2178 IFS=$as_save_IFS
2182 AWK=$ac_cv_prog_AWK
2183 if test -n "$AWK"; then
2184   { echo "$as_me:$LINENO: result: $AWK" >&5
2185 echo "${ECHO_T}$AWK" >&6; }
2186 else
2187   { echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6; }
2192   test -n "$AWK" && break
2193 done
2195 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2196 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2197 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2198 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   cat >conftest.make <<\_ACEOF
2202 SHELL = /bin/sh
2203 all:
2204         @echo '@@@%%%=$(MAKE)=@@@%%%'
2205 _ACEOF
2206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2207 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2208   *@@@%%%=?*=@@@%%%*)
2209     eval ac_cv_prog_make_${ac_make}_set=yes;;
2210   *)
2211     eval ac_cv_prog_make_${ac_make}_set=no;;
2212 esac
2213 rm -f conftest.make
2215 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2216   { echo "$as_me:$LINENO: result: yes" >&5
2217 echo "${ECHO_T}yes" >&6; }
2218   SET_MAKE=
2219 else
2220   { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2222   SET_MAKE="MAKE=${MAKE-make}"
2225 rm -rf .tst 2>/dev/null
2226 mkdir .tst 2>/dev/null
2227 if test -d .tst; then
2228   am__leading_dot=.
2229 else
2230   am__leading_dot=_
2232 rmdir .tst 2>/dev/null
2234 # test to see if srcdir already configured
2235 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2236    test -f $srcdir/config.status; then
2237   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2238 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2239    { (exit 1); exit 1; }; }
2242 # test whether we have cygpath
2243 if test -z "$CYGPATH_W"; then
2244   if (cygpath --version) >/dev/null 2>/dev/null; then
2245     CYGPATH_W='cygpath -w'
2246   else
2247     CYGPATH_W=echo
2248   fi
2252 # Define the identity of the package.
2253  PACKAGE=pidgin_sipe
2254  VERSION=1.2.0
2257 cat >>confdefs.h <<_ACEOF
2258 @%:@define PACKAGE "$PACKAGE"
2259 _ACEOF
2262 cat >>confdefs.h <<_ACEOF
2263 @%:@define VERSION "$VERSION"
2264 _ACEOF
2266 # Some tools Automake needs.
2268 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2271 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2274 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2277 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2280 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2282 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2284 # Installed binaries are usually stripped using `strip' when the user
2285 # run `make install-strip'.  However `strip' might not be the right
2286 # tool to use in cross-compilation environments, therefore Automake
2287 # will honor the `STRIP' environment variable to overrule this program.
2288 if test "$cross_compiling" != no; then
2289   if test -n "$ac_tool_prefix"; then
2290   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}strip; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_STRIP+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   if test -n "$STRIP"; then
2298   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303   IFS=$as_save_IFS
2304   test -z "$as_dir" && as_dir=.
2305   for ac_exec_ext in '' $ac_executable_extensions; do
2306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312 done
2313 IFS=$as_save_IFS
2317 STRIP=$ac_cv_prog_STRIP
2318 if test -n "$STRIP"; then
2319   { echo "$as_me:$LINENO: result: $STRIP" >&5
2320 echo "${ECHO_T}$STRIP" >&6; }
2321 else
2322   { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2328 if test -z "$ac_cv_prog_STRIP"; then
2329   ac_ct_STRIP=$STRIP
2330   # Extract the first word of "strip", so it can be a program name with args.
2331 set dummy strip; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   if test -n "$ac_ct_STRIP"; then
2338   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347     ac_cv_prog_ac_ct_STRIP="strip"
2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349     break 2
2350   fi
2351 done
2352 done
2353 IFS=$as_save_IFS
2357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2358 if test -n "$ac_ct_STRIP"; then
2359   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2360 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2361 else
2362   { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2366   if test "x$ac_ct_STRIP" = x; then
2367     STRIP=":"
2368   else
2369     case $cross_compiling:$ac_tool_warned in
2370 yes:)
2371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2372 whose name does not start with the host triplet.  If you think this
2373 configuration is useful to you, please write to autoconf@gnu.org." >&5
2374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet.  If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2377 ac_tool_warned=yes ;;
2378 esac
2379     STRIP=$ac_ct_STRIP
2380   fi
2381 else
2382   STRIP="$ac_cv_prog_STRIP"
2386 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2388 # We need awk for the "check" target.  The system "awk" is bad on
2389 # some platforms.
2390 # Always define AMTAR for backward compatibility.
2392 AMTAR=${AMTAR-"${am_missing_run}tar"}
2394 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2403 # Check whether --enable-static was given.
2404 if test "${enable_static+set}" = set; then
2405   enableval=$enable_static; p=${PACKAGE-default}
2406     case $enableval in
2407     yes) enable_static=yes ;;
2408     no) enable_static=no ;;
2409     *)
2410      enable_static=no
2411       # Look at the argument we got.  We use all the common list separators.
2412       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2413       for pkg in $enableval; do
2414         IFS="$lt_save_ifs"
2415         if test "X$pkg" = "X$p"; then
2416           enable_static=yes
2417         fi
2418       done
2419       IFS="$lt_save_ifs"
2420       ;;
2421     esac
2422 else
2423   enable_static=no
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464   { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_CC"; then
2474   ac_ct_CC=$CC
2475   # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$ac_ct_CC"; then
2483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_CC="gcc"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511   if test "x$ac_ct_CC" = x; then
2512     CC=""
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524     CC=$ac_ct_CC
2525   fi
2526 else
2527   CC="$ac_cv_prog_CC"
2530 if test -z "$CC"; then
2531           if test -n "$ac_tool_prefix"; then
2532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547   for ac_exec_ext in '' $ac_executable_extensions; do
2548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549     ac_cv_prog_CC="${ac_tool_prefix}cc"
2550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561   { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2563 else
2564   { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2569   fi
2571 if test -z "$CC"; then
2572   # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CC"; then
2580   ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582   ac_prog_rejected=no
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591        ac_prog_rejected=yes
2592        continue
2593      fi
2594     ac_cv_prog_CC="cc"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2602 if test $ac_prog_rejected = yes; then
2603   # We found a bogon in the path, so make sure we never use it.
2604   set dummy $ac_cv_prog_CC
2605   shift
2606   if test $@%:@ != 0; then
2607     # We chose a different compiler from the bogus one.
2608     # However, it has the same basename, so the bogon will be chosen
2609     # first if we set CC to just the basename; use the full file name.
2610     shift
2611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612   fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2627 if test -z "$CC"; then
2628   if test -n "$ac_tool_prefix"; then
2629   for ac_prog in cl.exe
2630   do
2631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660   { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668     test -n "$CC" && break
2669   done
2671 if test -z "$CC"; then
2672   ac_ct_CC=$CC
2673   for ac_prog in cl.exe
2675   # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   if test -n "$ac_ct_CC"; then
2683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690   for ac_exec_ext in '' $ac_executable_extensions; do
2691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692     ac_cv_prog_ac_ct_CC="$ac_prog"
2693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2706 else
2707   { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2712   test -n "$ac_ct_CC" && break
2713 done
2715   if test "x$ac_ct_CC" = x; then
2716     CC=""
2717   else
2718     case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet.  If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet.  If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     CC=$ac_ct_CC
2729   fi
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739    { (exit 1); exit 1; }; }
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_compiler --version >&5") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compiler -v >&5") 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770   (eval "$ac_compiler -V >&5") 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2783 main ()
2786   ;
2787   return 0;
2789 _ACEOF
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2794 # of exeext.
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort.  b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions.  Remove them first so a
2806 # subsequent execution test works.
2807 ac_rmfiles=
2808 for ac_file in $ac_files
2810   case $ac_file in
2811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813   esac
2814 done
2815 rm -f $ac_rmfiles
2817 if { (ac_try="$ac_link_default"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_link_default") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; then
2827   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2831 # Autoconf.
2832 for ac_file in $ac_files ''
2834   test -f "$ac_file" || continue
2835   case $ac_file in
2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837         ;;
2838     [ab].out )
2839         # We found the default executable, but exeext='' is most
2840         # certainly right.
2841         break;;
2842     *.* )
2843         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844         then :; else
2845            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846         fi
2847         # We set ac_cv_exeext here because the later test for it is not
2848         # safe: cross compilers may not add the suffix if given an `-o'
2849         # argument, so we may need to know it at that point already.
2850         # Even if this section looks crufty: it has the advantage of
2851         # actually working.
2852         break;;
2853     * )
2854         break;;
2855   esac
2856 done
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2859 else
2860   ac_file=''
2863 { echo "$as_me:$LINENO: result: $ac_file" >&5
2864 echo "${ECHO_T}$ac_file" >&6; }
2865 if test -z "$ac_file"; then
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&2;}
2873    { (exit 77); exit 77; }; }
2876 ac_exeext=$ac_cv_exeext
2878 # Check that the compiler produces executables we can run.  If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885   if { ac_try='./$ac_file'
2886   { (case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_try") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895     cross_compiling=no
2896   else
2897     if test "$cross_compiling" = maybe; then
2898         cross_compiling=yes
2899     else
2900         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&2;}
2906    { (exit 1); exit 1; }; }
2907     fi
2908   fi
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914 ac_clean_files=$ac_clean_files_save
2915 # Check that the compiler produces executables we can run.  If not, either
2916 # the compiler is broken, or we cross compile.
2917 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920 echo "${ECHO_T}$cross_compiling" >&6; }
2922 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924 if { (ac_try="$ac_link"
2925 case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_link") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; then
2934   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2937 # `rm'.
2938 for ac_file in conftest.exe conftest conftest.*; do
2939   test -f "$ac_file" || continue
2940   case $ac_file in
2941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943           break;;
2944     * ) break;;
2945   esac
2946 done
2947 else
2948   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&2;}
2952    { (exit 1); exit 1; }; }
2955 rm -f conftest$ac_cv_exeext
2956 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959 rm -f conftest.$ac_ext
2960 EXEEXT=$ac_cv_exeext
2961 ac_exeext=$EXEEXT
2962 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964 if test "${ac_cv_objext+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2975 main ()
2978   ;
2979   return 0;
2981 _ACEOF
2982 rm -f conftest.o conftest.obj
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_compile") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; then
2993   for ac_file in conftest.o conftest.obj conftest.*; do
2994   test -f "$ac_file" || continue;
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998        break;;
2999   esac
3000 done
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&2;}
3009    { (exit 1); exit 1; }; }
3012 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015 echo "${ECHO_T}$ac_cv_objext" >&6; }
3016 OBJEXT=$ac_cv_objext
3017 ac_objext=$OBJEXT
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3031 main ()
3033 #ifndef __GNUC__
3034        choke me
3035 #endif
3037   ;
3038   return 0;
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_compile") 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } && {
3055          test -z "$ac_c_werror_flag" ||
3056          test ! -s conftest.err
3057        } && test -s conftest.$ac_objext; then
3058   ac_compiler_gnu=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063         ac_compiler_gnu=no
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   ac_save_c_werror_flag=$ac_c_werror_flag
3081    ac_c_werror_flag=yes
3082    ac_cv_prog_cc_g=no
3083    CFLAGS="-g"
3084    cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3092 main ()
3095   ;
3096   return 0;
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } && {
3113          test -z "$ac_c_werror_flag" ||
3114          test ! -s conftest.err
3115        } && test -s conftest.$ac_objext; then
3116   ac_cv_prog_cc_g=yes
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121         CFLAGS=""
3122       cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3130 main ()
3133   ;
3134   return 0;
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compile") 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } && {
3151          test -z "$ac_c_werror_flag" ||
3152          test ! -s conftest.err
3153        } && test -s conftest.$ac_objext; then
3154   :
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159         ac_c_werror_flag=$ac_save_c_werror_flag
3160          CFLAGS="-g"
3161          cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3169 main ()
3172   ;
3173   return 0;
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_cv_prog_cc_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198         
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_c_werror_flag=$ac_save_c_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213   CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215   if test "$GCC" = yes; then
3216     CFLAGS="-g -O2"
3217   else
3218     CFLAGS="-g"
3219   fi
3220 else
3221   if test "$GCC" = yes; then
3222     CFLAGS="-O2"
3223   else
3224     CFLAGS=
3225   fi
3227 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_c89+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   ac_cv_prog_cc_c89=no
3233 ac_save_CC=$CC
3234 cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 #include <stdarg.h>
3241 #include <stdio.h>
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3248      char **p;
3249      int i;
3251   return p[i];
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3255   char *s;
3256   va_list v;
3257   va_start (v,p);
3258   s = g (p, va_arg (v,int));
3259   va_end (v);
3260   return s;
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3264    function prototypes and stuff, but not '\xHH' hex character constants.
3265    These don't provoke an error unfortunately, instead are silently treated
3266    as 'x'.  The following induces an error, until -std is added to get
3267    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3268    array size at least.  It's necessary to write '\x00'==0 to get something
3269    that's true only with -std.  */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273    inside strings and character constants.  */
3274 #define FOO(x) 'x'
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 int argc;
3282 char **argv;
3284 main ()
3286 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3287   ;
3288   return 0;
3290 _ACEOF
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294   CC="$ac_save_CC $ac_arg"
3295   rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_compile") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && {
3309          test -z "$ac_c_werror_flag" ||
3310          test ! -s conftest.err
3311        } && test -s conftest.$ac_objext; then
3312   ac_cv_prog_cc_c89=$ac_arg
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317         
3320 rm -f core conftest.err conftest.$ac_objext 
3321   test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 done
3323 rm -f conftest.$ac_ext
3324 CC=$ac_save_CC
3327 # AC_CACHE_VAL
3328 case "x$ac_cv_prog_cc_c89" in
3329   x)
3330     { echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6; } ;;
3332   xno)
3333     { echo "$as_me:$LINENO: result: unsupported" >&5
3334 echo "${ECHO_T}unsupported" >&6; } ;;
3335   *)
3336     CC="$CC $ac_cv_prog_cc_c89"
3337     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3339 esac
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 DEPDIR="${am__leading_dot}deps"
3349 ac_config_commands="$ac_config_commands depfiles"
3352 am_make=${MAKE-make}
3353 cat > confinc << 'END'
3354 am__doit:
3355         @echo done
3356 .PHONY: am__doit
3358 # If we don't find an include directive, just comment out the code.
3359 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3361 am__include="#"
3362 am__quote=
3363 _am_result=none
3364 # First try GNU make style include.
3365 echo "include confinc" > confmf
3366 # We grep out `Entering directory' and `Leaving directory'
3367 # messages which can occur if `w' ends up in MAKEFLAGS.
3368 # In particular we don't look at `^make:' because GNU make might
3369 # be invoked under some other name (usually "gmake"), in which
3370 # case it prints its new name instead of `make'.
3371 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3372    am__include=include
3373    am__quote=
3374    _am_result=GNU
3376 # Now try BSD make style include.
3377 if test "$am__include" = "#"; then
3378    echo '.include "confinc"' > confmf
3379    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380       am__include=.include
3381       am__quote="\""
3382       _am_result=BSD
3383    fi
3387 { echo "$as_me:$LINENO: result: $_am_result" >&5
3388 echo "${ECHO_T}$_am_result" >&6; }
3389 rm -f confinc confmf
3391 # Check whether --enable-dependency-tracking was given.
3392 if test "${enable_dependency_tracking+set}" = set; then
3393   enableval=$enable_dependency_tracking; 
3396 if test "x$enable_dependency_tracking" != xno; then
3397   am_depcomp="$ac_aux_dir/depcomp"
3398   AMDEPBACKSLASH='\'
3402 if test "x$enable_dependency_tracking" != xno; then
3403   AMDEP_TRUE=
3404   AMDEP_FALSE='#'
3405 else
3406   AMDEP_TRUE='#'
3407   AMDEP_FALSE=
3413 depcc="$CC"   am_compiler_list=
3415 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3416 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3421   # We make a subdir and do the tests there.  Otherwise we can end up
3422   # making bogus files that we don't know about and never remove.  For
3423   # instance it was reported that on HP-UX the gcc test will end up
3424   # making a dummy file named `D' -- because `-MD' means `put the output
3425   # in D'.
3426   mkdir conftest.dir
3427   # Copy depcomp to subdir because otherwise we won't find it if we're
3428   # using a relative directory.
3429   cp "$am_depcomp" conftest.dir
3430   cd conftest.dir
3431   # We will build objects and dependencies in a subdirectory because
3432   # it helps to detect inapplicable dependency modes.  For instance
3433   # both Tru64's cc and ICC support -MD to output dependencies as a
3434   # side effect of compilation, but ICC will put the dependencies in
3435   # the current directory while Tru64 will put them in the object
3436   # directory.
3437   mkdir sub
3439   am_cv_CC_dependencies_compiler_type=none
3440   if test "$am_compiler_list" = ""; then
3441      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3442   fi
3443   for depmode in $am_compiler_list; do
3444     # Setup a source with many dependencies, because some compilers
3445     # like to wrap large dependency lists on column 80 (with \), and
3446     # we should not choose a depcomp mode which is confused by this.
3447     #
3448     # We need to recreate these files for each test, as the compiler may
3449     # overwrite some of them when testing with obscure command lines.
3450     # This happens at least with the AIX C compiler.
3451     : > sub/conftest.c
3452     for i in 1 2 3 4 5 6; do
3453       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3454       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3455       # Solaris 8's {/usr,}/bin/sh.
3456       touch sub/conftst$i.h
3457     done
3458     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3460     case $depmode in
3461     nosideeffect)
3462       # after this tag, mechanisms are not by side-effect, so they'll
3463       # only be used when explicitly requested
3464       if test "x$enable_dependency_tracking" = xyes; then
3465         continue
3466       else
3467         break
3468       fi
3469       ;;
3470     none) break ;;
3471     esac
3472     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473     # mode.  It turns out that the SunPro C++ compiler does not properly
3474     # handle `-M -o', and we need to detect this.
3475     if depmode=$depmode \
3476        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3477        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3478        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3479          >/dev/null 2>conftest.err &&
3480        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3481        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3482        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3483       # icc doesn't choke on unknown options, it will just issue warnings
3484       # or remarks (even with -Werror).  So we grep stderr for any message
3485       # that says an option was ignored or not supported.
3486       # When given -MP, icc 7.0 and 7.1 complain thusly:
3487       #   icc: Command line warning: ignoring option '-M'; no argument required
3488       # The diagnosis changed in icc 8.0:
3489       #   icc: Command line remark: option '-MP' not supported
3490       if (grep 'ignoring option' conftest.err ||
3491           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3492         am_cv_CC_dependencies_compiler_type=$depmode
3493         break
3494       fi
3495     fi
3496   done
3498   cd ..
3499   rm -rf conftest.dir
3500 else
3501   am_cv_CC_dependencies_compiler_type=none
3505 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3506 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3507 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3511 if 
3512   test "x$enable_dependency_tracking" != xno \
3513   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3514   am__fastdepCC_TRUE=
3515   am__fastdepCC_FALSE='#'
3516 else
3517   am__fastdepCC_TRUE='#'
3518   am__fastdepCC_FALSE=
3522 # Find a good install program.  We prefer a C program (faster),
3523 # so one script is as good as another.  But avoid the broken or
3524 # incompatible versions:
3525 # SysV /etc/install, /usr/sbin/install
3526 # SunOS /usr/etc/install
3527 # IRIX /sbin/install
3528 # AIX /bin/install
3529 # AmigaOS /C/install, which installs bootblocks on floppy discs
3530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3533 # OS/2's system install, which has a completely different semantic
3534 # ./install, which can be erroneously created by make from ./install.sh.
3535 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3536 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3537 if test -z "$INSTALL"; then
3538 if test "${ac_cv_path_install+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   # Account for people who put trailing slashes in PATH elements.
3547 case $as_dir/ in
3548   ./ | .// | /cC/* | \
3549   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3550   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3551   /usr/ucb/* ) ;;
3552   *)
3553     # OSF1 and SCO ODT 3.0 have their own names for install.
3554     # Don't use installbsd from OSF since it installs stuff as root
3555     # by default.
3556     for ac_prog in ginstall scoinst install; do
3557       for ac_exec_ext in '' $ac_executable_extensions; do
3558         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3559           if test $ac_prog = install &&
3560             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3561             # AIX install.  It has an incompatible calling convention.
3562             :
3563           elif test $ac_prog = install &&
3564             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3565             # program-specific install script used by HP pwplus--don't use.
3566             :
3567           else
3568             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3569             break 3
3570           fi
3571         fi
3572       done
3573     done
3574     ;;
3575 esac
3576 done
3577 IFS=$as_save_IFS
3581   if test "${ac_cv_path_install+set}" = set; then
3582     INSTALL=$ac_cv_path_install
3583   else
3584     # As a last resort, use the slow shell script.  Don't cache a
3585     # value for INSTALL within a source directory, because that will
3586     # break other packages using the cache if that directory is
3587     # removed, or if the value is a relative name.
3588     INSTALL=$ac_install_sh
3589   fi
3591 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3592 echo "${ECHO_T}$INSTALL" >&6; }
3594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3595 # It thinks the first close brace ends the variable substitution.
3596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3602 # Check whether --enable-shared was given.
3603 if test "${enable_shared+set}" = set; then
3604   enableval=$enable_shared; p=${PACKAGE-default}
3605     case $enableval in
3606     yes) enable_shared=yes ;;
3607     no) enable_shared=no ;;
3608     *)
3609       enable_shared=no
3610       # Look at the argument we got.  We use all the common list separators.
3611       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3612       for pkg in $enableval; do
3613         IFS="$lt_save_ifs"
3614         if test "X$pkg" = "X$p"; then
3615           enable_shared=yes
3616         fi
3617       done
3618       IFS="$lt_save_ifs"
3619       ;;
3620     esac
3621 else
3622   enable_shared=yes
3626 # Check whether --enable-fast-install was given.
3627 if test "${enable_fast_install+set}" = set; then
3628   enableval=$enable_fast_install; p=${PACKAGE-default}
3629     case $enableval in
3630     yes) enable_fast_install=yes ;;
3631     no) enable_fast_install=no ;;
3632     *)
3633       enable_fast_install=no
3634       # Look at the argument we got.  We use all the common list separators.
3635       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3636       for pkg in $enableval; do
3637         IFS="$lt_save_ifs"
3638         if test "X$pkg" = "X$p"; then
3639           enable_fast_install=yes
3640         fi
3641       done
3642       IFS="$lt_save_ifs"
3643       ;;
3644     esac
3645 else
3646   enable_fast_install=yes
3650 # Make sure we can run config.sub.
3651 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3652   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3653 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3654    { (exit 1); exit 1; }; }
3656 { echo "$as_me:$LINENO: checking build system type" >&5
3657 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3658 if test "${ac_cv_build+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   ac_build_alias=$build_alias
3662 test "x$ac_build_alias" = x &&
3663   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3664 test "x$ac_build_alias" = x &&
3665   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3666 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3667    { (exit 1); exit 1; }; }
3668 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3669   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3670 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3671    { (exit 1); exit 1; }; }
3674 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3675 echo "${ECHO_T}$ac_cv_build" >&6; }
3676 case $ac_cv_build in
3677 *-*-*) ;;
3678 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3679 echo "$as_me: error: invalid value of canonical build" >&2;}
3680    { (exit 1); exit 1; }; };;
3681 esac
3682 build=$ac_cv_build
3683 ac_save_IFS=$IFS; IFS='-'
3684 set x $ac_cv_build
3685 shift
3686 build_cpu=$1
3687 build_vendor=$2
3688 shift; shift
3689 # Remember, the first character of IFS is used to create $*,
3690 # except with old shells:
3691 build_os=$*
3692 IFS=$ac_save_IFS
3693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3696 { echo "$as_me:$LINENO: checking host system type" >&5
3697 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3698 if test "${ac_cv_host+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   if test "x$host_alias" = x; then
3702   ac_cv_host=$ac_cv_build
3703 else
3704   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3705     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3706 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3707    { (exit 1); exit 1; }; }
3711 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3712 echo "${ECHO_T}$ac_cv_host" >&6; }
3713 case $ac_cv_host in
3714 *-*-*) ;;
3715 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3716 echo "$as_me: error: invalid value of canonical host" >&2;}
3717    { (exit 1); exit 1; }; };;
3718 esac
3719 host=$ac_cv_host
3720 ac_save_IFS=$IFS; IFS='-'
3721 set x $ac_cv_host
3722 shift
3723 host_cpu=$1
3724 host_vendor=$2
3725 shift; shift
3726 # Remember, the first character of IFS is used to create $*,
3727 # except with old shells:
3728 host_os=$*
3729 IFS=$ac_save_IFS
3730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3733 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3734 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3735 if test "${lt_cv_path_SED+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   # Loop through the user's path and test for sed and gsed.
3739 # Then use that list of sed's as ones to test for truncation.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for lt_ac_prog in sed gsed; do
3746     for ac_exec_ext in '' $ac_executable_extensions; do
3747       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3748         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3749       fi
3750     done
3751   done
3752 done
3753 lt_ac_max=0
3754 lt_ac_count=0
3755 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3756 # along with /bin/sed that truncates output.
3757 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3758   test ! -f $lt_ac_sed && continue
3759   cat /dev/null > conftest.in
3760   lt_ac_count=0
3761   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3762   # Check for GNU sed and select it if it is found.
3763   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3764     lt_cv_path_SED=$lt_ac_sed
3765     break
3766   fi
3767   while true; do
3768     cat conftest.in conftest.in >conftest.tmp
3769     mv conftest.tmp conftest.in
3770     cp conftest.in conftest.nl
3771     echo >>conftest.nl
3772     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3773     cmp -s conftest.out conftest.nl || break
3774     # 10000 chars as input seems more than enough
3775     test $lt_ac_count -gt 10 && break
3776     lt_ac_count=`expr $lt_ac_count + 1`
3777     if test $lt_ac_count -gt $lt_ac_max; then
3778       lt_ac_max=$lt_ac_count
3779       lt_cv_path_SED=$lt_ac_sed
3780     fi
3781   done
3782 done
3786 SED=$lt_cv_path_SED
3787 { echo "$as_me:$LINENO: result: $SED" >&5
3788 echo "${ECHO_T}$SED" >&6; }
3790 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3791 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_GREP+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   # Extract the first word of "grep ggrep" to use in msg output
3796 if test -z "$GREP"; then
3797 set dummy grep ggrep; ac_prog_name=$2
3798 if test "${ac_cv_path_GREP+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   ac_path_GREP_found=false
3802 # Loop through the user's path and test for each of PROGNAME-LIST
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808   for ac_prog in grep ggrep; do
3809   for ac_exec_ext in '' $ac_executable_extensions; do
3810     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3811     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3812     # Check for GNU ac_path_GREP and select it if it is found.
3813   # Check for GNU $ac_path_GREP
3814 case `"$ac_path_GREP" --version 2>&1` in
3815 *GNU*)
3816   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3818   ac_count=0
3819   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3820   while :
3821   do
3822     cat "conftest.in" "conftest.in" >"conftest.tmp"
3823     mv "conftest.tmp" "conftest.in"
3824     cp "conftest.in" "conftest.nl"
3825     echo 'GREP' >> "conftest.nl"
3826     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3827     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3828     ac_count=`expr $ac_count + 1`
3829     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3830       # Best one so far, save it but keep looking for a better one
3831       ac_cv_path_GREP="$ac_path_GREP"
3832       ac_path_GREP_max=$ac_count
3833     fi
3834     # 10*(2^10) chars as input seems more than enough
3835     test $ac_count -gt 10 && break
3836   done
3837   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3838 esac
3841     $ac_path_GREP_found && break 3
3842   done
3843 done
3845 done
3846 IFS=$as_save_IFS
3851 GREP="$ac_cv_path_GREP"
3852 if test -z "$GREP"; then
3853   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3855    { (exit 1); exit 1; }; }
3858 else
3859   ac_cv_path_GREP=$GREP
3864 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3865 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3866  GREP="$ac_cv_path_GREP"
3869 { echo "$as_me:$LINENO: checking for egrep" >&5
3870 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3871 if test "${ac_cv_path_EGREP+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3875    then ac_cv_path_EGREP="$GREP -E"
3876    else
3877      # Extract the first word of "egrep" to use in msg output
3878 if test -z "$EGREP"; then
3879 set dummy egrep; ac_prog_name=$2
3880 if test "${ac_cv_path_EGREP+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   ac_path_EGREP_found=false
3884 # Loop through the user's path and test for each of PROGNAME-LIST
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890   for ac_prog in egrep; do
3891   for ac_exec_ext in '' $ac_executable_extensions; do
3892     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3893     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3894     # Check for GNU ac_path_EGREP and select it if it is found.
3895   # Check for GNU $ac_path_EGREP
3896 case `"$ac_path_EGREP" --version 2>&1` in
3897 *GNU*)
3898   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3900   ac_count=0
3901   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3902   while :
3903   do
3904     cat "conftest.in" "conftest.in" >"conftest.tmp"
3905     mv "conftest.tmp" "conftest.in"
3906     cp "conftest.in" "conftest.nl"
3907     echo 'EGREP' >> "conftest.nl"
3908     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910     ac_count=`expr $ac_count + 1`
3911     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3912       # Best one so far, save it but keep looking for a better one
3913       ac_cv_path_EGREP="$ac_path_EGREP"
3914       ac_path_EGREP_max=$ac_count
3915     fi
3916     # 10*(2^10) chars as input seems more than enough
3917     test $ac_count -gt 10 && break
3918   done
3919   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 esac
3923     $ac_path_EGREP_found && break 3
3924   done
3925 done
3927 done
3928 IFS=$as_save_IFS
3933 EGREP="$ac_cv_path_EGREP"
3934 if test -z "$EGREP"; then
3935   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937    { (exit 1); exit 1; }; }
3940 else
3941   ac_cv_path_EGREP=$EGREP
3945    fi
3947 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3948 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3949  EGREP="$ac_cv_path_EGREP"
3953 # Check whether --with-gnu-ld was given.
3954 if test "${with_gnu_ld+set}" = set; then
3955   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3956 else
3957   with_gnu_ld=no
3960 ac_prog=ld
3961 if test "$GCC" = yes; then
3962   # Check if gcc -print-prog-name=ld gives a path.
3963   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3964 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3965   case $host in
3966   *-*-mingw*)
3967     # gcc leaves a trailing carriage return which upsets mingw
3968     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3969   *)
3970     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3971   esac
3972   case $ac_prog in
3973     # Accept absolute paths.
3974     [\\/]* | ?:[\\/]*)
3975       re_direlt='/[^/][^/]*/\.\./'
3976       # Canonicalize the pathname of ld
3977       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3978       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3979         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3980       done
3981       test -z "$LD" && LD="$ac_prog"
3982       ;;
3983   "")
3984     # If it fails, then pretend we aren't using GCC.
3985     ac_prog=ld
3986     ;;
3987   *)
3988     # If it is relative, then search for the first ld in PATH.
3989     with_gnu_ld=unknown
3990     ;;
3991   esac
3992 elif test "$with_gnu_ld" = yes; then
3993   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3994 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3995 else
3996   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3997 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3999 if test "${lt_cv_path_LD+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test -z "$LD"; then
4003   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4004   for ac_dir in $PATH; do
4005     IFS="$lt_save_ifs"
4006     test -z "$ac_dir" && ac_dir=.
4007     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4008       lt_cv_path_LD="$ac_dir/$ac_prog"
4009       # Check to see if the program is GNU ld.  I'd rather use --version,
4010       # but apparently some variants of GNU ld only accept -v.
4011       # Break only if it was the GNU/non-GNU ld that we prefer.
4012       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4013       *GNU* | *'with BFD'*)
4014         test "$with_gnu_ld" != no && break
4015         ;;
4016       *)
4017         test "$with_gnu_ld" != yes && break
4018         ;;
4019       esac
4020     fi
4021   done
4022   IFS="$lt_save_ifs"
4023 else
4024   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4028 LD="$lt_cv_path_LD"
4029 if test -n "$LD"; then
4030   { echo "$as_me:$LINENO: result: $LD" >&5
4031 echo "${ECHO_T}$LD" >&6; }
4032 else
4033   { echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6; }
4036 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4037 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4038    { (exit 1); exit 1; }; }
4039 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4040 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4041 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4045 case `$LD -v 2>&1 </dev/null` in
4046 *GNU* | *'with BFD'*)
4047   lt_cv_prog_gnu_ld=yes
4048   ;;
4050   lt_cv_prog_gnu_ld=no
4051   ;;
4052 esac
4054 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4055 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4056 with_gnu_ld=$lt_cv_prog_gnu_ld
4059 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4060 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4061 if test "${lt_cv_ld_reload_flag+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   lt_cv_ld_reload_flag='-r'
4066 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4067 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4068 reload_flag=$lt_cv_ld_reload_flag
4069 case $reload_flag in
4070 "" | " "*) ;;
4071 *) reload_flag=" $reload_flag" ;;
4072 esac
4073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4074 case $host_os in
4075   darwin*)
4076     if test "$GCC" = yes; then
4077       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4078     else
4079       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4080     fi
4081     ;;
4082 esac
4084 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4085 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4086 if test "${lt_cv_path_NM+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$NM"; then
4090   # Let the user override the test.
4091   lt_cv_path_NM="$NM"
4092 else
4093   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4094   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4095     IFS="$lt_save_ifs"
4096     test -z "$ac_dir" && ac_dir=.
4097     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4098     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4099       # Check to see if the nm accepts a BSD-compat flag.
4100       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4101       #   nm: unknown option "B" ignored
4102       # Tru64's nm complains that /dev/null is an invalid object file
4103       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4104       */dev/null* | *'Invalid file or object type'*)
4105         lt_cv_path_NM="$tmp_nm -B"
4106         break
4107         ;;
4108       *)
4109         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4110         */dev/null*)
4111           lt_cv_path_NM="$tmp_nm -p"
4112           break
4113           ;;
4114         *)
4115           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4116           continue # so that we can try to find one that supports BSD flags
4117           ;;
4118         esac
4119       esac
4120     fi
4121   done
4122   IFS="$lt_save_ifs"
4123   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4126 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4127 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4128 NM="$lt_cv_path_NM"
4130 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4131 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4132 LN_S=$as_ln_s
4133 if test "$LN_S" = "ln -s"; then
4134   { echo "$as_me:$LINENO: result: yes" >&5
4135 echo "${ECHO_T}yes" >&6; }
4136 else
4137   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4138 echo "${ECHO_T}no, using $LN_S" >&6; }
4141 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4142 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4143 if test "${lt_cv_deplibs_check_method+set}" = set; then
4144   echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146   lt_cv_file_magic_cmd='$MAGIC_CMD'
4147 lt_cv_file_magic_test_file=
4148 lt_cv_deplibs_check_method='unknown'
4149 # Need to set the preceding variable on all platforms that support
4150 # interlibrary dependencies.
4151 # 'none' -- dependencies not supported.
4152 # `unknown' -- same as none, but documents that we really don't know.
4153 # 'pass_all' -- all dependencies passed with no checks.
4154 # 'test_compile' -- check by making test program.
4155 # 'file_magic [[regex]]' -- check by looking for files in library path
4156 # which responds to the $file_magic_cmd with a given extended regex.
4157 # If you have `file' or equivalent on your system and you're not sure
4158 # whether `pass_all' will *always* work, you probably want this one.
4160 case $host_os in
4161 aix4* | aix5*)
4162   lt_cv_deplibs_check_method=pass_all
4163   ;;
4165 beos*)
4166   lt_cv_deplibs_check_method=pass_all
4167   ;;
4169 bsdi[45]*)
4170   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4171   lt_cv_file_magic_cmd='/usr/bin/file -L'
4172   lt_cv_file_magic_test_file=/shlib/libc.so
4173   ;;
4175 cygwin*)
4176   # func_win32_libid is a shell function defined in ltmain.sh
4177   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4178   lt_cv_file_magic_cmd='func_win32_libid'
4179   ;;
4181 mingw* | pw32*)
4182   # Base MSYS/MinGW do not provide the 'file' command needed by
4183   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4184   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4185   lt_cv_file_magic_cmd='$OBJDUMP -f'
4186   ;;
4188 darwin* | rhapsody*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4192 freebsd* | kfreebsd*-gnu | dragonfly*)
4193   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4194     case $host_cpu in
4195     i*86 )
4196       # Not sure whether the presence of OpenBSD here was a mistake.
4197       # Let's accept both of them until this is cleared up.
4198       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4199       lt_cv_file_magic_cmd=/usr/bin/file
4200       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4201       ;;
4202     esac
4203   else
4204     lt_cv_deplibs_check_method=pass_all
4205   fi
4206   ;;
4208 gnu*)
4209   lt_cv_deplibs_check_method=pass_all
4210   ;;
4212 hpux10.20* | hpux11*)
4213   lt_cv_file_magic_cmd=/usr/bin/file
4214   case $host_cpu in
4215   ia64*)
4216     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4217     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4218     ;;
4219   hppa*64*)
4220     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]'
4221     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4222     ;;
4223   *)
4224     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4225     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4226     ;;
4227   esac
4228   ;;
4230 irix5* | irix6* | nonstopux*)
4231   case $LD in
4232   *-32|*"-32 ") libmagic=32-bit;;
4233   *-n32|*"-n32 ") libmagic=N32;;
4234   *-64|*"-64 ") libmagic=64-bit;;
4235   *) libmagic=never-match;;
4236   esac
4237   lt_cv_deplibs_check_method=pass_all
4238   ;;
4240 # This must be Linux ELF.
4241 linux*)
4242   lt_cv_deplibs_check_method=pass_all
4243   ;;
4245 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4246   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4247     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4248   else
4249     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4250   fi
4251   ;;
4253 newos6*)
4254   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4255   lt_cv_file_magic_cmd=/usr/bin/file
4256   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4257   ;;
4259 nto-qnx*)
4260   lt_cv_deplibs_check_method=unknown
4261   ;;
4263 openbsd*)
4264   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4266   else
4267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4268   fi
4269   ;;
4271 osf3* | osf4* | osf5*)
4272   lt_cv_deplibs_check_method=pass_all
4273   ;;
4275 sco3.2v5*)
4276   lt_cv_deplibs_check_method=pass_all
4277   ;;
4279 solaris*)
4280   lt_cv_deplibs_check_method=pass_all
4281   ;;
4283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4284   case $host_vendor in
4285   motorola)
4286     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]'
4287     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4288     ;;
4289   ncr)
4290     lt_cv_deplibs_check_method=pass_all
4291     ;;
4292   sequent)
4293     lt_cv_file_magic_cmd='/bin/file'
4294     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4295     ;;
4296   sni)
4297     lt_cv_file_magic_cmd='/bin/file'
4298     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4299     lt_cv_file_magic_test_file=/lib/libc.so
4300     ;;
4301   siemens)
4302     lt_cv_deplibs_check_method=pass_all
4303     ;;
4304   esac
4305   ;;
4307 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4308   lt_cv_deplibs_check_method=pass_all
4309   ;;
4310 esac
4313 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4314 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4315 file_magic_cmd=$lt_cv_file_magic_cmd
4316 deplibs_check_method=$lt_cv_deplibs_check_method
4317 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4322 # If no C compiler was specified, use CC.
4323 LTCC=${LTCC-"$CC"}
4325 # Allow CC to be a program name with arguments.
4326 compiler=$CC
4329 # Check whether --enable-libtool-lock was given.
4330 if test "${enable_libtool_lock+set}" = set; then
4331   enableval=$enable_libtool_lock; 
4334 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4336 # Some flags need to be propagated to the compiler or linker for good
4337 # libtool support.
4338 case $host in
4339 ia64-*-hpux*)
4340   # Find out which ABI we are using.
4341   echo 'int i;' > conftest.$ac_ext
4342   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343   (eval $ac_compile) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; then
4347     case `/usr/bin/file conftest.$ac_objext` in
4348     *ELF-32*)
4349       HPUX_IA64_MODE="32"
4350       ;;
4351     *ELF-64*)
4352       HPUX_IA64_MODE="64"
4353       ;;
4354     esac
4355   fi
4356   rm -rf conftest*
4357   ;;
4358 *-*-irix6*)
4359   # Find out which ABI we are using.
4360   echo '#line __oline__ "configure"' > conftest.$ac_ext
4361   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362   (eval $ac_compile) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; then
4366    if test "$lt_cv_prog_gnu_ld" = yes; then
4367     case `/usr/bin/file conftest.$ac_objext` in
4368     *32-bit*)
4369       LD="${LD-ld} -melf32bsmip"
4370       ;;
4371     *N32*)
4372       LD="${LD-ld} -melf32bmipn32"
4373       ;;
4374     *64-bit*)
4375       LD="${LD-ld} -melf64bmip"
4376       ;;
4377     esac
4378    else
4379     case `/usr/bin/file conftest.$ac_objext` in
4380     *32-bit*)
4381       LD="${LD-ld} -32"
4382       ;;
4383     *N32*)
4384       LD="${LD-ld} -n32"
4385       ;;
4386     *64-bit*)
4387       LD="${LD-ld} -64"
4388       ;;
4389     esac
4390    fi
4391   fi
4392   rm -rf conftest*
4393   ;;
4395 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4396   # Find out which ABI we are using.
4397   echo 'int i;' > conftest.$ac_ext
4398   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399   (eval $ac_compile) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; then
4403     case `/usr/bin/file conftest.o` in
4404     *32-bit*)
4405       case $host in
4406         x86_64-*linux*)
4407           LD="${LD-ld} -m elf_i386"
4408           ;;
4409         ppc64-*linux*|powerpc64-*linux*)
4410           LD="${LD-ld} -m elf32ppclinux"
4411           ;;
4412         s390x-*linux*)
4413           LD="${LD-ld} -m elf_s390"
4414           ;;
4415         sparc64-*linux*)
4416           LD="${LD-ld} -m elf32_sparc"
4417           ;;
4418       esac
4419       ;;
4420     *64-bit*)
4421       case $host in
4422         x86_64-*linux*)
4423           LD="${LD-ld} -m elf_x86_64"
4424           ;;
4425         ppc*-*linux*|powerpc*-*linux*)
4426           LD="${LD-ld} -m elf64ppc"
4427           ;;
4428         s390*-*linux*)
4429           LD="${LD-ld} -m elf64_s390"
4430           ;;
4431         sparc*-*linux*)
4432           LD="${LD-ld} -m elf64_sparc"
4433           ;;
4434       esac
4435       ;;
4436     esac
4437   fi
4438   rm -rf conftest*
4439   ;;
4441 *-*-sco3.2v5*)
4442   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4443   SAVE_CFLAGS="$CFLAGS"
4444   CFLAGS="$CFLAGS -belf"
4445   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4446 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4447 if test "${lt_cv_cc_needs_belf+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456      cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4464 main ()
4467   ;
4468   return 0;
4470 _ACEOF
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_link") 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } && {
4485          test -z "$ac_c_werror_flag" ||
4486          test ! -s conftest.err
4487        } && test -s conftest$ac_exeext &&
4488        $as_test_x conftest$ac_exeext; then
4489   lt_cv_cc_needs_belf=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494         lt_cv_cc_needs_belf=no
4497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4498       conftest$ac_exeext conftest.$ac_ext
4499      ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4507 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4508   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4509     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4510     CFLAGS="$SAVE_CFLAGS"
4511   fi
4512   ;;
4514 esac
4516 need_locks="$enable_libtool_lock"
4519 ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4526 # On Suns, sometimes $CPP names a directory.
4527 if test -n "$CPP" && test -d "$CPP"; then
4528   CPP=
4530 if test -z "$CPP"; then
4531   if test "${ac_cv_prog_CPP+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534       # Double quotes because CPP needs to be expanded
4535     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4536     do
4537       ac_preproc_ok=false
4538 for ac_c_preproc_warn_flag in '' yes
4540   # Use a header file that comes with gcc, so configuring glibc
4541   # with a fresh cross-compiler works.
4542   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4543   # <limits.h> exists even on freestanding compilers.
4544   # On the NeXT, cc -E runs the code through the compiler's parser,
4545   # not just through cpp. "Syntax error" is here to catch this case.
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 @%:@ifdef __STDC__
4553 @%:@ include <limits.h>
4554 @%:@else
4555 @%:@ include <assert.h>
4556 @%:@endif
4557                      Syntax error
4558 _ACEOF
4559 if { (ac_try="$ac_cpp conftest.$ac_ext"
4560 case "(($ac_try" in
4561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562   *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4566   ac_status=$?
4567   grep -v '^ *+' conftest.er1 >conftest.err
4568   rm -f conftest.er1
4569   cat conftest.err >&5
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); } >/dev/null && {
4572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4573          test ! -s conftest.err
4574        }; then
4575   :
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580   # Broken: fails on valid input.
4581 continue
4584 rm -f conftest.err conftest.$ac_ext
4586   # OK, works on sane cases.  Now check whether nonexistent headers
4587   # can be detected and how.
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 @%:@include <ac_nonexistent.h>
4595 _ACEOF
4596 if { (ac_try="$ac_cpp conftest.$ac_ext"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } >/dev/null && {
4609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4610          test ! -s conftest.err
4611        }; then
4612   # Broken: success on invalid input.
4613 continue
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618   # Passes both tests.
4619 ac_preproc_ok=:
4620 break
4623 rm -f conftest.err conftest.$ac_ext
4625 done
4626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4627 rm -f conftest.err conftest.$ac_ext
4628 if $ac_preproc_ok; then
4629   break
4632     done
4633     ac_cv_prog_CPP=$CPP
4634   
4636   CPP=$ac_cv_prog_CPP
4637 else
4638   ac_cv_prog_CPP=$CPP
4640 { echo "$as_me:$LINENO: result: $CPP" >&5
4641 echo "${ECHO_T}$CPP" >&6; }
4642 ac_preproc_ok=false
4643 for ac_c_preproc_warn_flag in '' yes
4645   # Use a header file that comes with gcc, so configuring glibc
4646   # with a fresh cross-compiler works.
4647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648   # <limits.h> exists even on freestanding compilers.
4649   # On the NeXT, cc -E runs the code through the compiler's parser,
4650   # not just through cpp. "Syntax error" is here to catch this case.
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 @%:@ifdef __STDC__
4658 @%:@ include <limits.h>
4659 @%:@else
4660 @%:@ include <assert.h>
4661 @%:@endif
4662                      Syntax error
4663 _ACEOF
4664 if { (ac_try="$ac_cpp conftest.$ac_ext"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } >/dev/null && {
4677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4678          test ! -s conftest.err
4679        }; then
4680   :
4681 else
4682   echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685   # Broken: fails on valid input.
4686 continue
4689 rm -f conftest.err conftest.$ac_ext
4691   # OK, works on sane cases.  Now check whether nonexistent headers
4692   # can be detected and how.
4693   cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 @%:@include <ac_nonexistent.h>
4700 _ACEOF
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4702 case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } >/dev/null && {
4714          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4715          test ! -s conftest.err
4716        }; then
4717   # Broken: success on invalid input.
4718 continue
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723   # Passes both tests.
4724 ac_preproc_ok=:
4725 break
4728 rm -f conftest.err conftest.$ac_ext
4730 done
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.err conftest.$ac_ext
4733 if $ac_preproc_ok; then
4734   :
4735 else
4736   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4739 See \`config.log' for more details." >&2;}
4740    { (exit 1); exit 1; }; }
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4751 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4752 if test "${ac_cv_header_stdc+set}" = set; then
4753   echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755   cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h.  */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h.  */
4761 #include <stdlib.h>
4762 #include <stdarg.h>
4763 #include <string.h>
4764 #include <float.h>
4767 main ()
4770   ;
4771   return 0;
4773 _ACEOF
4774 rm -f conftest.$ac_objext
4775 if { (ac_try="$ac_compile"
4776 case "(($ac_try" in
4777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778   *) ac_try_echo=$ac_try;;
4779 esac
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781   (eval "$ac_compile") 2>conftest.er1
4782   ac_status=$?
4783   grep -v '^ *+' conftest.er1 >conftest.err
4784   rm -f conftest.er1
4785   cat conftest.err >&5
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } && {
4788          test -z "$ac_c_werror_flag" ||
4789          test ! -s conftest.err
4790        } && test -s conftest.$ac_objext; then
4791   ac_cv_header_stdc=yes
4792 else
4793   echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796         ac_cv_header_stdc=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 if test $ac_cv_header_stdc = yes; then
4802   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4803   cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 #include <string.h>
4811 _ACEOF
4812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4813   $EGREP "memchr" >/dev/null 2>&1; then
4814   :
4815 else
4816   ac_cv_header_stdc=no
4818 rm -f conftest*
4822 if test $ac_cv_header_stdc = yes; then
4823   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4824   cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h.  */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h.  */
4830 #include <stdlib.h>
4832 _ACEOF
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834   $EGREP "free" >/dev/null 2>&1; then
4835   :
4836 else
4837   ac_cv_header_stdc=no
4839 rm -f conftest*
4843 if test $ac_cv_header_stdc = yes; then
4844   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4845   if test "$cross_compiling" = yes; then
4846   :
4847 else
4848   cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h.  */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h.  */
4854 #include <ctype.h>
4855 #include <stdlib.h>
4856 #if ((' ' & 0x0FF) == 0x020)
4857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4859 #else
4860 # define ISLOWER(c) \
4861                    (('a' <= (c) && (c) <= 'i') \
4862                      || ('j' <= (c) && (c) <= 'r') \
4863                      || ('s' <= (c) && (c) <= 'z'))
4864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4865 #endif
4867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4869 main ()
4871   int i;
4872   for (i = 0; i < 256; i++)
4873     if (XOR (islower (i), ISLOWER (i))
4874         || toupper (i) != TOUPPER (i))
4875       return 2;
4876   return 0;
4878 _ACEOF
4879 rm -f conftest$ac_exeext
4880 if { (ac_try="$ac_link"
4881 case "(($ac_try" in
4882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883   *) ac_try_echo=$ac_try;;
4884 esac
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886   (eval "$ac_link") 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4890   { (case "(($ac_try" in
4891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892   *) ac_try_echo=$ac_try;;
4893 esac
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895   (eval "$ac_try") 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; }; then
4899   :
4900 else
4901   echo "$as_me: program exited with status $ac_status" >&5
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 ( exit $ac_status )
4906 ac_cv_header_stdc=no
4908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4914 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4915 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4916 if test $ac_cv_header_stdc = yes; then
4917   
4918 cat >>confdefs.h <<\_ACEOF
4919 @%:@define STDC_HEADERS 1
4920 _ACEOF
4924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4935                   inttypes.h stdint.h unistd.h
4937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 $ac_includes_default
4951 @%:@include <$ac_header>
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957   *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960   (eval "$ac_compile") 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } && {
4967          test -z "$ac_c_werror_flag" ||
4968          test ! -s conftest.err
4969        } && test -s conftest.$ac_objext; then
4970   eval "$as_ac_Header=yes"
4971 else
4972   echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975         eval "$as_ac_Header=no"
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 ac_res=`eval echo '${'$as_ac_Header'}'`
4981                { echo "$as_me:$LINENO: result: $ac_res" >&5
4982 echo "${ECHO_T}$ac_res" >&6; }
4983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4984   cat >>confdefs.h <<_ACEOF
4985 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4986 _ACEOF
4990 done
4994 for ac_header in dlfcn.h
4996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4998   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_res=`eval echo '${'$as_ac_Header'}'`
5004                { echo "$as_me:$LINENO: result: $ac_res" >&5
5005 echo "${ECHO_T}$ac_res" >&6; }
5006 else
5007   # Is the header compilable?
5008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 $ac_includes_default
5017 @%:@include <$ac_header>
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5021 case "(($ac_try" in
5022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023   *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026   (eval "$ac_compile") 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } && {
5033          test -z "$ac_c_werror_flag" ||
5034          test ! -s conftest.err
5035        } && test -s conftest.$ac_objext; then
5036   ac_header_compiler=yes
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041         ac_header_compiler=no
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5046 echo "${ECHO_T}$ac_header_compiler" >&6; }
5048 # Is the header present?
5049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 @%:@include <$ac_header>
5058 _ACEOF
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060 case "(($ac_try" in
5061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062   *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066   ac_status=$?
5067   grep -v '^ *+' conftest.er1 >conftest.err
5068   rm -f conftest.er1
5069   cat conftest.err >&5
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); } >/dev/null && {
5072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073          test ! -s conftest.err
5074        }; then
5075   ac_header_preproc=yes
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080   ac_header_preproc=no
5083 rm -f conftest.err conftest.$ac_ext
5084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5085 echo "${ECHO_T}$ac_header_preproc" >&6; }
5087 # So?  What about this header?
5088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5089   yes:no: )
5090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5094     ac_header_preproc=yes
5095     ;;
5096   no:yes:* )
5097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5099     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5100 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5101     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5103     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5104 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5107     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5109     
5110     ;;
5111 esac
5112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   eval "$as_ac_Header=\$ac_header_preproc"
5119 ac_res=`eval echo '${'$as_ac_Header'}'`
5120                { echo "$as_me:$LINENO: result: $ac_res" >&5
5121 echo "${ECHO_T}$ac_res" >&6; }
5124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125   cat >>confdefs.h <<_ACEOF
5126 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127 _ACEOF
5131 done
5133 ac_ext=cpp
5134 ac_cpp='$CXXCPP $CPPFLAGS'
5135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5138 if test -z "$CXX"; then
5139   if test -n "$CCC"; then
5140     CXX=$CCC
5141   else
5142     if test -n "$ac_tool_prefix"; then
5143   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5144   do
5145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_prog_CXX+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if test -n "$CXX"; then
5153   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160   for ac_exec_ext in '' $ac_executable_extensions; do
5161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5172 CXX=$ac_cv_prog_CXX
5173 if test -n "$CXX"; then
5174   { echo "$as_me:$LINENO: result: $CXX" >&5
5175 echo "${ECHO_T}$CXX" >&6; }
5176 else
5177   { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5182     test -n "$CXX" && break
5183   done
5185 if test -z "$CXX"; then
5186   ac_ct_CXX=$CXX
5187   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5189   # Extract the first word of "$ac_prog", so it can be a program name with args.
5190 set dummy $ac_prog; ac_word=$2
5191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5193 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5194   echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196   if test -n "$ac_ct_CXX"; then
5197   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204   for ac_exec_ext in '' $ac_executable_extensions; do
5205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206     ac_cv_prog_ac_ct_CXX="$ac_prog"
5207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208     break 2
5209   fi
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5217 if test -n "$ac_ct_CXX"; then
5218   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5219 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5220 else
5221   { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5226   test -n "$ac_ct_CXX" && break
5227 done
5229   if test "x$ac_ct_CXX" = x; then
5230     CXX="g++"
5231   else
5232     case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5235 whose name does not start with the host triplet.  If you think this
5236 configuration is useful to you, please write to autoconf@gnu.org." >&5
5237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5238 whose name does not start with the host triplet.  If you think this
5239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242     CXX=$ac_ct_CXX
5243   fi
5246   fi
5248 # Provide some information about the compiler.
5249 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5250 ac_compiler=`set X $ac_compile; echo $2`
5251 { (ac_try="$ac_compiler --version >&5"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_compiler --version >&5") 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }
5261 { (ac_try="$ac_compiler -v >&5"
5262 case "(($ac_try" in
5263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264   *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267   (eval "$ac_compiler -v >&5") 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }
5271 { (ac_try="$ac_compiler -V >&5"
5272 case "(($ac_try" in
5273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274   *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277   (eval "$ac_compiler -V >&5") 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }
5282 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5283 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5284 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h.  */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h.  */
5295 main ()
5297 #ifndef __GNUC__
5298        choke me
5299 #endif
5301   ;
5302   return 0;
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_compile") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && {
5319          test -z "$ac_cxx_werror_flag" ||
5320          test ! -s conftest.err
5321        } && test -s conftest.$ac_objext; then
5322   ac_compiler_gnu=yes
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327         ac_compiler_gnu=no
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5334 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5335 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5336 GXX=`test $ac_compiler_gnu = yes && echo yes`
5337 ac_test_CXXFLAGS=${CXXFLAGS+set}
5338 ac_save_CXXFLAGS=$CXXFLAGS
5339 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5340 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5341 if test "${ac_cv_prog_cxx_g+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5345    ac_cxx_werror_flag=yes
5346    ac_cv_prog_cxx_g=no
5347    CXXFLAGS="-g"
5348    cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5356 main ()
5359   ;
5360   return 0;
5362 _ACEOF
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367   *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370   (eval "$ac_compile") 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } && {
5377          test -z "$ac_cxx_werror_flag" ||
5378          test ! -s conftest.err
5379        } && test -s conftest.$ac_objext; then
5380   ac_cv_prog_cxx_g=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385         CXXFLAGS=""
5386       cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h.  */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h.  */
5394 main ()
5397   ;
5398   return 0;
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (ac_try="$ac_compile"
5403 case "(($ac_try" in
5404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405   *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408   (eval "$ac_compile") 2>conftest.er1
5409   ac_status=$?
5410   grep -v '^ *+' conftest.er1 >conftest.err
5411   rm -f conftest.er1
5412   cat conftest.err >&5
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); } && {
5415          test -z "$ac_cxx_werror_flag" ||
5416          test ! -s conftest.err
5417        } && test -s conftest.$ac_objext; then
5418   :
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5424          CXXFLAGS="-g"
5425          cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5433 main ()
5436   ;
5437   return 0;
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5442 case "(($ac_try" in
5443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444   *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447   (eval "$ac_compile") 2>conftest.er1
5448   ac_status=$?
5449   grep -v '^ *+' conftest.er1 >conftest.err
5450   rm -f conftest.er1
5451   cat conftest.err >&5
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } && {
5454          test -z "$ac_cxx_werror_flag" ||
5455          test ! -s conftest.err
5456        } && test -s conftest.$ac_objext; then
5457   ac_cv_prog_cxx_g=yes
5458 else
5459   echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462         
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5474 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5475 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5476 if test "$ac_test_CXXFLAGS" = set; then
5477   CXXFLAGS=$ac_save_CXXFLAGS
5478 elif test $ac_cv_prog_cxx_g = yes; then
5479   if test "$GXX" = yes; then
5480     CXXFLAGS="-g -O2"
5481   else
5482     CXXFLAGS="-g"
5483   fi
5484 else
5485   if test "$GXX" = yes; then
5486     CXXFLAGS="-O2"
5487   else
5488     CXXFLAGS=
5489   fi
5491 ac_ext=cpp
5492 ac_cpp='$CXXCPP $CPPFLAGS'
5493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5497 depcc="$CXX"  am_compiler_list=
5499 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5500 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5501 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5505   # We make a subdir and do the tests there.  Otherwise we can end up
5506   # making bogus files that we don't know about and never remove.  For
5507   # instance it was reported that on HP-UX the gcc test will end up
5508   # making a dummy file named `D' -- because `-MD' means `put the output
5509   # in D'.
5510   mkdir conftest.dir
5511   # Copy depcomp to subdir because otherwise we won't find it if we're
5512   # using a relative directory.
5513   cp "$am_depcomp" conftest.dir
5514   cd conftest.dir
5515   # We will build objects and dependencies in a subdirectory because
5516   # it helps to detect inapplicable dependency modes.  For instance
5517   # both Tru64's cc and ICC support -MD to output dependencies as a
5518   # side effect of compilation, but ICC will put the dependencies in
5519   # the current directory while Tru64 will put them in the object
5520   # directory.
5521   mkdir sub
5523   am_cv_CXX_dependencies_compiler_type=none
5524   if test "$am_compiler_list" = ""; then
5525      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5526   fi
5527   for depmode in $am_compiler_list; do
5528     # Setup a source with many dependencies, because some compilers
5529     # like to wrap large dependency lists on column 80 (with \), and
5530     # we should not choose a depcomp mode which is confused by this.
5531     #
5532     # We need to recreate these files for each test, as the compiler may
5533     # overwrite some of them when testing with obscure command lines.
5534     # This happens at least with the AIX C compiler.
5535     : > sub/conftest.c
5536     for i in 1 2 3 4 5 6; do
5537       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5538       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5539       # Solaris 8's {/usr,}/bin/sh.
5540       touch sub/conftst$i.h
5541     done
5542     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5544     case $depmode in
5545     nosideeffect)
5546       # after this tag, mechanisms are not by side-effect, so they'll
5547       # only be used when explicitly requested
5548       if test "x$enable_dependency_tracking" = xyes; then
5549         continue
5550       else
5551         break
5552       fi
5553       ;;
5554     none) break ;;
5555     esac
5556     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5557     # mode.  It turns out that the SunPro C++ compiler does not properly
5558     # handle `-M -o', and we need to detect this.
5559     if depmode=$depmode \
5560        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5561        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5562        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5563          >/dev/null 2>conftest.err &&
5564        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5565        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5566        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5567       # icc doesn't choke on unknown options, it will just issue warnings
5568       # or remarks (even with -Werror).  So we grep stderr for any message
5569       # that says an option was ignored or not supported.
5570       # When given -MP, icc 7.0 and 7.1 complain thusly:
5571       #   icc: Command line warning: ignoring option '-M'; no argument required
5572       # The diagnosis changed in icc 8.0:
5573       #   icc: Command line remark: option '-MP' not supported
5574       if (grep 'ignoring option' conftest.err ||
5575           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5576         am_cv_CXX_dependencies_compiler_type=$depmode
5577         break
5578       fi
5579     fi
5580   done
5582   cd ..
5583   rm -rf conftest.dir
5584 else
5585   am_cv_CXX_dependencies_compiler_type=none
5589 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5590 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5591 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5595 if 
5596   test "x$enable_dependency_tracking" != xno \
5597   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5598   am__fastdepCXX_TRUE=
5599   am__fastdepCXX_FALSE='#'
5600 else
5601   am__fastdepCXX_TRUE='#'
5602   am__fastdepCXX_FALSE=
5608 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5609     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5610     (test "X$CXX" != "Xg++"))) ; then
5611   ac_ext=cpp
5612 ac_cpp='$CXXCPP $CPPFLAGS'
5613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5617 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5618 if test -z "$CXXCPP"; then
5619   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622       # Double quotes because CXXCPP needs to be expanded
5623     for CXXCPP in "$CXX -E" "/lib/cpp"
5624     do
5625       ac_preproc_ok=false
5626 for ac_cxx_preproc_warn_flag in '' yes
5628   # Use a header file that comes with gcc, so configuring glibc
5629   # with a fresh cross-compiler works.
5630   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631   # <limits.h> exists even on freestanding compilers.
5632   # On the NeXT, cc -E runs the code through the compiler's parser,
5633   # not just through cpp. "Syntax error" is here to catch this case.
5634   cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h.  */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h.  */
5640 @%:@ifdef __STDC__
5641 @%:@ include <limits.h>
5642 @%:@else
5643 @%:@ include <assert.h>
5644 @%:@endif
5645                      Syntax error
5646 _ACEOF
5647 if { (ac_try="$ac_cpp conftest.$ac_ext"
5648 case "(($ac_try" in
5649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650   *) ac_try_echo=$ac_try;;
5651 esac
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } >/dev/null && {
5660          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5661          test ! -s conftest.err
5662        }; then
5663   :
5664 else
5665   echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668   # Broken: fails on valid input.
5669 continue
5672 rm -f conftest.err conftest.$ac_ext
5674   # OK, works on sane cases.  Now check whether nonexistent headers
5675   # can be detected and how.
5676   cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h.  */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h.  */
5682 @%:@include <ac_nonexistent.h>
5683 _ACEOF
5684 if { (ac_try="$ac_cpp conftest.$ac_ext"
5685 case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5691   ac_status=$?
5692   grep -v '^ *+' conftest.er1 >conftest.err
5693   rm -f conftest.er1
5694   cat conftest.err >&5
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } >/dev/null && {
5697          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5698          test ! -s conftest.err
5699        }; then
5700   # Broken: success on invalid input.
5701 continue
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706   # Passes both tests.
5707 ac_preproc_ok=:
5708 break
5711 rm -f conftest.err conftest.$ac_ext
5713 done
5714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5715 rm -f conftest.err conftest.$ac_ext
5716 if $ac_preproc_ok; then
5717   break
5720     done
5721     ac_cv_prog_CXXCPP=$CXXCPP
5722   
5724   CXXCPP=$ac_cv_prog_CXXCPP
5725 else
5726   ac_cv_prog_CXXCPP=$CXXCPP
5728 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5729 echo "${ECHO_T}$CXXCPP" >&6; }
5730 ac_preproc_ok=false
5731 for ac_cxx_preproc_warn_flag in '' yes
5733   # Use a header file that comes with gcc, so configuring glibc
5734   # with a fresh cross-compiler works.
5735   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736   # <limits.h> exists even on freestanding compilers.
5737   # On the NeXT, cc -E runs the code through the compiler's parser,
5738   # not just through cpp. "Syntax error" is here to catch this case.
5739   cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h.  */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h.  */
5745 @%:@ifdef __STDC__
5746 @%:@ include <limits.h>
5747 @%:@else
5748 @%:@ include <assert.h>
5749 @%:@endif
5750                      Syntax error
5751 _ACEOF
5752 if { (ac_try="$ac_cpp conftest.$ac_ext"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } >/dev/null && {
5765          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5766          test ! -s conftest.err
5767        }; then
5768   :
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773   # Broken: fails on valid input.
5774 continue
5777 rm -f conftest.err conftest.$ac_ext
5779   # OK, works on sane cases.  Now check whether nonexistent headers
5780   # can be detected and how.
5781   cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 @%:@include <ac_nonexistent.h>
5788 _ACEOF
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } >/dev/null && {
5802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803          test ! -s conftest.err
5804        }; then
5805   # Broken: success on invalid input.
5806 continue
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811   # Passes both tests.
5812 ac_preproc_ok=:
5813 break
5816 rm -f conftest.err conftest.$ac_ext
5818 done
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.$ac_ext
5821 if $ac_preproc_ok; then
5822   :
5823 else
5824   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5825 See \`config.log' for more details." >&5
5826 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5827 See \`config.log' for more details." >&2;}
5828    { (exit 1); exit 1; }; }
5831 ac_ext=cpp
5832 ac_cpp='$CXXCPP $CPPFLAGS'
5833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5840 ac_ext=f
5841 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5842 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5844 if test -n "$ac_tool_prefix"; then
5845   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
5846   do
5847     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_F77+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$F77"; then
5855   ac_cv_prog_F77="$F77" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 F77=$ac_cv_prog_F77
5875 if test -n "$F77"; then
5876   { echo "$as_me:$LINENO: result: $F77" >&5
5877 echo "${ECHO_T}$F77" >&6; }
5878 else
5879   { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5884     test -n "$F77" && break
5885   done
5887 if test -z "$F77"; then
5888   ac_ct_F77=$F77
5889   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
5891   # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$ac_ct_F77"; then
5899   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_prog_ac_ct_F77="$ac_prog"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5918 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5919 if test -n "$ac_ct_F77"; then
5920   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5921 echo "${ECHO_T}$ac_ct_F77" >&6; }
5922 else
5923   { echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6; }
5928   test -n "$ac_ct_F77" && break
5929 done
5931   if test "x$ac_ct_F77" = x; then
5932     F77=""
5933   else
5934     case $cross_compiling:$ac_tool_warned in
5935 yes:)
5936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5937 whose name does not start with the host triplet.  If you think this
5938 configuration is useful to you, please write to autoconf@gnu.org." >&5
5939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5940 whose name does not start with the host triplet.  If you think this
5941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5942 ac_tool_warned=yes ;;
5943 esac
5944     F77=$ac_ct_F77
5945   fi
5949 # Provide some information about the compiler.
5950 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5951 ac_compiler=`set X $ac_compile; echo $2`
5952 { (ac_try="$ac_compiler --version >&5"
5953 case "(($ac_try" in
5954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955   *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958   (eval "$ac_compiler --version >&5") 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }
5962 { (ac_try="$ac_compiler -v >&5"
5963 case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_compiler -v >&5") 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }
5972 { (ac_try="$ac_compiler -V >&5"
5973 case "(($ac_try" in
5974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975   *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978   (eval "$ac_compiler -V >&5") 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }
5982 rm -f a.out
5984 # If we don't use `.F' as extension, the preprocessor is not run on the
5985 # input file.  (Note that this only needs to work for GNU compilers.)
5986 ac_save_ext=$ac_ext
5987 ac_ext=F
5988 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5989 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5990 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   cat >conftest.$ac_ext <<_ACEOF
5994       program main
5995 #ifndef __GNUC__
5996        choke me
5997 #endif
5999       end
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compile") 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } && {
6015          test -z "$ac_f77_werror_flag" ||
6016          test ! -s conftest.err
6017        } && test -s conftest.$ac_objext; then
6018   ac_compiler_gnu=yes
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023         ac_compiler_gnu=no
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6030 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6031 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6032 ac_ext=$ac_save_ext
6033 ac_test_FFLAGS=${FFLAGS+set}
6034 ac_save_FFLAGS=$FFLAGS
6035 FFLAGS=
6036 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6037 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_f77_g+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   FFLAGS=-g
6042 cat >conftest.$ac_ext <<_ACEOF
6043       program main
6045       end
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6049 case "(($ac_try" in
6050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051   *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054   (eval "$ac_compile") 2>conftest.er1
6055   ac_status=$?
6056   grep -v '^ *+' conftest.er1 >conftest.err
6057   rm -f conftest.er1
6058   cat conftest.err >&5
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); } && {
6061          test -z "$ac_f77_werror_flag" ||
6062          test ! -s conftest.err
6063        } && test -s conftest.$ac_objext; then
6064   ac_cv_prog_f77_g=yes
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069         ac_cv_prog_f77_g=no
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6076 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6077 if test "$ac_test_FFLAGS" = set; then
6078   FFLAGS=$ac_save_FFLAGS
6079 elif test $ac_cv_prog_f77_g = yes; then
6080   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6081     FFLAGS="-g -O2"
6082   else
6083     FFLAGS="-g"
6084   fi
6085 else
6086   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6087     FFLAGS="-O2"
6088   else
6089     FFLAGS=
6090   fi
6093 G77=`test $ac_compiler_gnu = yes && echo yes`
6094 ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6104 # find the maximum length of command line arguments
6105 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6106 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6107 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110     i=0
6111   teststring="ABCD"
6113   case $build_os in
6114   msdosdjgpp*)
6115     # On DJGPP, this test can blow up pretty badly due to problems in libc
6116     # (any single argument exceeding 2000 bytes causes a buffer overrun
6117     # during glob expansion).  Even if it were fixed, the result of this
6118     # check would be larger than it should be.
6119     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6120     ;;
6122   gnu*)
6123     # Under GNU Hurd, this test is not required because there is
6124     # no limit to the length of command line arguments.
6125     # Libtool will interpret -1 as no limit whatsoever
6126     lt_cv_sys_max_cmd_len=-1;
6127     ;;
6129   cygwin* | mingw*)
6130     # On Win9x/ME, this test blows up -- it succeeds, but takes
6131     # about 5 minutes as the teststring grows exponentially.
6132     # Worse, since 9x/ME are not pre-emptively multitasking,
6133     # you end up with a "frozen" computer, even though with patience
6134     # the test eventually succeeds (with a max line length of 256k).
6135     # Instead, let's just punt: use the minimum linelength reported by
6136     # all of the supported platforms: 8192 (on NT/2K/XP).
6137     lt_cv_sys_max_cmd_len=8192;
6138     ;;
6140   amigaos*)
6141     # On AmigaOS with pdksh, this test takes hours, literally.
6142     # So we just punt and use a minimum line length of 8192.
6143     lt_cv_sys_max_cmd_len=8192;
6144     ;;
6146   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6147     # This has been around since 386BSD, at least.  Likely further.
6148     if test -x /sbin/sysctl; then
6149       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6150     elif test -x /usr/sbin/sysctl; then
6151       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6152     else
6153       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6154     fi
6155     # And add a safety zone
6156     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6157     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6158     ;;
6159   osf*)
6160     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6161     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6162     # nice to cause kernel panics so lets avoid the loop below.
6163     # First set a reasonable default.
6164     lt_cv_sys_max_cmd_len=16384
6165     #
6166     if test -x /sbin/sysconfig; then
6167       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6168         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6169       esac
6170     fi
6171     ;;
6172   *)
6173     # If test is not a shell built-in, we'll probably end up computing a
6174     # maximum length that is only half of the actual maximum length, but
6175     # we can't tell.
6176     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6177     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6178                = "XX$teststring") >/dev/null 2>&1 &&
6179             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6180             lt_cv_sys_max_cmd_len=$new_result &&
6181             test $i != 17 # 1/2 MB should be enough
6182     do
6183       i=`expr $i + 1`
6184       teststring=$teststring$teststring
6185     done
6186     teststring=
6187     # Add a significant safety factor because C++ compilers can tack on massive
6188     # amounts of additional arguments before passing them to the linker.
6189     # It appears as though 1/2 is a usable value.
6190     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6191     ;;
6192   esac
6196 if test -n $lt_cv_sys_max_cmd_len ; then
6197   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6198 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6199 else
6200   { echo "$as_me:$LINENO: result: none" >&5
6201 echo "${ECHO_T}none" >&6; }
6207 # Check for command to grab the raw symbol name followed by C symbol from nm.
6208 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6209 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6210 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   
6214 # These are sane defaults that work on at least a few old systems.
6215 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6217 # Character class describing NM global symbol codes.
6218 symcode='[BCDEGRST]'
6220 # Regexp to match symbols that can be accessed directly from C.
6221 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6223 # Transform an extracted symbol line into a proper C declaration
6224 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6226 # Transform an extracted symbol line into symbol name and symbol address
6227 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'"
6229 # Define system-specific variables.
6230 case $host_os in
6231 aix*)
6232   symcode='[BCDT]'
6233   ;;
6234 cygwin* | mingw* | pw32*)
6235   symcode='[ABCDGISTW]'
6236   ;;
6237 hpux*) # Its linker distinguishes data from code symbols
6238   if test "$host_cpu" = ia64; then
6239     symcode='[ABCDEGRST]'
6240   fi
6241   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6242   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'"
6243   ;;
6244 linux*)
6245   if test "$host_cpu" = ia64; then
6246     symcode='[ABCDGIRSTW]'
6247     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6248     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'"
6249   fi
6250   ;;
6251 irix* | nonstopux*)
6252   symcode='[BCDEGRST]'
6253   ;;
6254 osf*)
6255   symcode='[BCDEGQRST]'
6256   ;;
6257 solaris* | sysv5*)
6258   symcode='[BDRT]'
6259   ;;
6260 sysv4)
6261   symcode='[DFNSTU]'
6262   ;;
6263 esac
6265 # Handle CRLF in mingw tool chain
6266 opt_cr=
6267 case $build_os in
6268 mingw*)
6269   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6270   ;;
6271 esac
6273 # If we're using GNU nm, then use its standard symbol codes.
6274 case `$NM -V 2>&1` in
6275 *GNU* | *'with BFD'*)
6276   symcode='[ABCDGIRSTW]' ;;
6277 esac
6279 # Try without a prefix undercore, then with it.
6280 for ac_symprfx in "" "_"; do
6282   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6283   symxfrm="\\1 $ac_symprfx\\2 \\2"
6285   # Write the raw and C identifiers.
6286   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288   # Check to see that the pipe works correctly.
6289   pipe_works=no
6291   rm -f conftest*
6292   cat > conftest.$ac_ext <<EOF
6293 #ifdef __cplusplus
6294 extern "C" {
6295 #endif
6296 char nm_test_var;
6297 void nm_test_func(){}
6298 #ifdef __cplusplus
6300 #endif
6301 int main(){nm_test_var='a';nm_test_func();return(0);}
6304   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305   (eval $ac_compile) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; then
6309     # Now try to grab the symbols.
6310     nlist=conftest.nm
6311     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6312   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } && test -s "$nlist"; then
6316       # Try sorting and uniquifying the output.
6317       if sort "$nlist" | uniq > "$nlist"T; then
6318         mv -f "$nlist"T "$nlist"
6319       else
6320         rm -f "$nlist"T
6321       fi
6323       # Make sure that we snagged all the symbols we need.
6324       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6325         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6326           cat <<EOF > conftest.$ac_ext
6327 #ifdef __cplusplus
6328 extern "C" {
6329 #endif
6332           # Now generate the symbol file.
6333           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6335           cat <<EOF >> conftest.$ac_ext
6336 #if defined (__STDC__) && __STDC__
6337 # define lt_ptr_t void *
6338 #else
6339 # define lt_ptr_t char *
6340 # define const
6341 #endif
6343 /* The mapping between symbol names and symbols. */
6344 const struct {
6345   const char *name;
6346   lt_ptr_t address;
6348 lt_preloaded_symbols[] =
6351           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6352           cat <<\EOF >> conftest.$ac_ext
6353   {0, (lt_ptr_t) 0}
6356 #ifdef __cplusplus
6358 #endif
6360           # Now try linking the two files.
6361           mv conftest.$ac_objext conftstm.$ac_objext
6362           lt_save_LIBS="$LIBS"
6363           lt_save_CFLAGS="$CFLAGS"
6364           LIBS="conftstm.$ac_objext"
6365           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6366           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367   (eval $ac_link) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6371             pipe_works=yes
6372           fi
6373           LIBS="$lt_save_LIBS"
6374           CFLAGS="$lt_save_CFLAGS"
6375         else
6376           echo "cannot find nm_test_func in $nlist" >&5
6377         fi
6378       else
6379         echo "cannot find nm_test_var in $nlist" >&5
6380       fi
6381     else
6382       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6383     fi
6384   else
6385     echo "$progname: failed program was:" >&5
6386     cat conftest.$ac_ext >&5
6387   fi
6388   rm -f conftest* conftst*
6390   # Do not use the global_symbol_pipe unless it works.
6391   if test "$pipe_works" = yes; then
6392     break
6393   else
6394     lt_cv_sys_global_symbol_pipe=
6395   fi
6396 done
6400 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6401   lt_cv_sys_global_symbol_to_cdecl=
6403 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6404   { echo "$as_me:$LINENO: result: failed" >&5
6405 echo "${ECHO_T}failed" >&6; }
6406 else
6407   { echo "$as_me:$LINENO: result: ok" >&5
6408 echo "${ECHO_T}ok" >&6; }
6411 { echo "$as_me:$LINENO: checking for objdir" >&5
6412 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6413 if test "${lt_cv_objdir+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   rm -f .libs 2>/dev/null
6417 mkdir .libs 2>/dev/null
6418 if test -d .libs; then
6419   lt_cv_objdir=.libs
6420 else
6421   # MS-DOS does not allow filenames that begin with a dot.
6422   lt_cv_objdir=_libs
6424 rmdir .libs 2>/dev/null
6426 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6427 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6428 objdir=$lt_cv_objdir
6434 case $host_os in
6435 aix3*)
6436   # AIX sometimes has problems with the GCC collect2 program.  For some
6437   # reason, if we set the COLLECT_NAMES environment variable, the problems
6438   # vanish in a puff of smoke.
6439   if test "X${COLLECT_NAMES+set}" != Xset; then
6440     COLLECT_NAMES=
6441     export COLLECT_NAMES
6442   fi
6443   ;;
6444 esac
6446 # Sed substitution that helps us do robust quoting.  It backslashifies
6447 # metacharacters that are still active within double-quoted strings.
6448 Xsed='sed -e 1s/^X//'
6449 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6451 # Same as above, but do not quote variable references.
6452 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6454 # Sed substitution to delay expansion of an escaped shell variable in a
6455 # double_quote_subst'ed string.
6456 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6458 # Sed substitution to avoid accidental globbing in evaled expressions
6459 no_glob_subst='s/\*/\\\*/g'
6461 # Constants:
6462 rm="rm -f"
6464 # Global variables:
6465 default_ofile=libtool
6466 can_build_shared=yes
6468 # All known linkers require a `.a' archive for static linking (except MSVC,
6469 # which needs '.lib').
6470 libext=a
6471 ltmain="$ac_aux_dir/ltmain.sh"
6472 ofile="$default_ofile"
6473 with_gnu_ld="$lt_cv_prog_gnu_ld"
6475 if test -n "$ac_tool_prefix"; then
6476   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}ar; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_AR+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   if test -n "$AR"; then
6484   ac_cv_prog_AR="$AR" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491   for ac_exec_ext in '' $ac_executable_extensions; do
6492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493     ac_cv_prog_AR="${ac_tool_prefix}ar"
6494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6503 AR=$ac_cv_prog_AR
6504 if test -n "$AR"; then
6505   { echo "$as_me:$LINENO: result: $AR" >&5
6506 echo "${ECHO_T}$AR" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6514 if test -z "$ac_cv_prog_AR"; then
6515   ac_ct_AR=$AR
6516   # Extract the first word of "ar", so it can be a program name with args.
6517 set dummy ar; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   if test -n "$ac_ct_AR"; then
6524   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531   for ac_exec_ext in '' $ac_executable_extensions; do
6532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533     ac_cv_prog_ac_ct_AR="ar"
6534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6543 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6544 if test -n "$ac_ct_AR"; then
6545   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6546 echo "${ECHO_T}$ac_ct_AR" >&6; }
6547 else
6548   { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6552   if test "x$ac_ct_AR" = x; then
6553     AR="false"
6554   else
6555     case $cross_compiling:$ac_tool_warned in
6556 yes:)
6557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6558 whose name does not start with the host triplet.  If you think this
6559 configuration is useful to you, please write to autoconf@gnu.org." >&5
6560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6561 whose name does not start with the host triplet.  If you think this
6562 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6563 ac_tool_warned=yes ;;
6564 esac
6565     AR=$ac_ct_AR
6566   fi
6567 else
6568   AR="$ac_cv_prog_AR"
6571 if test -n "$ac_tool_prefix"; then
6572   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_prog_RANLIB+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   if test -n "$RANLIB"; then
6580   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587   for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6599 RANLIB=$ac_cv_prog_RANLIB
6600 if test -n "$RANLIB"; then
6601   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6602 echo "${ECHO_T}$RANLIB" >&6; }
6603 else
6604   { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6610 if test -z "$ac_cv_prog_RANLIB"; then
6611   ac_ct_RANLIB=$RANLIB
6612   # Extract the first word of "ranlib", so it can be a program name with args.
6613 set dummy ranlib; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   if test -n "$ac_ct_RANLIB"; then
6620   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for ac_exec_ext in '' $ac_executable_extensions; do
6628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629     ac_cv_prog_ac_ct_RANLIB="ranlib"
6630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6640 if test -n "$ac_ct_RANLIB"; then
6641   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6642 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6643 else
6644   { echo "$as_me:$LINENO: result: no" >&5
6645 echo "${ECHO_T}no" >&6; }
6648   if test "x$ac_ct_RANLIB" = x; then
6649     RANLIB=":"
6650   else
6651     case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6654 whose name does not start with the host triplet.  If you think this
6655 configuration is useful to you, please write to autoconf@gnu.org." >&5
6656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6657 whose name does not start with the host triplet.  If you think this
6658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661     RANLIB=$ac_ct_RANLIB
6662   fi
6663 else
6664   RANLIB="$ac_cv_prog_RANLIB"
6667 if test -n "$ac_tool_prefix"; then
6668   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_STRIP+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   if test -n "$STRIP"; then
6676   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697   { echo "$as_me:$LINENO: result: $STRIP" >&5
6698 echo "${ECHO_T}$STRIP" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6706 if test -z "$ac_cv_prog_STRIP"; then
6707   ac_ct_STRIP=$STRIP
6708   # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   if test -n "$ac_ct_STRIP"; then
6716   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_prog_ac_ct_STRIP="strip"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6738 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6744   if test "x$ac_ct_STRIP" = x; then
6745     STRIP=":"
6746   else
6747     case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet.  If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet.  If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757     STRIP=$ac_ct_STRIP
6758   fi
6759 else
6760   STRIP="$ac_cv_prog_STRIP"
6764 old_CC="$CC"
6765 old_CFLAGS="$CFLAGS"
6767 # Set sane defaults for various variables
6768 test -z "$AR" && AR=ar
6769 test -z "$AR_FLAGS" && AR_FLAGS=cru
6770 test -z "$AS" && AS=as
6771 test -z "$CC" && CC=cc
6772 test -z "$LTCC" && LTCC=$CC
6773 test -z "$DLLTOOL" && DLLTOOL=dlltool
6774 test -z "$LD" && LD=ld
6775 test -z "$LN_S" && LN_S="ln -s"
6776 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6777 test -z "$NM" && NM=nm
6778 test -z "$SED" && SED=sed
6779 test -z "$OBJDUMP" && OBJDUMP=objdump
6780 test -z "$RANLIB" && RANLIB=:
6781 test -z "$STRIP" && STRIP=:
6782 test -z "$ac_objext" && ac_objext=o
6784 # Determine commands to create old-style static archives.
6785 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6786 old_postinstall_cmds='chmod 644 $oldlib'
6787 old_postuninstall_cmds=
6789 if test -n "$RANLIB"; then
6790   case $host_os in
6791   openbsd*)
6792     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6793     ;;
6794   *)
6795     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6796     ;;
6797   esac
6798   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6801 for cc_temp in $compiler""; do
6802   case $cc_temp in
6803     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6804     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6805     \-*) ;;
6806     *) break;;
6807   esac
6808 done
6809 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6812 # Only perform the check for file, if the check method requires it
6813 case $deplibs_check_method in
6814 file_magic*)
6815   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6816     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6817 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   case $MAGIC_CMD in
6822 [\\/*] |  ?:[\\/]*)
6823   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6824   ;;
6826   lt_save_MAGIC_CMD="$MAGIC_CMD"
6827   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6828   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6829   for ac_dir in $ac_dummy; do
6830     IFS="$lt_save_ifs"
6831     test -z "$ac_dir" && ac_dir=.
6832     if test -f $ac_dir/${ac_tool_prefix}file; then
6833       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6834       if test -n "$file_magic_test_file"; then
6835         case $deplibs_check_method in
6836         "file_magic "*)
6837           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6838           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6839           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6840             $EGREP "$file_magic_regex" > /dev/null; then
6841             :
6842           else
6843             cat <<EOF 1>&2
6845 *** Warning: the command libtool uses to detect shared libraries,
6846 *** $file_magic_cmd, produces output that libtool cannot recognize.
6847 *** The result is that libtool may fail to recognize shared libraries
6848 *** as such.  This will affect the creation of libtool libraries that
6849 *** depend on shared libraries, but programs linked with such libtool
6850 *** libraries will work regardless of this problem.  Nevertheless, you
6851 *** may want to report the problem to your system manager and/or to
6852 *** bug-libtool@gnu.org
6855           fi ;;
6856         esac
6857       fi
6858       break
6859     fi
6860   done
6861   IFS="$lt_save_ifs"
6862   MAGIC_CMD="$lt_save_MAGIC_CMD"
6863   ;;
6864 esac
6867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6868 if test -n "$MAGIC_CMD"; then
6869   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6870 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6871 else
6872   { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6876 if test -z "$lt_cv_path_MAGIC_CMD"; then
6877   if test -n "$ac_tool_prefix"; then
6878     { echo "$as_me:$LINENO: checking for file" >&5
6879 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6880 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   case $MAGIC_CMD in
6884 [\\/*] |  ?:[\\/]*)
6885   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6886   ;;
6888   lt_save_MAGIC_CMD="$MAGIC_CMD"
6889   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6890   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6891   for ac_dir in $ac_dummy; do
6892     IFS="$lt_save_ifs"
6893     test -z "$ac_dir" && ac_dir=.
6894     if test -f $ac_dir/file; then
6895       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6896       if test -n "$file_magic_test_file"; then
6897         case $deplibs_check_method in
6898         "file_magic "*)
6899           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6900           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6901           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6902             $EGREP "$file_magic_regex" > /dev/null; then
6903             :
6904           else
6905             cat <<EOF 1>&2
6907 *** Warning: the command libtool uses to detect shared libraries,
6908 *** $file_magic_cmd, produces output that libtool cannot recognize.
6909 *** The result is that libtool may fail to recognize shared libraries
6910 *** as such.  This will affect the creation of libtool libraries that
6911 *** depend on shared libraries, but programs linked with such libtool
6912 *** libraries will work regardless of this problem.  Nevertheless, you
6913 *** may want to report the problem to your system manager and/or to
6914 *** bug-libtool@gnu.org
6917           fi ;;
6918         esac
6919       fi
6920       break
6921     fi
6922   done
6923   IFS="$lt_save_ifs"
6924   MAGIC_CMD="$lt_save_MAGIC_CMD"
6925   ;;
6926 esac
6929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6930 if test -n "$MAGIC_CMD"; then
6931   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6932 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6933 else
6934   { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6938   else
6939     MAGIC_CMD=:
6940   fi
6943   fi
6944   ;;
6945 esac
6947 enable_dlopen=no
6948 enable_win32_dll=no
6950 # Check whether --enable-libtool-lock was given.
6951 if test "${enable_libtool_lock+set}" = set; then
6952   enableval=$enable_libtool_lock; 
6955 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6958 # Check whether --with-pic was given.
6959 if test "${with_pic+set}" = set; then
6960   withval=$with_pic; pic_mode="$withval"
6961 else
6962   pic_mode=default
6965 test -z "$pic_mode" && pic_mode=default
6967 # Use C for the default configuration in the libtool script
6968 tagname=
6969 lt_save_CC="$CC"
6970 ac_ext=c
6971 ac_cpp='$CPP $CPPFLAGS'
6972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977 # Source file extension for C test sources.
6978 ac_ext=c
6980 # Object file extension for compiled C test sources.
6981 objext=o
6982 objext=$objext
6984 # Code to be used in simple compile tests
6985 lt_simple_compile_test_code="int some_variable = 0;\n"
6987 # Code to be used in simple link tests
6988 lt_simple_link_test_code='int main(){return(0);}\n'
6991 # If no C compiler was specified, use CC.
6992 LTCC=${LTCC-"$CC"}
6994 # Allow CC to be a program name with arguments.
6995 compiler=$CC
6998 # save warnings/boilerplate of simple test code
6999 ac_outfile=conftest.$ac_objext
7000 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7001 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7002 _lt_compiler_boilerplate=`cat conftest.err`
7003 $rm conftest*
7005 ac_outfile=conftest.$ac_objext
7006 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7007 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7008 _lt_linker_boilerplate=`cat conftest.err`
7009 $rm conftest*
7013 # Check for any special shared library compilation flags.
7015 lt_prog_cc_shlib=
7016 if test "$GCC" = no; then
7017   case $host_os in
7018   sco3.2v5*)
7019     lt_prog_cc_shlib='-belf'
7020     ;;
7021   esac
7023 if test -n "$lt_prog_cc_shlib"; then
7024   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7025 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7026   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7027   else
7028     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7029 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7030     lt_cv_prog_cc_can_build_shared=no
7031   fi
7036 # Check to make sure the static flag actually works.
7038 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7039 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7040 if test "${lt_prog_compiler_static_works+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   lt_prog_compiler_static_works=no
7044    save_LDFLAGS="$LDFLAGS"
7045    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7046    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7047    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7048      # The linker can only warn and ignore the option if not recognized
7049      # So say no if there are warnings
7050      if test -s conftest.err; then
7051        # Append any errors to the config.log.
7052        cat conftest.err 1>&5
7053        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7054        $SED '/^$/d' conftest.err >conftest.er2
7055        if diff conftest.exp conftest.er2 >/dev/null; then
7056          lt_prog_compiler_static_works=yes
7057        fi
7058      else
7059        lt_prog_compiler_static_works=yes
7060      fi
7061    fi
7062    $rm conftest*
7063    LDFLAGS="$save_LDFLAGS"
7066 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7067 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7069 if test x"$lt_prog_compiler_static_works" = xyes; then
7070     :
7071 else
7072     lt_prog_compiler_static=
7078 lt_prog_compiler_no_builtin_flag=
7080 if test "$GCC" = yes; then
7081   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7083   
7084 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7085 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7086 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   lt_cv_prog_compiler_rtti_exceptions=no
7090   ac_outfile=conftest.$ac_objext
7091    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7092    lt_compiler_flag="-fno-rtti -fno-exceptions"
7093    # Insert the option either (1) after the last *FLAGS variable, or
7094    # (2) before a word containing "conftest.", or (3) at the end.
7095    # Note that $ac_compile itself does not contain backslashes and begins
7096    # with a dollar sign (not a hyphen), so the echo should work correctly.
7097    # The option is referenced via a variable to avoid confusing sed.
7098    lt_compile=`echo "$ac_compile" | $SED \
7099    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7100    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7101    -e 's:$: $lt_compiler_flag:'`
7102    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7103    (eval "$lt_compile" 2>conftest.err)
7104    ac_status=$?
7105    cat conftest.err >&5
7106    echo "$as_me:__oline__: \$? = $ac_status" >&5
7107    if (exit $ac_status) && test -s "$ac_outfile"; then
7108      # The compiler can only warn and ignore the option if not recognized
7109      # So say no if there are warnings other than the usual output.
7110      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7111      $SED '/^$/d' conftest.err >conftest.er2
7112      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7113        lt_cv_prog_compiler_rtti_exceptions=yes
7114      fi
7115    fi
7116    $rm conftest*
7119 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7120 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7122 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7123     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7124 else
7125     :
7130 lt_prog_compiler_wl=
7131 lt_prog_compiler_pic=
7132 lt_prog_compiler_static=
7134 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7135 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7137   if test "$GCC" = yes; then
7138     lt_prog_compiler_wl='-Wl,'
7139     lt_prog_compiler_static='-static'
7141     case $host_os in
7142       aix*)
7143       # All AIX code is PIC.
7144       if test "$host_cpu" = ia64; then
7145         # AIX 5 now supports IA64 processor
7146         lt_prog_compiler_static='-Bstatic'
7147       fi
7148       ;;
7150     amigaos*)
7151       # FIXME: we need at least 68020 code to build shared libraries, but
7152       # adding the `-m68020' flag to GCC prevents building anything better,
7153       # like `-m68040'.
7154       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7155       ;;
7157     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7158       # PIC is the default for these OSes.
7159       ;;
7161     mingw* | pw32* | os2*)
7162       # This hack is so that the source file can tell whether it is being
7163       # built for inclusion in a dll (and should export symbols for example).
7164       lt_prog_compiler_pic='-DDLL_EXPORT'
7165       ;;
7167     darwin* | rhapsody*)
7168       # PIC is the default on this platform
7169       # Common symbols not allowed in MH_DYLIB files
7170       lt_prog_compiler_pic='-fno-common'
7171       ;;
7173     msdosdjgpp*)
7174       # Just because we use GCC doesn't mean we suddenly get shared libraries
7175       # on systems that don't support them.
7176       lt_prog_compiler_can_build_shared=no
7177       enable_shared=no
7178       ;;
7180     sysv4*MP*)
7181       if test -d /usr/nec; then
7182         lt_prog_compiler_pic=-Kconform_pic
7183       fi
7184       ;;
7186     hpux*)
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='-fPIC'
7195         ;;
7196       esac
7197       ;;
7199     *)
7200       lt_prog_compiler_pic='-fPIC'
7201       ;;
7202     esac
7203   else
7204     # PORTME Check for flag to pass linker flags through the system compiler.
7205     case $host_os in
7206     aix*)
7207       lt_prog_compiler_wl='-Wl,'
7208       if test "$host_cpu" = ia64; then
7209         # AIX 5 now supports IA64 processor
7210         lt_prog_compiler_static='-Bstatic'
7211       else
7212         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7213       fi
7214       ;;
7215       darwin*)
7216         # PIC is the default on this platform
7217         # Common symbols not allowed in MH_DYLIB files
7218        case $cc_basename in
7219          xlc*)
7220          lt_prog_compiler_pic='-qnocommon'
7221          lt_prog_compiler_wl='-Wl,'
7222          ;;
7223        esac
7224        ;;
7226     mingw* | pw32* | os2*)
7227       # This hack is so that the source file can tell whether it is being
7228       # built for inclusion in a dll (and should export symbols for example).
7229       lt_prog_compiler_pic='-DDLL_EXPORT'
7230       ;;
7232     hpux9* | hpux10* | hpux11*)
7233       lt_prog_compiler_wl='-Wl,'
7234       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7235       # not for PA HP-UX.
7236       case $host_cpu in
7237       hppa*64*|ia64*)
7238         # +Z the default
7239         ;;
7240       *)
7241         lt_prog_compiler_pic='+Z'
7242         ;;
7243       esac
7244       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7245       lt_prog_compiler_static='${wl}-a ${wl}archive'
7246       ;;
7248     irix5* | irix6* | nonstopux*)
7249       lt_prog_compiler_wl='-Wl,'
7250       # PIC (with -KPIC) is the default.
7251       lt_prog_compiler_static='-non_shared'
7252       ;;
7254     newsos6)
7255       lt_prog_compiler_pic='-KPIC'
7256       lt_prog_compiler_static='-Bstatic'
7257       ;;
7259     linux*)
7260       case $cc_basename in
7261       icc* | ecc*)
7262         lt_prog_compiler_wl='-Wl,'
7263         lt_prog_compiler_pic='-KPIC'
7264         lt_prog_compiler_static='-static'
7265         ;;
7266       pgcc* | pgf77* | pgf90* | pgf95*)
7267         # Portland Group compilers (*not* the Pentium gcc compiler,
7268         # which looks to be a dead project)
7269         lt_prog_compiler_wl='-Wl,'
7270         lt_prog_compiler_pic='-fpic'
7271         lt_prog_compiler_static='-Bstatic'
7272         ;;
7273       ccc*)
7274         lt_prog_compiler_wl='-Wl,'
7275         # All Alpha code is PIC.
7276         lt_prog_compiler_static='-non_shared'
7277         ;;
7278       esac
7279       ;;
7281     osf3* | osf4* | osf5*)
7282       lt_prog_compiler_wl='-Wl,'
7283       # All OSF/1 code is PIC.
7284       lt_prog_compiler_static='-non_shared'
7285       ;;
7287     sco3.2v5*)
7288       lt_prog_compiler_pic='-Kpic'
7289       lt_prog_compiler_static='-dn'
7290       ;;
7292     solaris*)
7293       lt_prog_compiler_pic='-KPIC'
7294       lt_prog_compiler_static='-Bstatic'
7295       case $cc_basename in
7296       f77* | f90* | f95*)
7297         lt_prog_compiler_wl='-Qoption ld ';;
7298       *)
7299         lt_prog_compiler_wl='-Wl,';;
7300       esac
7301       ;;
7303     sunos4*)
7304       lt_prog_compiler_wl='-Qoption ld '
7305       lt_prog_compiler_pic='-PIC'
7306       lt_prog_compiler_static='-Bstatic'
7307       ;;
7309     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7310       lt_prog_compiler_wl='-Wl,'
7311       lt_prog_compiler_pic='-KPIC'
7312       lt_prog_compiler_static='-Bstatic'
7313       ;;
7315     sysv4*MP*)
7316       if test -d /usr/nec ;then
7317         lt_prog_compiler_pic='-Kconform_pic'
7318         lt_prog_compiler_static='-Bstatic'
7319       fi
7320       ;;
7322     unicos*)
7323       lt_prog_compiler_wl='-Wl,'
7324       lt_prog_compiler_can_build_shared=no
7325       ;;
7327     uts4*)
7328       lt_prog_compiler_pic='-pic'
7329       lt_prog_compiler_static='-Bstatic'
7330       ;;
7332     *)
7333       lt_prog_compiler_can_build_shared=no
7334       ;;
7335     esac
7336   fi
7338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7339 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7342 # Check to make sure the PIC flag actually works.
7344 if test -n "$lt_prog_compiler_pic"; then
7345   
7346 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7347 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7348 if test "${lt_prog_compiler_pic_works+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   lt_prog_compiler_pic_works=no
7352   ac_outfile=conftest.$ac_objext
7353    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7354    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7355    # Insert the option either (1) after the last *FLAGS variable, or
7356    # (2) before a word containing "conftest.", or (3) at the end.
7357    # Note that $ac_compile itself does not contain backslashes and begins
7358    # with a dollar sign (not a hyphen), so the echo should work correctly.
7359    # The option is referenced via a variable to avoid confusing sed.
7360    lt_compile=`echo "$ac_compile" | $SED \
7361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7363    -e 's:$: $lt_compiler_flag:'`
7364    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7365    (eval "$lt_compile" 2>conftest.err)
7366    ac_status=$?
7367    cat conftest.err >&5
7368    echo "$as_me:__oline__: \$? = $ac_status" >&5
7369    if (exit $ac_status) && test -s "$ac_outfile"; then
7370      # The compiler can only warn and ignore the option if not recognized
7371      # So say no if there are warnings other than the usual output.
7372      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7373      $SED '/^$/d' conftest.err >conftest.er2
7374      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7375        lt_prog_compiler_pic_works=yes
7376      fi
7377    fi
7378    $rm conftest*
7381 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7382 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7384 if test x"$lt_prog_compiler_pic_works" = xyes; then
7385     case $lt_prog_compiler_pic in
7386      "" | " "*) ;;
7387      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7388      esac
7389 else
7390     lt_prog_compiler_pic=
7391      lt_prog_compiler_can_build_shared=no
7395 case $host_os in
7396   # For platforms which do not support PIC, -DPIC is meaningless:
7397   *djgpp*)
7398     lt_prog_compiler_pic=
7399     ;;
7400   *)
7401     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7402     ;;
7403 esac
7405 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7406 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7407 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   lt_cv_prog_compiler_c_o=no
7411    $rm -r conftest 2>/dev/null
7412    mkdir conftest
7413    cd conftest
7414    mkdir out
7415    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7417    lt_compiler_flag="-o out/conftest2.$ac_objext"
7418    # Insert the option either (1) after the last *FLAGS variable, or
7419    # (2) before a word containing "conftest.", or (3) at the end.
7420    # Note that $ac_compile itself does not contain backslashes and begins
7421    # with a dollar sign (not a hyphen), so the echo should work correctly.
7422    lt_compile=`echo "$ac_compile" | $SED \
7423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7425    -e 's:$: $lt_compiler_flag:'`
7426    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7427    (eval "$lt_compile" 2>out/conftest.err)
7428    ac_status=$?
7429    cat out/conftest.err >&5
7430    echo "$as_me:__oline__: \$? = $ac_status" >&5
7431    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7432    then
7433      # The compiler can only warn and ignore the option if not recognized
7434      # So say no if there are warnings
7435      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7436      $SED '/^$/d' out/conftest.err >out/conftest.er2
7437      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7438        lt_cv_prog_compiler_c_o=yes
7439      fi
7440    fi
7441    chmod u+w . 2>&5
7442    $rm conftest*
7443    # SGI C++ compiler will create directory out/ii_files/ for
7444    # template instantiation
7445    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7446    $rm out/* && rmdir out
7447    cd ..
7448    rmdir conftest
7449    $rm conftest*
7452 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7453 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7456 hard_links="nottested"
7457 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7458   # do not overwrite the value of need_locks provided by the user
7459   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7460 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7461   hard_links=yes
7462   $rm conftest*
7463   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7464   touch conftest.a
7465   ln conftest.a conftest.b 2>&5 || hard_links=no
7466   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7467   { echo "$as_me:$LINENO: result: $hard_links" >&5
7468 echo "${ECHO_T}$hard_links" >&6; }
7469   if test "$hard_links" = no; then
7470     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7471 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7472     need_locks=warn
7473   fi
7474 else
7475   need_locks=no
7478 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7479 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7481   runpath_var=
7482   allow_undefined_flag=
7483   enable_shared_with_static_runtimes=no
7484   archive_cmds=
7485   archive_expsym_cmds=
7486   old_archive_From_new_cmds=
7487   old_archive_from_expsyms_cmds=
7488   export_dynamic_flag_spec=
7489   whole_archive_flag_spec=
7490   thread_safe_flag_spec=
7491   hardcode_libdir_flag_spec=
7492   hardcode_libdir_flag_spec_ld=
7493   hardcode_libdir_separator=
7494   hardcode_direct=no
7495   hardcode_minus_L=no
7496   hardcode_shlibpath_var=unsupported
7497   link_all_deplibs=unknown
7498   hardcode_automatic=no
7499   module_cmds=
7500   module_expsym_cmds=
7501   always_export_symbols=no
7502   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7503   # include_expsyms should be a list of space-separated symbols to be *always*
7504   # included in the symbol list
7505   include_expsyms=
7506   # exclude_expsyms can be an extended regexp of symbols to exclude
7507   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7508   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7509   # as well as any symbol that contains `d'.
7510   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7511   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7512   # platforms (ab)use it in PIC code, but their linkers get confused if
7513   # the symbol is explicitly referenced.  Since portable code cannot
7514   # rely on this symbol name, it's probably fine to never include it in
7515   # preloaded symbol tables.
7516   extract_expsyms_cmds=
7517   # Just being paranoid about ensuring that cc_basename is set.
7518   for cc_temp in $compiler""; do
7519   case $cc_temp in
7520     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7521     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7522     \-*) ;;
7523     *) break;;
7524   esac
7525 done
7526 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7528   case $host_os in
7529   cygwin* | mingw* | pw32*)
7530     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7531     # When not using gcc, we currently assume that we are using
7532     # Microsoft Visual C++.
7533     if test "$GCC" != yes; then
7534       with_gnu_ld=no
7535     fi
7536     ;;
7537   openbsd*)
7538     with_gnu_ld=no
7539     ;;
7540   esac
7542   ld_shlibs=yes
7543   if test "$with_gnu_ld" = yes; then
7544     # If archive_cmds runs LD, not CC, wlarc should be empty
7545     wlarc='${wl}'
7547     # Set some defaults for GNU ld with shared library support. These
7548     # are reset later if shared libraries are not supported. Putting them
7549     # here allows them to be overridden if necessary.
7550     runpath_var=LD_RUN_PATH
7551     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7552     export_dynamic_flag_spec='${wl}--export-dynamic'
7553     # ancient GNU ld didn't support --whole-archive et. al.
7554     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7555         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7556       else
7557         whole_archive_flag_spec=
7558     fi
7559     supports_anon_versioning=no
7560     case `$LD -v 2>/dev/null` in
7561       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7562       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7563       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7564       *\ 2.11.*) ;; # other 2.11 versions
7565       *) supports_anon_versioning=yes ;;
7566     esac
7568     # See if GNU ld supports shared libraries.
7569     case $host_os in
7570     aix3* | aix4* | aix5*)
7571       # On AIX/PPC, the GNU linker is very broken
7572       if test "$host_cpu" != ia64; then
7573         ld_shlibs=no
7574         cat <<EOF 1>&2
7576 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7577 *** to be unable to reliably create shared libraries on AIX.
7578 *** Therefore, libtool is disabling shared libraries support.  If you
7579 *** really care for shared libraries, you may want to modify your PATH
7580 *** so that a non-GNU linker is found, and then restart.
7583       fi
7584       ;;
7586     amigaos*)
7587       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)'
7588       hardcode_libdir_flag_spec='-L$libdir'
7589       hardcode_minus_L=yes
7591       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7592       # that the semantics of dynamic libraries on AmigaOS, at least up
7593       # to version 4, is to share data among multiple programs linked
7594       # with the same dynamic library.  Since this doesn't match the
7595       # behavior of shared libraries on other platforms, we can't use
7596       # them.
7597       ld_shlibs=no
7598       ;;
7600     beos*)
7601       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7602         allow_undefined_flag=unsupported
7603         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7604         # support --undefined.  This deserves some investigation.  FIXME
7605         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7606       else
7607         ld_shlibs=no
7608       fi
7609       ;;
7611     cygwin* | mingw* | pw32*)
7612       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7613       # as there is no search path for DLLs.
7614       hardcode_libdir_flag_spec='-L$libdir'
7615       allow_undefined_flag=unsupported
7616       always_export_symbols=no
7617       enable_shared_with_static_runtimes=yes
7618       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7620       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7621         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7622         # If the export-symbols file already is a .def file (1st line
7623         # is EXPORTS), use it as is; otherwise, prepend...
7624         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7625           cp $export_symbols $output_objdir/$soname.def;
7626         else
7627           echo EXPORTS > $output_objdir/$soname.def;
7628           cat $export_symbols >> $output_objdir/$soname.def;
7629         fi~
7630         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7631       else
7632         ld_shlibs=no
7633       fi
7634       ;;
7636     linux*)
7637       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7638         tmp_addflag=
7639         case $cc_basename,$host_cpu in
7640         pgcc*)                          # Portland Group C compiler
7641           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'
7642           tmp_addflag=' $pic_flag'
7643           ;;
7644         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7645           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'
7646           tmp_addflag=' $pic_flag -Mnomain' ;;
7647         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7648           tmp_addflag=' -i_dynamic' ;;
7649         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7650           tmp_addflag=' -i_dynamic -nofor_main' ;;
7651         ifc* | ifort*)                  # Intel Fortran compiler
7652           tmp_addflag=' -nofor_main' ;;
7653         esac
7654         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7656         if test $supports_anon_versioning = yes; then
7657           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7658   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7659   $echo "local: *; };" >> $output_objdir/$libname.ver~
7660           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7661         fi
7662         link_all_deplibs=no
7663       else
7664         ld_shlibs=no
7665       fi
7666       ;;
7668     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7669       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7670         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7671         wlarc=
7672       else
7673         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7674         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7675       fi
7676       ;;
7678     solaris* | sysv5*)
7679       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7680         ld_shlibs=no
7681         cat <<EOF 1>&2
7683 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7684 *** create shared libraries on Solaris systems.  Therefore, libtool
7685 *** is disabling shared libraries support.  We urge you to upgrade GNU
7686 *** binutils to release 2.9.1 or newer.  Another option is to modify
7687 *** your PATH or compiler configuration so that the native linker is
7688 *** used, and then restart.
7691       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7692         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7694       else
7695         ld_shlibs=no
7696       fi
7697       ;;
7699     sunos4*)
7700       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7701       wlarc=
7702       hardcode_direct=yes
7703       hardcode_shlibpath_var=no
7704       ;;
7706     *)
7707       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7708         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7709         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7710       else
7711         ld_shlibs=no
7712       fi
7713       ;;
7714     esac
7716     if test "$ld_shlibs" = no; then
7717       runpath_var=
7718       hardcode_libdir_flag_spec=
7719       export_dynamic_flag_spec=
7720       whole_archive_flag_spec=
7721     fi
7722   else
7723     # PORTME fill in a description of your system's linker (not GNU ld)
7724     case $host_os in
7725     aix3*)
7726       allow_undefined_flag=unsupported
7727       always_export_symbols=yes
7728       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'
7729       # Note: this linker hardcodes the directories in LIBPATH if there
7730       # are no directories specified by -L.
7731       hardcode_minus_L=yes
7732       if test "$GCC" = yes && test -z "$link_static_flag"; then
7733         # Neither direct hardcoding nor static linking is supported with a
7734         # broken collect2.
7735         hardcode_direct=unsupported
7736       fi
7737       ;;
7739     aix4* | aix5*)
7740       if test "$host_cpu" = ia64; then
7741         # On IA64, the linker does run time linking by default, so we don't
7742         # have to do anything special.
7743         aix_use_runtimelinking=no
7744         exp_sym_flag='-Bexport'
7745         no_entry_flag=""
7746       else
7747         # If we're using GNU nm, then we don't want the "-C" option.
7748         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7749         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7750           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'
7751         else
7752           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'
7753         fi
7754         aix_use_runtimelinking=no
7756         # Test if we are trying to use run time linking or normal
7757         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7758         # need to do runtime linking.
7759         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7760           for ld_flag in $LDFLAGS; do
7761           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7762             aix_use_runtimelinking=yes
7763             break
7764           fi
7765           done
7766         esac
7768         exp_sym_flag='-bexport'
7769         no_entry_flag='-bnoentry'
7770       fi
7772       # When large executables or shared objects are built, AIX ld can
7773       # have problems creating the table of contents.  If linking a library
7774       # or program results in "error TOC overflow" add -mminimal-toc to
7775       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7776       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7778       archive_cmds=''
7779       hardcode_direct=yes
7780       hardcode_libdir_separator=':'
7781       link_all_deplibs=yes
7783       if test "$GCC" = yes; then
7784         case $host_os in aix4.[012]|aix4.[012].*)
7785         # We only want to do this on AIX 4.2 and lower, the check
7786         # below for broken collect2 doesn't work under 4.3+
7787           collect2name=`${CC} -print-prog-name=collect2`
7788           if test -f "$collect2name" && \
7789            strings "$collect2name" | grep resolve_lib_name >/dev/null
7790           then
7791           # We have reworked collect2
7792           hardcode_direct=yes
7793           else
7794           # We have old collect2
7795           hardcode_direct=unsupported
7796           # It fails to find uninstalled libraries when the uninstalled
7797           # path is not listed in the libpath.  Setting hardcode_minus_L
7798           # to unsupported forces relinking
7799           hardcode_minus_L=yes
7800           hardcode_libdir_flag_spec='-L$libdir'
7801           hardcode_libdir_separator=
7802           fi
7803         esac
7804         shared_flag='-shared'
7805         if test "$aix_use_runtimelinking" = yes; then
7806           shared_flag="$shared_flag "'${wl}-G'
7807         fi
7808       else
7809         # not using gcc
7810         if test "$host_cpu" = ia64; then
7811         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7812         # chokes on -Wl,-G. The following line is correct:
7813           shared_flag='-G'
7814         else
7815         if test "$aix_use_runtimelinking" = yes; then
7816             shared_flag='${wl}-G'
7817           else
7818             shared_flag='${wl}-bM:SRE'
7819         fi
7820         fi
7821       fi
7823       # It seems that -bexpall does not export symbols beginning with
7824       # underscore (_), so it is better to generate a list of symbols to export.
7825       always_export_symbols=yes
7826       if test "$aix_use_runtimelinking" = yes; then
7827         # Warning - without using the other runtime loading flags (-brtl),
7828         # -berok will link without error, but may produce a broken library.
7829         allow_undefined_flag='-berok'
7830        # Determine the default libpath from the value encoded in an empty executable.
7831        cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7839 main ()
7842   ;
7843   return 0;
7845 _ACEOF
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7848 case "(($ac_try" in
7849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850   *) ac_try_echo=$ac_try;;
7851 esac
7852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853   (eval "$ac_link") 2>conftest.er1
7854   ac_status=$?
7855   grep -v '^ *+' conftest.er1 >conftest.err
7856   rm -f conftest.er1
7857   cat conftest.err >&5
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); } && {
7860          test -z "$ac_c_werror_flag" ||
7861          test ! -s conftest.err
7862        } && test -s conftest$ac_exeext &&
7863        $as_test_x conftest$ac_exeext; then
7864   
7865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7867 # Check for a 64-bit object if we didn't find anything.
7868 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7869 }'`; fi
7870 else
7871   echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874         
7877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7878       conftest$ac_exeext conftest.$ac_ext
7879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7881        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7882         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7883        else
7884         if test "$host_cpu" = ia64; then
7885           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7886           allow_undefined_flag="-z nodefs"
7887           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7888         else
7889          # Determine the default libpath from the value encoded in an empty executable.
7890          cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7898 main ()
7901   ;
7902   return 0;
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (ac_try="$ac_link"
7907 case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912   (eval "$ac_link") 2>conftest.er1
7913   ac_status=$?
7914   grep -v '^ *+' conftest.er1 >conftest.err
7915   rm -f conftest.er1
7916   cat conftest.err >&5
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); } && {
7919          test -z "$ac_c_werror_flag" ||
7920          test ! -s conftest.err
7921        } && test -s conftest$ac_exeext &&
7922        $as_test_x conftest$ac_exeext; then
7923   
7924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7926 # Check for a 64-bit object if we didn't find anything.
7927 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7928 }'`; fi
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933         
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937       conftest$ac_exeext conftest.$ac_ext
7938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7940          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7941           # Warning - without using the other run time loading flags,
7942           # -berok will link without error, but may produce a broken library.
7943           no_undefined_flag=' ${wl}-bernotok'
7944           allow_undefined_flag=' ${wl}-berok'
7945           # -bexpall does not export symbols beginning with underscore (_)
7946           always_export_symbols=yes
7947           # Exported symbols can be pulled into shared objects from archives
7948           whole_archive_flag_spec=' '
7949           archive_cmds_need_lc=yes
7950           # This is similar to how AIX traditionally builds its shared libraries.
7951           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7952         fi
7953       fi
7954       ;;
7956     amigaos*)
7957       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)'
7958       hardcode_libdir_flag_spec='-L$libdir'
7959       hardcode_minus_L=yes
7960       # see comment about different semantics on the GNU ld section
7961       ld_shlibs=no
7962       ;;
7964     bsdi[45]*)
7965       export_dynamic_flag_spec=-rdynamic
7966       ;;
7968     cygwin* | mingw* | pw32*)
7969       # When not using gcc, we currently assume that we are using
7970       # Microsoft Visual C++.
7971       # hardcode_libdir_flag_spec is actually meaningless, as there is
7972       # no search path for DLLs.
7973       hardcode_libdir_flag_spec=' '
7974       allow_undefined_flag=unsupported
7975       # Tell ltmain to make .lib files, not .a files.
7976       libext=lib
7977       # Tell ltmain to make .dll files, not .so files.
7978       shrext_cmds=".dll"
7979       # FIXME: Setting linknames here is a bad hack.
7980       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7981       # The linker will automatically build a .lib file if we build a DLL.
7982       old_archive_From_new_cmds='true'
7983       # FIXME: Should let the user specify the lib program.
7984       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7985       fix_srcfile_path='`cygpath -w "$srcfile"`'
7986       enable_shared_with_static_runtimes=yes
7987       ;;
7989     darwin* | rhapsody*)
7990       case $host_os in
7991         rhapsody* | darwin1.[012])
7992          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7993          ;;
7994        *) # Darwin 1.3 on
7995          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7996            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7997          else
7998            case ${MACOSX_DEPLOYMENT_TARGET} in
7999              10.[012])
8000                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8001                ;;
8002              10.*)
8003                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8004                ;;
8005            esac
8006          fi
8007          ;;
8008       esac
8009       archive_cmds_need_lc=no
8010       hardcode_direct=no
8011       hardcode_automatic=yes
8012       hardcode_shlibpath_var=unsupported
8013       whole_archive_flag_spec=''
8014       link_all_deplibs=yes
8015     if test "$GCC" = yes ; then
8016         output_verbose_link_cmd='echo'
8017         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8018       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8019       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8020       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}'
8021       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}'
8022     else
8023       case $cc_basename in
8024         xlc*)
8025          output_verbose_link_cmd='echo'
8026          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8027          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8028           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8029          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8030           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}'
8031           ;;
8032        *)
8033          ld_shlibs=no
8034           ;;
8035       esac
8036     fi
8037       ;;
8039     dgux*)
8040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8041       hardcode_libdir_flag_spec='-L$libdir'
8042       hardcode_shlibpath_var=no
8043       ;;
8045     freebsd1*)
8046       ld_shlibs=no
8047       ;;
8049     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8050     # support.  Future versions do this automatically, but an explicit c++rt0.o
8051     # does not break anything, and helps significantly (at the cost of a little
8052     # extra space).
8053     freebsd2.2*)
8054       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8055       hardcode_libdir_flag_spec='-R$libdir'
8056       hardcode_direct=yes
8057       hardcode_shlibpath_var=no
8058       ;;
8060     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8061     freebsd2*)
8062       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8063       hardcode_direct=yes
8064       hardcode_minus_L=yes
8065       hardcode_shlibpath_var=no
8066       ;;
8068     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8069     freebsd* | kfreebsd*-gnu | dragonfly*)
8070       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8071       hardcode_libdir_flag_spec='-R$libdir'
8072       hardcode_direct=yes
8073       hardcode_shlibpath_var=no
8074       ;;
8076     hpux9*)
8077       if test "$GCC" = yes; then
8078         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'
8079       else
8080         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'
8081       fi
8082       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8083       hardcode_libdir_separator=:
8084       hardcode_direct=yes
8086       # hardcode_minus_L: Not really in the search PATH,
8087       # but as the default location of the library.
8088       hardcode_minus_L=yes
8089       export_dynamic_flag_spec='${wl}-E'
8090       ;;
8092     hpux10* | hpux11*)
8093       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8094         case $host_cpu in
8095         hppa*64*|ia64*)
8096           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8097           ;;
8098         *)
8099           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8100           ;;
8101         esac
8102       else
8103         case $host_cpu in
8104         hppa*64*|ia64*)
8105           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8106           ;;
8107         *)
8108           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8109           ;;
8110         esac
8111       fi
8112       if test "$with_gnu_ld" = no; then
8113         case $host_cpu in
8114         hppa*64*)
8115           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8116           hardcode_libdir_flag_spec_ld='+b $libdir'
8117           hardcode_libdir_separator=:
8118           hardcode_direct=no
8119           hardcode_shlibpath_var=no
8120           ;;
8121         ia64*)
8122           hardcode_libdir_flag_spec='-L$libdir'
8123           hardcode_direct=no
8124           hardcode_shlibpath_var=no
8126           # hardcode_minus_L: Not really in the search PATH,
8127           # but as the default location of the library.
8128           hardcode_minus_L=yes
8129           ;;
8130         *)
8131           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8132           hardcode_libdir_separator=:
8133           hardcode_direct=yes
8134           export_dynamic_flag_spec='${wl}-E'
8136           # hardcode_minus_L: Not really in the search PATH,
8137           # but as the default location of the library.
8138           hardcode_minus_L=yes
8139           ;;
8140         esac
8141       fi
8142       ;;
8144     irix5* | irix6* | nonstopux*)
8145       if test "$GCC" = yes; then
8146         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'
8147       else
8148         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'
8149         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8150       fi
8151       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8152       hardcode_libdir_separator=:
8153       link_all_deplibs=yes
8154       ;;
8156     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8157       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8158         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8159       else
8160         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8161       fi
8162       hardcode_libdir_flag_spec='-R$libdir'
8163       hardcode_direct=yes
8164       hardcode_shlibpath_var=no
8165       ;;
8167     newsos6)
8168       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8169       hardcode_direct=yes
8170       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8171       hardcode_libdir_separator=:
8172       hardcode_shlibpath_var=no
8173       ;;
8175     openbsd*)
8176       hardcode_direct=yes
8177       hardcode_shlibpath_var=no
8178       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8179         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8180         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8181         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8182         export_dynamic_flag_spec='${wl}-E'
8183       else
8184        case $host_os in
8185          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8186            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8187            hardcode_libdir_flag_spec='-R$libdir'
8188            ;;
8189          *)
8190            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8191            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8192            ;;
8193        esac
8194       fi
8195       ;;
8197     os2*)
8198       hardcode_libdir_flag_spec='-L$libdir'
8199       hardcode_minus_L=yes
8200       allow_undefined_flag=unsupported
8201       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'
8202       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8203       ;;
8205     osf3*)
8206       if test "$GCC" = yes; then
8207         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8208         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'
8209       else
8210         allow_undefined_flag=' -expect_unresolved \*'
8211         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'
8212       fi
8213       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214       hardcode_libdir_separator=:
8215       ;;
8217     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8218       if test "$GCC" = yes; then
8219         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8220         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'
8221         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8222       else
8223         allow_undefined_flag=' -expect_unresolved \*'
8224         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'
8225         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8226         $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'
8228         # Both c and cxx compiler support -rpath directly
8229         hardcode_libdir_flag_spec='-rpath $libdir'
8230       fi
8231       hardcode_libdir_separator=:
8232       ;;
8234     sco3.2v5*)
8235       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8236       hardcode_shlibpath_var=no
8237       export_dynamic_flag_spec='${wl}-Bexport'
8238       runpath_var=LD_RUN_PATH
8239       hardcode_runpath_var=yes
8240       ;;
8242     solaris*)
8243       no_undefined_flag=' -z text'
8244       if test "$GCC" = yes; then
8245         wlarc='${wl}'
8246         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8247         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8248           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8249       else
8250         wlarc=''
8251         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8252         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8253         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8254       fi
8255       hardcode_libdir_flag_spec='-R$libdir'
8256       hardcode_shlibpath_var=no
8257       case $host_os in
8258       solaris2.[0-5] | solaris2.[0-5].*) ;;
8259       *)
8260         # The compiler driver will combine linker options so we
8261         # cannot just pass the convience library names through
8262         # without $wl, iff we do not link with $LD.
8263         # Luckily, gcc supports the same syntax we need for Sun Studio.
8264         # Supported since Solaris 2.6 (maybe 2.5.1?)
8265         case $wlarc in
8266         '')
8267           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8268         *)
8269           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8270         esac ;;
8271       esac
8272       link_all_deplibs=yes
8273       ;;
8275     sunos4*)
8276       if test "x$host_vendor" = xsequent; then
8277         # Use $CC to link under sequent, because it throws in some extra .o
8278         # files that make .init and .fini sections work.
8279         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8280       else
8281         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8282       fi
8283       hardcode_libdir_flag_spec='-L$libdir'
8284       hardcode_direct=yes
8285       hardcode_minus_L=yes
8286       hardcode_shlibpath_var=no
8287       ;;
8289     sysv4)
8290       case $host_vendor in
8291         sni)
8292           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8293           hardcode_direct=yes # is this really true???
8294         ;;
8295         siemens)
8296           ## LD is ld it makes a PLAMLIB
8297           ## CC just makes a GrossModule.
8298           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8299           reload_cmds='$CC -r -o $output$reload_objs'
8300           hardcode_direct=no
8301         ;;
8302         motorola)
8303           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8305         ;;
8306       esac
8307       runpath_var='LD_RUN_PATH'
8308       hardcode_shlibpath_var=no
8309       ;;
8311     sysv4.3*)
8312       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8313       hardcode_shlibpath_var=no
8314       export_dynamic_flag_spec='-Bexport'
8315       ;;
8317     sysv4*MP*)
8318       if test -d /usr/nec; then
8319         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8320         hardcode_shlibpath_var=no
8321         runpath_var=LD_RUN_PATH
8322         hardcode_runpath_var=yes
8323         ld_shlibs=yes
8324       fi
8325       ;;
8327     sysv4.2uw2*)
8328       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8329       hardcode_direct=yes
8330       hardcode_minus_L=no
8331       hardcode_shlibpath_var=no
8332       hardcode_runpath_var=yes
8333       runpath_var=LD_RUN_PATH
8334       ;;
8336    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8337       no_undefined_flag='${wl}-z ${wl}text'
8338       if test "$GCC" = yes; then
8339         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8340       else
8341         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8342       fi
8343       runpath_var='LD_RUN_PATH'
8344       hardcode_shlibpath_var=no
8345       ;;
8347     sysv5*)
8348       no_undefined_flag=' -z text'
8349       # $CC -shared without GNU ld will not create a library from C++
8350       # object files and a static libstdc++, better avoid it by now
8351       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8353                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8354       hardcode_libdir_flag_spec=
8355       hardcode_shlibpath_var=no
8356       runpath_var='LD_RUN_PATH'
8357       ;;
8359     uts4*)
8360       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8361       hardcode_libdir_flag_spec='-L$libdir'
8362       hardcode_shlibpath_var=no
8363       ;;
8365     *)
8366       ld_shlibs=no
8367       ;;
8368     esac
8369   fi
8371 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8372 echo "${ECHO_T}$ld_shlibs" >&6; }
8373 test "$ld_shlibs" = no && can_build_shared=no
8375 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8376 if test "$GCC" = yes; then
8377   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8381 # Do we need to explicitly link libc?
8383 case "x$archive_cmds_need_lc" in
8384 x|xyes)
8385   # Assume -lc should be added
8386   archive_cmds_need_lc=yes
8388   if test "$enable_shared" = yes && test "$GCC" = yes; then
8389     case $archive_cmds in
8390     *'~'*)
8391       # FIXME: we may have to deal with multi-command sequences.
8392       ;;
8393     '$CC '*)
8394       # Test whether the compiler implicitly links with -lc since on some
8395       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8396       # to ld, don't add -lc before -lgcc.
8397       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8398 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8399       $rm conftest*
8400       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8402       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403   (eval $ac_compile) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } 2>conftest.err; then
8407         soname=conftest
8408         lib=conftest
8409         libobjs=conftest.$ac_objext
8410         deplibs=
8411         wl=$lt_prog_compiler_wl
8412         compiler_flags=-v
8413         linker_flags=-v
8414         verstring=
8415         output_objdir=.
8416         libname=conftest
8417         lt_save_allow_undefined_flag=$allow_undefined_flag
8418         allow_undefined_flag=
8419         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8420   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }
8424         then
8425           archive_cmds_need_lc=no
8426         else
8427           archive_cmds_need_lc=yes
8428         fi
8429         allow_undefined_flag=$lt_save_allow_undefined_flag
8430       else
8431         cat conftest.err 1>&5
8432       fi
8433       $rm conftest*
8434       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8435 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8436       ;;
8437     esac
8438   fi
8439   ;;
8440 esac
8442 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8443 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8444 library_names_spec=
8445 libname_spec='lib$name'
8446 soname_spec=
8447 shrext_cmds=".so"
8448 postinstall_cmds=
8449 postuninstall_cmds=
8450 finish_cmds=
8451 finish_eval=
8452 shlibpath_var=
8453 shlibpath_overrides_runpath=unknown
8454 version_type=none
8455 dynamic_linker="$host_os ld.so"
8456 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8457 if test "$GCC" = yes; then
8458   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8459   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8460     # if the path contains ";" then we assume it to be the separator
8461     # otherwise default to the standard path separator (i.e. ":") - it is
8462     # assumed that no part of a normal pathname contains ";" but that should
8463     # okay in the real world where ";" in dirpaths is itself problematic.
8464     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8465   else
8466     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8467   fi
8468 else
8469   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8471 need_lib_prefix=unknown
8472 hardcode_into_libs=no
8474 # when you set need_version to no, make sure it does not cause -set_version
8475 # flags to be left without arguments
8476 need_version=unknown
8478 case $host_os in
8479 aix3*)
8480   version_type=linux
8481   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8482   shlibpath_var=LIBPATH
8484   # AIX 3 has no versioning support, so we append a major version to the name.
8485   soname_spec='${libname}${release}${shared_ext}$major'
8486   ;;
8488 aix4* | aix5*)
8489   version_type=linux
8490   need_lib_prefix=no
8491   need_version=no
8492   hardcode_into_libs=yes
8493   if test "$host_cpu" = ia64; then
8494     # AIX 5 supports IA64
8495     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8496     shlibpath_var=LD_LIBRARY_PATH
8497   else
8498     # With GCC up to 2.95.x, collect2 would create an import file
8499     # for dependence libraries.  The import file would start with
8500     # the line `#! .'.  This would cause the generated library to
8501     # depend on `.', always an invalid library.  This was fixed in
8502     # development snapshots of GCC prior to 3.0.
8503     case $host_os in
8504       aix4 | aix4.[01] | aix4.[01].*)
8505       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8506            echo ' yes '
8507            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8508         :
8509       else
8510         can_build_shared=no
8511       fi
8512       ;;
8513     esac
8514     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8515     # soname into executable. Probably we can add versioning support to
8516     # collect2, so additional links can be useful in future.
8517     if test "$aix_use_runtimelinking" = yes; then
8518       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8519       # instead of lib<name>.a to let people know that these are not
8520       # typical AIX shared libraries.
8521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8522     else
8523       # We preserve .a as extension for shared libraries through AIX4.2
8524       # and later when we are not doing run time linking.
8525       library_names_spec='${libname}${release}.a $libname.a'
8526       soname_spec='${libname}${release}${shared_ext}$major'
8527     fi
8528     shlibpath_var=LIBPATH
8529   fi
8530   ;;
8532 amigaos*)
8533   library_names_spec='$libname.ixlibrary $libname.a'
8534   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8535   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'
8536   ;;
8538 beos*)
8539   library_names_spec='${libname}${shared_ext}'
8540   dynamic_linker="$host_os ld.so"
8541   shlibpath_var=LIBRARY_PATH
8542   ;;
8544 bsdi[45]*)
8545   version_type=linux
8546   need_version=no
8547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8548   soname_spec='${libname}${release}${shared_ext}$major'
8549   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8550   shlibpath_var=LD_LIBRARY_PATH
8551   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8552   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8553   # the default ld.so.conf also contains /usr/contrib/lib and
8554   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8555   # libtool to hard-code these into programs
8556   ;;
8558 cygwin* | mingw* | pw32*)
8559   version_type=windows
8560   shrext_cmds=".dll"
8561   need_version=no
8562   need_lib_prefix=no
8564   case $GCC,$host_os in
8565   yes,cygwin* | yes,mingw* | yes,pw32*)
8566     library_names_spec='$libname.dll.a'
8567     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8568     postinstall_cmds='base_file=`basename \${file}`~
8569       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8570       dldir=$destdir/`dirname \$dlpath`~
8571       test -d \$dldir || mkdir -p \$dldir~
8572       $install_prog $dir/$dlname \$dldir/$dlname~
8573       chmod a+x \$dldir/$dlname'
8574     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8575       dlpath=$dir/\$dldll~
8576        $rm \$dlpath'
8577     shlibpath_overrides_runpath=yes
8579     case $host_os in
8580     cygwin*)
8581       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8582       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8583       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8584       ;;
8585     mingw*)
8586       # MinGW DLLs use traditional 'lib' prefix
8587       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8588       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8589       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8590         # It is most probably a Windows format PATH printed by
8591         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8592         # path with ; separators, and with drive letters. We can handle the
8593         # drive letters (cygwin fileutils understands them), so leave them,
8594         # especially as we might pass files found there to a mingw objdump,
8595         # which wouldn't understand a cygwinified path. Ahh.
8596         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8597       else
8598         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8599       fi
8600       ;;
8601     pw32*)
8602       # pw32 DLLs use 'pw' prefix rather than 'lib'
8603       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8604       ;;
8605     esac
8606     ;;
8608   *)
8609     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8610     ;;
8611   esac
8612   dynamic_linker='Win32 ld.exe'
8613   # FIXME: first we should search . and the directory the executable is in
8614   shlibpath_var=PATH
8615   ;;
8617 darwin* | rhapsody*)
8618   dynamic_linker="$host_os dyld"
8619   version_type=darwin
8620   need_lib_prefix=no
8621   need_version=no
8622   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8623   soname_spec='${libname}${release}${major}$shared_ext'
8624   shlibpath_overrides_runpath=yes
8625   shlibpath_var=DYLD_LIBRARY_PATH
8626   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8627   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8628   if test "$GCC" = yes; then
8629     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8630   else
8631     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8632   fi
8633   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8634   ;;
8636 dgux*)
8637   version_type=linux
8638   need_lib_prefix=no
8639   need_version=no
8640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8641   soname_spec='${libname}${release}${shared_ext}$major'
8642   shlibpath_var=LD_LIBRARY_PATH
8643   ;;
8645 freebsd1*)
8646   dynamic_linker=no
8647   ;;
8649 kfreebsd*-gnu)
8650   version_type=linux
8651   need_lib_prefix=no
8652   need_version=no
8653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8654   soname_spec='${libname}${release}${shared_ext}$major'
8655   shlibpath_var=LD_LIBRARY_PATH
8656   shlibpath_overrides_runpath=no
8657   hardcode_into_libs=yes
8658   dynamic_linker='GNU ld.so'
8659   ;;
8661 freebsd* | dragonfly*)
8662   # DragonFly does not have aout.  When/if they implement a new
8663   # versioning mechanism, adjust this.
8664   if test -x /usr/bin/objformat; then
8665     objformat=`/usr/bin/objformat`
8666   else
8667     case $host_os in
8668     freebsd[123]*) objformat=aout ;;
8669     *) objformat=elf ;;
8670     esac
8671   fi
8672   version_type=freebsd-$objformat
8673   case $version_type in
8674     freebsd-elf*)
8675       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8676       need_version=no
8677       need_lib_prefix=no
8678       ;;
8679     freebsd-*)
8680       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8681       need_version=yes
8682       ;;
8683   esac
8684   shlibpath_var=LD_LIBRARY_PATH
8685   case $host_os in
8686   freebsd2*)
8687     shlibpath_overrides_runpath=yes
8688     ;;
8689   freebsd3.[01]* | freebsdelf3.[01]*)
8690     shlibpath_overrides_runpath=yes
8691     hardcode_into_libs=yes
8692     ;;
8693   *) # from 3.2 on
8694     shlibpath_overrides_runpath=no
8695     hardcode_into_libs=yes
8696     ;;
8697   esac
8698   ;;
8700 gnu*)
8701   version_type=linux
8702   need_lib_prefix=no
8703   need_version=no
8704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8705   soname_spec='${libname}${release}${shared_ext}$major'
8706   shlibpath_var=LD_LIBRARY_PATH
8707   hardcode_into_libs=yes
8708   ;;
8710 hpux9* | hpux10* | hpux11*)
8711   # Give a soname corresponding to the major version so that dld.sl refuses to
8712   # link against other versions.
8713   version_type=sunos
8714   need_lib_prefix=no
8715   need_version=no
8716   case $host_cpu in
8717   ia64*)
8718     shrext_cmds='.so'
8719     hardcode_into_libs=yes
8720     dynamic_linker="$host_os dld.so"
8721     shlibpath_var=LD_LIBRARY_PATH
8722     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8724     soname_spec='${libname}${release}${shared_ext}$major'
8725     if test "X$HPUX_IA64_MODE" = X32; then
8726       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8727     else
8728       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8729     fi
8730     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8731     ;;
8732    hppa*64*)
8733      shrext_cmds='.sl'
8734      hardcode_into_libs=yes
8735      dynamic_linker="$host_os dld.sl"
8736      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8737      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8739      soname_spec='${libname}${release}${shared_ext}$major'
8740      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8741      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8742      ;;
8743    *)
8744     shrext_cmds='.sl'
8745     dynamic_linker="$host_os dld.sl"
8746     shlibpath_var=SHLIB_PATH
8747     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8749     soname_spec='${libname}${release}${shared_ext}$major'
8750     ;;
8751   esac
8752   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8753   postinstall_cmds='chmod 555 $lib'
8754   ;;
8756 irix5* | irix6* | nonstopux*)
8757   case $host_os in
8758     nonstopux*) version_type=nonstopux ;;
8759     *)
8760         if test "$lt_cv_prog_gnu_ld" = yes; then
8761                 version_type=linux
8762         else
8763                 version_type=irix
8764         fi ;;
8765   esac
8766   need_lib_prefix=no
8767   need_version=no
8768   soname_spec='${libname}${release}${shared_ext}$major'
8769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8770   case $host_os in
8771   irix5* | nonstopux*)
8772     libsuff= shlibsuff=
8773     ;;
8774   *)
8775     case $LD in # libtool.m4 will add one of these switches to LD
8776     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8777       libsuff= shlibsuff= libmagic=32-bit;;
8778     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8779       libsuff=32 shlibsuff=N32 libmagic=N32;;
8780     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8781       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8782     *) libsuff= shlibsuff= libmagic=never-match;;
8783     esac
8784     ;;
8785   esac
8786   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8787   shlibpath_overrides_runpath=no
8788   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8789   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8790   hardcode_into_libs=yes
8791   ;;
8793 # No shared lib support for Linux oldld, aout, or coff.
8794 linux*oldld* | linux*aout* | linux*coff*)
8795   dynamic_linker=no
8796   ;;
8798 # This must be Linux ELF.
8799 linux*)
8800   version_type=linux
8801   need_lib_prefix=no
8802   need_version=no
8803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804   soname_spec='${libname}${release}${shared_ext}$major'
8805   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8806   shlibpath_var=LD_LIBRARY_PATH
8807   shlibpath_overrides_runpath=no
8808   # This implies no fast_install, which is unacceptable.
8809   # Some rework will be needed to allow for fast_install
8810   # before this can be enabled.
8811   hardcode_into_libs=yes
8813   # Append ld.so.conf contents to the search path
8814   if test -f /etc/ld.so.conf; then
8815     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8816     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8817   fi
8819   # We used to test for /lib/ld.so.1 and disable shared libraries on
8820   # powerpc, because MkLinux only supported shared libraries with the
8821   # GNU dynamic linker.  Since this was broken with cross compilers,
8822   # most powerpc-linux boxes support dynamic linking these days and
8823   # people can always --disable-shared, the test was removed, and we
8824   # assume the GNU/Linux dynamic linker is in use.
8825   dynamic_linker='GNU/Linux ld.so'
8826   ;;
8828 netbsdelf*-gnu)
8829   version_type=linux
8830   need_lib_prefix=no
8831   need_version=no
8832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8833   soname_spec='${libname}${release}${shared_ext}$major'
8834   shlibpath_var=LD_LIBRARY_PATH
8835   shlibpath_overrides_runpath=no
8836   hardcode_into_libs=yes
8837   dynamic_linker='NetBSD ld.elf_so'
8838   ;;
8840 knetbsd*-gnu)
8841   version_type=linux
8842   need_lib_prefix=no
8843   need_version=no
8844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8845   soname_spec='${libname}${release}${shared_ext}$major'
8846   shlibpath_var=LD_LIBRARY_PATH
8847   shlibpath_overrides_runpath=no
8848   hardcode_into_libs=yes
8849   dynamic_linker='GNU ld.so'
8850   ;;
8852 netbsd*)
8853   version_type=sunos
8854   need_lib_prefix=no
8855   need_version=no
8856   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8858     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8859     dynamic_linker='NetBSD (a.out) ld.so'
8860   else
8861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8862     soname_spec='${libname}${release}${shared_ext}$major'
8863     dynamic_linker='NetBSD ld.elf_so'
8864   fi
8865   shlibpath_var=LD_LIBRARY_PATH
8866   shlibpath_overrides_runpath=yes
8867   hardcode_into_libs=yes
8868   ;;
8870 newsos6)
8871   version_type=linux
8872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873   shlibpath_var=LD_LIBRARY_PATH
8874   shlibpath_overrides_runpath=yes
8875   ;;
8877 nto-qnx*)
8878   version_type=linux
8879   need_lib_prefix=no
8880   need_version=no
8881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882   soname_spec='${libname}${release}${shared_ext}$major'
8883   shlibpath_var=LD_LIBRARY_PATH
8884   shlibpath_overrides_runpath=yes
8885   ;;
8887 openbsd*)
8888   version_type=sunos
8889   need_lib_prefix=no
8890   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8891   case $host_os in
8892     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8893     *)                         need_version=no  ;;
8894   esac
8895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8896   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8897   shlibpath_var=LD_LIBRARY_PATH
8898   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8899     case $host_os in
8900       openbsd2.[89] | openbsd2.[89].*)
8901         shlibpath_overrides_runpath=no
8902         ;;
8903       *)
8904         shlibpath_overrides_runpath=yes
8905         ;;
8906       esac
8907   else
8908     shlibpath_overrides_runpath=yes
8909   fi
8910   ;;
8912 os2*)
8913   libname_spec='$name'
8914   shrext_cmds=".dll"
8915   need_lib_prefix=no
8916   library_names_spec='$libname${shared_ext} $libname.a'
8917   dynamic_linker='OS/2 ld.exe'
8918   shlibpath_var=LIBPATH
8919   ;;
8921 osf3* | osf4* | osf5*)
8922   version_type=osf
8923   need_lib_prefix=no
8924   need_version=no
8925   soname_spec='${libname}${release}${shared_ext}$major'
8926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8927   shlibpath_var=LD_LIBRARY_PATH
8928   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8929   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8930   ;;
8932 sco3.2v5*)
8933   version_type=osf
8934   soname_spec='${libname}${release}${shared_ext}$major'
8935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936   shlibpath_var=LD_LIBRARY_PATH
8937   ;;
8939 solaris*)
8940   version_type=linux
8941   need_lib_prefix=no
8942   need_version=no
8943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944   soname_spec='${libname}${release}${shared_ext}$major'
8945   shlibpath_var=LD_LIBRARY_PATH
8946   shlibpath_overrides_runpath=yes
8947   hardcode_into_libs=yes
8948   # ldd complains unless libraries are executable
8949   postinstall_cmds='chmod +x $lib'
8950   ;;
8952 sunos4*)
8953   version_type=sunos
8954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8955   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8956   shlibpath_var=LD_LIBRARY_PATH
8957   shlibpath_overrides_runpath=yes
8958   if test "$with_gnu_ld" = yes; then
8959     need_lib_prefix=no
8960   fi
8961   need_version=yes
8962   ;;
8964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8965   version_type=linux
8966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967   soname_spec='${libname}${release}${shared_ext}$major'
8968   shlibpath_var=LD_LIBRARY_PATH
8969   case $host_vendor in
8970     sni)
8971       shlibpath_overrides_runpath=no
8972       need_lib_prefix=no
8973       export_dynamic_flag_spec='${wl}-Blargedynsym'
8974       runpath_var=LD_RUN_PATH
8975       ;;
8976     siemens)
8977       need_lib_prefix=no
8978       ;;
8979     motorola)
8980       need_lib_prefix=no
8981       need_version=no
8982       shlibpath_overrides_runpath=no
8983       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8984       ;;
8985   esac
8986   ;;
8988 sysv4*MP*)
8989   if test -d /usr/nec ;then
8990     version_type=linux
8991     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8992     soname_spec='$libname${shared_ext}.$major'
8993     shlibpath_var=LD_LIBRARY_PATH
8994   fi
8995   ;;
8997 uts4*)
8998   version_type=linux
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000   soname_spec='${libname}${release}${shared_ext}$major'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   ;;
9005   dynamic_linker=no
9006   ;;
9007 esac
9008 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9009 echo "${ECHO_T}$dynamic_linker" >&6; }
9010 test "$dynamic_linker" = no && can_build_shared=no
9012 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9013 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9014 hardcode_action=
9015 if test -n "$hardcode_libdir_flag_spec" || \
9016    test -n "$runpath_var" || \
9017    test "X$hardcode_automatic" = "Xyes" ; then
9019   # We can hardcode non-existant directories.
9020   if test "$hardcode_direct" != no &&
9021      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9022      # have to relink, otherwise we might link with an installed library
9023      # when we should be linking with a yet-to-be-installed one
9024      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9025      test "$hardcode_minus_L" != no; then
9026     # Linking always hardcodes the temporary library directory.
9027     hardcode_action=relink
9028   else
9029     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9030     hardcode_action=immediate
9031   fi
9032 else
9033   # We cannot hardcode anything, or else we can only hardcode existing
9034   # directories.
9035   hardcode_action=unsupported
9037 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9038 echo "${ECHO_T}$hardcode_action" >&6; }
9040 if test "$hardcode_action" = relink; then
9041   # Fast installation is not supported
9042   enable_fast_install=no
9043 elif test "$shlibpath_overrides_runpath" = yes ||
9044      test "$enable_shared" = no; then
9045   # Fast installation is not necessary
9046   enable_fast_install=needless
9049 striplib=
9050 old_striplib=
9051 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9052 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9053 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9054   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9055   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9056   { echo "$as_me:$LINENO: result: yes" >&5
9057 echo "${ECHO_T}yes" >&6; }
9058 else
9059 # FIXME - insert some real tests, host_os isn't really good enough
9060   case $host_os in
9061    darwin*)
9062        if test -n "$STRIP" ; then
9063          striplib="$STRIP -x"
9064          { echo "$as_me:$LINENO: result: yes" >&5
9065 echo "${ECHO_T}yes" >&6; }
9066        else
9067   { echo "$as_me:$LINENO: result: no" >&5
9068 echo "${ECHO_T}no" >&6; }
9070        ;;
9071    *)
9072   { echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6; }
9074     ;;
9075   esac
9078 if test "x$enable_dlopen" != xyes; then
9079   enable_dlopen=unknown
9080   enable_dlopen_self=unknown
9081   enable_dlopen_self_static=unknown
9082 else
9083   lt_cv_dlopen=no
9084   lt_cv_dlopen_libs=
9086   case $host_os in
9087   beos*)
9088     lt_cv_dlopen="load_add_on"
9089     lt_cv_dlopen_libs=
9090     lt_cv_dlopen_self=yes
9091     ;;
9093   mingw* | pw32*)
9094     lt_cv_dlopen="LoadLibrary"
9095     lt_cv_dlopen_libs=
9096    ;;
9098   cygwin*)
9099     lt_cv_dlopen="dlopen"
9100     lt_cv_dlopen_libs=
9101    ;;
9103   darwin*)
9104   # if libdl is installed we need to link against it
9105     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9106 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9107 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-ldl  $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h.  */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h.  */
9119 /* Override any GCC internal prototype to avoid an error.
9120    Use char because int might match the return type of a GCC
9121    builtin and then its argument prototype would still apply.  */
9122 #ifdef __cplusplus
9123 extern "C"
9124 #endif
9125 char dlopen ();
9127 main ()
9129 return dlopen ();
9130   ;
9131   return 0;
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9136 case "(($ac_try" in
9137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138   *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141   (eval "$ac_link") 2>conftest.er1
9142   ac_status=$?
9143   grep -v '^ *+' conftest.er1 >conftest.err
9144   rm -f conftest.er1
9145   cat conftest.err >&5
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); } && {
9148          test -z "$ac_c_werror_flag" ||
9149          test ! -s conftest.err
9150        } && test -s conftest$ac_exeext &&
9151        $as_test_x conftest$ac_exeext; then
9152   ac_cv_lib_dl_dlopen=yes
9153 else
9154   echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157         ac_cv_lib_dl_dlopen=no
9160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9161       conftest$ac_exeext conftest.$ac_ext
9162 LIBS=$ac_check_lib_save_LIBS
9164 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9165 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9166 if test $ac_cv_lib_dl_dlopen = yes; then
9167   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9168 else
9169   
9170     lt_cv_dlopen="dyld"
9171     lt_cv_dlopen_libs=
9172     lt_cv_dlopen_self=yes
9173     
9176    ;;
9178   *)
9179     { echo "$as_me:$LINENO: checking for shl_load" >&5
9180 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9181 if test "${ac_cv_func_shl_load+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h.  */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h.  */
9190 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9192 #define shl_load innocuous_shl_load
9194 /* System header to define __stub macros and hopefully few prototypes,
9195     which can conflict with char shl_load (); below.
9196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9197     <limits.h> exists even on freestanding compilers.  */
9199 #ifdef __STDC__
9200 # include <limits.h>
9201 #else
9202 # include <assert.h>
9203 #endif
9205 #undef shl_load
9207 /* Override any GCC internal prototype to avoid an error.
9208    Use char because int might match the return type of a GCC
9209    builtin and then its argument prototype would still apply.  */
9210 #ifdef __cplusplus
9211 extern "C"
9212 #endif
9213 char shl_load ();
9214 /* The GNU C library defines this for functions which it implements
9215     to always fail with ENOSYS.  Some functions are actually named
9216     something starting with __ and the normal name is an alias.  */
9217 #if defined __stub_shl_load || defined __stub___shl_load
9218 choke me
9219 #endif
9222 main ()
9224 return shl_load ();
9225   ;
9226   return 0;
9228 _ACEOF
9229 rm -f conftest.$ac_objext conftest$ac_exeext
9230 if { (ac_try="$ac_link"
9231 case "(($ac_try" in
9232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233   *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236   (eval "$ac_link") 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } && {
9243          test -z "$ac_c_werror_flag" ||
9244          test ! -s conftest.err
9245        } && test -s conftest$ac_exeext &&
9246        $as_test_x conftest$ac_exeext; then
9247   ac_cv_func_shl_load=yes
9248 else
9249   echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252         ac_cv_func_shl_load=no
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256       conftest$ac_exeext conftest.$ac_ext
9258 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9259 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9260 if test $ac_cv_func_shl_load = yes; then
9261   lt_cv_dlopen="shl_load"
9262 else
9263   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9264 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9265 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268   ac_check_lib_save_LIBS=$LIBS
9269 LIBS="-ldld  $LIBS"
9270 cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h.  */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h.  */
9277 /* Override any GCC internal prototype to avoid an error.
9278    Use char because int might match the return type of a GCC
9279    builtin and then its argument prototype would still apply.  */
9280 #ifdef __cplusplus
9281 extern "C"
9282 #endif
9283 char shl_load ();
9285 main ()
9287 return shl_load ();
9288   ;
9289   return 0;
9291 _ACEOF
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (ac_try="$ac_link"
9294 case "(($ac_try" in
9295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296   *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299   (eval "$ac_link") 2>conftest.er1
9300   ac_status=$?
9301   grep -v '^ *+' conftest.er1 >conftest.err
9302   rm -f conftest.er1
9303   cat conftest.err >&5
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } && {
9306          test -z "$ac_c_werror_flag" ||
9307          test ! -s conftest.err
9308        } && test -s conftest$ac_exeext &&
9309        $as_test_x conftest$ac_exeext; then
9310   ac_cv_lib_dld_shl_load=yes
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315         ac_cv_lib_dld_shl_load=no
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319       conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9322 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9323 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9324 if test $ac_cv_lib_dld_shl_load = yes; then
9325   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9326 else
9327   { echo "$as_me:$LINENO: checking for dlopen" >&5
9328 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9329 if test "${ac_cv_func_dlopen+set}" = set; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332   cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9340 #define dlopen innocuous_dlopen
9342 /* System header to define __stub macros and hopefully few prototypes,
9343     which can conflict with char dlopen (); below.
9344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9345     <limits.h> exists even on freestanding compilers.  */
9347 #ifdef __STDC__
9348 # include <limits.h>
9349 #else
9350 # include <assert.h>
9351 #endif
9353 #undef dlopen
9355 /* Override any GCC internal prototype to avoid an error.
9356    Use char because int might match the return type of a GCC
9357    builtin and then its argument prototype would still apply.  */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char dlopen ();
9362 /* The GNU C library defines this for functions which it implements
9363     to always fail with ENOSYS.  Some functions are actually named
9364     something starting with __ and the normal name is an alias.  */
9365 #if defined __stub_dlopen || defined __stub___dlopen
9366 choke me
9367 #endif
9370 main ()
9372 return dlopen ();
9373   ;
9374   return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381   *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384   (eval "$ac_link") 2>conftest.er1
9385   ac_status=$?
9386   grep -v '^ *+' conftest.er1 >conftest.err
9387   rm -f conftest.er1
9388   cat conftest.err >&5
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } && {
9391          test -z "$ac_c_werror_flag" ||
9392          test ! -s conftest.err
9393        } && test -s conftest$ac_exeext &&
9394        $as_test_x conftest$ac_exeext; then
9395   ac_cv_func_dlopen=yes
9396 else
9397   echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400         ac_cv_func_dlopen=no
9403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9404       conftest$ac_exeext conftest.$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9407 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9408 if test $ac_cv_func_dlopen = yes; then
9409   lt_cv_dlopen="dlopen"
9410 else
9411   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9412 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9413 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   ac_check_lib_save_LIBS=$LIBS
9417 LIBS="-ldl  $LIBS"
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9425 /* Override any GCC internal prototype to avoid an error.
9426    Use char because int might match the return type of a GCC
9427    builtin and then its argument prototype would still apply.  */
9428 #ifdef __cplusplus
9429 extern "C"
9430 #endif
9431 char dlopen ();
9433 main ()
9435 return dlopen ();
9436   ;
9437   return 0;
9439 _ACEOF
9440 rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (ac_try="$ac_link"
9442 case "(($ac_try" in
9443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444   *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447   (eval "$ac_link") 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } && {
9454          test -z "$ac_c_werror_flag" ||
9455          test ! -s conftest.err
9456        } && test -s conftest$ac_exeext &&
9457        $as_test_x conftest$ac_exeext; then
9458   ac_cv_lib_dl_dlopen=yes
9459 else
9460   echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463         ac_cv_lib_dl_dlopen=no
9466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9467       conftest$ac_exeext conftest.$ac_ext
9468 LIBS=$ac_check_lib_save_LIBS
9470 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9471 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9472 if test $ac_cv_lib_dl_dlopen = yes; then
9473   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9474 else
9475   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9476 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9477 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   ac_check_lib_save_LIBS=$LIBS
9481 LIBS="-lsvld  $LIBS"
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9489 /* Override any GCC internal prototype to avoid an error.
9490    Use char because int might match the return type of a GCC
9491    builtin and then its argument prototype would still apply.  */
9492 #ifdef __cplusplus
9493 extern "C"
9494 #endif
9495 char dlopen ();
9497 main ()
9499 return dlopen ();
9500   ;
9501   return 0;
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && {
9518          test -z "$ac_c_werror_flag" ||
9519          test ! -s conftest.err
9520        } && test -s conftest$ac_exeext &&
9521        $as_test_x conftest$ac_exeext; then
9522   ac_cv_lib_svld_dlopen=yes
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527         ac_cv_lib_svld_dlopen=no
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531       conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9534 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9535 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9536 if test $ac_cv_lib_svld_dlopen = yes; then
9537   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9538 else
9539   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9540 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9541 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   ac_check_lib_save_LIBS=$LIBS
9545 LIBS="-ldld  $LIBS"
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9553 /* Override any GCC internal prototype to avoid an error.
9554    Use char because int might match the return type of a GCC
9555    builtin and then its argument prototype would still apply.  */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 char dld_link ();
9561 main ()
9563 return dld_link ();
9564   ;
9565   return 0;
9567 _ACEOF
9568 rm -f conftest.$ac_objext conftest$ac_exeext
9569 if { (ac_try="$ac_link"
9570 case "(($ac_try" in
9571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572   *) ac_try_echo=$ac_try;;
9573 esac
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575   (eval "$ac_link") 2>conftest.er1
9576   ac_status=$?
9577   grep -v '^ *+' conftest.er1 >conftest.err
9578   rm -f conftest.er1
9579   cat conftest.err >&5
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } && {
9582          test -z "$ac_c_werror_flag" ||
9583          test ! -s conftest.err
9584        } && test -s conftest$ac_exeext &&
9585        $as_test_x conftest$ac_exeext; then
9586   ac_cv_lib_dld_dld_link=yes
9587 else
9588   echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591         ac_cv_lib_dld_dld_link=no
9594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9595       conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9598 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9599 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9600 if test $ac_cv_lib_dld_dld_link = yes; then
9601   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9604               
9607             
9610           
9613         
9616       
9619     ;;
9620   esac
9622   if test "x$lt_cv_dlopen" != xno; then
9623     enable_dlopen=yes
9624   else
9625     enable_dlopen=no
9626   fi
9628   case $lt_cv_dlopen in
9629   dlopen)
9630     save_CPPFLAGS="$CPPFLAGS"
9631     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9633     save_LDFLAGS="$LDFLAGS"
9634     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9636     save_LIBS="$LIBS"
9637     LIBS="$lt_cv_dlopen_libs $LIBS"
9639     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9640 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9641 if test "${lt_cv_dlopen_self+set}" = set; then
9642   echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644           if test "$cross_compiling" = yes; then :
9645   lt_cv_dlopen_self=cross
9646 else
9647   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9648   lt_status=$lt_dlunknown
9649   cat > conftest.$ac_ext <<EOF
9650 #line __oline__ "configure"
9651 #include "confdefs.h"
9653 #if HAVE_DLFCN_H
9654 #include <dlfcn.h>
9655 #endif
9657 #include <stdio.h>
9659 #ifdef RTLD_GLOBAL
9660 #  define LT_DLGLOBAL           RTLD_GLOBAL
9661 #else
9662 #  ifdef DL_GLOBAL
9663 #    define LT_DLGLOBAL         DL_GLOBAL
9664 #  else
9665 #    define LT_DLGLOBAL         0
9666 #  endif
9667 #endif
9669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9670    find out it does not work in some platform. */
9671 #ifndef LT_DLLAZY_OR_NOW
9672 #  ifdef RTLD_LAZY
9673 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9674 #  else
9675 #    ifdef DL_LAZY
9676 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9677 #    else
9678 #      ifdef RTLD_NOW
9679 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9680 #      else
9681 #        ifdef DL_NOW
9682 #          define LT_DLLAZY_OR_NOW      DL_NOW
9683 #        else
9684 #          define LT_DLLAZY_OR_NOW      0
9685 #        endif
9686 #      endif
9687 #    endif
9688 #  endif
9689 #endif
9691 #ifdef __cplusplus
9692 extern "C" void exit (int);
9693 #endif
9695 void fnord() { int i=42;}
9696 int main ()
9698   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9699   int status = $lt_dlunknown;
9701   if (self)
9702     {
9703       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9704       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9705       /* dlclose (self); */
9706     }
9708     exit (status);
9711   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712   (eval $ac_link) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9716     (./conftest; exit; ) >&5 2>/dev/null
9717     lt_status=$?
9718     case x$lt_status in
9719       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9720       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9721       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9722     esac
9723   else :
9724     # compilation failed
9725     lt_cv_dlopen_self=no
9726   fi
9728 rm -fr conftest*
9730     
9732 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9733 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9735     if test "x$lt_cv_dlopen_self" = xyes; then
9736       LDFLAGS="$LDFLAGS $link_static_flag"
9737       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9738 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9739 if test "${lt_cv_dlopen_self_static+set}" = set; then
9740   echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742           if test "$cross_compiling" = yes; then :
9743   lt_cv_dlopen_self_static=cross
9744 else
9745   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9746   lt_status=$lt_dlunknown
9747   cat > conftest.$ac_ext <<EOF
9748 #line __oline__ "configure"
9749 #include "confdefs.h"
9751 #if HAVE_DLFCN_H
9752 #include <dlfcn.h>
9753 #endif
9755 #include <stdio.h>
9757 #ifdef RTLD_GLOBAL
9758 #  define LT_DLGLOBAL           RTLD_GLOBAL
9759 #else
9760 #  ifdef DL_GLOBAL
9761 #    define LT_DLGLOBAL         DL_GLOBAL
9762 #  else
9763 #    define LT_DLGLOBAL         0
9764 #  endif
9765 #endif
9767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9768    find out it does not work in some platform. */
9769 #ifndef LT_DLLAZY_OR_NOW
9770 #  ifdef RTLD_LAZY
9771 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9772 #  else
9773 #    ifdef DL_LAZY
9774 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9775 #    else
9776 #      ifdef RTLD_NOW
9777 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9778 #      else
9779 #        ifdef DL_NOW
9780 #          define LT_DLLAZY_OR_NOW      DL_NOW
9781 #        else
9782 #          define LT_DLLAZY_OR_NOW      0
9783 #        endif
9784 #      endif
9785 #    endif
9786 #  endif
9787 #endif
9789 #ifdef __cplusplus
9790 extern "C" void exit (int);
9791 #endif
9793 void fnord() { int i=42;}
9794 int main ()
9796   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9797   int status = $lt_dlunknown;
9799   if (self)
9800     {
9801       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9802       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9803       /* dlclose (self); */
9804     }
9806     exit (status);
9809   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810   (eval $ac_link) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9814     (./conftest; exit; ) >&5 2>/dev/null
9815     lt_status=$?
9816     case x$lt_status in
9817       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9818       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9819       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9820     esac
9821   else :
9822     # compilation failed
9823     lt_cv_dlopen_self_static=no
9824   fi
9826 rm -fr conftest*
9828       
9830 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9831 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9832     fi
9834     CPPFLAGS="$save_CPPFLAGS"
9835     LDFLAGS="$save_LDFLAGS"
9836     LIBS="$save_LIBS"
9837     ;;
9838   esac
9840   case $lt_cv_dlopen_self in
9841   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9842   *) enable_dlopen_self=unknown ;;
9843   esac
9845   case $lt_cv_dlopen_self_static in
9846   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9847   *) enable_dlopen_self_static=unknown ;;
9848   esac
9852 # Report which librarie types wil actually be built
9853 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9854 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9855 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9856 echo "${ECHO_T}$can_build_shared" >&6; }
9858 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9859 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9860 test "$can_build_shared" = "no" && enable_shared=no
9862 # On AIX, shared libraries and static libraries use the same namespace, and
9863 # are all built from PIC.
9864 case $host_os in
9865 aix3*)
9866   test "$enable_shared" = yes && enable_static=no
9867   if test -n "$RANLIB"; then
9868     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9869     postinstall_cmds='$RANLIB $lib'
9870   fi
9871   ;;
9873 aix4* | aix5*)
9874   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9875     test "$enable_shared" = yes && enable_static=no
9876   fi
9877     ;;
9878 esac
9879 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9880 echo "${ECHO_T}$enable_shared" >&6; }
9882 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9883 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9884 # Make sure either enable_shared or enable_static is yes.
9885 test "$enable_shared" = yes || enable_static=yes
9886 { echo "$as_me:$LINENO: result: $enable_static" >&5
9887 echo "${ECHO_T}$enable_static" >&6; }
9889 # The else clause should only fire when bootstrapping the
9890 # libtool distribution, otherwise you forgot to ship ltmain.sh
9891 # with your package, and you will get complaints that there are
9892 # no rules to generate ltmain.sh.
9893 if test -f "$ltmain"; then
9894   # See if we are running on zsh, and set the options which allow our commands through
9895   # without removal of \ escapes.
9896   if test -n "${ZSH_VERSION+set}" ; then
9897     setopt NO_GLOB_SUBST
9898   fi
9899   # Now quote all the things that may contain metacharacters while being
9900   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9901   # variables and quote the copies for generation of the libtool script.
9902   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9903     SED SHELL STRIP \
9904     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9905     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9906     deplibs_check_method reload_flag reload_cmds need_locks \
9907     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9908     lt_cv_sys_global_symbol_to_c_name_address \
9909     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9910     old_postinstall_cmds old_postuninstall_cmds \
9911     compiler \
9912     CC \
9913     LD \
9914     lt_prog_compiler_wl \
9915     lt_prog_compiler_pic \
9916     lt_prog_compiler_static \
9917     lt_prog_compiler_no_builtin_flag \
9918     export_dynamic_flag_spec \
9919     thread_safe_flag_spec \
9920     whole_archive_flag_spec \
9921     enable_shared_with_static_runtimes \
9922     old_archive_cmds \
9923     old_archive_from_new_cmds \
9924     predep_objects \
9925     postdep_objects \
9926     predeps \
9927     postdeps \
9928     compiler_lib_search_path \
9929     archive_cmds \
9930     archive_expsym_cmds \
9931     postinstall_cmds \
9932     postuninstall_cmds \
9933     old_archive_from_expsyms_cmds \
9934     allow_undefined_flag \
9935     no_undefined_flag \
9936     export_symbols_cmds \
9937     hardcode_libdir_flag_spec \
9938     hardcode_libdir_flag_spec_ld \
9939     hardcode_libdir_separator \
9940     hardcode_automatic \
9941     module_cmds \
9942     module_expsym_cmds \
9943     lt_cv_prog_compiler_c_o \
9944     exclude_expsyms \
9945     include_expsyms; do
9947     case $var in
9948     old_archive_cmds | \
9949     old_archive_from_new_cmds | \
9950     archive_cmds | \
9951     archive_expsym_cmds | \
9952     module_cmds | \
9953     module_expsym_cmds | \
9954     old_archive_from_expsyms_cmds | \
9955     export_symbols_cmds | \
9956     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9957     postinstall_cmds | postuninstall_cmds | \
9958     old_postinstall_cmds | old_postuninstall_cmds | \
9959     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9960       # Double-quote double-evaled strings.
9961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9962       ;;
9963     *)
9964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9965       ;;
9966     esac
9967   done
9969   case $lt_echo in
9970   *'\$0 --fallback-echo"')
9971     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9972     ;;
9973   esac
9975 cfgfile="${ofile}T"
9976   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9977   $rm -f "$cfgfile"
9978   { echo "$as_me:$LINENO: creating $ofile" >&5
9979 echo "$as_me: creating $ofile" >&6;}
9981   cat <<__EOF__ >> "$cfgfile"
9982 #! $SHELL
9984 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9985 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9986 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9988 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9989 # Free Software Foundation, Inc.
9991 # This file is part of GNU Libtool:
9992 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9994 # This program is free software; you can redistribute it and/or modify
9995 # it under the terms of the GNU General Public License as published by
9996 # the Free Software Foundation; either version 2 of the License, or
9997 # (at your option) any later version.
9999 # This program is distributed in the hope that it will be useful, but
10000 # WITHOUT ANY WARRANTY; without even the implied warranty of
10001 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10002 # General Public License for more details.
10004 # You should have received a copy of the GNU General Public License
10005 # along with this program; if not, write to the Free Software
10006 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10008 # As a special exception to the GNU General Public License, if you
10009 # distribute this file as part of a program that contains a
10010 # configuration script generated by Autoconf, you may include it under
10011 # the same distribution terms that you use for the rest of that program.
10013 # A sed program that does not truncate output.
10014 SED=$lt_SED
10016 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10017 Xsed="$SED -e 1s/^X//"
10019 # The HP-UX ksh and POSIX shell print the target directory to stdout
10020 # if CDPATH is set.
10021 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10023 # The names of the tagged configurations supported by this script.
10024 available_tags=
10026 # ### BEGIN LIBTOOL CONFIG
10028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10030 # Shell to use when invoking shell scripts.
10031 SHELL=$lt_SHELL
10033 # Whether or not to build shared libraries.
10034 build_libtool_libs=$enable_shared
10036 # Whether or not to build static libraries.
10037 build_old_libs=$enable_static
10039 # Whether or not to add -lc for building shared libraries.
10040 build_libtool_need_lc=$archive_cmds_need_lc
10042 # Whether or not to disallow shared libs when runtime libs are static
10043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10045 # Whether or not to optimize for fast installation.
10046 fast_install=$enable_fast_install
10048 # The host system.
10049 host_alias=$host_alias
10050 host=$host
10051 host_os=$host_os
10053 # The build system.
10054 build_alias=$build_alias
10055 build=$build
10056 build_os=$build_os
10058 # An echo program that does not interpret backslashes.
10059 echo=$lt_echo
10061 # The archiver.
10062 AR=$lt_AR
10063 AR_FLAGS=$lt_AR_FLAGS
10065 # A C compiler.
10066 LTCC=$lt_LTCC
10068 # A language-specific compiler.
10069 CC=$lt_compiler
10071 # Is the compiler the GNU C compiler?
10072 with_gcc=$GCC
10074 # An ERE matcher.
10075 EGREP=$lt_EGREP
10077 # The linker used to build libraries.
10078 LD=$lt_LD
10080 # Whether we need hard or soft links.
10081 LN_S=$lt_LN_S
10083 # A BSD-compatible nm program.
10084 NM=$lt_NM
10086 # A symbol stripping program
10087 STRIP=$lt_STRIP
10089 # Used to examine libraries when file_magic_cmd begins "file"
10090 MAGIC_CMD=$MAGIC_CMD
10092 # Used on cygwin: DLL creation program.
10093 DLLTOOL="$DLLTOOL"
10095 # Used on cygwin: object dumper.
10096 OBJDUMP="$OBJDUMP"
10098 # Used on cygwin: assembler.
10099 AS="$AS"
10101 # The name of the directory that contains temporary libtool files.
10102 objdir=$objdir
10104 # How to create reloadable object files.
10105 reload_flag=$lt_reload_flag
10106 reload_cmds=$lt_reload_cmds
10108 # How to pass a linker flag through the compiler.
10109 wl=$lt_lt_prog_compiler_wl
10111 # Object file suffix (normally "o").
10112 objext="$ac_objext"
10114 # Old archive suffix (normally "a").
10115 libext="$libext"
10117 # Shared library suffix (normally ".so").
10118 shrext_cmds='$shrext_cmds'
10120 # Executable file suffix (normally "").
10121 exeext="$exeext"
10123 # Additional compiler flags for building library objects.
10124 pic_flag=$lt_lt_prog_compiler_pic
10125 pic_mode=$pic_mode
10127 # What is the maximum length of a command?
10128 max_cmd_len=$lt_cv_sys_max_cmd_len
10130 # Does compiler simultaneously support -c and -o options?
10131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10133 # Must we lock files when doing compilation?
10134 need_locks=$lt_need_locks
10136 # Do we need the lib prefix for modules?
10137 need_lib_prefix=$need_lib_prefix
10139 # Do we need a version for libraries?
10140 need_version=$need_version
10142 # Whether dlopen is supported.
10143 dlopen_support=$enable_dlopen
10145 # Whether dlopen of programs is supported.
10146 dlopen_self=$enable_dlopen_self
10148 # Whether dlopen of statically linked programs is supported.
10149 dlopen_self_static=$enable_dlopen_self_static
10151 # Compiler flag to prevent dynamic linking.
10152 link_static_flag=$lt_lt_prog_compiler_static
10154 # Compiler flag to turn off builtin functions.
10155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10157 # Compiler flag to allow reflexive dlopens.
10158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10160 # Compiler flag to generate shared objects directly from archives.
10161 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10163 # Compiler flag to generate thread-safe objects.
10164 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10166 # Library versioning type.
10167 version_type=$version_type
10169 # Format of library name prefix.
10170 libname_spec=$lt_libname_spec
10172 # List of archive names.  First name is the real one, the rest are links.
10173 # The last name is the one that the linker finds with -lNAME.
10174 library_names_spec=$lt_library_names_spec
10176 # The coded name of the library, if different from the real name.
10177 soname_spec=$lt_soname_spec
10179 # Commands used to build and install an old-style archive.
10180 RANLIB=$lt_RANLIB
10181 old_archive_cmds=$lt_old_archive_cmds
10182 old_postinstall_cmds=$lt_old_postinstall_cmds
10183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10185 # Create an old-style archive from a shared archive.
10186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10188 # Create a temporary old-style archive to link instead of a shared archive.
10189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10191 # Commands used to build and install a shared archive.
10192 archive_cmds=$lt_archive_cmds
10193 archive_expsym_cmds=$lt_archive_expsym_cmds
10194 postinstall_cmds=$lt_postinstall_cmds
10195 postuninstall_cmds=$lt_postuninstall_cmds
10197 # Commands used to build a loadable module (assumed same as above if empty)
10198 module_cmds=$lt_module_cmds
10199 module_expsym_cmds=$lt_module_expsym_cmds
10201 # Commands to strip libraries.
10202 old_striplib=$lt_old_striplib
10203 striplib=$lt_striplib
10205 # Dependencies to place before the objects being linked to create a
10206 # shared library.
10207 predep_objects=$lt_predep_objects
10209 # Dependencies to place after the objects being linked to create a
10210 # shared library.
10211 postdep_objects=$lt_postdep_objects
10213 # Dependencies to place before the objects being linked to create a
10214 # shared library.
10215 predeps=$lt_predeps
10217 # Dependencies to place after the objects being linked to create a
10218 # shared library.
10219 postdeps=$lt_postdeps
10221 # The library search path used internally by the compiler when linking
10222 # a shared library.
10223 compiler_lib_search_path=$lt_compiler_lib_search_path
10225 # Method to check whether dependent libraries are shared objects.
10226 deplibs_check_method=$lt_deplibs_check_method
10228 # Command to use when deplibs_check_method == file_magic.
10229 file_magic_cmd=$lt_file_magic_cmd
10231 # Flag that allows shared libraries with undefined symbols to be built.
10232 allow_undefined_flag=$lt_allow_undefined_flag
10234 # Flag that forces no undefined symbols.
10235 no_undefined_flag=$lt_no_undefined_flag
10237 # Commands used to finish a libtool library installation in a directory.
10238 finish_cmds=$lt_finish_cmds
10240 # Same as above, but a single script fragment to be evaled but not shown.
10241 finish_eval=$lt_finish_eval
10243 # Take the output of nm and produce a listing of raw symbols and C names.
10244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10246 # Transform the output of nm in a proper C declaration
10247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10249 # Transform the output of nm in a C name address pair
10250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10252 # This is the shared library runtime path variable.
10253 runpath_var=$runpath_var
10255 # This is the shared library path variable.
10256 shlibpath_var=$shlibpath_var
10258 # Is shlibpath searched before the hard-coded library search path?
10259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10261 # How to hardcode a shared library path into an executable.
10262 hardcode_action=$hardcode_action
10264 # Whether we should hardcode library paths into libraries.
10265 hardcode_into_libs=$hardcode_into_libs
10267 # Flag to hardcode \$libdir into a binary during linking.
10268 # This must work even if \$libdir does not exist.
10269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10271 # If ld is used when linking, flag to hardcode \$libdir into
10272 # a binary during linking. This must work even if \$libdir does
10273 # not exist.
10274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10276 # Whether we need a single -rpath flag with a separated argument.
10277 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10280 # resulting binary.
10281 hardcode_direct=$hardcode_direct
10283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10284 # resulting binary.
10285 hardcode_minus_L=$hardcode_minus_L
10287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10288 # the resulting binary.
10289 hardcode_shlibpath_var=$hardcode_shlibpath_var
10291 # Set to yes if building a shared library automatically hardcodes DIR into the library
10292 # and all subsequent libraries and executables linked against it.
10293 hardcode_automatic=$hardcode_automatic
10295 # Variables whose values should be saved in libtool wrapper scripts and
10296 # restored at relink time.
10297 variables_saved_for_relink="$variables_saved_for_relink"
10299 # Whether libtool must link a program against all its dependency libraries.
10300 link_all_deplibs=$link_all_deplibs
10302 # Compile-time system search path for libraries
10303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10305 # Run-time system search path for libraries
10306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10308 # Fix the shell variable \$srcfile for the compiler.
10309 fix_srcfile_path="$fix_srcfile_path"
10311 # Set to yes if exported symbols are required.
10312 always_export_symbols=$always_export_symbols
10314 # The commands to list exported symbols.
10315 export_symbols_cmds=$lt_export_symbols_cmds
10317 # The commands to extract the exported symbol list from a shared archive.
10318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10320 # Symbols that should not be listed in the preloaded symbols.
10321 exclude_expsyms=$lt_exclude_expsyms
10323 # Symbols that must always be exported.
10324 include_expsyms=$lt_include_expsyms
10326 # ### END LIBTOOL CONFIG
10328 __EOF__
10331   case $host_os in
10332   aix3*)
10333     cat <<\EOF >> "$cfgfile"
10335 # AIX sometimes has problems with the GCC collect2 program.  For some
10336 # reason, if we set the COLLECT_NAMES environment variable, the problems
10337 # vanish in a puff of smoke.
10338 if test "X${COLLECT_NAMES+set}" != Xset; then
10339   COLLECT_NAMES=
10340   export COLLECT_NAMES
10343     ;;
10344   esac
10346   # We use sed instead of cat because bash on DJGPP gets confused if
10347   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10348   # text mode, it properly converts lines to CR/LF.  This bash problem
10349   # is reportedly fixed, but why not run on old versions too?
10350   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10352   mv -f "$cfgfile" "$ofile" || \
10353     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10354   chmod +x "$ofile"
10356 else
10357   # If there is no Makefile yet, we rely on a make rule to execute
10358   # `config.status --recheck' to rerun these tests and create the
10359   # libtool script then.
10360   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10361   if test -f "$ltmain_in"; then
10362     test -f Makefile && make "$ltmain"
10363   fi
10367 ac_ext=c
10368 ac_cpp='$CPP $CPPFLAGS'
10369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10373 CC="$lt_save_CC"
10376 # Check whether --with-tags was given.
10377 if test "${with_tags+set}" = set; then
10378   withval=$with_tags; tagnames="$withval"
10382 if test -f "$ltmain" && test -n "$tagnames"; then
10383   if test ! -f "${ofile}"; then
10384     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10385 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10386   fi
10388   if test -z "$LTCC"; then
10389     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10390     if test -z "$LTCC"; then
10391       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10392 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10393     else
10394       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10395 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10396     fi
10397   fi
10399   # Extract list of available tagged configurations in $ofile.
10400   # Note that this assumes the entire list is on one line.
10401   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10403   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10404   for tagname in $tagnames; do
10405     IFS="$lt_save_ifs"
10406     # Check whether tagname contains only valid characters
10407     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10408     "") ;;
10409     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10410 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10411    { (exit 1); exit 1; }; }
10412         ;;
10413     esac
10415     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10416     then
10417       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10418 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10419    { (exit 1); exit 1; }; }
10420     fi
10422     # Update the list of available tags.
10423     if test -n "$tagname"; then
10424       echo appending configuration tag \"$tagname\" to $ofile
10426       case $tagname in
10427       CXX)
10428         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10429             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10430             (test "X$CXX" != "Xg++"))) ; then
10431           ac_ext=cpp
10432 ac_cpp='$CXXCPP $CPPFLAGS'
10433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10440 archive_cmds_need_lc_CXX=no
10441 allow_undefined_flag_CXX=
10442 always_export_symbols_CXX=no
10443 archive_expsym_cmds_CXX=
10444 export_dynamic_flag_spec_CXX=
10445 hardcode_direct_CXX=no
10446 hardcode_libdir_flag_spec_CXX=
10447 hardcode_libdir_flag_spec_ld_CXX=
10448 hardcode_libdir_separator_CXX=
10449 hardcode_minus_L_CXX=no
10450 hardcode_automatic_CXX=no
10451 module_cmds_CXX=
10452 module_expsym_cmds_CXX=
10453 link_all_deplibs_CXX=unknown
10454 old_archive_cmds_CXX=$old_archive_cmds
10455 no_undefined_flag_CXX=
10456 whole_archive_flag_spec_CXX=
10457 enable_shared_with_static_runtimes_CXX=no
10459 # Dependencies to place before and after the object being linked:
10460 predep_objects_CXX=
10461 postdep_objects_CXX=
10462 predeps_CXX=
10463 postdeps_CXX=
10464 compiler_lib_search_path_CXX=
10466 # Source file extension for C++ test sources.
10467 ac_ext=cpp
10469 # Object file extension for compiled C++ test sources.
10470 objext=o
10471 objext_CXX=$objext
10473 # Code to be used in simple compile tests
10474 lt_simple_compile_test_code="int some_variable = 0;\n"
10476 # Code to be used in simple link tests
10477 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10479 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10481 # If no C compiler was specified, use CC.
10482 LTCC=${LTCC-"$CC"}
10484 # Allow CC to be a program name with arguments.
10485 compiler=$CC
10488 # save warnings/boilerplate of simple test code
10489 ac_outfile=conftest.$ac_objext
10490 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10492 _lt_compiler_boilerplate=`cat conftest.err`
10493 $rm conftest*
10495 ac_outfile=conftest.$ac_objext
10496 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10498 _lt_linker_boilerplate=`cat conftest.err`
10499 $rm conftest*
10502 # Allow CC to be a program name with arguments.
10503 lt_save_CC=$CC
10504 lt_save_LD=$LD
10505 lt_save_GCC=$GCC
10506 GCC=$GXX
10507 lt_save_with_gnu_ld=$with_gnu_ld
10508 lt_save_path_LD=$lt_cv_path_LD
10509 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10510   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10511 else
10512   unset lt_cv_prog_gnu_ld
10514 if test -n "${lt_cv_path_LDCXX+set}"; then
10515   lt_cv_path_LD=$lt_cv_path_LDCXX
10516 else
10517   unset lt_cv_path_LD
10519 test -z "${LDCXX+set}" || LD=$LDCXX
10520 CC=${CXX-"c++"}
10521 compiler=$CC
10522 compiler_CXX=$CC
10523 for cc_temp in $compiler""; do
10524   case $cc_temp in
10525     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10526     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10527     \-*) ;;
10528     *) break;;
10529   esac
10530 done
10531 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10534 # We don't want -fno-exception wen compiling C++ code, so set the
10535 # no_builtin_flag separately
10536 if test "$GXX" = yes; then
10537   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10538 else
10539   lt_prog_compiler_no_builtin_flag_CXX=
10542 if test "$GXX" = yes; then
10543   # Set up default GNU C++ configuration
10545   
10546 # Check whether --with-gnu-ld was given.
10547 if test "${with_gnu_ld+set}" = set; then
10548   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10549 else
10550   with_gnu_ld=no
10553 ac_prog=ld
10554 if test "$GCC" = yes; then
10555   # Check if gcc -print-prog-name=ld gives a path.
10556   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10557 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10558   case $host in
10559   *-*-mingw*)
10560     # gcc leaves a trailing carriage return which upsets mingw
10561     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10562   *)
10563     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10564   esac
10565   case $ac_prog in
10566     # Accept absolute paths.
10567     [\\/]* | ?:[\\/]*)
10568       re_direlt='/[^/][^/]*/\.\./'
10569       # Canonicalize the pathname of ld
10570       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10571       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10572         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10573       done
10574       test -z "$LD" && LD="$ac_prog"
10575       ;;
10576   "")
10577     # If it fails, then pretend we aren't using GCC.
10578     ac_prog=ld
10579     ;;
10580   *)
10581     # If it is relative, then search for the first ld in PATH.
10582     with_gnu_ld=unknown
10583     ;;
10584   esac
10585 elif test "$with_gnu_ld" = yes; then
10586   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10587 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10588 else
10589   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10590 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10592 if test "${lt_cv_path_LD+set}" = set; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   if test -z "$LD"; then
10596   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10597   for ac_dir in $PATH; do
10598     IFS="$lt_save_ifs"
10599     test -z "$ac_dir" && ac_dir=.
10600     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10601       lt_cv_path_LD="$ac_dir/$ac_prog"
10602       # Check to see if the program is GNU ld.  I'd rather use --version,
10603       # but apparently some variants of GNU ld only accept -v.
10604       # Break only if it was the GNU/non-GNU ld that we prefer.
10605       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10606       *GNU* | *'with BFD'*)
10607         test "$with_gnu_ld" != no && break
10608         ;;
10609       *)
10610         test "$with_gnu_ld" != yes && break
10611         ;;
10612       esac
10613     fi
10614   done
10615   IFS="$lt_save_ifs"
10616 else
10617   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10621 LD="$lt_cv_path_LD"
10622 if test -n "$LD"; then
10623   { echo "$as_me:$LINENO: result: $LD" >&5
10624 echo "${ECHO_T}$LD" >&6; }
10625 else
10626   { echo "$as_me:$LINENO: result: no" >&5
10627 echo "${ECHO_T}no" >&6; }
10629 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10630 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10631    { (exit 1); exit 1; }; }
10632 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10633 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10634 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10638 case `$LD -v 2>&1 </dev/null` in
10639 *GNU* | *'with BFD'*)
10640   lt_cv_prog_gnu_ld=yes
10641   ;;
10643   lt_cv_prog_gnu_ld=no
10644   ;;
10645 esac
10647 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10648 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10649 with_gnu_ld=$lt_cv_prog_gnu_ld
10653   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10654   # archiving commands below assume that GNU ld is being used.
10655   if test "$with_gnu_ld" = yes; then
10656     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10657     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'
10659     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10660     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10662     # If archive_cmds runs LD, not CC, wlarc should be empty
10663     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10664     #     investigate it a little bit more. (MM)
10665     wlarc='${wl}'
10667     # ancient GNU ld didn't support --whole-archive et. al.
10668     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10669         grep 'no-whole-archive' > /dev/null; then
10670       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10671     else
10672       whole_archive_flag_spec_CXX=
10673     fi
10674   else
10675     with_gnu_ld=no
10676     wlarc=
10678     # A generic and very simple default shared library creation
10679     # command for GNU C++ for the case where it uses the native
10680     # linker, instead of GNU ld.  If possible, this setting should
10681     # overridden to take advantage of the native linker features on
10682     # the platform it is being used on.
10683     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10684   fi
10686   # Commands to make compiler produce verbose output that lists
10687   # what "hidden" libraries, object files and flags are used when
10688   # linking a shared library.
10689   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10691 else
10692   GXX=no
10693   with_gnu_ld=no
10694   wlarc=
10697 # PORTME: fill in a description of your system's C++ link characteristics
10698 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10699 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10700 ld_shlibs_CXX=yes
10701 case $host_os in
10702   aix3*)
10703     # FIXME: insert proper C++ library support
10704     ld_shlibs_CXX=no
10705     ;;
10706   aix4* | aix5*)
10707     if test "$host_cpu" = ia64; then
10708       # On IA64, the linker does run time linking by default, so we don't
10709       # have to do anything special.
10710       aix_use_runtimelinking=no
10711       exp_sym_flag='-Bexport'
10712       no_entry_flag=""
10713     else
10714       aix_use_runtimelinking=no
10716       # Test if we are trying to use run time linking or normal
10717       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10718       # need to do runtime linking.
10719       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10720         for ld_flag in $LDFLAGS; do
10721           case $ld_flag in
10722           *-brtl*)
10723             aix_use_runtimelinking=yes
10724             break
10725             ;;
10726           esac
10727         done
10728       esac
10730       exp_sym_flag='-bexport'
10731       no_entry_flag='-bnoentry'
10732     fi
10734     # When large executables or shared objects are built, AIX ld can
10735     # have problems creating the table of contents.  If linking a library
10736     # or program results in "error TOC overflow" add -mminimal-toc to
10737     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10738     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10740     archive_cmds_CXX=''
10741     hardcode_direct_CXX=yes
10742     hardcode_libdir_separator_CXX=':'
10743     link_all_deplibs_CXX=yes
10745     if test "$GXX" = yes; then
10746       case $host_os in aix4.[012]|aix4.[012].*)
10747       # We only want to do this on AIX 4.2 and lower, the check
10748       # below for broken collect2 doesn't work under 4.3+
10749         collect2name=`${CC} -print-prog-name=collect2`
10750         if test -f "$collect2name" && \
10751            strings "$collect2name" | grep resolve_lib_name >/dev/null
10752         then
10753           # We have reworked collect2
10754           hardcode_direct_CXX=yes
10755         else
10756           # We have old collect2
10757           hardcode_direct_CXX=unsupported
10758           # It fails to find uninstalled libraries when the uninstalled
10759           # path is not listed in the libpath.  Setting hardcode_minus_L
10760           # to unsupported forces relinking
10761           hardcode_minus_L_CXX=yes
10762           hardcode_libdir_flag_spec_CXX='-L$libdir'
10763           hardcode_libdir_separator_CXX=
10764         fi
10765       esac
10766       shared_flag='-shared'
10767       if test "$aix_use_runtimelinking" = yes; then
10768         shared_flag="$shared_flag "'${wl}-G'
10769       fi
10770     else
10771       # not using gcc
10772       if test "$host_cpu" = ia64; then
10773         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10774         # chokes on -Wl,-G. The following line is correct:
10775         shared_flag='-G'
10776       else
10777         if test "$aix_use_runtimelinking" = yes; then
10778           shared_flag='${wl}-G'
10779         else
10780           shared_flag='${wl}-bM:SRE'
10781         fi
10782       fi
10783     fi
10785     # It seems that -bexpall does not export symbols beginning with
10786     # underscore (_), so it is better to generate a list of symbols to export.
10787     always_export_symbols_CXX=yes
10788     if test "$aix_use_runtimelinking" = yes; then
10789       # Warning - without using the other runtime loading flags (-brtl),
10790       # -berok will link without error, but may produce a broken library.
10791       allow_undefined_flag_CXX='-berok'
10792       # Determine the default libpath from the value encoded in an empty executable.
10793       cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h.  */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h.  */
10801 main ()
10804   ;
10805   return 0;
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812   *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815   (eval "$ac_link") 2>conftest.er1
10816   ac_status=$?
10817   grep -v '^ *+' conftest.er1 >conftest.err
10818   rm -f conftest.er1
10819   cat conftest.err >&5
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); } && {
10822          test -z "$ac_cxx_werror_flag" ||
10823          test ! -s conftest.err
10824        } && test -s conftest$ac_exeext &&
10825        $as_test_x conftest$ac_exeext; then
10826   
10827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10829 # Check for a 64-bit object if we didn't find anything.
10830 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10831 }'`; fi
10832 else
10833   echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836         
10839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10840       conftest$ac_exeext conftest.$ac_ext
10841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10843       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10845       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10846      else
10847       if test "$host_cpu" = ia64; then
10848         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10849         allow_undefined_flag_CXX="-z nodefs"
10850         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10851       else
10852         # Determine the default libpath from the value encoded in an empty executable.
10853         cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h.  */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h.  */
10861 main ()
10864   ;
10865   return 0;
10867 _ACEOF
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (ac_try="$ac_link"
10870 case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875   (eval "$ac_link") 2>conftest.er1
10876   ac_status=$?
10877   grep -v '^ *+' conftest.er1 >conftest.err
10878   rm -f conftest.er1
10879   cat conftest.err >&5
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); } && {
10882          test -z "$ac_cxx_werror_flag" ||
10883          test ! -s conftest.err
10884        } && test -s conftest$ac_exeext &&
10885        $as_test_x conftest$ac_exeext; then
10886   
10887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10889 # Check for a 64-bit object if we didn't find anything.
10890 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10891 }'`; fi
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896         
10899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10900       conftest$ac_exeext conftest.$ac_ext
10901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10903         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10904         # Warning - without using the other run time loading flags,
10905         # -berok will link without error, but may produce a broken library.
10906         no_undefined_flag_CXX=' ${wl}-bernotok'
10907         allow_undefined_flag_CXX=' ${wl}-berok'
10908         # -bexpall does not export symbols beginning with underscore (_)
10909         always_export_symbols_CXX=yes
10910         # Exported symbols can be pulled into shared objects from archives
10911         whole_archive_flag_spec_CXX=' '
10912         archive_cmds_need_lc_CXX=yes
10913         # This is similar to how AIX traditionally builds its shared libraries.
10914         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10915       fi
10916     fi
10917     ;;
10918   chorus*)
10919     case $cc_basename in
10920       *)
10921         # FIXME: insert proper C++ library support
10922         ld_shlibs_CXX=no
10923         ;;
10924     esac
10925     ;;
10928   cygwin* | mingw* | pw32*)
10929     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10930     # as there is no search path for DLLs.
10931     hardcode_libdir_flag_spec_CXX='-L$libdir'
10932     allow_undefined_flag_CXX=unsupported
10933     always_export_symbols_CXX=no
10934     enable_shared_with_static_runtimes_CXX=yes
10936     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10937       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10938       # If the export-symbols file already is a .def file (1st line
10939       # is EXPORTS), use it as is; otherwise, prepend...
10940       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10941         cp $export_symbols $output_objdir/$soname.def;
10942       else
10943         echo EXPORTS > $output_objdir/$soname.def;
10944         cat $export_symbols >> $output_objdir/$soname.def;
10945       fi~
10946       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10947     else
10948       ld_shlibs_CXX=no
10949     fi
10950   ;;
10951       darwin* | rhapsody*)
10952         case $host_os in
10953         rhapsody* | darwin1.[012])
10954          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10955          ;;
10956        *) # Darwin 1.3 on
10957          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10958            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10959          else
10960            case ${MACOSX_DEPLOYMENT_TARGET} in
10961              10.[012])
10962                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10963                ;;
10964              10.*)
10965                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10966                ;;
10967            esac
10968          fi
10969          ;;
10970         esac
10971       archive_cmds_need_lc_CXX=no
10972       hardcode_direct_CXX=no
10973       hardcode_automatic_CXX=yes
10974       hardcode_shlibpath_var_CXX=unsupported
10975       whole_archive_flag_spec_CXX=''
10976       link_all_deplibs_CXX=yes
10978     if test "$GXX" = yes ; then
10979       lt_int_apple_cc_single_mod=no
10980       output_verbose_link_cmd='echo'
10981       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10982        lt_int_apple_cc_single_mod=yes
10983       fi
10984       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10985        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10986       else
10987           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'
10988         fi
10989         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10990         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10991           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10992             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}'
10993           else
10994             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}'
10995           fi
10996             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}'
10997       else
10998       case $cc_basename in
10999         xlc*)
11000          output_verbose_link_cmd='echo'
11001           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11002           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11003           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11004           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11005           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}'
11006           ;;
11007        *)
11008          ld_shlibs_CXX=no
11009           ;;
11010       esac
11011       fi
11012         ;;
11014   dgux*)
11015     case $cc_basename in
11016       ec++*)
11017         # FIXME: insert proper C++ library support
11018         ld_shlibs_CXX=no
11019         ;;
11020       ghcx*)
11021         # Green Hills C++ Compiler
11022         # FIXME: insert proper C++ library support
11023         ld_shlibs_CXX=no
11024         ;;
11025       *)
11026         # FIXME: insert proper C++ library support
11027         ld_shlibs_CXX=no
11028         ;;
11029     esac
11030     ;;
11031   freebsd[12]*)
11032     # C++ shared libraries reported to be fairly broken before switch to ELF
11033     ld_shlibs_CXX=no
11034     ;;
11035   freebsd-elf*)
11036     archive_cmds_need_lc_CXX=no
11037     ;;
11038   freebsd* | kfreebsd*-gnu | dragonfly*)
11039     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11040     # conventions
11041     ld_shlibs_CXX=yes
11042     ;;
11043   gnu*)
11044     ;;
11045   hpux9*)
11046     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11047     hardcode_libdir_separator_CXX=:
11048     export_dynamic_flag_spec_CXX='${wl}-E'
11049     hardcode_direct_CXX=yes
11050     hardcode_minus_L_CXX=yes # Not in the search PATH,
11051                                 # but as the default
11052                                 # location of the library.
11054     case $cc_basename in
11055     CC*)
11056       # FIXME: insert proper C++ library support
11057       ld_shlibs_CXX=no
11058       ;;
11059     aCC*)
11060       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'
11061       # Commands to make compiler produce verbose output that lists
11062       # what "hidden" libraries, object files and flags are used when
11063       # linking a shared library.
11064       #
11065       # There doesn't appear to be a way to prevent this compiler from
11066       # explicitly linking system object files so we need to strip them
11067       # from the output so that they don't get included in the library
11068       # dependencies.
11069       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'
11070       ;;
11071     *)
11072       if test "$GXX" = yes; then
11073         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'
11074       else
11075         # FIXME: insert proper C++ library support
11076         ld_shlibs_CXX=no
11077       fi
11078       ;;
11079     esac
11080     ;;
11081   hpux10*|hpux11*)
11082     if test $with_gnu_ld = no; then
11083       case $host_cpu in
11084       hppa*64*)
11085         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11086         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11087         hardcode_libdir_separator_CXX=:
11088         ;;
11089       ia64*)
11090         hardcode_libdir_flag_spec_CXX='-L$libdir'
11091         ;;
11092       *)
11093         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11094         hardcode_libdir_separator_CXX=:
11095         export_dynamic_flag_spec_CXX='${wl}-E'
11096         ;;
11097       esac
11098     fi
11099     case $host_cpu in
11100     hppa*64*)
11101       hardcode_direct_CXX=no
11102       hardcode_shlibpath_var_CXX=no
11103       ;;
11104     ia64*)
11105       hardcode_direct_CXX=no
11106       hardcode_shlibpath_var_CXX=no
11107       hardcode_minus_L_CXX=yes # Not in the search PATH,
11108                                               # but as the default
11109                                               # location of the library.
11110       ;;
11111     *)
11112       hardcode_direct_CXX=yes
11113       hardcode_minus_L_CXX=yes # Not in the search PATH,
11114                                               # but as the default
11115                                               # location of the library.
11116       ;;
11117     esac
11119     case $cc_basename in
11120       CC*)
11121         # FIXME: insert proper C++ library support
11122         ld_shlibs_CXX=no
11123         ;;
11124       aCC*)
11125         case $host_cpu in
11126         hppa*64*|ia64*)
11127           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11128           ;;
11129         *)
11130           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11131           ;;
11132         esac
11133         # Commands to make compiler produce verbose output that lists
11134         # what "hidden" libraries, object files and flags are used when
11135         # linking a shared library.
11136         #
11137         # There doesn't appear to be a way to prevent this compiler from
11138         # explicitly linking system object files so we need to strip them
11139         # from the output so that they don't get included in the library
11140         # dependencies.
11141         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'
11142         ;;
11143       *)
11144         if test "$GXX" = yes; then
11145           if test $with_gnu_ld = no; then
11146             case $host_cpu in
11147             ia64*|hppa*64*)
11148               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11149               ;;
11150             *)
11151               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'
11152               ;;
11153             esac
11154           fi
11155         else
11156           # FIXME: insert proper C++ library support
11157           ld_shlibs_CXX=no
11158         fi
11159         ;;
11160     esac
11161     ;;
11162   irix5* | irix6*)
11163     case $cc_basename in
11164       CC*)
11165         # SGI C++
11166         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'
11168         # Archives containing C++ object files must be created using
11169         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11170         # necessary to make sure instantiated templates are included
11171         # in the archive.
11172         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11173         ;;
11174       *)
11175         if test "$GXX" = yes; then
11176           if test "$with_gnu_ld" = no; then
11177             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'
11178           else
11179             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'
11180           fi
11181         fi
11182         link_all_deplibs_CXX=yes
11183         ;;
11184     esac
11185     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11186     hardcode_libdir_separator_CXX=:
11187     ;;
11188   linux*)
11189     case $cc_basename in
11190       KCC*)
11191         # Kuck and Associates, Inc. (KAI) C++ Compiler
11193         # KCC will only create a shared library if the output file
11194         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11195         # to its proper name (with version) after linking.
11196         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'
11197         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'
11198         # Commands to make compiler produce verbose output that lists
11199         # what "hidden" libraries, object files and flags are used when
11200         # linking a shared library.
11201         #
11202         # There doesn't appear to be a way to prevent this compiler from
11203         # explicitly linking system object files so we need to strip them
11204         # from the output so that they don't get included in the library
11205         # dependencies.
11206         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'
11208         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11209         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11211         # Archives containing C++ object files must be created using
11212         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11213         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11214         ;;
11215       icpc*)
11216         # Intel C++
11217         with_gnu_ld=yes
11218         # version 8.0 and above of icpc choke on multiply defined symbols
11219         # if we add $predep_objects and $postdep_objects, however 7.1 and
11220         # earlier do not add the objects themselves.
11221         case `$CC -V 2>&1` in
11222         *"Version 7."*)
11223           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11224           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'
11225           ;;
11226         *)  # Version 8.0 or newer
11227           tmp_idyn=
11228           case $host_cpu in
11229             ia64*) tmp_idyn=' -i_dynamic';;
11230           esac
11231           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11232           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'
11233           ;;
11234         esac
11235         archive_cmds_need_lc_CXX=no
11236         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11237         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11238         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11239         ;;
11240       pgCC*)
11241         # Portland Group C++ compiler
11242         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11243         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'
11245         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11246         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11247         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'
11248         ;;
11249       cxx*)
11250         # Compaq C++
11251         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11252         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'
11254         runpath_var=LD_RUN_PATH
11255         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11256         hardcode_libdir_separator_CXX=:
11258         # Commands to make compiler produce verbose output that lists
11259         # what "hidden" libraries, object files and flags are used when
11260         # linking a shared library.
11261         #
11262         # There doesn't appear to be a way to prevent this compiler from
11263         # explicitly linking system object files so we need to strip them
11264         # from the output so that they don't get included in the library
11265         # dependencies.
11266         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'
11267         ;;
11268     esac
11269     ;;
11270   lynxos*)
11271     # FIXME: insert proper C++ library support
11272     ld_shlibs_CXX=no
11273     ;;
11274   m88k*)
11275     # FIXME: insert proper C++ library support
11276     ld_shlibs_CXX=no
11277     ;;
11278   mvs*)
11279     case $cc_basename in
11280       cxx*)
11281         # FIXME: insert proper C++ library support
11282         ld_shlibs_CXX=no
11283         ;;
11284       *)
11285         # FIXME: insert proper C++ library support
11286         ld_shlibs_CXX=no
11287         ;;
11288     esac
11289     ;;
11290   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11291     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11292       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11293       wlarc=
11294       hardcode_libdir_flag_spec_CXX='-R$libdir'
11295       hardcode_direct_CXX=yes
11296       hardcode_shlibpath_var_CXX=no
11297     fi
11298     # Workaround some broken pre-1.5 toolchains
11299     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11300     ;;
11301   openbsd2*)
11302     # C++ shared libraries are fairly broken
11303     ld_shlibs_CXX=no
11304     ;;
11305   openbsd*)
11306     hardcode_direct_CXX=yes
11307     hardcode_shlibpath_var_CXX=no
11308     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11309     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11310     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11311       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11312       export_dynamic_flag_spec_CXX='${wl}-E'
11313       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11314     fi
11315     output_verbose_link_cmd='echo'
11316     ;;
11317   osf3*)
11318     case $cc_basename in
11319       KCC*)
11320         # Kuck and Associates, Inc. (KAI) C++ Compiler
11322         # KCC will only create a shared library if the output file
11323         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11324         # to its proper name (with version) after linking.
11325         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'
11327         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11328         hardcode_libdir_separator_CXX=:
11330         # Archives containing C++ object files must be created using
11331         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11332         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11334         ;;
11335       RCC*)
11336         # Rational C++ 2.4.1
11337         # FIXME: insert proper C++ library support
11338         ld_shlibs_CXX=no
11339         ;;
11340       cxx*)
11341         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11342         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'
11344         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11345         hardcode_libdir_separator_CXX=:
11347         # Commands to make compiler produce verbose output that lists
11348         # what "hidden" libraries, object files and flags are used when
11349         # linking a shared library.
11350         #
11351         # There doesn't appear to be a way to prevent this compiler from
11352         # explicitly linking system object files so we need to strip them
11353         # from the output so that they don't get included in the library
11354         # dependencies.
11355         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'
11356         ;;
11357       *)
11358         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11359           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11360           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'
11362           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11363           hardcode_libdir_separator_CXX=:
11365           # Commands to make compiler produce verbose output that lists
11366           # what "hidden" libraries, object files and flags are used when
11367           # linking a shared library.
11368           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11370         else
11371           # FIXME: insert proper C++ library support
11372           ld_shlibs_CXX=no
11373         fi
11374         ;;
11375     esac
11376     ;;
11377   osf4* | osf5*)
11378     case $cc_basename in
11379       KCC*)
11380         # Kuck and Associates, Inc. (KAI) C++ Compiler
11382         # KCC will only create a shared library if the output file
11383         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11384         # to its proper name (with version) after linking.
11385         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'
11387         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11388         hardcode_libdir_separator_CXX=:
11390         # Archives containing C++ object files must be created using
11391         # the KAI C++ compiler.
11392         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11393         ;;
11394       RCC*)
11395         # Rational C++ 2.4.1
11396         # FIXME: insert proper C++ library support
11397         ld_shlibs_CXX=no
11398         ;;
11399       cxx*)
11400         allow_undefined_flag_CXX=' -expect_unresolved \*'
11401         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'
11402         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11403           echo "-hidden">> $lib.exp~
11404           $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~
11405           $rm $lib.exp'
11407         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11408         hardcode_libdir_separator_CXX=:
11410         # Commands to make compiler produce verbose output that lists
11411         # what "hidden" libraries, object files and flags are used when
11412         # linking a shared library.
11413         #
11414         # There doesn't appear to be a way to prevent this compiler from
11415         # explicitly linking system object files so we need to strip them
11416         # from the output so that they don't get included in the library
11417         # dependencies.
11418         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'
11419         ;;
11420       *)
11421         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11422           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11423          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'
11425           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11426           hardcode_libdir_separator_CXX=:
11428           # Commands to make compiler produce verbose output that lists
11429           # what "hidden" libraries, object files and flags are used when
11430           # linking a shared library.
11431           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11433         else
11434           # FIXME: insert proper C++ library support
11435           ld_shlibs_CXX=no
11436         fi
11437         ;;
11438     esac
11439     ;;
11440   psos*)
11441     # FIXME: insert proper C++ library support
11442     ld_shlibs_CXX=no
11443     ;;
11444   sco*)
11445     archive_cmds_need_lc_CXX=no
11446     case $cc_basename in
11447       CC*)
11448         # FIXME: insert proper C++ library support
11449         ld_shlibs_CXX=no
11450         ;;
11451       *)
11452         # FIXME: insert proper C++ library support
11453         ld_shlibs_CXX=no
11454         ;;
11455     esac
11456     ;;
11457   sunos4*)
11458     case $cc_basename in
11459       CC*)
11460         # Sun C++ 4.x
11461         # FIXME: insert proper C++ library support
11462         ld_shlibs_CXX=no
11463         ;;
11464       lcc*)
11465         # Lucid
11466         # FIXME: insert proper C++ library support
11467         ld_shlibs_CXX=no
11468         ;;
11469       *)
11470         # FIXME: insert proper C++ library support
11471         ld_shlibs_CXX=no
11472         ;;
11473     esac
11474     ;;
11475   solaris*)
11476     case $cc_basename in
11477       CC*)
11478         # Sun C++ 4.2, 5.x and Centerline C++
11479         archive_cmds_need_lc_CXX=yes
11480         no_undefined_flag_CXX=' -zdefs'
11481         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11482         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11483         $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'
11485         hardcode_libdir_flag_spec_CXX='-R$libdir'
11486         hardcode_shlibpath_var_CXX=no
11487         case $host_os in
11488           solaris2.[0-5] | solaris2.[0-5].*) ;;
11489           *)
11490             # The C++ compiler is used as linker so we must use $wl
11491             # flag to pass the commands to the underlying system
11492             # linker. We must also pass each convience library through
11493             # to the system linker between allextract/defaultextract.
11494             # The C++ compiler will combine linker options so we
11495             # cannot just pass the convience library names through
11496             # without $wl.
11497             # Supported since Solaris 2.6 (maybe 2.5.1?)
11498             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11499             ;;
11500         esac
11501         link_all_deplibs_CXX=yes
11503         output_verbose_link_cmd='echo'
11505         # Archives containing C++ object files must be created using
11506         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11507         # necessary to make sure instantiated templates are included
11508         # in the archive.
11509         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11510         ;;
11511       gcx*)
11512         # Green Hills C++ Compiler
11513         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11515         # The C++ compiler must be used to create the archive.
11516         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11517         ;;
11518       *)
11519         # GNU C++ compiler with Solaris linker
11520         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11521           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11522           if $CC --version | grep -v '^2\.7' > /dev/null; then
11523             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11524             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11525                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11527             # Commands to make compiler produce verbose output that lists
11528             # what "hidden" libraries, object files and flags are used when
11529             # linking a shared library.
11530             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11531           else
11532             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11533             # platform.
11534             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11535             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11536                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11538             # Commands to make compiler produce verbose output that lists
11539             # what "hidden" libraries, object files and flags are used when
11540             # linking a shared library.
11541             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11542           fi
11544           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11545         fi
11546         ;;
11547     esac
11548     ;;
11549   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11550     archive_cmds_need_lc_CXX=no
11551     ;;
11552   tandem*)
11553     case $cc_basename in
11554       NCC*)
11555         # NonStop-UX NCC 3.20
11556         # FIXME: insert proper C++ library support
11557         ld_shlibs_CXX=no
11558         ;;
11559       *)
11560         # FIXME: insert proper C++ library support
11561         ld_shlibs_CXX=no
11562         ;;
11563     esac
11564     ;;
11565   vxworks*)
11566     # FIXME: insert proper C++ library support
11567     ld_shlibs_CXX=no
11568     ;;
11569   *)
11570     # FIXME: insert proper C++ library support
11571     ld_shlibs_CXX=no
11572     ;;
11573 esac
11574 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11575 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11576 test "$ld_shlibs_CXX" = no && can_build_shared=no
11578 GCC_CXX="$GXX"
11579 LD_CXX="$LD"
11582 cat > conftest.$ac_ext <<EOF
11583 class Foo
11585 public:
11586   Foo (void) { a = 0; }
11587 private:
11588   int a;
11592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11593   (eval $ac_compile) 2>&5
11594   ac_status=$?
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); }; then
11597   # Parse the compiler output and extract the necessary
11598   # objects, libraries and library flags.
11600   # Sentinel used to keep track of whether or not we are before
11601   # the conftest object file.
11602   pre_test_object_deps_done=no
11604   # The `*' in the case matches for architectures that use `case' in
11605   # $output_verbose_cmd can trigger glob expansion during the loop
11606   # eval without this substitution.
11607   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11609   for p in `eval $output_verbose_link_cmd`; do
11610     case $p in
11612     -L* | -R* | -l*)
11613        # Some compilers place space between "-{L,R}" and the path.
11614        # Remove the space.
11615        if test $p = "-L" \
11616           || test $p = "-R"; then
11617          prev=$p
11618          continue
11619        else
11620          prev=
11621        fi
11623        if test "$pre_test_object_deps_done" = no; then
11624          case $p in
11625          -L* | -R*)
11626            # Internal compiler library paths should come after those
11627            # provided the user.  The postdeps already come after the
11628            # user supplied libs so there is no need to process them.
11629            if test -z "$compiler_lib_search_path_CXX"; then
11630              compiler_lib_search_path_CXX="${prev}${p}"
11631            else
11632              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11633            fi
11634            ;;
11635          # The "-l" case would never come before the object being
11636          # linked, so don't bother handling this case.
11637          esac
11638        else
11639          if test -z "$postdeps_CXX"; then
11640            postdeps_CXX="${prev}${p}"
11641          else
11642            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11643          fi
11644        fi
11645        ;;
11647     *.$objext)
11648        # This assumes that the test object file only shows up
11649        # once in the compiler output.
11650        if test "$p" = "conftest.$objext"; then
11651          pre_test_object_deps_done=yes
11652          continue
11653        fi
11655        if test "$pre_test_object_deps_done" = no; then
11656          if test -z "$predep_objects_CXX"; then
11657            predep_objects_CXX="$p"
11658          else
11659            predep_objects_CXX="$predep_objects_CXX $p"
11660          fi
11661        else
11662          if test -z "$postdep_objects_CXX"; then
11663            postdep_objects_CXX="$p"
11664          else
11665            postdep_objects_CXX="$postdep_objects_CXX $p"
11666          fi
11667        fi
11668        ;;
11670     *) ;; # Ignore the rest.
11672     esac
11673   done
11675   # Clean up.
11676   rm -f a.out a.exe
11677 else
11678   echo "libtool.m4: error: problem compiling CXX test program"
11681 $rm -f confest.$objext
11683 # PORTME: override above test on systems where it is broken
11684 case $host_os in
11685 solaris*)
11686   case $cc_basename in
11687   CC*)
11688     # Adding this requires a known-good setup of shared libraries for
11689     # Sun compiler versions before 5.6, else PIC objects from an old
11690     # archive will be linked into the output, leading to subtle bugs.
11691     postdeps_CXX='-lCstd -lCrun'
11692     ;;
11693   esac
11694 esac
11697 case " $postdeps_CXX " in
11698 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11699 esac
11701 lt_prog_compiler_wl_CXX=
11702 lt_prog_compiler_pic_CXX=
11703 lt_prog_compiler_static_CXX=
11705 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11706 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11708   # C++ specific cases for pic, static, wl, etc.
11709   if test "$GXX" = yes; then
11710     lt_prog_compiler_wl_CXX='-Wl,'
11711     lt_prog_compiler_static_CXX='-static'
11713     case $host_os in
11714     aix*)
11715       # All AIX code is PIC.
11716       if test "$host_cpu" = ia64; then
11717         # AIX 5 now supports IA64 processor
11718         lt_prog_compiler_static_CXX='-Bstatic'
11719       fi
11720       ;;
11721     amigaos*)
11722       # FIXME: we need at least 68020 code to build shared libraries, but
11723       # adding the `-m68020' flag to GCC prevents building anything better,
11724       # like `-m68040'.
11725       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11726       ;;
11727     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11728       # PIC is the default for these OSes.
11729       ;;
11730     mingw* | os2* | pw32*)
11731       # This hack is so that the source file can tell whether it is being
11732       # built for inclusion in a dll (and should export symbols for example).
11733       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11734       ;;
11735     darwin* | rhapsody*)
11736       # PIC is the default on this platform
11737       # Common symbols not allowed in MH_DYLIB files
11738       lt_prog_compiler_pic_CXX='-fno-common'
11739       ;;
11740     *djgpp*)
11741       # DJGPP does not support shared libraries at all
11742       lt_prog_compiler_pic_CXX=
11743       ;;
11744     sysv4*MP*)
11745       if test -d /usr/nec; then
11746         lt_prog_compiler_pic_CXX=-Kconform_pic
11747       fi
11748       ;;
11749     hpux*)
11750       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11751       # not for PA HP-UX.
11752       case $host_cpu in
11753       hppa*64*|ia64*)
11754         ;;
11755       *)
11756         lt_prog_compiler_pic_CXX='-fPIC'
11757         ;;
11758       esac
11759       ;;
11760     *)
11761       lt_prog_compiler_pic_CXX='-fPIC'
11762       ;;
11763     esac
11764   else
11765     case $host_os in
11766       aix4* | aix5*)
11767         # All AIX code is PIC.
11768         if test "$host_cpu" = ia64; then
11769           # AIX 5 now supports IA64 processor
11770           lt_prog_compiler_static_CXX='-Bstatic'
11771         else
11772           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11773         fi
11774         ;;
11775       chorus*)
11776         case $cc_basename in
11777         cxch68*)
11778           # Green Hills C++ Compiler
11779           # _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"
11780           ;;
11781         esac
11782         ;;
11783        darwin*)
11784          # PIC is the default on this platform
11785          # Common symbols not allowed in MH_DYLIB files
11786          case $cc_basename in
11787            xlc*)
11788            lt_prog_compiler_pic_CXX='-qnocommon'
11789            lt_prog_compiler_wl_CXX='-Wl,'
11790            ;;
11791          esac
11792        ;;
11793       dgux*)
11794         case $cc_basename in
11795           ec++*)
11796             lt_prog_compiler_pic_CXX='-KPIC'
11797             ;;
11798           ghcx*)
11799             # Green Hills C++ Compiler
11800             lt_prog_compiler_pic_CXX='-pic'
11801             ;;
11802           *)
11803             ;;
11804         esac
11805         ;;
11806       freebsd* | kfreebsd*-gnu | dragonfly*)
11807         # FreeBSD uses GNU C++
11808         ;;
11809       hpux9* | hpux10* | hpux11*)
11810         case $cc_basename in
11811           CC*)
11812             lt_prog_compiler_wl_CXX='-Wl,'
11813             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11814             if test "$host_cpu" != ia64; then
11815               lt_prog_compiler_pic_CXX='+Z'
11816             fi
11817             ;;
11818           aCC*)
11819             lt_prog_compiler_wl_CXX='-Wl,'
11820             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11821             case $host_cpu in
11822             hppa*64*|ia64*)
11823               # +Z the default
11824               ;;
11825             *)
11826               lt_prog_compiler_pic_CXX='+Z'
11827               ;;
11828             esac
11829             ;;
11830           *)
11831             ;;
11832         esac
11833         ;;
11834       irix5* | irix6* | nonstopux*)
11835         case $cc_basename in
11836           CC*)
11837             lt_prog_compiler_wl_CXX='-Wl,'
11838             lt_prog_compiler_static_CXX='-non_shared'
11839             # CC pic flag -KPIC is the default.
11840             ;;
11841           *)
11842             ;;
11843         esac
11844         ;;
11845       linux*)
11846         case $cc_basename in
11847           KCC*)
11848             # KAI C++ Compiler
11849             lt_prog_compiler_wl_CXX='--backend -Wl,'
11850             lt_prog_compiler_pic_CXX='-fPIC'
11851             ;;
11852           icpc* | ecpc*)
11853             # Intel C++
11854             lt_prog_compiler_wl_CXX='-Wl,'
11855             lt_prog_compiler_pic_CXX='-KPIC'
11856             lt_prog_compiler_static_CXX='-static'
11857             ;;
11858           pgCC*)
11859             # Portland Group C++ compiler.
11860             lt_prog_compiler_wl_CXX='-Wl,'
11861             lt_prog_compiler_pic_CXX='-fpic'
11862             lt_prog_compiler_static_CXX='-Bstatic'
11863             ;;
11864           cxx*)
11865             # Compaq C++
11866             # Make sure the PIC flag is empty.  It appears that all Alpha
11867             # Linux and Compaq Tru64 Unix objects are PIC.
11868             lt_prog_compiler_pic_CXX=
11869             lt_prog_compiler_static_CXX='-non_shared'
11870             ;;
11871           *)
11872             ;;
11873         esac
11874         ;;
11875       lynxos*)
11876         ;;
11877       m88k*)
11878         ;;
11879       mvs*)
11880         case $cc_basename in
11881           cxx*)
11882             lt_prog_compiler_pic_CXX='-W c,exportall'
11883             ;;
11884           *)
11885             ;;
11886         esac
11887         ;;
11888       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11889         ;;
11890       osf3* | osf4* | osf5*)
11891         case $cc_basename in
11892           KCC*)
11893             lt_prog_compiler_wl_CXX='--backend -Wl,'
11894             ;;
11895           RCC*)
11896             # Rational C++ 2.4.1
11897             lt_prog_compiler_pic_CXX='-pic'
11898             ;;
11899           cxx*)
11900             # Digital/Compaq C++
11901             lt_prog_compiler_wl_CXX='-Wl,'
11902             # Make sure the PIC flag is empty.  It appears that all Alpha
11903             # Linux and Compaq Tru64 Unix objects are PIC.
11904             lt_prog_compiler_pic_CXX=
11905             lt_prog_compiler_static_CXX='-non_shared'
11906             ;;
11907           *)
11908             ;;
11909         esac
11910         ;;
11911       psos*)
11912         ;;
11913       sco*)
11914         case $cc_basename in
11915           CC*)
11916             lt_prog_compiler_pic_CXX='-fPIC'
11917             ;;
11918           *)
11919             ;;
11920         esac
11921         ;;
11922       solaris*)
11923         case $cc_basename in
11924           CC*)
11925             # Sun C++ 4.2, 5.x and Centerline C++
11926             lt_prog_compiler_pic_CXX='-KPIC'
11927             lt_prog_compiler_static_CXX='-Bstatic'
11928             lt_prog_compiler_wl_CXX='-Qoption ld '
11929             ;;
11930           gcx*)
11931             # Green Hills C++ Compiler
11932             lt_prog_compiler_pic_CXX='-PIC'
11933             ;;
11934           *)
11935             ;;
11936         esac
11937         ;;
11938       sunos4*)
11939         case $cc_basename in
11940           CC*)
11941             # Sun C++ 4.x
11942             lt_prog_compiler_pic_CXX='-pic'
11943             lt_prog_compiler_static_CXX='-Bstatic'
11944             ;;
11945           lcc*)
11946             # Lucid
11947             lt_prog_compiler_pic_CXX='-pic'
11948             ;;
11949           *)
11950             ;;
11951         esac
11952         ;;
11953       tandem*)
11954         case $cc_basename in
11955           NCC*)
11956             # NonStop-UX NCC 3.20
11957             lt_prog_compiler_pic_CXX='-KPIC'
11958             ;;
11959           *)
11960             ;;
11961         esac
11962         ;;
11963       unixware*)
11964         ;;
11965       vxworks*)
11966         ;;
11967       *)
11968         lt_prog_compiler_can_build_shared_CXX=no
11969         ;;
11970     esac
11971   fi
11973 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11974 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11977 # Check to make sure the PIC flag actually works.
11979 if test -n "$lt_prog_compiler_pic_CXX"; then
11980   
11981 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11982 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11983 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   lt_prog_compiler_pic_works_CXX=no
11987   ac_outfile=conftest.$ac_objext
11988    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11989    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11990    # Insert the option either (1) after the last *FLAGS variable, or
11991    # (2) before a word containing "conftest.", or (3) at the end.
11992    # Note that $ac_compile itself does not contain backslashes and begins
11993    # with a dollar sign (not a hyphen), so the echo should work correctly.
11994    # The option is referenced via a variable to avoid confusing sed.
11995    lt_compile=`echo "$ac_compile" | $SED \
11996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11998    -e 's:$: $lt_compiler_flag:'`
11999    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12000    (eval "$lt_compile" 2>conftest.err)
12001    ac_status=$?
12002    cat conftest.err >&5
12003    echo "$as_me:__oline__: \$? = $ac_status" >&5
12004    if (exit $ac_status) && test -s "$ac_outfile"; then
12005      # The compiler can only warn and ignore the option if not recognized
12006      # So say no if there are warnings other than the usual output.
12007      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12008      $SED '/^$/d' conftest.err >conftest.er2
12009      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12010        lt_prog_compiler_pic_works_CXX=yes
12011      fi
12012    fi
12013    $rm conftest*
12016 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12017 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12019 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12020     case $lt_prog_compiler_pic_CXX in
12021      "" | " "*) ;;
12022      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12023      esac
12024 else
12025     lt_prog_compiler_pic_CXX=
12026      lt_prog_compiler_can_build_shared_CXX=no
12030 case $host_os in
12031   # For platforms which do not support PIC, -DPIC is meaningless:
12032   *djgpp*)
12033     lt_prog_compiler_pic_CXX=
12034     ;;
12035   *)
12036     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12037     ;;
12038 esac
12040 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12041 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12042 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12043   echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045   lt_cv_prog_compiler_c_o_CXX=no
12046    $rm -r conftest 2>/dev/null
12047    mkdir conftest
12048    cd conftest
12049    mkdir out
12050    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12052    lt_compiler_flag="-o out/conftest2.$ac_objext"
12053    # Insert the option either (1) after the last *FLAGS variable, or
12054    # (2) before a word containing "conftest.", or (3) at the end.
12055    # Note that $ac_compile itself does not contain backslashes and begins
12056    # with a dollar sign (not a hyphen), so the echo should work correctly.
12057    lt_compile=`echo "$ac_compile" | $SED \
12058    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12059    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12060    -e 's:$: $lt_compiler_flag:'`
12061    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12062    (eval "$lt_compile" 2>out/conftest.err)
12063    ac_status=$?
12064    cat out/conftest.err >&5
12065    echo "$as_me:__oline__: \$? = $ac_status" >&5
12066    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12067    then
12068      # The compiler can only warn and ignore the option if not recognized
12069      # So say no if there are warnings
12070      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12071      $SED '/^$/d' out/conftest.err >out/conftest.er2
12072      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12073        lt_cv_prog_compiler_c_o_CXX=yes
12074      fi
12075    fi
12076    chmod u+w . 2>&5
12077    $rm conftest*
12078    # SGI C++ compiler will create directory out/ii_files/ for
12079    # template instantiation
12080    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12081    $rm out/* && rmdir out
12082    cd ..
12083    rmdir conftest
12084    $rm conftest*
12087 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12088 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12091 hard_links="nottested"
12092 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12093   # do not overwrite the value of need_locks provided by the user
12094   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12095 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12096   hard_links=yes
12097   $rm conftest*
12098   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12099   touch conftest.a
12100   ln conftest.a conftest.b 2>&5 || hard_links=no
12101   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12102   { echo "$as_me:$LINENO: result: $hard_links" >&5
12103 echo "${ECHO_T}$hard_links" >&6; }
12104   if test "$hard_links" = no; then
12105     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12106 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12107     need_locks=warn
12108   fi
12109 else
12110   need_locks=no
12113 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12114 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12116   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12117   case $host_os in
12118   aix4* | aix5*)
12119     # If we're using GNU nm, then we don't want the "-C" option.
12120     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12121     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12122       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'
12123     else
12124       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'
12125     fi
12126     ;;
12127   pw32*)
12128     export_symbols_cmds_CXX="$ltdll_cmds"
12129   ;;
12130   cygwin* | mingw*)
12131     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'
12132   ;;
12133   linux*)
12134     link_all_deplibs_CXX=no
12135   ;;
12136   *)
12137     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12138   ;;
12139   esac
12141 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12142 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12143 test "$ld_shlibs_CXX" = no && can_build_shared=no
12145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12146 if test "$GCC" = yes; then
12147   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12151 # Do we need to explicitly link libc?
12153 case "x$archive_cmds_need_lc_CXX" in
12154 x|xyes)
12155   # Assume -lc should be added
12156   archive_cmds_need_lc_CXX=yes
12158   if test "$enable_shared" = yes && test "$GCC" = yes; then
12159     case $archive_cmds_CXX in
12160     *'~'*)
12161       # FIXME: we may have to deal with multi-command sequences.
12162       ;;
12163     '$CC '*)
12164       # Test whether the compiler implicitly links with -lc since on some
12165       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12166       # to ld, don't add -lc before -lgcc.
12167       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12168 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12169       $rm conftest*
12170       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12172       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173   (eval $ac_compile) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } 2>conftest.err; then
12177         soname=conftest
12178         lib=conftest
12179         libobjs=conftest.$ac_objext
12180         deplibs=
12181         wl=$lt_prog_compiler_wl_CXX
12182         compiler_flags=-v
12183         linker_flags=-v
12184         verstring=
12185         output_objdir=.
12186         libname=conftest
12187         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12188         allow_undefined_flag_CXX=
12189         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12190   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }
12194         then
12195           archive_cmds_need_lc_CXX=no
12196         else
12197           archive_cmds_need_lc_CXX=yes
12198         fi
12199         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12200       else
12201         cat conftest.err 1>&5
12202       fi
12203       $rm conftest*
12204       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12205 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12206       ;;
12207     esac
12208   fi
12209   ;;
12210 esac
12212 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12213 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12214 library_names_spec=
12215 libname_spec='lib$name'
12216 soname_spec=
12217 shrext_cmds=".so"
12218 postinstall_cmds=
12219 postuninstall_cmds=
12220 finish_cmds=
12221 finish_eval=
12222 shlibpath_var=
12223 shlibpath_overrides_runpath=unknown
12224 version_type=none
12225 dynamic_linker="$host_os ld.so"
12226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12227 if test "$GCC" = yes; then
12228   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12229   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12230     # if the path contains ";" then we assume it to be the separator
12231     # otherwise default to the standard path separator (i.e. ":") - it is
12232     # assumed that no part of a normal pathname contains ";" but that should
12233     # okay in the real world where ";" in dirpaths is itself problematic.
12234     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12235   else
12236     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12237   fi
12238 else
12239   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12241 need_lib_prefix=unknown
12242 hardcode_into_libs=no
12244 # when you set need_version to no, make sure it does not cause -set_version
12245 # flags to be left without arguments
12246 need_version=unknown
12248 case $host_os in
12249 aix3*)
12250   version_type=linux
12251   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12252   shlibpath_var=LIBPATH
12254   # AIX 3 has no versioning support, so we append a major version to the name.
12255   soname_spec='${libname}${release}${shared_ext}$major'
12256   ;;
12258 aix4* | aix5*)
12259   version_type=linux
12260   need_lib_prefix=no
12261   need_version=no
12262   hardcode_into_libs=yes
12263   if test "$host_cpu" = ia64; then
12264     # AIX 5 supports IA64
12265     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12266     shlibpath_var=LD_LIBRARY_PATH
12267   else
12268     # With GCC up to 2.95.x, collect2 would create an import file
12269     # for dependence libraries.  The import file would start with
12270     # the line `#! .'.  This would cause the generated library to
12271     # depend on `.', always an invalid library.  This was fixed in
12272     # development snapshots of GCC prior to 3.0.
12273     case $host_os in
12274       aix4 | aix4.[01] | aix4.[01].*)
12275       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12276            echo ' yes '
12277            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12278         :
12279       else
12280         can_build_shared=no
12281       fi
12282       ;;
12283     esac
12284     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12285     # soname into executable. Probably we can add versioning support to
12286     # collect2, so additional links can be useful in future.
12287     if test "$aix_use_runtimelinking" = yes; then
12288       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12289       # instead of lib<name>.a to let people know that these are not
12290       # typical AIX shared libraries.
12291       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292     else
12293       # We preserve .a as extension for shared libraries through AIX4.2
12294       # and later when we are not doing run time linking.
12295       library_names_spec='${libname}${release}.a $libname.a'
12296       soname_spec='${libname}${release}${shared_ext}$major'
12297     fi
12298     shlibpath_var=LIBPATH
12299   fi
12300   ;;
12302 amigaos*)
12303   library_names_spec='$libname.ixlibrary $libname.a'
12304   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12305   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'
12306   ;;
12308 beos*)
12309   library_names_spec='${libname}${shared_ext}'
12310   dynamic_linker="$host_os ld.so"
12311   shlibpath_var=LIBRARY_PATH
12312   ;;
12314 bsdi[45]*)
12315   version_type=linux
12316   need_version=no
12317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318   soname_spec='${libname}${release}${shared_ext}$major'
12319   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12320   shlibpath_var=LD_LIBRARY_PATH
12321   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12322   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12323   # the default ld.so.conf also contains /usr/contrib/lib and
12324   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12325   # libtool to hard-code these into programs
12326   ;;
12328 cygwin* | mingw* | pw32*)
12329   version_type=windows
12330   shrext_cmds=".dll"
12331   need_version=no
12332   need_lib_prefix=no
12334   case $GCC,$host_os in
12335   yes,cygwin* | yes,mingw* | yes,pw32*)
12336     library_names_spec='$libname.dll.a'
12337     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12338     postinstall_cmds='base_file=`basename \${file}`~
12339       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12340       dldir=$destdir/`dirname \$dlpath`~
12341       test -d \$dldir || mkdir -p \$dldir~
12342       $install_prog $dir/$dlname \$dldir/$dlname~
12343       chmod a+x \$dldir/$dlname'
12344     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12345       dlpath=$dir/\$dldll~
12346        $rm \$dlpath'
12347     shlibpath_overrides_runpath=yes
12349     case $host_os in
12350     cygwin*)
12351       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12352       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12353       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12354       ;;
12355     mingw*)
12356       # MinGW DLLs use traditional 'lib' prefix
12357       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12358       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12359       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12360         # It is most probably a Windows format PATH printed by
12361         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12362         # path with ; separators, and with drive letters. We can handle the
12363         # drive letters (cygwin fileutils understands them), so leave them,
12364         # especially as we might pass files found there to a mingw objdump,
12365         # which wouldn't understand a cygwinified path. Ahh.
12366         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12367       else
12368         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12369       fi
12370       ;;
12371     pw32*)
12372       # pw32 DLLs use 'pw' prefix rather than 'lib'
12373       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12374       ;;
12375     esac
12376     ;;
12378   *)
12379     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12380     ;;
12381   esac
12382   dynamic_linker='Win32 ld.exe'
12383   # FIXME: first we should search . and the directory the executable is in
12384   shlibpath_var=PATH
12385   ;;
12387 darwin* | rhapsody*)
12388   dynamic_linker="$host_os dyld"
12389   version_type=darwin
12390   need_lib_prefix=no
12391   need_version=no
12392   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12393   soname_spec='${libname}${release}${major}$shared_ext'
12394   shlibpath_overrides_runpath=yes
12395   shlibpath_var=DYLD_LIBRARY_PATH
12396   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12397   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12398   if test "$GCC" = yes; then
12399     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12400   else
12401     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12402   fi
12403   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12404   ;;
12406 dgux*)
12407   version_type=linux
12408   need_lib_prefix=no
12409   need_version=no
12410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12411   soname_spec='${libname}${release}${shared_ext}$major'
12412   shlibpath_var=LD_LIBRARY_PATH
12413   ;;
12415 freebsd1*)
12416   dynamic_linker=no
12417   ;;
12419 kfreebsd*-gnu)
12420   version_type=linux
12421   need_lib_prefix=no
12422   need_version=no
12423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12424   soname_spec='${libname}${release}${shared_ext}$major'
12425   shlibpath_var=LD_LIBRARY_PATH
12426   shlibpath_overrides_runpath=no
12427   hardcode_into_libs=yes
12428   dynamic_linker='GNU ld.so'
12429   ;;
12431 freebsd* | dragonfly*)
12432   # DragonFly does not have aout.  When/if they implement a new
12433   # versioning mechanism, adjust this.
12434   if test -x /usr/bin/objformat; then
12435     objformat=`/usr/bin/objformat`
12436   else
12437     case $host_os in
12438     freebsd[123]*) objformat=aout ;;
12439     *) objformat=elf ;;
12440     esac
12441   fi
12442   version_type=freebsd-$objformat
12443   case $version_type in
12444     freebsd-elf*)
12445       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12446       need_version=no
12447       need_lib_prefix=no
12448       ;;
12449     freebsd-*)
12450       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12451       need_version=yes
12452       ;;
12453   esac
12454   shlibpath_var=LD_LIBRARY_PATH
12455   case $host_os in
12456   freebsd2*)
12457     shlibpath_overrides_runpath=yes
12458     ;;
12459   freebsd3.[01]* | freebsdelf3.[01]*)
12460     shlibpath_overrides_runpath=yes
12461     hardcode_into_libs=yes
12462     ;;
12463   *) # from 3.2 on
12464     shlibpath_overrides_runpath=no
12465     hardcode_into_libs=yes
12466     ;;
12467   esac
12468   ;;
12470 gnu*)
12471   version_type=linux
12472   need_lib_prefix=no
12473   need_version=no
12474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12475   soname_spec='${libname}${release}${shared_ext}$major'
12476   shlibpath_var=LD_LIBRARY_PATH
12477   hardcode_into_libs=yes
12478   ;;
12480 hpux9* | hpux10* | hpux11*)
12481   # Give a soname corresponding to the major version so that dld.sl refuses to
12482   # link against other versions.
12483   version_type=sunos
12484   need_lib_prefix=no
12485   need_version=no
12486   case $host_cpu in
12487   ia64*)
12488     shrext_cmds='.so'
12489     hardcode_into_libs=yes
12490     dynamic_linker="$host_os dld.so"
12491     shlibpath_var=LD_LIBRARY_PATH
12492     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12494     soname_spec='${libname}${release}${shared_ext}$major'
12495     if test "X$HPUX_IA64_MODE" = X32; then
12496       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12497     else
12498       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12499     fi
12500     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12501     ;;
12502    hppa*64*)
12503      shrext_cmds='.sl'
12504      hardcode_into_libs=yes
12505      dynamic_linker="$host_os dld.sl"
12506      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12507      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12508      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12509      soname_spec='${libname}${release}${shared_ext}$major'
12510      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12511      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12512      ;;
12513    *)
12514     shrext_cmds='.sl'
12515     dynamic_linker="$host_os dld.sl"
12516     shlibpath_var=SHLIB_PATH
12517     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12519     soname_spec='${libname}${release}${shared_ext}$major'
12520     ;;
12521   esac
12522   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12523   postinstall_cmds='chmod 555 $lib'
12524   ;;
12526 irix5* | irix6* | nonstopux*)
12527   case $host_os in
12528     nonstopux*) version_type=nonstopux ;;
12529     *)
12530         if test "$lt_cv_prog_gnu_ld" = yes; then
12531                 version_type=linux
12532         else
12533                 version_type=irix
12534         fi ;;
12535   esac
12536   need_lib_prefix=no
12537   need_version=no
12538   soname_spec='${libname}${release}${shared_ext}$major'
12539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12540   case $host_os in
12541   irix5* | nonstopux*)
12542     libsuff= shlibsuff=
12543     ;;
12544   *)
12545     case $LD in # libtool.m4 will add one of these switches to LD
12546     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12547       libsuff= shlibsuff= libmagic=32-bit;;
12548     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12549       libsuff=32 shlibsuff=N32 libmagic=N32;;
12550     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12551       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12552     *) libsuff= shlibsuff= libmagic=never-match;;
12553     esac
12554     ;;
12555   esac
12556   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12557   shlibpath_overrides_runpath=no
12558   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12559   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12560   hardcode_into_libs=yes
12561   ;;
12563 # No shared lib support for Linux oldld, aout, or coff.
12564 linux*oldld* | linux*aout* | linux*coff*)
12565   dynamic_linker=no
12566   ;;
12568 # This must be Linux ELF.
12569 linux*)
12570   version_type=linux
12571   need_lib_prefix=no
12572   need_version=no
12573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574   soname_spec='${libname}${release}${shared_ext}$major'
12575   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12576   shlibpath_var=LD_LIBRARY_PATH
12577   shlibpath_overrides_runpath=no
12578   # This implies no fast_install, which is unacceptable.
12579   # Some rework will be needed to allow for fast_install
12580   # before this can be enabled.
12581   hardcode_into_libs=yes
12583   # Append ld.so.conf contents to the search path
12584   if test -f /etc/ld.so.conf; then
12585     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12586     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12587   fi
12589   # We used to test for /lib/ld.so.1 and disable shared libraries on
12590   # powerpc, because MkLinux only supported shared libraries with the
12591   # GNU dynamic linker.  Since this was broken with cross compilers,
12592   # most powerpc-linux boxes support dynamic linking these days and
12593   # people can always --disable-shared, the test was removed, and we
12594   # assume the GNU/Linux dynamic linker is in use.
12595   dynamic_linker='GNU/Linux ld.so'
12596   ;;
12598 netbsdelf*-gnu)
12599   version_type=linux
12600   need_lib_prefix=no
12601   need_version=no
12602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12603   soname_spec='${libname}${release}${shared_ext}$major'
12604   shlibpath_var=LD_LIBRARY_PATH
12605   shlibpath_overrides_runpath=no
12606   hardcode_into_libs=yes
12607   dynamic_linker='NetBSD ld.elf_so'
12608   ;;
12610 knetbsd*-gnu)
12611   version_type=linux
12612   need_lib_prefix=no
12613   need_version=no
12614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12615   soname_spec='${libname}${release}${shared_ext}$major'
12616   shlibpath_var=LD_LIBRARY_PATH
12617   shlibpath_overrides_runpath=no
12618   hardcode_into_libs=yes
12619   dynamic_linker='GNU ld.so'
12620   ;;
12622 netbsd*)
12623   version_type=sunos
12624   need_lib_prefix=no
12625   need_version=no
12626   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12628     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12629     dynamic_linker='NetBSD (a.out) ld.so'
12630   else
12631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12632     soname_spec='${libname}${release}${shared_ext}$major'
12633     dynamic_linker='NetBSD ld.elf_so'
12634   fi
12635   shlibpath_var=LD_LIBRARY_PATH
12636   shlibpath_overrides_runpath=yes
12637   hardcode_into_libs=yes
12638   ;;
12640 newsos6)
12641   version_type=linux
12642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643   shlibpath_var=LD_LIBRARY_PATH
12644   shlibpath_overrides_runpath=yes
12645   ;;
12647 nto-qnx*)
12648   version_type=linux
12649   need_lib_prefix=no
12650   need_version=no
12651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652   soname_spec='${libname}${release}${shared_ext}$major'
12653   shlibpath_var=LD_LIBRARY_PATH
12654   shlibpath_overrides_runpath=yes
12655   ;;
12657 openbsd*)
12658   version_type=sunos
12659   need_lib_prefix=no
12660   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12661   case $host_os in
12662     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12663     *)                         need_version=no  ;;
12664   esac
12665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12666   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12667   shlibpath_var=LD_LIBRARY_PATH
12668   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12669     case $host_os in
12670       openbsd2.[89] | openbsd2.[89].*)
12671         shlibpath_overrides_runpath=no
12672         ;;
12673       *)
12674         shlibpath_overrides_runpath=yes
12675         ;;
12676       esac
12677   else
12678     shlibpath_overrides_runpath=yes
12679   fi
12680   ;;
12682 os2*)
12683   libname_spec='$name'
12684   shrext_cmds=".dll"
12685   need_lib_prefix=no
12686   library_names_spec='$libname${shared_ext} $libname.a'
12687   dynamic_linker='OS/2 ld.exe'
12688   shlibpath_var=LIBPATH
12689   ;;
12691 osf3* | osf4* | osf5*)
12692   version_type=osf
12693   need_lib_prefix=no
12694   need_version=no
12695   soname_spec='${libname}${release}${shared_ext}$major'
12696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12697   shlibpath_var=LD_LIBRARY_PATH
12698   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12699   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12700   ;;
12702 sco3.2v5*)
12703   version_type=osf
12704   soname_spec='${libname}${release}${shared_ext}$major'
12705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12706   shlibpath_var=LD_LIBRARY_PATH
12707   ;;
12709 solaris*)
12710   version_type=linux
12711   need_lib_prefix=no
12712   need_version=no
12713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714   soname_spec='${libname}${release}${shared_ext}$major'
12715   shlibpath_var=LD_LIBRARY_PATH
12716   shlibpath_overrides_runpath=yes
12717   hardcode_into_libs=yes
12718   # ldd complains unless libraries are executable
12719   postinstall_cmds='chmod +x $lib'
12720   ;;
12722 sunos4*)
12723   version_type=sunos
12724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12725   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12726   shlibpath_var=LD_LIBRARY_PATH
12727   shlibpath_overrides_runpath=yes
12728   if test "$with_gnu_ld" = yes; then
12729     need_lib_prefix=no
12730   fi
12731   need_version=yes
12732   ;;
12734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12735   version_type=linux
12736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737   soname_spec='${libname}${release}${shared_ext}$major'
12738   shlibpath_var=LD_LIBRARY_PATH
12739   case $host_vendor in
12740     sni)
12741       shlibpath_overrides_runpath=no
12742       need_lib_prefix=no
12743       export_dynamic_flag_spec='${wl}-Blargedynsym'
12744       runpath_var=LD_RUN_PATH
12745       ;;
12746     siemens)
12747       need_lib_prefix=no
12748       ;;
12749     motorola)
12750       need_lib_prefix=no
12751       need_version=no
12752       shlibpath_overrides_runpath=no
12753       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12754       ;;
12755   esac
12756   ;;
12758 sysv4*MP*)
12759   if test -d /usr/nec ;then
12760     version_type=linux
12761     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12762     soname_spec='$libname${shared_ext}.$major'
12763     shlibpath_var=LD_LIBRARY_PATH
12764   fi
12765   ;;
12767 uts4*)
12768   version_type=linux
12769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12770   soname_spec='${libname}${release}${shared_ext}$major'
12771   shlibpath_var=LD_LIBRARY_PATH
12772   ;;
12775   dynamic_linker=no
12776   ;;
12777 esac
12778 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12779 echo "${ECHO_T}$dynamic_linker" >&6; }
12780 test "$dynamic_linker" = no && can_build_shared=no
12782 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12783 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12784 hardcode_action_CXX=
12785 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12786    test -n "$runpath_var_CXX" || \
12787    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12789   # We can hardcode non-existant directories.
12790   if test "$hardcode_direct_CXX" != no &&
12791      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12792      # have to relink, otherwise we might link with an installed library
12793      # when we should be linking with a yet-to-be-installed one
12794      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12795      test "$hardcode_minus_L_CXX" != no; then
12796     # Linking always hardcodes the temporary library directory.
12797     hardcode_action_CXX=relink
12798   else
12799     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12800     hardcode_action_CXX=immediate
12801   fi
12802 else
12803   # We cannot hardcode anything, or else we can only hardcode existing
12804   # directories.
12805   hardcode_action_CXX=unsupported
12807 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12808 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12810 if test "$hardcode_action_CXX" = relink; then
12811   # Fast installation is not supported
12812   enable_fast_install=no
12813 elif test "$shlibpath_overrides_runpath" = yes ||
12814      test "$enable_shared" = no; then
12815   # Fast installation is not necessary
12816   enable_fast_install=needless
12819 striplib=
12820 old_striplib=
12821 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12822 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12823 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12824   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12825   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12826   { echo "$as_me:$LINENO: result: yes" >&5
12827 echo "${ECHO_T}yes" >&6; }
12828 else
12829 # FIXME - insert some real tests, host_os isn't really good enough
12830   case $host_os in
12831    darwin*)
12832        if test -n "$STRIP" ; then
12833          striplib="$STRIP -x"
12834          { echo "$as_me:$LINENO: result: yes" >&5
12835 echo "${ECHO_T}yes" >&6; }
12836        else
12837   { echo "$as_me:$LINENO: result: no" >&5
12838 echo "${ECHO_T}no" >&6; }
12840        ;;
12841    *)
12842   { echo "$as_me:$LINENO: result: no" >&5
12843 echo "${ECHO_T}no" >&6; }
12844     ;;
12845   esac
12848 if test "x$enable_dlopen" != xyes; then
12849   enable_dlopen=unknown
12850   enable_dlopen_self=unknown
12851   enable_dlopen_self_static=unknown
12852 else
12853   lt_cv_dlopen=no
12854   lt_cv_dlopen_libs=
12856   case $host_os in
12857   beos*)
12858     lt_cv_dlopen="load_add_on"
12859     lt_cv_dlopen_libs=
12860     lt_cv_dlopen_self=yes
12861     ;;
12863   mingw* | pw32*)
12864     lt_cv_dlopen="LoadLibrary"
12865     lt_cv_dlopen_libs=
12866    ;;
12868   cygwin*)
12869     lt_cv_dlopen="dlopen"
12870     lt_cv_dlopen_libs=
12871    ;;
12873   darwin*)
12874   # if libdl is installed we need to link against it
12875     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12876 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12878   echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880   ac_check_lib_save_LIBS=$LIBS
12881 LIBS="-ldl  $LIBS"
12882 cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12889 /* Override any GCC internal prototype to avoid an error.
12890    Use char because int might match the return type of a GCC
12891    builtin and then its argument prototype would still apply.  */
12892 #ifdef __cplusplus
12893 extern "C"
12894 #endif
12895 char dlopen ();
12897 main ()
12899 return dlopen ();
12900   ;
12901   return 0;
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_link") 2>conftest.er1
12912   ac_status=$?
12913   grep -v '^ *+' conftest.er1 >conftest.err
12914   rm -f conftest.er1
12915   cat conftest.err >&5
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } && {
12918          test -z "$ac_cxx_werror_flag" ||
12919          test ! -s conftest.err
12920        } && test -s conftest$ac_exeext &&
12921        $as_test_x conftest$ac_exeext; then
12922   ac_cv_lib_dl_dlopen=yes
12923 else
12924   echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927         ac_cv_lib_dl_dlopen=no
12930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12931       conftest$ac_exeext conftest.$ac_ext
12932 LIBS=$ac_check_lib_save_LIBS
12934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12935 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12936 if test $ac_cv_lib_dl_dlopen = yes; then
12937   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12938 else
12939   
12940     lt_cv_dlopen="dyld"
12941     lt_cv_dlopen_libs=
12942     lt_cv_dlopen_self=yes
12943     
12946    ;;
12948   *)
12949     { echo "$as_me:$LINENO: checking for shl_load" >&5
12950 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12951 if test "${ac_cv_func_shl_load+set}" = set; then
12952   echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954   cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12962 #define shl_load innocuous_shl_load
12964 /* System header to define __stub macros and hopefully few prototypes,
12965     which can conflict with char shl_load (); below.
12966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967     <limits.h> exists even on freestanding compilers.  */
12969 #ifdef __STDC__
12970 # include <limits.h>
12971 #else
12972 # include <assert.h>
12973 #endif
12975 #undef shl_load
12977 /* Override any GCC internal prototype to avoid an error.
12978    Use char because int might match the return type of a GCC
12979    builtin and then its argument prototype would still apply.  */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char shl_load ();
12984 /* The GNU C library defines this for functions which it implements
12985     to always fail with ENOSYS.  Some functions are actually named
12986     something starting with __ and the normal name is an alias.  */
12987 #if defined __stub_shl_load || defined __stub___shl_load
12988 choke me
12989 #endif
12992 main ()
12994 return shl_load ();
12995   ;
12996   return 0;
12998 _ACEOF
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003   *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006   (eval "$ac_link") 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } && {
13013          test -z "$ac_cxx_werror_flag" ||
13014          test ! -s conftest.err
13015        } && test -s conftest$ac_exeext &&
13016        $as_test_x conftest$ac_exeext; then
13017   ac_cv_func_shl_load=yes
13018 else
13019   echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022         ac_cv_func_shl_load=no
13025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13026       conftest$ac_exeext conftest.$ac_ext
13028 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13029 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13030 if test $ac_cv_func_shl_load = yes; then
13031   lt_cv_dlopen="shl_load"
13032 else
13033   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13034 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038   ac_check_lib_save_LIBS=$LIBS
13039 LIBS="-ldld  $LIBS"
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13047 /* Override any GCC internal prototype to avoid an error.
13048    Use char because int might match the return type of a GCC
13049    builtin and then its argument prototype would still apply.  */
13050 #ifdef __cplusplus
13051 extern "C"
13052 #endif
13053 char shl_load ();
13055 main ()
13057 return shl_load ();
13058   ;
13059   return 0;
13061 _ACEOF
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (ac_try="$ac_link"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_link") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } && {
13076          test -z "$ac_cxx_werror_flag" ||
13077          test ! -s conftest.err
13078        } && test -s conftest$ac_exeext &&
13079        $as_test_x conftest$ac_exeext; then
13080   ac_cv_lib_dld_shl_load=yes
13081 else
13082   echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085         ac_cv_lib_dld_shl_load=no
13088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13089       conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_check_lib_save_LIBS
13092 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13093 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13094 if test $ac_cv_lib_dld_shl_load = yes; then
13095   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13096 else
13097   { echo "$as_me:$LINENO: checking for dlopen" >&5
13098 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13099 if test "${ac_cv_func_dlopen+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h.  */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h.  */
13108 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13110 #define dlopen innocuous_dlopen
13112 /* System header to define __stub macros and hopefully few prototypes,
13113     which can conflict with char dlopen (); below.
13114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13115     <limits.h> exists even on freestanding compilers.  */
13117 #ifdef __STDC__
13118 # include <limits.h>
13119 #else
13120 # include <assert.h>
13121 #endif
13123 #undef dlopen
13125 /* Override any GCC internal prototype to avoid an error.
13126    Use char because int might match the return type of a GCC
13127    builtin and then its argument prototype would still apply.  */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char dlopen ();
13132 /* The GNU C library defines this for functions which it implements
13133     to always fail with ENOSYS.  Some functions are actually named
13134     something starting with __ and the normal name is an alias.  */
13135 #if defined __stub_dlopen || defined __stub___dlopen
13136 choke me
13137 #endif
13140 main ()
13142 return dlopen ();
13143   ;
13144   return 0;
13146 _ACEOF
13147 rm -f conftest.$ac_objext conftest$ac_exeext
13148 if { (ac_try="$ac_link"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_link") 2>conftest.er1
13155   ac_status=$?
13156   grep -v '^ *+' conftest.er1 >conftest.err
13157   rm -f conftest.er1
13158   cat conftest.err >&5
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); } && {
13161          test -z "$ac_cxx_werror_flag" ||
13162          test ! -s conftest.err
13163        } && test -s conftest$ac_exeext &&
13164        $as_test_x conftest$ac_exeext; then
13165   ac_cv_func_dlopen=yes
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170         ac_cv_func_dlopen=no
13173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13174       conftest$ac_exeext conftest.$ac_ext
13176 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13177 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13178 if test $ac_cv_func_dlopen = yes; then
13179   lt_cv_dlopen="dlopen"
13180 else
13181   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13182 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13183 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-ldl  $LIBS"
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13195 /* Override any GCC internal prototype to avoid an error.
13196    Use char because int might match the return type of a GCC
13197    builtin and then its argument prototype would still apply.  */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char dlopen ();
13203 main ()
13205 return dlopen ();
13206   ;
13207   return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (ac_try="$ac_link"
13212 case "(($ac_try" in
13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214   *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217   (eval "$ac_link") 2>conftest.er1
13218   ac_status=$?
13219   grep -v '^ *+' conftest.er1 >conftest.err
13220   rm -f conftest.er1
13221   cat conftest.err >&5
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } && {
13224          test -z "$ac_cxx_werror_flag" ||
13225          test ! -s conftest.err
13226        } && test -s conftest$ac_exeext &&
13227        $as_test_x conftest$ac_exeext; then
13228   ac_cv_lib_dl_dlopen=yes
13229 else
13230   echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233         ac_cv_lib_dl_dlopen=no
13236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13237       conftest$ac_exeext conftest.$ac_ext
13238 LIBS=$ac_check_lib_save_LIBS
13240 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13241 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13242 if test $ac_cv_lib_dl_dlopen = yes; then
13243   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13244 else
13245   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13246 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13247 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13248   echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250   ac_check_lib_save_LIBS=$LIBS
13251 LIBS="-lsvld  $LIBS"
13252 cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h.  */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h.  */
13259 /* Override any GCC internal prototype to avoid an error.
13260    Use char because int might match the return type of a GCC
13261    builtin and then its argument prototype would still apply.  */
13262 #ifdef __cplusplus
13263 extern "C"
13264 #endif
13265 char dlopen ();
13267 main ()
13269 return dlopen ();
13270   ;
13271   return 0;
13273 _ACEOF
13274 rm -f conftest.$ac_objext conftest$ac_exeext
13275 if { (ac_try="$ac_link"
13276 case "(($ac_try" in
13277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278   *) ac_try_echo=$ac_try;;
13279 esac
13280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281   (eval "$ac_link") 2>conftest.er1
13282   ac_status=$?
13283   grep -v '^ *+' conftest.er1 >conftest.err
13284   rm -f conftest.er1
13285   cat conftest.err >&5
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); } && {
13288          test -z "$ac_cxx_werror_flag" ||
13289          test ! -s conftest.err
13290        } && test -s conftest$ac_exeext &&
13291        $as_test_x conftest$ac_exeext; then
13292   ac_cv_lib_svld_dlopen=yes
13293 else
13294   echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297         ac_cv_lib_svld_dlopen=no
13300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13301       conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13304 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13305 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13306 if test $ac_cv_lib_svld_dlopen = yes; then
13307   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13308 else
13309   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13310 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13311 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13312   echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314   ac_check_lib_save_LIBS=$LIBS
13315 LIBS="-ldld  $LIBS"
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13323 /* Override any GCC internal prototype to avoid an error.
13324    Use char because int might match the return type of a GCC
13325    builtin and then its argument prototype would still apply.  */
13326 #ifdef __cplusplus
13327 extern "C"
13328 #endif
13329 char dld_link ();
13331 main ()
13333 return dld_link ();
13334   ;
13335   return 0;
13337 _ACEOF
13338 rm -f conftest.$ac_objext conftest$ac_exeext
13339 if { (ac_try="$ac_link"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_link") 2>conftest.er1
13346   ac_status=$?
13347   grep -v '^ *+' conftest.er1 >conftest.err
13348   rm -f conftest.er1
13349   cat conftest.err >&5
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); } && {
13352          test -z "$ac_cxx_werror_flag" ||
13353          test ! -s conftest.err
13354        } && test -s conftest$ac_exeext &&
13355        $as_test_x conftest$ac_exeext; then
13356   ac_cv_lib_dld_dld_link=yes
13357 else
13358   echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361         ac_cv_lib_dld_dld_link=no
13364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13365       conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13368 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13369 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13370 if test $ac_cv_lib_dld_dld_link = yes; then
13371   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13374               
13377             
13380           
13383         
13386       
13389     ;;
13390   esac
13392   if test "x$lt_cv_dlopen" != xno; then
13393     enable_dlopen=yes
13394   else
13395     enable_dlopen=no
13396   fi
13398   case $lt_cv_dlopen in
13399   dlopen)
13400     save_CPPFLAGS="$CPPFLAGS"
13401     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13403     save_LDFLAGS="$LDFLAGS"
13404     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13406     save_LIBS="$LIBS"
13407     LIBS="$lt_cv_dlopen_libs $LIBS"
13409     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13410 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13411 if test "${lt_cv_dlopen_self+set}" = set; then
13412   echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414           if test "$cross_compiling" = yes; then :
13415   lt_cv_dlopen_self=cross
13416 else
13417   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13418   lt_status=$lt_dlunknown
13419   cat > conftest.$ac_ext <<EOF
13420 #line __oline__ "configure"
13421 #include "confdefs.h"
13423 #if HAVE_DLFCN_H
13424 #include <dlfcn.h>
13425 #endif
13427 #include <stdio.h>
13429 #ifdef RTLD_GLOBAL
13430 #  define LT_DLGLOBAL           RTLD_GLOBAL
13431 #else
13432 #  ifdef DL_GLOBAL
13433 #    define LT_DLGLOBAL         DL_GLOBAL
13434 #  else
13435 #    define LT_DLGLOBAL         0
13436 #  endif
13437 #endif
13439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13440    find out it does not work in some platform. */
13441 #ifndef LT_DLLAZY_OR_NOW
13442 #  ifdef RTLD_LAZY
13443 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13444 #  else
13445 #    ifdef DL_LAZY
13446 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13447 #    else
13448 #      ifdef RTLD_NOW
13449 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13450 #      else
13451 #        ifdef DL_NOW
13452 #          define LT_DLLAZY_OR_NOW      DL_NOW
13453 #        else
13454 #          define LT_DLLAZY_OR_NOW      0
13455 #        endif
13456 #      endif
13457 #    endif
13458 #  endif
13459 #endif
13461 #ifdef __cplusplus
13462 extern "C" void exit (int);
13463 #endif
13465 void fnord() { int i=42;}
13466 int main ()
13468   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13469   int status = $lt_dlunknown;
13471   if (self)
13472     {
13473       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13474       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13475       /* dlclose (self); */
13476     }
13478     exit (status);
13481   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482   (eval $ac_link) 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13486     (./conftest; exit; ) >&5 2>/dev/null
13487     lt_status=$?
13488     case x$lt_status in
13489       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13490       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13491       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13492     esac
13493   else :
13494     # compilation failed
13495     lt_cv_dlopen_self=no
13496   fi
13498 rm -fr conftest*
13500     
13502 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13503 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13505     if test "x$lt_cv_dlopen_self" = xyes; then
13506       LDFLAGS="$LDFLAGS $link_static_flag"
13507       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13508 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13509 if test "${lt_cv_dlopen_self_static+set}" = set; then
13510   echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512           if test "$cross_compiling" = yes; then :
13513   lt_cv_dlopen_self_static=cross
13514 else
13515   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13516   lt_status=$lt_dlunknown
13517   cat > conftest.$ac_ext <<EOF
13518 #line __oline__ "configure"
13519 #include "confdefs.h"
13521 #if HAVE_DLFCN_H
13522 #include <dlfcn.h>
13523 #endif
13525 #include <stdio.h>
13527 #ifdef RTLD_GLOBAL
13528 #  define LT_DLGLOBAL           RTLD_GLOBAL
13529 #else
13530 #  ifdef DL_GLOBAL
13531 #    define LT_DLGLOBAL         DL_GLOBAL
13532 #  else
13533 #    define LT_DLGLOBAL         0
13534 #  endif
13535 #endif
13537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13538    find out it does not work in some platform. */
13539 #ifndef LT_DLLAZY_OR_NOW
13540 #  ifdef RTLD_LAZY
13541 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13542 #  else
13543 #    ifdef DL_LAZY
13544 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13545 #    else
13546 #      ifdef RTLD_NOW
13547 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13548 #      else
13549 #        ifdef DL_NOW
13550 #          define LT_DLLAZY_OR_NOW      DL_NOW
13551 #        else
13552 #          define LT_DLLAZY_OR_NOW      0
13553 #        endif
13554 #      endif
13555 #    endif
13556 #  endif
13557 #endif
13559 #ifdef __cplusplus
13560 extern "C" void exit (int);
13561 #endif
13563 void fnord() { int i=42;}
13564 int main ()
13566   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13567   int status = $lt_dlunknown;
13569   if (self)
13570     {
13571       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13572       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13573       /* dlclose (self); */
13574     }
13576     exit (status);
13579   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13580   (eval $ac_link) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13584     (./conftest; exit; ) >&5 2>/dev/null
13585     lt_status=$?
13586     case x$lt_status in
13587       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13588       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13589       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13590     esac
13591   else :
13592     # compilation failed
13593     lt_cv_dlopen_self_static=no
13594   fi
13596 rm -fr conftest*
13598       
13600 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13601 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13602     fi
13604     CPPFLAGS="$save_CPPFLAGS"
13605     LDFLAGS="$save_LDFLAGS"
13606     LIBS="$save_LIBS"
13607     ;;
13608   esac
13610   case $lt_cv_dlopen_self in
13611   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13612   *) enable_dlopen_self=unknown ;;
13613   esac
13615   case $lt_cv_dlopen_self_static in
13616   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13617   *) enable_dlopen_self_static=unknown ;;
13618   esac
13622 # The else clause should only fire when bootstrapping the
13623 # libtool distribution, otherwise you forgot to ship ltmain.sh
13624 # with your package, and you will get complaints that there are
13625 # no rules to generate ltmain.sh.
13626 if test -f "$ltmain"; then
13627   # See if we are running on zsh, and set the options which allow our commands through
13628   # without removal of \ escapes.
13629   if test -n "${ZSH_VERSION+set}" ; then
13630     setopt NO_GLOB_SUBST
13631   fi
13632   # Now quote all the things that may contain metacharacters while being
13633   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13634   # variables and quote the copies for generation of the libtool script.
13635   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13636     SED SHELL STRIP \
13637     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13638     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13639     deplibs_check_method reload_flag reload_cmds need_locks \
13640     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13641     lt_cv_sys_global_symbol_to_c_name_address \
13642     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13643     old_postinstall_cmds old_postuninstall_cmds \
13644     compiler_CXX \
13645     CC_CXX \
13646     LD_CXX \
13647     lt_prog_compiler_wl_CXX \
13648     lt_prog_compiler_pic_CXX \
13649     lt_prog_compiler_static_CXX \
13650     lt_prog_compiler_no_builtin_flag_CXX \
13651     export_dynamic_flag_spec_CXX \
13652     thread_safe_flag_spec_CXX \
13653     whole_archive_flag_spec_CXX \
13654     enable_shared_with_static_runtimes_CXX \
13655     old_archive_cmds_CXX \
13656     old_archive_from_new_cmds_CXX \
13657     predep_objects_CXX \
13658     postdep_objects_CXX \
13659     predeps_CXX \
13660     postdeps_CXX \
13661     compiler_lib_search_path_CXX \
13662     archive_cmds_CXX \
13663     archive_expsym_cmds_CXX \
13664     postinstall_cmds_CXX \
13665     postuninstall_cmds_CXX \
13666     old_archive_from_expsyms_cmds_CXX \
13667     allow_undefined_flag_CXX \
13668     no_undefined_flag_CXX \
13669     export_symbols_cmds_CXX \
13670     hardcode_libdir_flag_spec_CXX \
13671     hardcode_libdir_flag_spec_ld_CXX \
13672     hardcode_libdir_separator_CXX \
13673     hardcode_automatic_CXX \
13674     module_cmds_CXX \
13675     module_expsym_cmds_CXX \
13676     lt_cv_prog_compiler_c_o_CXX \
13677     exclude_expsyms_CXX \
13678     include_expsyms_CXX; do
13680     case $var in
13681     old_archive_cmds_CXX | \
13682     old_archive_from_new_cmds_CXX | \
13683     archive_cmds_CXX | \
13684     archive_expsym_cmds_CXX | \
13685     module_cmds_CXX | \
13686     module_expsym_cmds_CXX | \
13687     old_archive_from_expsyms_cmds_CXX | \
13688     export_symbols_cmds_CXX | \
13689     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13690     postinstall_cmds | postuninstall_cmds | \
13691     old_postinstall_cmds | old_postuninstall_cmds | \
13692     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13693       # Double-quote double-evaled strings.
13694       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13695       ;;
13696     *)
13697       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13698       ;;
13699     esac
13700   done
13702   case $lt_echo in
13703   *'\$0 --fallback-echo"')
13704     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13705     ;;
13706   esac
13708 cfgfile="$ofile"
13710   cat <<__EOF__ >> "$cfgfile"
13711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13715 # Shell to use when invoking shell scripts.
13716 SHELL=$lt_SHELL
13718 # Whether or not to build shared libraries.
13719 build_libtool_libs=$enable_shared
13721 # Whether or not to build static libraries.
13722 build_old_libs=$enable_static
13724 # Whether or not to add -lc for building shared libraries.
13725 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13727 # Whether or not to disallow shared libs when runtime libs are static
13728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13730 # Whether or not to optimize for fast installation.
13731 fast_install=$enable_fast_install
13733 # The host system.
13734 host_alias=$host_alias
13735 host=$host
13736 host_os=$host_os
13738 # The build system.
13739 build_alias=$build_alias
13740 build=$build
13741 build_os=$build_os
13743 # An echo program that does not interpret backslashes.
13744 echo=$lt_echo
13746 # The archiver.
13747 AR=$lt_AR
13748 AR_FLAGS=$lt_AR_FLAGS
13750 # A C compiler.
13751 LTCC=$lt_LTCC
13753 # A language-specific compiler.
13754 CC=$lt_compiler_CXX
13756 # Is the compiler the GNU C compiler?
13757 with_gcc=$GCC_CXX
13759 # An ERE matcher.
13760 EGREP=$lt_EGREP
13762 # The linker used to build libraries.
13763 LD=$lt_LD_CXX
13765 # Whether we need hard or soft links.
13766 LN_S=$lt_LN_S
13768 # A BSD-compatible nm program.
13769 NM=$lt_NM
13771 # A symbol stripping program
13772 STRIP=$lt_STRIP
13774 # Used to examine libraries when file_magic_cmd begins "file"
13775 MAGIC_CMD=$MAGIC_CMD
13777 # Used on cygwin: DLL creation program.
13778 DLLTOOL="$DLLTOOL"
13780 # Used on cygwin: object dumper.
13781 OBJDUMP="$OBJDUMP"
13783 # Used on cygwin: assembler.
13784 AS="$AS"
13786 # The name of the directory that contains temporary libtool files.
13787 objdir=$objdir
13789 # How to create reloadable object files.
13790 reload_flag=$lt_reload_flag
13791 reload_cmds=$lt_reload_cmds
13793 # How to pass a linker flag through the compiler.
13794 wl=$lt_lt_prog_compiler_wl_CXX
13796 # Object file suffix (normally "o").
13797 objext="$ac_objext"
13799 # Old archive suffix (normally "a").
13800 libext="$libext"
13802 # Shared library suffix (normally ".so").
13803 shrext_cmds='$shrext_cmds'
13805 # Executable file suffix (normally "").
13806 exeext="$exeext"
13808 # Additional compiler flags for building library objects.
13809 pic_flag=$lt_lt_prog_compiler_pic_CXX
13810 pic_mode=$pic_mode
13812 # What is the maximum length of a command?
13813 max_cmd_len=$lt_cv_sys_max_cmd_len
13815 # Does compiler simultaneously support -c and -o options?
13816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13818 # Must we lock files when doing compilation?
13819 need_locks=$lt_need_locks
13821 # Do we need the lib prefix for modules?
13822 need_lib_prefix=$need_lib_prefix
13824 # Do we need a version for libraries?
13825 need_version=$need_version
13827 # Whether dlopen is supported.
13828 dlopen_support=$enable_dlopen
13830 # Whether dlopen of programs is supported.
13831 dlopen_self=$enable_dlopen_self
13833 # Whether dlopen of statically linked programs is supported.
13834 dlopen_self_static=$enable_dlopen_self_static
13836 # Compiler flag to prevent dynamic linking.
13837 link_static_flag=$lt_lt_prog_compiler_static_CXX
13839 # Compiler flag to turn off builtin functions.
13840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13842 # Compiler flag to allow reflexive dlopens.
13843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13845 # Compiler flag to generate shared objects directly from archives.
13846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13848 # Compiler flag to generate thread-safe objects.
13849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13851 # Library versioning type.
13852 version_type=$version_type
13854 # Format of library name prefix.
13855 libname_spec=$lt_libname_spec
13857 # List of archive names.  First name is the real one, the rest are links.
13858 # The last name is the one that the linker finds with -lNAME.
13859 library_names_spec=$lt_library_names_spec
13861 # The coded name of the library, if different from the real name.
13862 soname_spec=$lt_soname_spec
13864 # Commands used to build and install an old-style archive.
13865 RANLIB=$lt_RANLIB
13866 old_archive_cmds=$lt_old_archive_cmds_CXX
13867 old_postinstall_cmds=$lt_old_postinstall_cmds
13868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13870 # Create an old-style archive from a shared archive.
13871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13873 # Create a temporary old-style archive to link instead of a shared archive.
13874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13876 # Commands used to build and install a shared archive.
13877 archive_cmds=$lt_archive_cmds_CXX
13878 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13879 postinstall_cmds=$lt_postinstall_cmds
13880 postuninstall_cmds=$lt_postuninstall_cmds
13882 # Commands used to build a loadable module (assumed same as above if empty)
13883 module_cmds=$lt_module_cmds_CXX
13884 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13886 # Commands to strip libraries.
13887 old_striplib=$lt_old_striplib
13888 striplib=$lt_striplib
13890 # Dependencies to place before the objects being linked to create a
13891 # shared library.
13892 predep_objects=$lt_predep_objects_CXX
13894 # Dependencies to place after the objects being linked to create a
13895 # shared library.
13896 postdep_objects=$lt_postdep_objects_CXX
13898 # Dependencies to place before the objects being linked to create a
13899 # shared library.
13900 predeps=$lt_predeps_CXX
13902 # Dependencies to place after the objects being linked to create a
13903 # shared library.
13904 postdeps=$lt_postdeps_CXX
13906 # The library search path used internally by the compiler when linking
13907 # a shared library.
13908 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13910 # Method to check whether dependent libraries are shared objects.
13911 deplibs_check_method=$lt_deplibs_check_method
13913 # Command to use when deplibs_check_method == file_magic.
13914 file_magic_cmd=$lt_file_magic_cmd
13916 # Flag that allows shared libraries with undefined symbols to be built.
13917 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13919 # Flag that forces no undefined symbols.
13920 no_undefined_flag=$lt_no_undefined_flag_CXX
13922 # Commands used to finish a libtool library installation in a directory.
13923 finish_cmds=$lt_finish_cmds
13925 # Same as above, but a single script fragment to be evaled but not shown.
13926 finish_eval=$lt_finish_eval
13928 # Take the output of nm and produce a listing of raw symbols and C names.
13929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13931 # Transform the output of nm in a proper C declaration
13932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13934 # Transform the output of nm in a C name address pair
13935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13937 # This is the shared library runtime path variable.
13938 runpath_var=$runpath_var
13940 # This is the shared library path variable.
13941 shlibpath_var=$shlibpath_var
13943 # Is shlibpath searched before the hard-coded library search path?
13944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13946 # How to hardcode a shared library path into an executable.
13947 hardcode_action=$hardcode_action_CXX
13949 # Whether we should hardcode library paths into libraries.
13950 hardcode_into_libs=$hardcode_into_libs
13952 # Flag to hardcode \$libdir into a binary during linking.
13953 # This must work even if \$libdir does not exist.
13954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13956 # If ld is used when linking, flag to hardcode \$libdir into
13957 # a binary during linking. This must work even if \$libdir does
13958 # not exist.
13959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13961 # Whether we need a single -rpath flag with a separated argument.
13962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13965 # resulting binary.
13966 hardcode_direct=$hardcode_direct_CXX
13968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13969 # resulting binary.
13970 hardcode_minus_L=$hardcode_minus_L_CXX
13972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13973 # the resulting binary.
13974 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13976 # Set to yes if building a shared library automatically hardcodes DIR into the library
13977 # and all subsequent libraries and executables linked against it.
13978 hardcode_automatic=$hardcode_automatic_CXX
13980 # Variables whose values should be saved in libtool wrapper scripts and
13981 # restored at relink time.
13982 variables_saved_for_relink="$variables_saved_for_relink"
13984 # Whether libtool must link a program against all its dependency libraries.
13985 link_all_deplibs=$link_all_deplibs_CXX
13987 # Compile-time system search path for libraries
13988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13990 # Run-time system search path for libraries
13991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13993 # Fix the shell variable \$srcfile for the compiler.
13994 fix_srcfile_path="$fix_srcfile_path_CXX"
13996 # Set to yes if exported symbols are required.
13997 always_export_symbols=$always_export_symbols_CXX
13999 # The commands to list exported symbols.
14000 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14002 # The commands to extract the exported symbol list from a shared archive.
14003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14005 # Symbols that should not be listed in the preloaded symbols.
14006 exclude_expsyms=$lt_exclude_expsyms_CXX
14008 # Symbols that must always be exported.
14009 include_expsyms=$lt_include_expsyms_CXX
14011 # ### END LIBTOOL TAG CONFIG: $tagname
14013 __EOF__
14016 else
14017   # If there is no Makefile yet, we rely on a make rule to execute
14018   # `config.status --recheck' to rerun these tests and create the
14019   # libtool script then.
14020   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14021   if test -f "$ltmain_in"; then
14022     test -f Makefile && make "$ltmain"
14023   fi
14027 ac_ext=c
14028 ac_cpp='$CPP $CPPFLAGS'
14029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14033 CC=$lt_save_CC
14034 LDCXX=$LD
14035 LD=$lt_save_LD
14036 GCC=$lt_save_GCC
14037 with_gnu_ldcxx=$with_gnu_ld
14038 with_gnu_ld=$lt_save_with_gnu_ld
14039 lt_cv_path_LDCXX=$lt_cv_path_LD
14040 lt_cv_path_LD=$lt_save_path_LD
14041 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14042 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14044         else
14045           tagname=""
14046         fi
14047         ;;
14049       F77)
14050         if test -n "$F77" && test "X$F77" != "Xno"; then
14051           
14052 ac_ext=f
14053 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14054 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14055 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14058 archive_cmds_need_lc_F77=no
14059 allow_undefined_flag_F77=
14060 always_export_symbols_F77=no
14061 archive_expsym_cmds_F77=
14062 export_dynamic_flag_spec_F77=
14063 hardcode_direct_F77=no
14064 hardcode_libdir_flag_spec_F77=
14065 hardcode_libdir_flag_spec_ld_F77=
14066 hardcode_libdir_separator_F77=
14067 hardcode_minus_L_F77=no
14068 hardcode_automatic_F77=no
14069 module_cmds_F77=
14070 module_expsym_cmds_F77=
14071 link_all_deplibs_F77=unknown
14072 old_archive_cmds_F77=$old_archive_cmds
14073 no_undefined_flag_F77=
14074 whole_archive_flag_spec_F77=
14075 enable_shared_with_static_runtimes_F77=no
14077 # Source file extension for f77 test sources.
14078 ac_ext=f
14080 # Object file extension for compiled f77 test sources.
14081 objext=o
14082 objext_F77=$objext
14084 # Code to be used in simple compile tests
14085 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14087 # Code to be used in simple link tests
14088 lt_simple_link_test_code="      program t\n      end\n"
14090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14092 # If no C compiler was specified, use CC.
14093 LTCC=${LTCC-"$CC"}
14095 # Allow CC to be a program name with arguments.
14096 compiler=$CC
14099 # save warnings/boilerplate of simple test code
14100 ac_outfile=conftest.$ac_objext
14101 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14102 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14103 _lt_compiler_boilerplate=`cat conftest.err`
14104 $rm conftest*
14106 ac_outfile=conftest.$ac_objext
14107 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14108 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14109 _lt_linker_boilerplate=`cat conftest.err`
14110 $rm conftest*
14113 # Allow CC to be a program name with arguments.
14114 lt_save_CC="$CC"
14115 CC=${F77-"f77"}
14116 compiler=$CC
14117 compiler_F77=$CC
14118 for cc_temp in $compiler""; do
14119   case $cc_temp in
14120     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14121     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14122     \-*) ;;
14123     *) break;;
14124   esac
14125 done
14126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14129 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14130 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14131 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14132 echo "${ECHO_T}$can_build_shared" >&6; }
14134 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14135 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14136 test "$can_build_shared" = "no" && enable_shared=no
14138 # On AIX, shared libraries and static libraries use the same namespace, and
14139 # are all built from PIC.
14140 case $host_os in
14141 aix3*)
14142   test "$enable_shared" = yes && enable_static=no
14143   if test -n "$RANLIB"; then
14144     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14145     postinstall_cmds='$RANLIB $lib'
14146   fi
14147   ;;
14148 aix4* | aix5*)
14149   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14150     test "$enable_shared" = yes && enable_static=no
14151   fi
14152   ;;
14153 esac
14154 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14155 echo "${ECHO_T}$enable_shared" >&6; }
14157 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14158 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14159 # Make sure either enable_shared or enable_static is yes.
14160 test "$enable_shared" = yes || enable_static=yes
14161 { echo "$as_me:$LINENO: result: $enable_static" >&5
14162 echo "${ECHO_T}$enable_static" >&6; }
14164 test "$ld_shlibs_F77" = no && can_build_shared=no
14166 GCC_F77="$G77"
14167 LD_F77="$LD"
14169 lt_prog_compiler_wl_F77=
14170 lt_prog_compiler_pic_F77=
14171 lt_prog_compiler_static_F77=
14173 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14174 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14176   if test "$GCC" = yes; then
14177     lt_prog_compiler_wl_F77='-Wl,'
14178     lt_prog_compiler_static_F77='-static'
14180     case $host_os in
14181       aix*)
14182       # All AIX code is PIC.
14183       if test "$host_cpu" = ia64; then
14184         # AIX 5 now supports IA64 processor
14185         lt_prog_compiler_static_F77='-Bstatic'
14186       fi
14187       ;;
14189     amigaos*)
14190       # FIXME: we need at least 68020 code to build shared libraries, but
14191       # adding the `-m68020' flag to GCC prevents building anything better,
14192       # like `-m68040'.
14193       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14194       ;;
14196     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14197       # PIC is the default for these OSes.
14198       ;;
14200     mingw* | pw32* | os2*)
14201       # This hack is so that the source file can tell whether it is being
14202       # built for inclusion in a dll (and should export symbols for example).
14203       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14204       ;;
14206     darwin* | rhapsody*)
14207       # PIC is the default on this platform
14208       # Common symbols not allowed in MH_DYLIB files
14209       lt_prog_compiler_pic_F77='-fno-common'
14210       ;;
14212     msdosdjgpp*)
14213       # Just because we use GCC doesn't mean we suddenly get shared libraries
14214       # on systems that don't support them.
14215       lt_prog_compiler_can_build_shared_F77=no
14216       enable_shared=no
14217       ;;
14219     sysv4*MP*)
14220       if test -d /usr/nec; then
14221         lt_prog_compiler_pic_F77=-Kconform_pic
14222       fi
14223       ;;
14225     hpux*)
14226       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14227       # not for PA HP-UX.
14228       case $host_cpu in
14229       hppa*64*|ia64*)
14230         # +Z the default
14231         ;;
14232       *)
14233         lt_prog_compiler_pic_F77='-fPIC'
14234         ;;
14235       esac
14236       ;;
14238     *)
14239       lt_prog_compiler_pic_F77='-fPIC'
14240       ;;
14241     esac
14242   else
14243     # PORTME Check for flag to pass linker flags through the system compiler.
14244     case $host_os in
14245     aix*)
14246       lt_prog_compiler_wl_F77='-Wl,'
14247       if test "$host_cpu" = ia64; then
14248         # AIX 5 now supports IA64 processor
14249         lt_prog_compiler_static_F77='-Bstatic'
14250       else
14251         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14252       fi
14253       ;;
14254       darwin*)
14255         # PIC is the default on this platform
14256         # Common symbols not allowed in MH_DYLIB files
14257        case $cc_basename in
14258          xlc*)
14259          lt_prog_compiler_pic_F77='-qnocommon'
14260          lt_prog_compiler_wl_F77='-Wl,'
14261          ;;
14262        esac
14263        ;;
14265     mingw* | pw32* | os2*)
14266       # This hack is so that the source file can tell whether it is being
14267       # built for inclusion in a dll (and should export symbols for example).
14268       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14269       ;;
14271     hpux9* | hpux10* | hpux11*)
14272       lt_prog_compiler_wl_F77='-Wl,'
14273       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14274       # not for PA HP-UX.
14275       case $host_cpu in
14276       hppa*64*|ia64*)
14277         # +Z the default
14278         ;;
14279       *)
14280         lt_prog_compiler_pic_F77='+Z'
14281         ;;
14282       esac
14283       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14284       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14285       ;;
14287     irix5* | irix6* | nonstopux*)
14288       lt_prog_compiler_wl_F77='-Wl,'
14289       # PIC (with -KPIC) is the default.
14290       lt_prog_compiler_static_F77='-non_shared'
14291       ;;
14293     newsos6)
14294       lt_prog_compiler_pic_F77='-KPIC'
14295       lt_prog_compiler_static_F77='-Bstatic'
14296       ;;
14298     linux*)
14299       case $cc_basename in
14300       icc* | ecc*)
14301         lt_prog_compiler_wl_F77='-Wl,'
14302         lt_prog_compiler_pic_F77='-KPIC'
14303         lt_prog_compiler_static_F77='-static'
14304         ;;
14305       pgcc* | pgf77* | pgf90* | pgf95*)
14306         # Portland Group compilers (*not* the Pentium gcc compiler,
14307         # which looks to be a dead project)
14308         lt_prog_compiler_wl_F77='-Wl,'
14309         lt_prog_compiler_pic_F77='-fpic'
14310         lt_prog_compiler_static_F77='-Bstatic'
14311         ;;
14312       ccc*)
14313         lt_prog_compiler_wl_F77='-Wl,'
14314         # All Alpha code is PIC.
14315         lt_prog_compiler_static_F77='-non_shared'
14316         ;;
14317       esac
14318       ;;
14320     osf3* | osf4* | osf5*)
14321       lt_prog_compiler_wl_F77='-Wl,'
14322       # All OSF/1 code is PIC.
14323       lt_prog_compiler_static_F77='-non_shared'
14324       ;;
14326     sco3.2v5*)
14327       lt_prog_compiler_pic_F77='-Kpic'
14328       lt_prog_compiler_static_F77='-dn'
14329       ;;
14331     solaris*)
14332       lt_prog_compiler_pic_F77='-KPIC'
14333       lt_prog_compiler_static_F77='-Bstatic'
14334       case $cc_basename in
14335       f77* | f90* | f95*)
14336         lt_prog_compiler_wl_F77='-Qoption ld ';;
14337       *)
14338         lt_prog_compiler_wl_F77='-Wl,';;
14339       esac
14340       ;;
14342     sunos4*)
14343       lt_prog_compiler_wl_F77='-Qoption ld '
14344       lt_prog_compiler_pic_F77='-PIC'
14345       lt_prog_compiler_static_F77='-Bstatic'
14346       ;;
14348     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14349       lt_prog_compiler_wl_F77='-Wl,'
14350       lt_prog_compiler_pic_F77='-KPIC'
14351       lt_prog_compiler_static_F77='-Bstatic'
14352       ;;
14354     sysv4*MP*)
14355       if test -d /usr/nec ;then
14356         lt_prog_compiler_pic_F77='-Kconform_pic'
14357         lt_prog_compiler_static_F77='-Bstatic'
14358       fi
14359       ;;
14361     unicos*)
14362       lt_prog_compiler_wl_F77='-Wl,'
14363       lt_prog_compiler_can_build_shared_F77=no
14364       ;;
14366     uts4*)
14367       lt_prog_compiler_pic_F77='-pic'
14368       lt_prog_compiler_static_F77='-Bstatic'
14369       ;;
14371     *)
14372       lt_prog_compiler_can_build_shared_F77=no
14373       ;;
14374     esac
14375   fi
14377 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14378 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14381 # Check to make sure the PIC flag actually works.
14383 if test -n "$lt_prog_compiler_pic_F77"; then
14384   
14385 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14386 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14387 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14388   echo $ECHO_N "(cached) $ECHO_C" >&6
14389 else
14390   lt_prog_compiler_pic_works_F77=no
14391   ac_outfile=conftest.$ac_objext
14392    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14393    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14394    # Insert the option either (1) after the last *FLAGS variable, or
14395    # (2) before a word containing "conftest.", or (3) at the end.
14396    # Note that $ac_compile itself does not contain backslashes and begins
14397    # with a dollar sign (not a hyphen), so the echo should work correctly.
14398    # The option is referenced via a variable to avoid confusing sed.
14399    lt_compile=`echo "$ac_compile" | $SED \
14400    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14401    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14402    -e 's:$: $lt_compiler_flag:'`
14403    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14404    (eval "$lt_compile" 2>conftest.err)
14405    ac_status=$?
14406    cat conftest.err >&5
14407    echo "$as_me:__oline__: \$? = $ac_status" >&5
14408    if (exit $ac_status) && test -s "$ac_outfile"; then
14409      # The compiler can only warn and ignore the option if not recognized
14410      # So say no if there are warnings other than the usual output.
14411      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14412      $SED '/^$/d' conftest.err >conftest.er2
14413      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14414        lt_prog_compiler_pic_works_F77=yes
14415      fi
14416    fi
14417    $rm conftest*
14420 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14421 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14423 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14424     case $lt_prog_compiler_pic_F77 in
14425      "" | " "*) ;;
14426      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14427      esac
14428 else
14429     lt_prog_compiler_pic_F77=
14430      lt_prog_compiler_can_build_shared_F77=no
14434 case $host_os in
14435   # For platforms which do not support PIC, -DPIC is meaningless:
14436   *djgpp*)
14437     lt_prog_compiler_pic_F77=
14438     ;;
14439   *)
14440     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14441     ;;
14442 esac
14444 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14446 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449   lt_cv_prog_compiler_c_o_F77=no
14450    $rm -r conftest 2>/dev/null
14451    mkdir conftest
14452    cd conftest
14453    mkdir out
14454    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14456    lt_compiler_flag="-o out/conftest2.$ac_objext"
14457    # Insert the option either (1) after the last *FLAGS variable, or
14458    # (2) before a word containing "conftest.", or (3) at the end.
14459    # Note that $ac_compile itself does not contain backslashes and begins
14460    # with a dollar sign (not a hyphen), so the echo should work correctly.
14461    lt_compile=`echo "$ac_compile" | $SED \
14462    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14464    -e 's:$: $lt_compiler_flag:'`
14465    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14466    (eval "$lt_compile" 2>out/conftest.err)
14467    ac_status=$?
14468    cat out/conftest.err >&5
14469    echo "$as_me:__oline__: \$? = $ac_status" >&5
14470    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14471    then
14472      # The compiler can only warn and ignore the option if not recognized
14473      # So say no if there are warnings
14474      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14475      $SED '/^$/d' out/conftest.err >out/conftest.er2
14476      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14477        lt_cv_prog_compiler_c_o_F77=yes
14478      fi
14479    fi
14480    chmod u+w . 2>&5
14481    $rm conftest*
14482    # SGI C++ compiler will create directory out/ii_files/ for
14483    # template instantiation
14484    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14485    $rm out/* && rmdir out
14486    cd ..
14487    rmdir conftest
14488    $rm conftest*
14491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14495 hard_links="nottested"
14496 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14497   # do not overwrite the value of need_locks provided by the user
14498   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14500   hard_links=yes
14501   $rm conftest*
14502   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14503   touch conftest.a
14504   ln conftest.a conftest.b 2>&5 || hard_links=no
14505   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14506   { echo "$as_me:$LINENO: result: $hard_links" >&5
14507 echo "${ECHO_T}$hard_links" >&6; }
14508   if test "$hard_links" = no; then
14509     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14511     need_locks=warn
14512   fi
14513 else
14514   need_locks=no
14517 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14520   runpath_var=
14521   allow_undefined_flag_F77=
14522   enable_shared_with_static_runtimes_F77=no
14523   archive_cmds_F77=
14524   archive_expsym_cmds_F77=
14525   old_archive_From_new_cmds_F77=
14526   old_archive_from_expsyms_cmds_F77=
14527   export_dynamic_flag_spec_F77=
14528   whole_archive_flag_spec_F77=
14529   thread_safe_flag_spec_F77=
14530   hardcode_libdir_flag_spec_F77=
14531   hardcode_libdir_flag_spec_ld_F77=
14532   hardcode_libdir_separator_F77=
14533   hardcode_direct_F77=no
14534   hardcode_minus_L_F77=no
14535   hardcode_shlibpath_var_F77=unsupported
14536   link_all_deplibs_F77=unknown
14537   hardcode_automatic_F77=no
14538   module_cmds_F77=
14539   module_expsym_cmds_F77=
14540   always_export_symbols_F77=no
14541   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14542   # include_expsyms should be a list of space-separated symbols to be *always*
14543   # included in the symbol list
14544   include_expsyms_F77=
14545   # exclude_expsyms can be an extended regexp of symbols to exclude
14546   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14547   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14548   # as well as any symbol that contains `d'.
14549   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14550   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14551   # platforms (ab)use it in PIC code, but their linkers get confused if
14552   # the symbol is explicitly referenced.  Since portable code cannot
14553   # rely on this symbol name, it's probably fine to never include it in
14554   # preloaded symbol tables.
14555   extract_expsyms_cmds=
14556   # Just being paranoid about ensuring that cc_basename is set.
14557   for cc_temp in $compiler""; do
14558   case $cc_temp in
14559     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14560     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14561     \-*) ;;
14562     *) break;;
14563   esac
14564 done
14565 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14567   case $host_os in
14568   cygwin* | mingw* | pw32*)
14569     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14570     # When not using gcc, we currently assume that we are using
14571     # Microsoft Visual C++.
14572     if test "$GCC" != yes; then
14573       with_gnu_ld=no
14574     fi
14575     ;;
14576   openbsd*)
14577     with_gnu_ld=no
14578     ;;
14579   esac
14581   ld_shlibs_F77=yes
14582   if test "$with_gnu_ld" = yes; then
14583     # If archive_cmds runs LD, not CC, wlarc should be empty
14584     wlarc='${wl}'
14586     # Set some defaults for GNU ld with shared library support. These
14587     # are reset later if shared libraries are not supported. Putting them
14588     # here allows them to be overridden if necessary.
14589     runpath_var=LD_RUN_PATH
14590     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14591     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14592     # ancient GNU ld didn't support --whole-archive et. al.
14593     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14594         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14595       else
14596         whole_archive_flag_spec_F77=
14597     fi
14598     supports_anon_versioning=no
14599     case `$LD -v 2>/dev/null` in
14600       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14601       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14602       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14603       *\ 2.11.*) ;; # other 2.11 versions
14604       *) supports_anon_versioning=yes ;;
14605     esac
14607     # See if GNU ld supports shared libraries.
14608     case $host_os in
14609     aix3* | aix4* | aix5*)
14610       # On AIX/PPC, the GNU linker is very broken
14611       if test "$host_cpu" != ia64; then
14612         ld_shlibs_F77=no
14613         cat <<EOF 1>&2
14615 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14616 *** to be unable to reliably create shared libraries on AIX.
14617 *** Therefore, libtool is disabling shared libraries support.  If you
14618 *** really care for shared libraries, you may want to modify your PATH
14619 *** so that a non-GNU linker is found, and then restart.
14622       fi
14623       ;;
14625     amigaos*)
14626       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)'
14627       hardcode_libdir_flag_spec_F77='-L$libdir'
14628       hardcode_minus_L_F77=yes
14630       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14631       # that the semantics of dynamic libraries on AmigaOS, at least up
14632       # to version 4, is to share data among multiple programs linked
14633       # with the same dynamic library.  Since this doesn't match the
14634       # behavior of shared libraries on other platforms, we can't use
14635       # them.
14636       ld_shlibs_F77=no
14637       ;;
14639     beos*)
14640       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14641         allow_undefined_flag_F77=unsupported
14642         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14643         # support --undefined.  This deserves some investigation.  FIXME
14644         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14645       else
14646         ld_shlibs_F77=no
14647       fi
14648       ;;
14650     cygwin* | mingw* | pw32*)
14651       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14652       # as there is no search path for DLLs.
14653       hardcode_libdir_flag_spec_F77='-L$libdir'
14654       allow_undefined_flag_F77=unsupported
14655       always_export_symbols_F77=no
14656       enable_shared_with_static_runtimes_F77=yes
14657       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14659       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14660         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14661         # If the export-symbols file already is a .def file (1st line
14662         # is EXPORTS), use it as is; otherwise, prepend...
14663         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14664           cp $export_symbols $output_objdir/$soname.def;
14665         else
14666           echo EXPORTS > $output_objdir/$soname.def;
14667           cat $export_symbols >> $output_objdir/$soname.def;
14668         fi~
14669         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14670       else
14671         ld_shlibs_F77=no
14672       fi
14673       ;;
14675     linux*)
14676       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14677         tmp_addflag=
14678         case $cc_basename,$host_cpu in
14679         pgcc*)                          # Portland Group C compiler
14680           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'
14681           tmp_addflag=' $pic_flag'
14682           ;;
14683         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14684           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'
14685           tmp_addflag=' $pic_flag -Mnomain' ;;
14686         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14687           tmp_addflag=' -i_dynamic' ;;
14688         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14689           tmp_addflag=' -i_dynamic -nofor_main' ;;
14690         ifc* | ifort*)                  # Intel Fortran compiler
14691           tmp_addflag=' -nofor_main' ;;
14692         esac
14693         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695         if test $supports_anon_versioning = yes; then
14696           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14697   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14698   $echo "local: *; };" >> $output_objdir/$libname.ver~
14699           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14700         fi
14701         link_all_deplibs_F77=no
14702       else
14703         ld_shlibs_F77=no
14704       fi
14705       ;;
14707     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14708       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14709         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14710         wlarc=
14711       else
14712         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14713         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14714       fi
14715       ;;
14717     solaris* | sysv5*)
14718       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14719         ld_shlibs_F77=no
14720         cat <<EOF 1>&2
14722 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14723 *** create shared libraries on Solaris systems.  Therefore, libtool
14724 *** is disabling shared libraries support.  We urge you to upgrade GNU
14725 *** binutils to release 2.9.1 or newer.  Another option is to modify
14726 *** your PATH or compiler configuration so that the native linker is
14727 *** used, and then restart.
14730       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14731         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14732         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14733       else
14734         ld_shlibs_F77=no
14735       fi
14736       ;;
14738     sunos4*)
14739       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14740       wlarc=
14741       hardcode_direct_F77=yes
14742       hardcode_shlibpath_var_F77=no
14743       ;;
14745     *)
14746       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14747         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14748         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14749       else
14750         ld_shlibs_F77=no
14751       fi
14752       ;;
14753     esac
14755     if test "$ld_shlibs_F77" = no; then
14756       runpath_var=
14757       hardcode_libdir_flag_spec_F77=
14758       export_dynamic_flag_spec_F77=
14759       whole_archive_flag_spec_F77=
14760     fi
14761   else
14762     # PORTME fill in a description of your system's linker (not GNU ld)
14763     case $host_os in
14764     aix3*)
14765       allow_undefined_flag_F77=unsupported
14766       always_export_symbols_F77=yes
14767       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'
14768       # Note: this linker hardcodes the directories in LIBPATH if there
14769       # are no directories specified by -L.
14770       hardcode_minus_L_F77=yes
14771       if test "$GCC" = yes && test -z "$link_static_flag"; then
14772         # Neither direct hardcoding nor static linking is supported with a
14773         # broken collect2.
14774         hardcode_direct_F77=unsupported
14775       fi
14776       ;;
14778     aix4* | aix5*)
14779       if test "$host_cpu" = ia64; then
14780         # On IA64, the linker does run time linking by default, so we don't
14781         # have to do anything special.
14782         aix_use_runtimelinking=no
14783         exp_sym_flag='-Bexport'
14784         no_entry_flag=""
14785       else
14786         # If we're using GNU nm, then we don't want the "-C" option.
14787         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14788         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14789           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'
14790         else
14791           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'
14792         fi
14793         aix_use_runtimelinking=no
14795         # Test if we are trying to use run time linking or normal
14796         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14797         # need to do runtime linking.
14798         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14799           for ld_flag in $LDFLAGS; do
14800           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14801             aix_use_runtimelinking=yes
14802             break
14803           fi
14804           done
14805         esac
14807         exp_sym_flag='-bexport'
14808         no_entry_flag='-bnoentry'
14809       fi
14811       # When large executables or shared objects are built, AIX ld can
14812       # have problems creating the table of contents.  If linking a library
14813       # or program results in "error TOC overflow" add -mminimal-toc to
14814       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14815       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14817       archive_cmds_F77=''
14818       hardcode_direct_F77=yes
14819       hardcode_libdir_separator_F77=':'
14820       link_all_deplibs_F77=yes
14822       if test "$GCC" = yes; then
14823         case $host_os in aix4.[012]|aix4.[012].*)
14824         # We only want to do this on AIX 4.2 and lower, the check
14825         # below for broken collect2 doesn't work under 4.3+
14826           collect2name=`${CC} -print-prog-name=collect2`
14827           if test -f "$collect2name" && \
14828            strings "$collect2name" | grep resolve_lib_name >/dev/null
14829           then
14830           # We have reworked collect2
14831           hardcode_direct_F77=yes
14832           else
14833           # We have old collect2
14834           hardcode_direct_F77=unsupported
14835           # It fails to find uninstalled libraries when the uninstalled
14836           # path is not listed in the libpath.  Setting hardcode_minus_L
14837           # to unsupported forces relinking
14838           hardcode_minus_L_F77=yes
14839           hardcode_libdir_flag_spec_F77='-L$libdir'
14840           hardcode_libdir_separator_F77=
14841           fi
14842         esac
14843         shared_flag='-shared'
14844         if test "$aix_use_runtimelinking" = yes; then
14845           shared_flag="$shared_flag "'${wl}-G'
14846         fi
14847       else
14848         # not using gcc
14849         if test "$host_cpu" = ia64; then
14850         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14851         # chokes on -Wl,-G. The following line is correct:
14852           shared_flag='-G'
14853         else
14854         if test "$aix_use_runtimelinking" = yes; then
14855             shared_flag='${wl}-G'
14856           else
14857             shared_flag='${wl}-bM:SRE'
14858         fi
14859         fi
14860       fi
14862       # It seems that -bexpall does not export symbols beginning with
14863       # underscore (_), so it is better to generate a list of symbols to export.
14864       always_export_symbols_F77=yes
14865       if test "$aix_use_runtimelinking" = yes; then
14866         # Warning - without using the other runtime loading flags (-brtl),
14867         # -berok will link without error, but may produce a broken library.
14868         allow_undefined_flag_F77='-berok'
14869        # Determine the default libpath from the value encoded in an empty executable.
14870        cat >conftest.$ac_ext <<_ACEOF
14871       program main
14873       end
14874 _ACEOF
14875 rm -f conftest.$ac_objext conftest$ac_exeext
14876 if { (ac_try="$ac_link"
14877 case "(($ac_try" in
14878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879   *) ac_try_echo=$ac_try;;
14880 esac
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882   (eval "$ac_link") 2>conftest.er1
14883   ac_status=$?
14884   grep -v '^ *+' conftest.er1 >conftest.err
14885   rm -f conftest.er1
14886   cat conftest.err >&5
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); } && {
14889          test -z "$ac_f77_werror_flag" ||
14890          test ! -s conftest.err
14891        } && test -s conftest$ac_exeext &&
14892        $as_test_x conftest$ac_exeext; then
14893   
14894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14896 # Check for a 64-bit object if we didn't find anything.
14897 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14898 }'`; fi
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903         
14906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14907       conftest$ac_exeext conftest.$ac_ext
14908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14910        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14911         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14912        else
14913         if test "$host_cpu" = ia64; then
14914           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14915           allow_undefined_flag_F77="-z nodefs"
14916           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14917         else
14918          # Determine the default libpath from the value encoded in an empty executable.
14919          cat >conftest.$ac_ext <<_ACEOF
14920       program main
14922       end
14923 _ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (ac_try="$ac_link"
14926 case "(($ac_try" in
14927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928   *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931   (eval "$ac_link") 2>conftest.er1
14932   ac_status=$?
14933   grep -v '^ *+' conftest.er1 >conftest.err
14934   rm -f conftest.er1
14935   cat conftest.err >&5
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); } && {
14938          test -z "$ac_f77_werror_flag" ||
14939          test ! -s conftest.err
14940        } && test -s conftest$ac_exeext &&
14941        $as_test_x conftest$ac_exeext; then
14942   
14943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14945 # Check for a 64-bit object if we didn't find anything.
14946 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14947 }'`; fi
14948 else
14949   echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14952         
14955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14956       conftest$ac_exeext conftest.$ac_ext
14957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14959          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14960           # Warning - without using the other run time loading flags,
14961           # -berok will link without error, but may produce a broken library.
14962           no_undefined_flag_F77=' ${wl}-bernotok'
14963           allow_undefined_flag_F77=' ${wl}-berok'
14964           # -bexpall does not export symbols beginning with underscore (_)
14965           always_export_symbols_F77=yes
14966           # Exported symbols can be pulled into shared objects from archives
14967           whole_archive_flag_spec_F77=' '
14968           archive_cmds_need_lc_F77=yes
14969           # This is similar to how AIX traditionally builds its shared libraries.
14970           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14971         fi
14972       fi
14973       ;;
14975     amigaos*)
14976       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)'
14977       hardcode_libdir_flag_spec_F77='-L$libdir'
14978       hardcode_minus_L_F77=yes
14979       # see comment about different semantics on the GNU ld section
14980       ld_shlibs_F77=no
14981       ;;
14983     bsdi[45]*)
14984       export_dynamic_flag_spec_F77=-rdynamic
14985       ;;
14987     cygwin* | mingw* | pw32*)
14988       # When not using gcc, we currently assume that we are using
14989       # Microsoft Visual C++.
14990       # hardcode_libdir_flag_spec is actually meaningless, as there is
14991       # no search path for DLLs.
14992       hardcode_libdir_flag_spec_F77=' '
14993       allow_undefined_flag_F77=unsupported
14994       # Tell ltmain to make .lib files, not .a files.
14995       libext=lib
14996       # Tell ltmain to make .dll files, not .so files.
14997       shrext_cmds=".dll"
14998       # FIXME: Setting linknames here is a bad hack.
14999       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15000       # The linker will automatically build a .lib file if we build a DLL.
15001       old_archive_From_new_cmds_F77='true'
15002       # FIXME: Should let the user specify the lib program.
15003       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15004       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15005       enable_shared_with_static_runtimes_F77=yes
15006       ;;
15008     darwin* | rhapsody*)
15009       case $host_os in
15010         rhapsody* | darwin1.[012])
15011          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15012          ;;
15013        *) # Darwin 1.3 on
15014          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15015            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15016          else
15017            case ${MACOSX_DEPLOYMENT_TARGET} in
15018              10.[012])
15019                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15020                ;;
15021              10.*)
15022                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15023                ;;
15024            esac
15025          fi
15026          ;;
15027       esac
15028       archive_cmds_need_lc_F77=no
15029       hardcode_direct_F77=no
15030       hardcode_automatic_F77=yes
15031       hardcode_shlibpath_var_F77=unsupported
15032       whole_archive_flag_spec_F77=''
15033       link_all_deplibs_F77=yes
15034     if test "$GCC" = yes ; then
15035         output_verbose_link_cmd='echo'
15036         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15037       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15038       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15039       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}'
15040       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}'
15041     else
15042       case $cc_basename in
15043         xlc*)
15044          output_verbose_link_cmd='echo'
15045          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15046          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15047           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15048          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15049           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}'
15050           ;;
15051        *)
15052          ld_shlibs_F77=no
15053           ;;
15054       esac
15055     fi
15056       ;;
15058     dgux*)
15059       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15060       hardcode_libdir_flag_spec_F77='-L$libdir'
15061       hardcode_shlibpath_var_F77=no
15062       ;;
15064     freebsd1*)
15065       ld_shlibs_F77=no
15066       ;;
15068     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15069     # support.  Future versions do this automatically, but an explicit c++rt0.o
15070     # does not break anything, and helps significantly (at the cost of a little
15071     # extra space).
15072     freebsd2.2*)
15073       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15074       hardcode_libdir_flag_spec_F77='-R$libdir'
15075       hardcode_direct_F77=yes
15076       hardcode_shlibpath_var_F77=no
15077       ;;
15079     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15080     freebsd2*)
15081       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15082       hardcode_direct_F77=yes
15083       hardcode_minus_L_F77=yes
15084       hardcode_shlibpath_var_F77=no
15085       ;;
15087     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15088     freebsd* | kfreebsd*-gnu | dragonfly*)
15089       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15090       hardcode_libdir_flag_spec_F77='-R$libdir'
15091       hardcode_direct_F77=yes
15092       hardcode_shlibpath_var_F77=no
15093       ;;
15095     hpux9*)
15096       if test "$GCC" = yes; then
15097         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'
15098       else
15099         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'
15100       fi
15101       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15102       hardcode_libdir_separator_F77=:
15103       hardcode_direct_F77=yes
15105       # hardcode_minus_L: Not really in the search PATH,
15106       # but as the default location of the library.
15107       hardcode_minus_L_F77=yes
15108       export_dynamic_flag_spec_F77='${wl}-E'
15109       ;;
15111     hpux10* | hpux11*)
15112       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15113         case $host_cpu in
15114         hppa*64*|ia64*)
15115           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15116           ;;
15117         *)
15118           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15119           ;;
15120         esac
15121       else
15122         case $host_cpu in
15123         hppa*64*|ia64*)
15124           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15125           ;;
15126         *)
15127           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15128           ;;
15129         esac
15130       fi
15131       if test "$with_gnu_ld" = no; then
15132         case $host_cpu in
15133         hppa*64*)
15134           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15135           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15136           hardcode_libdir_separator_F77=:
15137           hardcode_direct_F77=no
15138           hardcode_shlibpath_var_F77=no
15139           ;;
15140         ia64*)
15141           hardcode_libdir_flag_spec_F77='-L$libdir'
15142           hardcode_direct_F77=no
15143           hardcode_shlibpath_var_F77=no
15145           # hardcode_minus_L: Not really in the search PATH,
15146           # but as the default location of the library.
15147           hardcode_minus_L_F77=yes
15148           ;;
15149         *)
15150           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151           hardcode_libdir_separator_F77=:
15152           hardcode_direct_F77=yes
15153           export_dynamic_flag_spec_F77='${wl}-E'
15155           # hardcode_minus_L: Not really in the search PATH,
15156           # but as the default location of the library.
15157           hardcode_minus_L_F77=yes
15158           ;;
15159         esac
15160       fi
15161       ;;
15163     irix5* | irix6* | nonstopux*)
15164       if test "$GCC" = yes; then
15165         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'
15166       else
15167         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'
15168         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15169       fi
15170       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15171       hardcode_libdir_separator_F77=:
15172       link_all_deplibs_F77=yes
15173       ;;
15175     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15176       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15177         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15178       else
15179         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15180       fi
15181       hardcode_libdir_flag_spec_F77='-R$libdir'
15182       hardcode_direct_F77=yes
15183       hardcode_shlibpath_var_F77=no
15184       ;;
15186     newsos6)
15187       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15188       hardcode_direct_F77=yes
15189       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15190       hardcode_libdir_separator_F77=:
15191       hardcode_shlibpath_var_F77=no
15192       ;;
15194     openbsd*)
15195       hardcode_direct_F77=yes
15196       hardcode_shlibpath_var_F77=no
15197       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15198         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15199         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15200         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15201         export_dynamic_flag_spec_F77='${wl}-E'
15202       else
15203        case $host_os in
15204          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15205            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15206            hardcode_libdir_flag_spec_F77='-R$libdir'
15207            ;;
15208          *)
15209            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15210            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15211            ;;
15212        esac
15213       fi
15214       ;;
15216     os2*)
15217       hardcode_libdir_flag_spec_F77='-L$libdir'
15218       hardcode_minus_L_F77=yes
15219       allow_undefined_flag_F77=unsupported
15220       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'
15221       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15222       ;;
15224     osf3*)
15225       if test "$GCC" = yes; then
15226         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15227         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'
15228       else
15229         allow_undefined_flag_F77=' -expect_unresolved \*'
15230         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'
15231       fi
15232       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15233       hardcode_libdir_separator_F77=:
15234       ;;
15236     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15237       if test "$GCC" = yes; then
15238         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15239         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'
15240         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15241       else
15242         allow_undefined_flag_F77=' -expect_unresolved \*'
15243         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'
15244         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~
15245         $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'
15247         # Both c and cxx compiler support -rpath directly
15248         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15249       fi
15250       hardcode_libdir_separator_F77=:
15251       ;;
15253     sco3.2v5*)
15254       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15255       hardcode_shlibpath_var_F77=no
15256       export_dynamic_flag_spec_F77='${wl}-Bexport'
15257       runpath_var=LD_RUN_PATH
15258       hardcode_runpath_var=yes
15259       ;;
15261     solaris*)
15262       no_undefined_flag_F77=' -z text'
15263       if test "$GCC" = yes; then
15264         wlarc='${wl}'
15265         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15266         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15267           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15268       else
15269         wlarc=''
15270         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15271         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15272         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15273       fi
15274       hardcode_libdir_flag_spec_F77='-R$libdir'
15275       hardcode_shlibpath_var_F77=no
15276       case $host_os in
15277       solaris2.[0-5] | solaris2.[0-5].*) ;;
15278       *)
15279         # The compiler driver will combine linker options so we
15280         # cannot just pass the convience library names through
15281         # without $wl, iff we do not link with $LD.
15282         # Luckily, gcc supports the same syntax we need for Sun Studio.
15283         # Supported since Solaris 2.6 (maybe 2.5.1?)
15284         case $wlarc in
15285         '')
15286           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15287         *)
15288           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15289         esac ;;
15290       esac
15291       link_all_deplibs_F77=yes
15292       ;;
15294     sunos4*)
15295       if test "x$host_vendor" = xsequent; then
15296         # Use $CC to link under sequent, because it throws in some extra .o
15297         # files that make .init and .fini sections work.
15298         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15299       else
15300         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15301       fi
15302       hardcode_libdir_flag_spec_F77='-L$libdir'
15303       hardcode_direct_F77=yes
15304       hardcode_minus_L_F77=yes
15305       hardcode_shlibpath_var_F77=no
15306       ;;
15308     sysv4)
15309       case $host_vendor in
15310         sni)
15311           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15312           hardcode_direct_F77=yes # is this really true???
15313         ;;
15314         siemens)
15315           ## LD is ld it makes a PLAMLIB
15316           ## CC just makes a GrossModule.
15317           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15318           reload_cmds_F77='$CC -r -o $output$reload_objs'
15319           hardcode_direct_F77=no
15320         ;;
15321         motorola)
15322           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15323           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15324         ;;
15325       esac
15326       runpath_var='LD_RUN_PATH'
15327       hardcode_shlibpath_var_F77=no
15328       ;;
15330     sysv4.3*)
15331       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15332       hardcode_shlibpath_var_F77=no
15333       export_dynamic_flag_spec_F77='-Bexport'
15334       ;;
15336     sysv4*MP*)
15337       if test -d /usr/nec; then
15338         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15339         hardcode_shlibpath_var_F77=no
15340         runpath_var=LD_RUN_PATH
15341         hardcode_runpath_var=yes
15342         ld_shlibs_F77=yes
15343       fi
15344       ;;
15346     sysv4.2uw2*)
15347       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15348       hardcode_direct_F77=yes
15349       hardcode_minus_L_F77=no
15350       hardcode_shlibpath_var_F77=no
15351       hardcode_runpath_var=yes
15352       runpath_var=LD_RUN_PATH
15353       ;;
15355    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15356       no_undefined_flag_F77='${wl}-z ${wl}text'
15357       if test "$GCC" = yes; then
15358         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15359       else
15360         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15361       fi
15362       runpath_var='LD_RUN_PATH'
15363       hardcode_shlibpath_var_F77=no
15364       ;;
15366     sysv5*)
15367       no_undefined_flag_F77=' -z text'
15368       # $CC -shared without GNU ld will not create a library from C++
15369       # object files and a static libstdc++, better avoid it by now
15370       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15372                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15373       hardcode_libdir_flag_spec_F77=
15374       hardcode_shlibpath_var_F77=no
15375       runpath_var='LD_RUN_PATH'
15376       ;;
15378     uts4*)
15379       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15380       hardcode_libdir_flag_spec_F77='-L$libdir'
15381       hardcode_shlibpath_var_F77=no
15382       ;;
15384     *)
15385       ld_shlibs_F77=no
15386       ;;
15387     esac
15388   fi
15390 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15391 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15392 test "$ld_shlibs_F77" = no && can_build_shared=no
15394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15395 if test "$GCC" = yes; then
15396   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15400 # Do we need to explicitly link libc?
15402 case "x$archive_cmds_need_lc_F77" in
15403 x|xyes)
15404   # Assume -lc should be added
15405   archive_cmds_need_lc_F77=yes
15407   if test "$enable_shared" = yes && test "$GCC" = yes; then
15408     case $archive_cmds_F77 in
15409     *'~'*)
15410       # FIXME: we may have to deal with multi-command sequences.
15411       ;;
15412     '$CC '*)
15413       # Test whether the compiler implicitly links with -lc since on some
15414       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15415       # to ld, don't add -lc before -lgcc.
15416       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15417 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15418       $rm conftest*
15419       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15421       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422   (eval $ac_compile) 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } 2>conftest.err; then
15426         soname=conftest
15427         lib=conftest
15428         libobjs=conftest.$ac_objext
15429         deplibs=
15430         wl=$lt_prog_compiler_wl_F77
15431         compiler_flags=-v
15432         linker_flags=-v
15433         verstring=
15434         output_objdir=.
15435         libname=conftest
15436         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15437         allow_undefined_flag_F77=
15438         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15439   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }
15443         then
15444           archive_cmds_need_lc_F77=no
15445         else
15446           archive_cmds_need_lc_F77=yes
15447         fi
15448         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15449       else
15450         cat conftest.err 1>&5
15451       fi
15452       $rm conftest*
15453       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15454 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15455       ;;
15456     esac
15457   fi
15458   ;;
15459 esac
15461 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15462 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15463 library_names_spec=
15464 libname_spec='lib$name'
15465 soname_spec=
15466 shrext_cmds=".so"
15467 postinstall_cmds=
15468 postuninstall_cmds=
15469 finish_cmds=
15470 finish_eval=
15471 shlibpath_var=
15472 shlibpath_overrides_runpath=unknown
15473 version_type=none
15474 dynamic_linker="$host_os ld.so"
15475 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15476 if test "$GCC" = yes; then
15477   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15478   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15479     # if the path contains ";" then we assume it to be the separator
15480     # otherwise default to the standard path separator (i.e. ":") - it is
15481     # assumed that no part of a normal pathname contains ";" but that should
15482     # okay in the real world where ";" in dirpaths is itself problematic.
15483     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15484   else
15485     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15486   fi
15487 else
15488   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15490 need_lib_prefix=unknown
15491 hardcode_into_libs=no
15493 # when you set need_version to no, make sure it does not cause -set_version
15494 # flags to be left without arguments
15495 need_version=unknown
15497 case $host_os in
15498 aix3*)
15499   version_type=linux
15500   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15501   shlibpath_var=LIBPATH
15503   # AIX 3 has no versioning support, so we append a major version to the name.
15504   soname_spec='${libname}${release}${shared_ext}$major'
15505   ;;
15507 aix4* | aix5*)
15508   version_type=linux
15509   need_lib_prefix=no
15510   need_version=no
15511   hardcode_into_libs=yes
15512   if test "$host_cpu" = ia64; then
15513     # AIX 5 supports IA64
15514     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15515     shlibpath_var=LD_LIBRARY_PATH
15516   else
15517     # With GCC up to 2.95.x, collect2 would create an import file
15518     # for dependence libraries.  The import file would start with
15519     # the line `#! .'.  This would cause the generated library to
15520     # depend on `.', always an invalid library.  This was fixed in
15521     # development snapshots of GCC prior to 3.0.
15522     case $host_os in
15523       aix4 | aix4.[01] | aix4.[01].*)
15524       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15525            echo ' yes '
15526            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15527         :
15528       else
15529         can_build_shared=no
15530       fi
15531       ;;
15532     esac
15533     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15534     # soname into executable. Probably we can add versioning support to
15535     # collect2, so additional links can be useful in future.
15536     if test "$aix_use_runtimelinking" = yes; then
15537       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15538       # instead of lib<name>.a to let people know that these are not
15539       # typical AIX shared libraries.
15540       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541     else
15542       # We preserve .a as extension for shared libraries through AIX4.2
15543       # and later when we are not doing run time linking.
15544       library_names_spec='${libname}${release}.a $libname.a'
15545       soname_spec='${libname}${release}${shared_ext}$major'
15546     fi
15547     shlibpath_var=LIBPATH
15548   fi
15549   ;;
15551 amigaos*)
15552   library_names_spec='$libname.ixlibrary $libname.a'
15553   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15554   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'
15555   ;;
15557 beos*)
15558   library_names_spec='${libname}${shared_ext}'
15559   dynamic_linker="$host_os ld.so"
15560   shlibpath_var=LIBRARY_PATH
15561   ;;
15563 bsdi[45]*)
15564   version_type=linux
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15569   shlibpath_var=LD_LIBRARY_PATH
15570   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15571   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15572   # the default ld.so.conf also contains /usr/contrib/lib and
15573   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15574   # libtool to hard-code these into programs
15575   ;;
15577 cygwin* | mingw* | pw32*)
15578   version_type=windows
15579   shrext_cmds=".dll"
15580   need_version=no
15581   need_lib_prefix=no
15583   case $GCC,$host_os in
15584   yes,cygwin* | yes,mingw* | yes,pw32*)
15585     library_names_spec='$libname.dll.a'
15586     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15587     postinstall_cmds='base_file=`basename \${file}`~
15588       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15589       dldir=$destdir/`dirname \$dlpath`~
15590       test -d \$dldir || mkdir -p \$dldir~
15591       $install_prog $dir/$dlname \$dldir/$dlname~
15592       chmod a+x \$dldir/$dlname'
15593     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15594       dlpath=$dir/\$dldll~
15595        $rm \$dlpath'
15596     shlibpath_overrides_runpath=yes
15598     case $host_os in
15599     cygwin*)
15600       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15601       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15602       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15603       ;;
15604     mingw*)
15605       # MinGW DLLs use traditional 'lib' prefix
15606       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15607       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15608       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15609         # It is most probably a Windows format PATH printed by
15610         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15611         # path with ; separators, and with drive letters. We can handle the
15612         # drive letters (cygwin fileutils understands them), so leave them,
15613         # especially as we might pass files found there to a mingw objdump,
15614         # which wouldn't understand a cygwinified path. Ahh.
15615         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15616       else
15617         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15618       fi
15619       ;;
15620     pw32*)
15621       # pw32 DLLs use 'pw' prefix rather than 'lib'
15622       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15623       ;;
15624     esac
15625     ;;
15627   *)
15628     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15629     ;;
15630   esac
15631   dynamic_linker='Win32 ld.exe'
15632   # FIXME: first we should search . and the directory the executable is in
15633   shlibpath_var=PATH
15634   ;;
15636 darwin* | rhapsody*)
15637   dynamic_linker="$host_os dyld"
15638   version_type=darwin
15639   need_lib_prefix=no
15640   need_version=no
15641   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15642   soname_spec='${libname}${release}${major}$shared_ext'
15643   shlibpath_overrides_runpath=yes
15644   shlibpath_var=DYLD_LIBRARY_PATH
15645   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15646   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15647   if test "$GCC" = yes; then
15648     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15649   else
15650     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15651   fi
15652   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15653   ;;
15655 dgux*)
15656   version_type=linux
15657   need_lib_prefix=no
15658   need_version=no
15659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15660   soname_spec='${libname}${release}${shared_ext}$major'
15661   shlibpath_var=LD_LIBRARY_PATH
15662   ;;
15664 freebsd1*)
15665   dynamic_linker=no
15666   ;;
15668 kfreebsd*-gnu)
15669   version_type=linux
15670   need_lib_prefix=no
15671   need_version=no
15672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15673   soname_spec='${libname}${release}${shared_ext}$major'
15674   shlibpath_var=LD_LIBRARY_PATH
15675   shlibpath_overrides_runpath=no
15676   hardcode_into_libs=yes
15677   dynamic_linker='GNU ld.so'
15678   ;;
15680 freebsd* | dragonfly*)
15681   # DragonFly does not have aout.  When/if they implement a new
15682   # versioning mechanism, adjust this.
15683   if test -x /usr/bin/objformat; then
15684     objformat=`/usr/bin/objformat`
15685   else
15686     case $host_os in
15687     freebsd[123]*) objformat=aout ;;
15688     *) objformat=elf ;;
15689     esac
15690   fi
15691   version_type=freebsd-$objformat
15692   case $version_type in
15693     freebsd-elf*)
15694       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15695       need_version=no
15696       need_lib_prefix=no
15697       ;;
15698     freebsd-*)
15699       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15700       need_version=yes
15701       ;;
15702   esac
15703   shlibpath_var=LD_LIBRARY_PATH
15704   case $host_os in
15705   freebsd2*)
15706     shlibpath_overrides_runpath=yes
15707     ;;
15708   freebsd3.[01]* | freebsdelf3.[01]*)
15709     shlibpath_overrides_runpath=yes
15710     hardcode_into_libs=yes
15711     ;;
15712   *) # from 3.2 on
15713     shlibpath_overrides_runpath=no
15714     hardcode_into_libs=yes
15715     ;;
15716   esac
15717   ;;
15719 gnu*)
15720   version_type=linux
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15724   soname_spec='${libname}${release}${shared_ext}$major'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   hardcode_into_libs=yes
15727   ;;
15729 hpux9* | hpux10* | hpux11*)
15730   # Give a soname corresponding to the major version so that dld.sl refuses to
15731   # link against other versions.
15732   version_type=sunos
15733   need_lib_prefix=no
15734   need_version=no
15735   case $host_cpu in
15736   ia64*)
15737     shrext_cmds='.so'
15738     hardcode_into_libs=yes
15739     dynamic_linker="$host_os dld.so"
15740     shlibpath_var=LD_LIBRARY_PATH
15741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
15745       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15746     else
15747       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15748     fi
15749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15750     ;;
15751    hppa*64*)
15752      shrext_cmds='.sl'
15753      hardcode_into_libs=yes
15754      dynamic_linker="$host_os dld.sl"
15755      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15756      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758      soname_spec='${libname}${release}${shared_ext}$major'
15759      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15760      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15761      ;;
15762    *)
15763     shrext_cmds='.sl'
15764     dynamic_linker="$host_os dld.sl"
15765     shlibpath_var=SHLIB_PATH
15766     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768     soname_spec='${libname}${release}${shared_ext}$major'
15769     ;;
15770   esac
15771   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15772   postinstall_cmds='chmod 555 $lib'
15773   ;;
15775 irix5* | irix6* | nonstopux*)
15776   case $host_os in
15777     nonstopux*) version_type=nonstopux ;;
15778     *)
15779         if test "$lt_cv_prog_gnu_ld" = yes; then
15780                 version_type=linux
15781         else
15782                 version_type=irix
15783         fi ;;
15784   esac
15785   need_lib_prefix=no
15786   need_version=no
15787   soname_spec='${libname}${release}${shared_ext}$major'
15788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15789   case $host_os in
15790   irix5* | nonstopux*)
15791     libsuff= shlibsuff=
15792     ;;
15793   *)
15794     case $LD in # libtool.m4 will add one of these switches to LD
15795     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15796       libsuff= shlibsuff= libmagic=32-bit;;
15797     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15798       libsuff=32 shlibsuff=N32 libmagic=N32;;
15799     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15800       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15801     *) libsuff= shlibsuff= libmagic=never-match;;
15802     esac
15803     ;;
15804   esac
15805   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15806   shlibpath_overrides_runpath=no
15807   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15808   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15809   hardcode_into_libs=yes
15810   ;;
15812 # No shared lib support for Linux oldld, aout, or coff.
15813 linux*oldld* | linux*aout* | linux*coff*)
15814   dynamic_linker=no
15815   ;;
15817 # This must be Linux ELF.
15818 linux*)
15819   version_type=linux
15820   need_lib_prefix=no
15821   need_version=no
15822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15823   soname_spec='${libname}${release}${shared_ext}$major'
15824   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15825   shlibpath_var=LD_LIBRARY_PATH
15826   shlibpath_overrides_runpath=no
15827   # This implies no fast_install, which is unacceptable.
15828   # Some rework will be needed to allow for fast_install
15829   # before this can be enabled.
15830   hardcode_into_libs=yes
15832   # Append ld.so.conf contents to the search path
15833   if test -f /etc/ld.so.conf; then
15834     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15835     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15836   fi
15838   # We used to test for /lib/ld.so.1 and disable shared libraries on
15839   # powerpc, because MkLinux only supported shared libraries with the
15840   # GNU dynamic linker.  Since this was broken with cross compilers,
15841   # most powerpc-linux boxes support dynamic linking these days and
15842   # people can always --disable-shared, the test was removed, and we
15843   # assume the GNU/Linux dynamic linker is in use.
15844   dynamic_linker='GNU/Linux ld.so'
15845   ;;
15847 netbsdelf*-gnu)
15848   version_type=linux
15849   need_lib_prefix=no
15850   need_version=no
15851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15852   soname_spec='${libname}${release}${shared_ext}$major'
15853   shlibpath_var=LD_LIBRARY_PATH
15854   shlibpath_overrides_runpath=no
15855   hardcode_into_libs=yes
15856   dynamic_linker='NetBSD ld.elf_so'
15857   ;;
15859 knetbsd*-gnu)
15860   version_type=linux
15861   need_lib_prefix=no
15862   need_version=no
15863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15864   soname_spec='${libname}${release}${shared_ext}$major'
15865   shlibpath_var=LD_LIBRARY_PATH
15866   shlibpath_overrides_runpath=no
15867   hardcode_into_libs=yes
15868   dynamic_linker='GNU ld.so'
15869   ;;
15871 netbsd*)
15872   version_type=sunos
15873   need_lib_prefix=no
15874   need_version=no
15875   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15877     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15878     dynamic_linker='NetBSD (a.out) ld.so'
15879   else
15880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15881     soname_spec='${libname}${release}${shared_ext}$major'
15882     dynamic_linker='NetBSD ld.elf_so'
15883   fi
15884   shlibpath_var=LD_LIBRARY_PATH
15885   shlibpath_overrides_runpath=yes
15886   hardcode_into_libs=yes
15887   ;;
15889 newsos6)
15890   version_type=linux
15891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892   shlibpath_var=LD_LIBRARY_PATH
15893   shlibpath_overrides_runpath=yes
15894   ;;
15896 nto-qnx*)
15897   version_type=linux
15898   need_lib_prefix=no
15899   need_version=no
15900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901   soname_spec='${libname}${release}${shared_ext}$major'
15902   shlibpath_var=LD_LIBRARY_PATH
15903   shlibpath_overrides_runpath=yes
15904   ;;
15906 openbsd*)
15907   version_type=sunos
15908   need_lib_prefix=no
15909   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15910   case $host_os in
15911     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15912     *)                         need_version=no  ;;
15913   esac
15914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15916   shlibpath_var=LD_LIBRARY_PATH
15917   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15918     case $host_os in
15919       openbsd2.[89] | openbsd2.[89].*)
15920         shlibpath_overrides_runpath=no
15921         ;;
15922       *)
15923         shlibpath_overrides_runpath=yes
15924         ;;
15925       esac
15926   else
15927     shlibpath_overrides_runpath=yes
15928   fi
15929   ;;
15931 os2*)
15932   libname_spec='$name'
15933   shrext_cmds=".dll"
15934   need_lib_prefix=no
15935   library_names_spec='$libname${shared_ext} $libname.a'
15936   dynamic_linker='OS/2 ld.exe'
15937   shlibpath_var=LIBPATH
15938   ;;
15940 osf3* | osf4* | osf5*)
15941   version_type=osf
15942   need_lib_prefix=no
15943   need_version=no
15944   soname_spec='${libname}${release}${shared_ext}$major'
15945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946   shlibpath_var=LD_LIBRARY_PATH
15947   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15948   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15949   ;;
15951 sco3.2v5*)
15952   version_type=osf
15953   soname_spec='${libname}${release}${shared_ext}$major'
15954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955   shlibpath_var=LD_LIBRARY_PATH
15956   ;;
15958 solaris*)
15959   version_type=linux
15960   need_lib_prefix=no
15961   need_version=no
15962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963   soname_spec='${libname}${release}${shared_ext}$major'
15964   shlibpath_var=LD_LIBRARY_PATH
15965   shlibpath_overrides_runpath=yes
15966   hardcode_into_libs=yes
15967   # ldd complains unless libraries are executable
15968   postinstall_cmds='chmod +x $lib'
15969   ;;
15971 sunos4*)
15972   version_type=sunos
15973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15974   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15975   shlibpath_var=LD_LIBRARY_PATH
15976   shlibpath_overrides_runpath=yes
15977   if test "$with_gnu_ld" = yes; then
15978     need_lib_prefix=no
15979   fi
15980   need_version=yes
15981   ;;
15983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15984   version_type=linux
15985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986   soname_spec='${libname}${release}${shared_ext}$major'
15987   shlibpath_var=LD_LIBRARY_PATH
15988   case $host_vendor in
15989     sni)
15990       shlibpath_overrides_runpath=no
15991       need_lib_prefix=no
15992       export_dynamic_flag_spec='${wl}-Blargedynsym'
15993       runpath_var=LD_RUN_PATH
15994       ;;
15995     siemens)
15996       need_lib_prefix=no
15997       ;;
15998     motorola)
15999       need_lib_prefix=no
16000       need_version=no
16001       shlibpath_overrides_runpath=no
16002       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16003       ;;
16004   esac
16005   ;;
16007 sysv4*MP*)
16008   if test -d /usr/nec ;then
16009     version_type=linux
16010     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16011     soname_spec='$libname${shared_ext}.$major'
16012     shlibpath_var=LD_LIBRARY_PATH
16013   fi
16014   ;;
16016 uts4*)
16017   version_type=linux
16018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019   soname_spec='${libname}${release}${shared_ext}$major'
16020   shlibpath_var=LD_LIBRARY_PATH
16021   ;;
16024   dynamic_linker=no
16025   ;;
16026 esac
16027 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16028 echo "${ECHO_T}$dynamic_linker" >&6; }
16029 test "$dynamic_linker" = no && can_build_shared=no
16031 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16032 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16033 hardcode_action_F77=
16034 if test -n "$hardcode_libdir_flag_spec_F77" || \
16035    test -n "$runpath_var_F77" || \
16036    test "X$hardcode_automatic_F77" = "Xyes" ; then
16038   # We can hardcode non-existant directories.
16039   if test "$hardcode_direct_F77" != no &&
16040      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16041      # have to relink, otherwise we might link with an installed library
16042      # when we should be linking with a yet-to-be-installed one
16043      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16044      test "$hardcode_minus_L_F77" != no; then
16045     # Linking always hardcodes the temporary library directory.
16046     hardcode_action_F77=relink
16047   else
16048     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16049     hardcode_action_F77=immediate
16050   fi
16051 else
16052   # We cannot hardcode anything, or else we can only hardcode existing
16053   # directories.
16054   hardcode_action_F77=unsupported
16056 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16057 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16059 if test "$hardcode_action_F77" = relink; then
16060   # Fast installation is not supported
16061   enable_fast_install=no
16062 elif test "$shlibpath_overrides_runpath" = yes ||
16063      test "$enable_shared" = no; then
16064   # Fast installation is not necessary
16065   enable_fast_install=needless
16068 striplib=
16069 old_striplib=
16070 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16071 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16072 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16073   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16074   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16075   { echo "$as_me:$LINENO: result: yes" >&5
16076 echo "${ECHO_T}yes" >&6; }
16077 else
16078 # FIXME - insert some real tests, host_os isn't really good enough
16079   case $host_os in
16080    darwin*)
16081        if test -n "$STRIP" ; then
16082          striplib="$STRIP -x"
16083          { echo "$as_me:$LINENO: result: yes" >&5
16084 echo "${ECHO_T}yes" >&6; }
16085        else
16086   { echo "$as_me:$LINENO: result: no" >&5
16087 echo "${ECHO_T}no" >&6; }
16089        ;;
16090    *)
16091   { echo "$as_me:$LINENO: result: no" >&5
16092 echo "${ECHO_T}no" >&6; }
16093     ;;
16094   esac
16099 # The else clause should only fire when bootstrapping the
16100 # libtool distribution, otherwise you forgot to ship ltmain.sh
16101 # with your package, and you will get complaints that there are
16102 # no rules to generate ltmain.sh.
16103 if test -f "$ltmain"; then
16104   # See if we are running on zsh, and set the options which allow our commands through
16105   # without removal of \ escapes.
16106   if test -n "${ZSH_VERSION+set}" ; then
16107     setopt NO_GLOB_SUBST
16108   fi
16109   # Now quote all the things that may contain metacharacters while being
16110   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16111   # variables and quote the copies for generation of the libtool script.
16112   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16113     SED SHELL STRIP \
16114     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16115     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16116     deplibs_check_method reload_flag reload_cmds need_locks \
16117     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16118     lt_cv_sys_global_symbol_to_c_name_address \
16119     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16120     old_postinstall_cmds old_postuninstall_cmds \
16121     compiler_F77 \
16122     CC_F77 \
16123     LD_F77 \
16124     lt_prog_compiler_wl_F77 \
16125     lt_prog_compiler_pic_F77 \
16126     lt_prog_compiler_static_F77 \
16127     lt_prog_compiler_no_builtin_flag_F77 \
16128     export_dynamic_flag_spec_F77 \
16129     thread_safe_flag_spec_F77 \
16130     whole_archive_flag_spec_F77 \
16131     enable_shared_with_static_runtimes_F77 \
16132     old_archive_cmds_F77 \
16133     old_archive_from_new_cmds_F77 \
16134     predep_objects_F77 \
16135     postdep_objects_F77 \
16136     predeps_F77 \
16137     postdeps_F77 \
16138     compiler_lib_search_path_F77 \
16139     archive_cmds_F77 \
16140     archive_expsym_cmds_F77 \
16141     postinstall_cmds_F77 \
16142     postuninstall_cmds_F77 \
16143     old_archive_from_expsyms_cmds_F77 \
16144     allow_undefined_flag_F77 \
16145     no_undefined_flag_F77 \
16146     export_symbols_cmds_F77 \
16147     hardcode_libdir_flag_spec_F77 \
16148     hardcode_libdir_flag_spec_ld_F77 \
16149     hardcode_libdir_separator_F77 \
16150     hardcode_automatic_F77 \
16151     module_cmds_F77 \
16152     module_expsym_cmds_F77 \
16153     lt_cv_prog_compiler_c_o_F77 \
16154     exclude_expsyms_F77 \
16155     include_expsyms_F77; do
16157     case $var in
16158     old_archive_cmds_F77 | \
16159     old_archive_from_new_cmds_F77 | \
16160     archive_cmds_F77 | \
16161     archive_expsym_cmds_F77 | \
16162     module_cmds_F77 | \
16163     module_expsym_cmds_F77 | \
16164     old_archive_from_expsyms_cmds_F77 | \
16165     export_symbols_cmds_F77 | \
16166     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16167     postinstall_cmds | postuninstall_cmds | \
16168     old_postinstall_cmds | old_postuninstall_cmds | \
16169     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16170       # Double-quote double-evaled strings.
16171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16172       ;;
16173     *)
16174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16175       ;;
16176     esac
16177   done
16179   case $lt_echo in
16180   *'\$0 --fallback-echo"')
16181     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16182     ;;
16183   esac
16185 cfgfile="$ofile"
16187   cat <<__EOF__ >> "$cfgfile"
16188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16192 # Shell to use when invoking shell scripts.
16193 SHELL=$lt_SHELL
16195 # Whether or not to build shared libraries.
16196 build_libtool_libs=$enable_shared
16198 # Whether or not to build static libraries.
16199 build_old_libs=$enable_static
16201 # Whether or not to add -lc for building shared libraries.
16202 build_libtool_need_lc=$archive_cmds_need_lc_F77
16204 # Whether or not to disallow shared libs when runtime libs are static
16205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16207 # Whether or not to optimize for fast installation.
16208 fast_install=$enable_fast_install
16210 # The host system.
16211 host_alias=$host_alias
16212 host=$host
16213 host_os=$host_os
16215 # The build system.
16216 build_alias=$build_alias
16217 build=$build
16218 build_os=$build_os
16220 # An echo program that does not interpret backslashes.
16221 echo=$lt_echo
16223 # The archiver.
16224 AR=$lt_AR
16225 AR_FLAGS=$lt_AR_FLAGS
16227 # A C compiler.
16228 LTCC=$lt_LTCC
16230 # A language-specific compiler.
16231 CC=$lt_compiler_F77
16233 # Is the compiler the GNU C compiler?
16234 with_gcc=$GCC_F77
16236 # An ERE matcher.
16237 EGREP=$lt_EGREP
16239 # The linker used to build libraries.
16240 LD=$lt_LD_F77
16242 # Whether we need hard or soft links.
16243 LN_S=$lt_LN_S
16245 # A BSD-compatible nm program.
16246 NM=$lt_NM
16248 # A symbol stripping program
16249 STRIP=$lt_STRIP
16251 # Used to examine libraries when file_magic_cmd begins "file"
16252 MAGIC_CMD=$MAGIC_CMD
16254 # Used on cygwin: DLL creation program.
16255 DLLTOOL="$DLLTOOL"
16257 # Used on cygwin: object dumper.
16258 OBJDUMP="$OBJDUMP"
16260 # Used on cygwin: assembler.
16261 AS="$AS"
16263 # The name of the directory that contains temporary libtool files.
16264 objdir=$objdir
16266 # How to create reloadable object files.
16267 reload_flag=$lt_reload_flag
16268 reload_cmds=$lt_reload_cmds
16270 # How to pass a linker flag through the compiler.
16271 wl=$lt_lt_prog_compiler_wl_F77
16273 # Object file suffix (normally "o").
16274 objext="$ac_objext"
16276 # Old archive suffix (normally "a").
16277 libext="$libext"
16279 # Shared library suffix (normally ".so").
16280 shrext_cmds='$shrext_cmds'
16282 # Executable file suffix (normally "").
16283 exeext="$exeext"
16285 # Additional compiler flags for building library objects.
16286 pic_flag=$lt_lt_prog_compiler_pic_F77
16287 pic_mode=$pic_mode
16289 # What is the maximum length of a command?
16290 max_cmd_len=$lt_cv_sys_max_cmd_len
16292 # Does compiler simultaneously support -c and -o options?
16293 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16295 # Must we lock files when doing compilation?
16296 need_locks=$lt_need_locks
16298 # Do we need the lib prefix for modules?
16299 need_lib_prefix=$need_lib_prefix
16301 # Do we need a version for libraries?
16302 need_version=$need_version
16304 # Whether dlopen is supported.
16305 dlopen_support=$enable_dlopen
16307 # Whether dlopen of programs is supported.
16308 dlopen_self=$enable_dlopen_self
16310 # Whether dlopen of statically linked programs is supported.
16311 dlopen_self_static=$enable_dlopen_self_static
16313 # Compiler flag to prevent dynamic linking.
16314 link_static_flag=$lt_lt_prog_compiler_static_F77
16316 # Compiler flag to turn off builtin functions.
16317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16319 # Compiler flag to allow reflexive dlopens.
16320 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16322 # Compiler flag to generate shared objects directly from archives.
16323 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16325 # Compiler flag to generate thread-safe objects.
16326 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16328 # Library versioning type.
16329 version_type=$version_type
16331 # Format of library name prefix.
16332 libname_spec=$lt_libname_spec
16334 # List of archive names.  First name is the real one, the rest are links.
16335 # The last name is the one that the linker finds with -lNAME.
16336 library_names_spec=$lt_library_names_spec
16338 # The coded name of the library, if different from the real name.
16339 soname_spec=$lt_soname_spec
16341 # Commands used to build and install an old-style archive.
16342 RANLIB=$lt_RANLIB
16343 old_archive_cmds=$lt_old_archive_cmds_F77
16344 old_postinstall_cmds=$lt_old_postinstall_cmds
16345 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16347 # Create an old-style archive from a shared archive.
16348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16350 # Create a temporary old-style archive to link instead of a shared archive.
16351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16353 # Commands used to build and install a shared archive.
16354 archive_cmds=$lt_archive_cmds_F77
16355 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16356 postinstall_cmds=$lt_postinstall_cmds
16357 postuninstall_cmds=$lt_postuninstall_cmds
16359 # Commands used to build a loadable module (assumed same as above if empty)
16360 module_cmds=$lt_module_cmds_F77
16361 module_expsym_cmds=$lt_module_expsym_cmds_F77
16363 # Commands to strip libraries.
16364 old_striplib=$lt_old_striplib
16365 striplib=$lt_striplib
16367 # Dependencies to place before the objects being linked to create a
16368 # shared library.
16369 predep_objects=$lt_predep_objects_F77
16371 # Dependencies to place after the objects being linked to create a
16372 # shared library.
16373 postdep_objects=$lt_postdep_objects_F77
16375 # Dependencies to place before the objects being linked to create a
16376 # shared library.
16377 predeps=$lt_predeps_F77
16379 # Dependencies to place after the objects being linked to create a
16380 # shared library.
16381 postdeps=$lt_postdeps_F77
16383 # The library search path used internally by the compiler when linking
16384 # a shared library.
16385 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16387 # Method to check whether dependent libraries are shared objects.
16388 deplibs_check_method=$lt_deplibs_check_method
16390 # Command to use when deplibs_check_method == file_magic.
16391 file_magic_cmd=$lt_file_magic_cmd
16393 # Flag that allows shared libraries with undefined symbols to be built.
16394 allow_undefined_flag=$lt_allow_undefined_flag_F77
16396 # Flag that forces no undefined symbols.
16397 no_undefined_flag=$lt_no_undefined_flag_F77
16399 # Commands used to finish a libtool library installation in a directory.
16400 finish_cmds=$lt_finish_cmds
16402 # Same as above, but a single script fragment to be evaled but not shown.
16403 finish_eval=$lt_finish_eval
16405 # Take the output of nm and produce a listing of raw symbols and C names.
16406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16408 # Transform the output of nm in a proper C declaration
16409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16411 # Transform the output of nm in a C name address pair
16412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16414 # This is the shared library runtime path variable.
16415 runpath_var=$runpath_var
16417 # This is the shared library path variable.
16418 shlibpath_var=$shlibpath_var
16420 # Is shlibpath searched before the hard-coded library search path?
16421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16423 # How to hardcode a shared library path into an executable.
16424 hardcode_action=$hardcode_action_F77
16426 # Whether we should hardcode library paths into libraries.
16427 hardcode_into_libs=$hardcode_into_libs
16429 # Flag to hardcode \$libdir into a binary during linking.
16430 # This must work even if \$libdir does not exist.
16431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16433 # If ld is used when linking, flag to hardcode \$libdir into
16434 # a binary during linking. This must work even if \$libdir does
16435 # not exist.
16436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16438 # Whether we need a single -rpath flag with a separated argument.
16439 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16441 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16442 # resulting binary.
16443 hardcode_direct=$hardcode_direct_F77
16445 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16446 # resulting binary.
16447 hardcode_minus_L=$hardcode_minus_L_F77
16449 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16450 # the resulting binary.
16451 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16453 # Set to yes if building a shared library automatically hardcodes DIR into the library
16454 # and all subsequent libraries and executables linked against it.
16455 hardcode_automatic=$hardcode_automatic_F77
16457 # Variables whose values should be saved in libtool wrapper scripts and
16458 # restored at relink time.
16459 variables_saved_for_relink="$variables_saved_for_relink"
16461 # Whether libtool must link a program against all its dependency libraries.
16462 link_all_deplibs=$link_all_deplibs_F77
16464 # Compile-time system search path for libraries
16465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16467 # Run-time system search path for libraries
16468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16470 # Fix the shell variable \$srcfile for the compiler.
16471 fix_srcfile_path="$fix_srcfile_path_F77"
16473 # Set to yes if exported symbols are required.
16474 always_export_symbols=$always_export_symbols_F77
16476 # The commands to list exported symbols.
16477 export_symbols_cmds=$lt_export_symbols_cmds_F77
16479 # The commands to extract the exported symbol list from a shared archive.
16480 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16482 # Symbols that should not be listed in the preloaded symbols.
16483 exclude_expsyms=$lt_exclude_expsyms_F77
16485 # Symbols that must always be exported.
16486 include_expsyms=$lt_include_expsyms_F77
16488 # ### END LIBTOOL TAG CONFIG: $tagname
16490 __EOF__
16493 else
16494   # If there is no Makefile yet, we rely on a make rule to execute
16495   # `config.status --recheck' to rerun these tests and create the
16496   # libtool script then.
16497   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16498   if test -f "$ltmain_in"; then
16499     test -f Makefile && make "$ltmain"
16500   fi
16504 ac_ext=c
16505 ac_cpp='$CPP $CPPFLAGS'
16506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16510 CC="$lt_save_CC"
16512         else
16513           tagname=""
16514         fi
16515         ;;
16517       GCJ)
16518         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16519           
16521 # Source file extension for Java test sources.
16522 ac_ext=java
16524 # Object file extension for compiled Java test sources.
16525 objext=o
16526 objext_GCJ=$objext
16528 # Code to be used in simple compile tests
16529 lt_simple_compile_test_code="class foo {}\n"
16531 # Code to be used in simple link tests
16532 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16536 # If no C compiler was specified, use CC.
16537 LTCC=${LTCC-"$CC"}
16539 # Allow CC to be a program name with arguments.
16540 compiler=$CC
16543 # save warnings/boilerplate of simple test code
16544 ac_outfile=conftest.$ac_objext
16545 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16547 _lt_compiler_boilerplate=`cat conftest.err`
16548 $rm conftest*
16550 ac_outfile=conftest.$ac_objext
16551 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16553 _lt_linker_boilerplate=`cat conftest.err`
16554 $rm conftest*
16557 # Allow CC to be a program name with arguments.
16558 lt_save_CC="$CC"
16559 CC=${GCJ-"gcj"}
16560 compiler=$CC
16561 compiler_GCJ=$CC
16562 for cc_temp in $compiler""; do
16563   case $cc_temp in
16564     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16565     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16566     \-*) ;;
16567     *) break;;
16568   esac
16569 done
16570 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16573 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16574 archive_cmds_need_lc_GCJ=no
16576 old_archive_cmds_GCJ=$old_archive_cmds
16579 lt_prog_compiler_no_builtin_flag_GCJ=
16581 if test "$GCC" = yes; then
16582   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16584   
16585 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16586 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16587 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16588   echo $ECHO_N "(cached) $ECHO_C" >&6
16589 else
16590   lt_cv_prog_compiler_rtti_exceptions=no
16591   ac_outfile=conftest.$ac_objext
16592    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16593    lt_compiler_flag="-fno-rtti -fno-exceptions"
16594    # Insert the option either (1) after the last *FLAGS variable, or
16595    # (2) before a word containing "conftest.", or (3) at the end.
16596    # Note that $ac_compile itself does not contain backslashes and begins
16597    # with a dollar sign (not a hyphen), so the echo should work correctly.
16598    # The option is referenced via a variable to avoid confusing sed.
16599    lt_compile=`echo "$ac_compile" | $SED \
16600    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16601    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16602    -e 's:$: $lt_compiler_flag:'`
16603    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16604    (eval "$lt_compile" 2>conftest.err)
16605    ac_status=$?
16606    cat conftest.err >&5
16607    echo "$as_me:__oline__: \$? = $ac_status" >&5
16608    if (exit $ac_status) && test -s "$ac_outfile"; then
16609      # The compiler can only warn and ignore the option if not recognized
16610      # So say no if there are warnings other than the usual output.
16611      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16612      $SED '/^$/d' conftest.err >conftest.er2
16613      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16614        lt_cv_prog_compiler_rtti_exceptions=yes
16615      fi
16616    fi
16617    $rm conftest*
16620 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16621 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16623 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16624     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16625 else
16626     :
16631 lt_prog_compiler_wl_GCJ=
16632 lt_prog_compiler_pic_GCJ=
16633 lt_prog_compiler_static_GCJ=
16635 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16638   if test "$GCC" = yes; then
16639     lt_prog_compiler_wl_GCJ='-Wl,'
16640     lt_prog_compiler_static_GCJ='-static'
16642     case $host_os in
16643       aix*)
16644       # All AIX code is PIC.
16645       if test "$host_cpu" = ia64; then
16646         # AIX 5 now supports IA64 processor
16647         lt_prog_compiler_static_GCJ='-Bstatic'
16648       fi
16649       ;;
16651     amigaos*)
16652       # FIXME: we need at least 68020 code to build shared libraries, but
16653       # adding the `-m68020' flag to GCC prevents building anything better,
16654       # like `-m68040'.
16655       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16656       ;;
16658     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16659       # PIC is the default for these OSes.
16660       ;;
16662     mingw* | pw32* | os2*)
16663       # This hack is so that the source file can tell whether it is being
16664       # built for inclusion in a dll (and should export symbols for example).
16665       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16666       ;;
16668     darwin* | rhapsody*)
16669       # PIC is the default on this platform
16670       # Common symbols not allowed in MH_DYLIB files
16671       lt_prog_compiler_pic_GCJ='-fno-common'
16672       ;;
16674     msdosdjgpp*)
16675       # Just because we use GCC doesn't mean we suddenly get shared libraries
16676       # on systems that don't support them.
16677       lt_prog_compiler_can_build_shared_GCJ=no
16678       enable_shared=no
16679       ;;
16681     sysv4*MP*)
16682       if test -d /usr/nec; then
16683         lt_prog_compiler_pic_GCJ=-Kconform_pic
16684       fi
16685       ;;
16687     hpux*)
16688       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16689       # not for PA HP-UX.
16690       case $host_cpu in
16691       hppa*64*|ia64*)
16692         # +Z the default
16693         ;;
16694       *)
16695         lt_prog_compiler_pic_GCJ='-fPIC'
16696         ;;
16697       esac
16698       ;;
16700     *)
16701       lt_prog_compiler_pic_GCJ='-fPIC'
16702       ;;
16703     esac
16704   else
16705     # PORTME Check for flag to pass linker flags through the system compiler.
16706     case $host_os in
16707     aix*)
16708       lt_prog_compiler_wl_GCJ='-Wl,'
16709       if test "$host_cpu" = ia64; then
16710         # AIX 5 now supports IA64 processor
16711         lt_prog_compiler_static_GCJ='-Bstatic'
16712       else
16713         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16714       fi
16715       ;;
16716       darwin*)
16717         # PIC is the default on this platform
16718         # Common symbols not allowed in MH_DYLIB files
16719        case $cc_basename in
16720          xlc*)
16721          lt_prog_compiler_pic_GCJ='-qnocommon'
16722          lt_prog_compiler_wl_GCJ='-Wl,'
16723          ;;
16724        esac
16725        ;;
16727     mingw* | pw32* | os2*)
16728       # This hack is so that the source file can tell whether it is being
16729       # built for inclusion in a dll (and should export symbols for example).
16730       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16731       ;;
16733     hpux9* | hpux10* | hpux11*)
16734       lt_prog_compiler_wl_GCJ='-Wl,'
16735       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16736       # not for PA HP-UX.
16737       case $host_cpu in
16738       hppa*64*|ia64*)
16739         # +Z the default
16740         ;;
16741       *)
16742         lt_prog_compiler_pic_GCJ='+Z'
16743         ;;
16744       esac
16745       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16746       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16747       ;;
16749     irix5* | irix6* | nonstopux*)
16750       lt_prog_compiler_wl_GCJ='-Wl,'
16751       # PIC (with -KPIC) is the default.
16752       lt_prog_compiler_static_GCJ='-non_shared'
16753       ;;
16755     newsos6)
16756       lt_prog_compiler_pic_GCJ='-KPIC'
16757       lt_prog_compiler_static_GCJ='-Bstatic'
16758       ;;
16760     linux*)
16761       case $cc_basename in
16762       icc* | ecc*)
16763         lt_prog_compiler_wl_GCJ='-Wl,'
16764         lt_prog_compiler_pic_GCJ='-KPIC'
16765         lt_prog_compiler_static_GCJ='-static'
16766         ;;
16767       pgcc* | pgf77* | pgf90* | pgf95*)
16768         # Portland Group compilers (*not* the Pentium gcc compiler,
16769         # which looks to be a dead project)
16770         lt_prog_compiler_wl_GCJ='-Wl,'
16771         lt_prog_compiler_pic_GCJ='-fpic'
16772         lt_prog_compiler_static_GCJ='-Bstatic'
16773         ;;
16774       ccc*)
16775         lt_prog_compiler_wl_GCJ='-Wl,'
16776         # All Alpha code is PIC.
16777         lt_prog_compiler_static_GCJ='-non_shared'
16778         ;;
16779       esac
16780       ;;
16782     osf3* | osf4* | osf5*)
16783       lt_prog_compiler_wl_GCJ='-Wl,'
16784       # All OSF/1 code is PIC.
16785       lt_prog_compiler_static_GCJ='-non_shared'
16786       ;;
16788     sco3.2v5*)
16789       lt_prog_compiler_pic_GCJ='-Kpic'
16790       lt_prog_compiler_static_GCJ='-dn'
16791       ;;
16793     solaris*)
16794       lt_prog_compiler_pic_GCJ='-KPIC'
16795       lt_prog_compiler_static_GCJ='-Bstatic'
16796       case $cc_basename in
16797       f77* | f90* | f95*)
16798         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16799       *)
16800         lt_prog_compiler_wl_GCJ='-Wl,';;
16801       esac
16802       ;;
16804     sunos4*)
16805       lt_prog_compiler_wl_GCJ='-Qoption ld '
16806       lt_prog_compiler_pic_GCJ='-PIC'
16807       lt_prog_compiler_static_GCJ='-Bstatic'
16808       ;;
16810     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16811       lt_prog_compiler_wl_GCJ='-Wl,'
16812       lt_prog_compiler_pic_GCJ='-KPIC'
16813       lt_prog_compiler_static_GCJ='-Bstatic'
16814       ;;
16816     sysv4*MP*)
16817       if test -d /usr/nec ;then
16818         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16819         lt_prog_compiler_static_GCJ='-Bstatic'
16820       fi
16821       ;;
16823     unicos*)
16824       lt_prog_compiler_wl_GCJ='-Wl,'
16825       lt_prog_compiler_can_build_shared_GCJ=no
16826       ;;
16828     uts4*)
16829       lt_prog_compiler_pic_GCJ='-pic'
16830       lt_prog_compiler_static_GCJ='-Bstatic'
16831       ;;
16833     *)
16834       lt_prog_compiler_can_build_shared_GCJ=no
16835       ;;
16836     esac
16837   fi
16839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16840 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16843 # Check to make sure the PIC flag actually works.
16845 if test -n "$lt_prog_compiler_pic_GCJ"; then
16846   
16847 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16848 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16849 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   lt_prog_compiler_pic_works_GCJ=no
16853   ac_outfile=conftest.$ac_objext
16854    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16855    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16856    # Insert the option either (1) after the last *FLAGS variable, or
16857    # (2) before a word containing "conftest.", or (3) at the end.
16858    # Note that $ac_compile itself does not contain backslashes and begins
16859    # with a dollar sign (not a hyphen), so the echo should work correctly.
16860    # The option is referenced via a variable to avoid confusing sed.
16861    lt_compile=`echo "$ac_compile" | $SED \
16862    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16864    -e 's:$: $lt_compiler_flag:'`
16865    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16866    (eval "$lt_compile" 2>conftest.err)
16867    ac_status=$?
16868    cat conftest.err >&5
16869    echo "$as_me:__oline__: \$? = $ac_status" >&5
16870    if (exit $ac_status) && test -s "$ac_outfile"; then
16871      # The compiler can only warn and ignore the option if not recognized
16872      # So say no if there are warnings other than the usual output.
16873      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16874      $SED '/^$/d' conftest.err >conftest.er2
16875      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16876        lt_prog_compiler_pic_works_GCJ=yes
16877      fi
16878    fi
16879    $rm conftest*
16882 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16883 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16885 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16886     case $lt_prog_compiler_pic_GCJ in
16887      "" | " "*) ;;
16888      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16889      esac
16890 else
16891     lt_prog_compiler_pic_GCJ=
16892      lt_prog_compiler_can_build_shared_GCJ=no
16896 case $host_os in
16897   # For platforms which do not support PIC, -DPIC is meaningless:
16898   *djgpp*)
16899     lt_prog_compiler_pic_GCJ=
16900     ;;
16901   *)
16902     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16903     ;;
16904 esac
16906 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16907 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16908 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   lt_cv_prog_compiler_c_o_GCJ=no
16912    $rm -r conftest 2>/dev/null
16913    mkdir conftest
16914    cd conftest
16915    mkdir out
16916    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16918    lt_compiler_flag="-o out/conftest2.$ac_objext"
16919    # Insert the option either (1) after the last *FLAGS variable, or
16920    # (2) before a word containing "conftest.", or (3) at the end.
16921    # Note that $ac_compile itself does not contain backslashes and begins
16922    # with a dollar sign (not a hyphen), so the echo should work correctly.
16923    lt_compile=`echo "$ac_compile" | $SED \
16924    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16925    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16926    -e 's:$: $lt_compiler_flag:'`
16927    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16928    (eval "$lt_compile" 2>out/conftest.err)
16929    ac_status=$?
16930    cat out/conftest.err >&5
16931    echo "$as_me:__oline__: \$? = $ac_status" >&5
16932    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16933    then
16934      # The compiler can only warn and ignore the option if not recognized
16935      # So say no if there are warnings
16936      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16937      $SED '/^$/d' out/conftest.err >out/conftest.er2
16938      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16939        lt_cv_prog_compiler_c_o_GCJ=yes
16940      fi
16941    fi
16942    chmod u+w . 2>&5
16943    $rm conftest*
16944    # SGI C++ compiler will create directory out/ii_files/ for
16945    # template instantiation
16946    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16947    $rm out/* && rmdir out
16948    cd ..
16949    rmdir conftest
16950    $rm conftest*
16953 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16954 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16957 hard_links="nottested"
16958 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16959   # do not overwrite the value of need_locks provided by the user
16960   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16961 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16962   hard_links=yes
16963   $rm conftest*
16964   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16965   touch conftest.a
16966   ln conftest.a conftest.b 2>&5 || hard_links=no
16967   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16968   { echo "$as_me:$LINENO: result: $hard_links" >&5
16969 echo "${ECHO_T}$hard_links" >&6; }
16970   if test "$hard_links" = no; then
16971     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16972 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16973     need_locks=warn
16974   fi
16975 else
16976   need_locks=no
16979 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16980 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16982   runpath_var=
16983   allow_undefined_flag_GCJ=
16984   enable_shared_with_static_runtimes_GCJ=no
16985   archive_cmds_GCJ=
16986   archive_expsym_cmds_GCJ=
16987   old_archive_From_new_cmds_GCJ=
16988   old_archive_from_expsyms_cmds_GCJ=
16989   export_dynamic_flag_spec_GCJ=
16990   whole_archive_flag_spec_GCJ=
16991   thread_safe_flag_spec_GCJ=
16992   hardcode_libdir_flag_spec_GCJ=
16993   hardcode_libdir_flag_spec_ld_GCJ=
16994   hardcode_libdir_separator_GCJ=
16995   hardcode_direct_GCJ=no
16996   hardcode_minus_L_GCJ=no
16997   hardcode_shlibpath_var_GCJ=unsupported
16998   link_all_deplibs_GCJ=unknown
16999   hardcode_automatic_GCJ=no
17000   module_cmds_GCJ=
17001   module_expsym_cmds_GCJ=
17002   always_export_symbols_GCJ=no
17003   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17004   # include_expsyms should be a list of space-separated symbols to be *always*
17005   # included in the symbol list
17006   include_expsyms_GCJ=
17007   # exclude_expsyms can be an extended regexp of symbols to exclude
17008   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17009   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17010   # as well as any symbol that contains `d'.
17011   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17012   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17013   # platforms (ab)use it in PIC code, but their linkers get confused if
17014   # the symbol is explicitly referenced.  Since portable code cannot
17015   # rely on this symbol name, it's probably fine to never include it in
17016   # preloaded symbol tables.
17017   extract_expsyms_cmds=
17018   # Just being paranoid about ensuring that cc_basename is set.
17019   for cc_temp in $compiler""; do
17020   case $cc_temp in
17021     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17022     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17023     \-*) ;;
17024     *) break;;
17025   esac
17026 done
17027 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17029   case $host_os in
17030   cygwin* | mingw* | pw32*)
17031     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17032     # When not using gcc, we currently assume that we are using
17033     # Microsoft Visual C++.
17034     if test "$GCC" != yes; then
17035       with_gnu_ld=no
17036     fi
17037     ;;
17038   openbsd*)
17039     with_gnu_ld=no
17040     ;;
17041   esac
17043   ld_shlibs_GCJ=yes
17044   if test "$with_gnu_ld" = yes; then
17045     # If archive_cmds runs LD, not CC, wlarc should be empty
17046     wlarc='${wl}'
17048     # Set some defaults for GNU ld with shared library support. These
17049     # are reset later if shared libraries are not supported. Putting them
17050     # here allows them to be overridden if necessary.
17051     runpath_var=LD_RUN_PATH
17052     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17053     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17054     # ancient GNU ld didn't support --whole-archive et. al.
17055     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17056         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17057       else
17058         whole_archive_flag_spec_GCJ=
17059     fi
17060     supports_anon_versioning=no
17061     case `$LD -v 2>/dev/null` in
17062       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17063       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17064       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17065       *\ 2.11.*) ;; # other 2.11 versions
17066       *) supports_anon_versioning=yes ;;
17067     esac
17069     # See if GNU ld supports shared libraries.
17070     case $host_os in
17071     aix3* | aix4* | aix5*)
17072       # On AIX/PPC, the GNU linker is very broken
17073       if test "$host_cpu" != ia64; then
17074         ld_shlibs_GCJ=no
17075         cat <<EOF 1>&2
17077 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17078 *** to be unable to reliably create shared libraries on AIX.
17079 *** Therefore, libtool is disabling shared libraries support.  If you
17080 *** really care for shared libraries, you may want to modify your PATH
17081 *** so that a non-GNU linker is found, and then restart.
17084       fi
17085       ;;
17087     amigaos*)
17088       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)'
17089       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17090       hardcode_minus_L_GCJ=yes
17092       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17093       # that the semantics of dynamic libraries on AmigaOS, at least up
17094       # to version 4, is to share data among multiple programs linked
17095       # with the same dynamic library.  Since this doesn't match the
17096       # behavior of shared libraries on other platforms, we can't use
17097       # them.
17098       ld_shlibs_GCJ=no
17099       ;;
17101     beos*)
17102       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17103         allow_undefined_flag_GCJ=unsupported
17104         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17105         # support --undefined.  This deserves some investigation.  FIXME
17106         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17107       else
17108         ld_shlibs_GCJ=no
17109       fi
17110       ;;
17112     cygwin* | mingw* | pw32*)
17113       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17114       # as there is no search path for DLLs.
17115       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17116       allow_undefined_flag_GCJ=unsupported
17117       always_export_symbols_GCJ=no
17118       enable_shared_with_static_runtimes_GCJ=yes
17119       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17121       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17122         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17123         # If the export-symbols file already is a .def file (1st line
17124         # is EXPORTS), use it as is; otherwise, prepend...
17125         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17126           cp $export_symbols $output_objdir/$soname.def;
17127         else
17128           echo EXPORTS > $output_objdir/$soname.def;
17129           cat $export_symbols >> $output_objdir/$soname.def;
17130         fi~
17131         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17132       else
17133         ld_shlibs_GCJ=no
17134       fi
17135       ;;
17137     linux*)
17138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17139         tmp_addflag=
17140         case $cc_basename,$host_cpu in
17141         pgcc*)                          # Portland Group C compiler
17142           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'
17143           tmp_addflag=' $pic_flag'
17144           ;;
17145         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17146           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'
17147           tmp_addflag=' $pic_flag -Mnomain' ;;
17148         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17149           tmp_addflag=' -i_dynamic' ;;
17150         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17151           tmp_addflag=' -i_dynamic -nofor_main' ;;
17152         ifc* | ifort*)                  # Intel Fortran compiler
17153           tmp_addflag=' -nofor_main' ;;
17154         esac
17155         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17157         if test $supports_anon_versioning = yes; then
17158           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17159   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17160   $echo "local: *; };" >> $output_objdir/$libname.ver~
17161           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17162         fi
17163         link_all_deplibs_GCJ=no
17164       else
17165         ld_shlibs_GCJ=no
17166       fi
17167       ;;
17169     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17170       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17171         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17172         wlarc=
17173       else
17174         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17175         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17176       fi
17177       ;;
17179     solaris* | sysv5*)
17180       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17181         ld_shlibs_GCJ=no
17182         cat <<EOF 1>&2
17184 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17185 *** create shared libraries on Solaris systems.  Therefore, libtool
17186 *** is disabling shared libraries support.  We urge you to upgrade GNU
17187 *** binutils to release 2.9.1 or newer.  Another option is to modify
17188 *** your PATH or compiler configuration so that the native linker is
17189 *** used, and then restart.
17192       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17193         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17194         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17195       else
17196         ld_shlibs_GCJ=no
17197       fi
17198       ;;
17200     sunos4*)
17201       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17202       wlarc=
17203       hardcode_direct_GCJ=yes
17204       hardcode_shlibpath_var_GCJ=no
17205       ;;
17207     *)
17208       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17209         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17210         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17211       else
17212         ld_shlibs_GCJ=no
17213       fi
17214       ;;
17215     esac
17217     if test "$ld_shlibs_GCJ" = no; then
17218       runpath_var=
17219       hardcode_libdir_flag_spec_GCJ=
17220       export_dynamic_flag_spec_GCJ=
17221       whole_archive_flag_spec_GCJ=
17222     fi
17223   else
17224     # PORTME fill in a description of your system's linker (not GNU ld)
17225     case $host_os in
17226     aix3*)
17227       allow_undefined_flag_GCJ=unsupported
17228       always_export_symbols_GCJ=yes
17229       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'
17230       # Note: this linker hardcodes the directories in LIBPATH if there
17231       # are no directories specified by -L.
17232       hardcode_minus_L_GCJ=yes
17233       if test "$GCC" = yes && test -z "$link_static_flag"; then
17234         # Neither direct hardcoding nor static linking is supported with a
17235         # broken collect2.
17236         hardcode_direct_GCJ=unsupported
17237       fi
17238       ;;
17240     aix4* | aix5*)
17241       if test "$host_cpu" = ia64; then
17242         # On IA64, the linker does run time linking by default, so we don't
17243         # have to do anything special.
17244         aix_use_runtimelinking=no
17245         exp_sym_flag='-Bexport'
17246         no_entry_flag=""
17247       else
17248         # If we're using GNU nm, then we don't want the "-C" option.
17249         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17250         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17251           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'
17252         else
17253           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'
17254         fi
17255         aix_use_runtimelinking=no
17257         # Test if we are trying to use run time linking or normal
17258         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17259         # need to do runtime linking.
17260         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17261           for ld_flag in $LDFLAGS; do
17262           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17263             aix_use_runtimelinking=yes
17264             break
17265           fi
17266           done
17267         esac
17269         exp_sym_flag='-bexport'
17270         no_entry_flag='-bnoentry'
17271       fi
17273       # When large executables or shared objects are built, AIX ld can
17274       # have problems creating the table of contents.  If linking a library
17275       # or program results in "error TOC overflow" add -mminimal-toc to
17276       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17277       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17279       archive_cmds_GCJ=''
17280       hardcode_direct_GCJ=yes
17281       hardcode_libdir_separator_GCJ=':'
17282       link_all_deplibs_GCJ=yes
17284       if test "$GCC" = yes; then
17285         case $host_os in aix4.[012]|aix4.[012].*)
17286         # We only want to do this on AIX 4.2 and lower, the check
17287         # below for broken collect2 doesn't work under 4.3+
17288           collect2name=`${CC} -print-prog-name=collect2`
17289           if test -f "$collect2name" && \
17290            strings "$collect2name" | grep resolve_lib_name >/dev/null
17291           then
17292           # We have reworked collect2
17293           hardcode_direct_GCJ=yes
17294           else
17295           # We have old collect2
17296           hardcode_direct_GCJ=unsupported
17297           # It fails to find uninstalled libraries when the uninstalled
17298           # path is not listed in the libpath.  Setting hardcode_minus_L
17299           # to unsupported forces relinking
17300           hardcode_minus_L_GCJ=yes
17301           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17302           hardcode_libdir_separator_GCJ=
17303           fi
17304         esac
17305         shared_flag='-shared'
17306         if test "$aix_use_runtimelinking" = yes; then
17307           shared_flag="$shared_flag "'${wl}-G'
17308         fi
17309       else
17310         # not using gcc
17311         if test "$host_cpu" = ia64; then
17312         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17313         # chokes on -Wl,-G. The following line is correct:
17314           shared_flag='-G'
17315         else
17316         if test "$aix_use_runtimelinking" = yes; then
17317             shared_flag='${wl}-G'
17318           else
17319             shared_flag='${wl}-bM:SRE'
17320         fi
17321         fi
17322       fi
17324       # It seems that -bexpall does not export symbols beginning with
17325       # underscore (_), so it is better to generate a list of symbols to export.
17326       always_export_symbols_GCJ=yes
17327       if test "$aix_use_runtimelinking" = yes; then
17328         # Warning - without using the other runtime loading flags (-brtl),
17329         # -berok will link without error, but may produce a broken library.
17330         allow_undefined_flag_GCJ='-berok'
17331        # Determine the default libpath from the value encoded in an empty executable.
17332        cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h.  */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h.  */
17340 main ()
17343   ;
17344   return 0;
17346 _ACEOF
17347 rm -f conftest.$ac_objext conftest$ac_exeext
17348 if { (ac_try="$ac_link"
17349 case "(($ac_try" in
17350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351   *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354   (eval "$ac_link") 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } && {
17361          test -z "$ac_c_werror_flag" ||
17362          test ! -s conftest.err
17363        } && test -s conftest$ac_exeext &&
17364        $as_test_x conftest$ac_exeext; then
17365   
17366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17368 # Check for a 64-bit object if we didn't find anything.
17369 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17370 }'`; fi
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375         
17378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17379       conftest$ac_exeext conftest.$ac_ext
17380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17382        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17383         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17384        else
17385         if test "$host_cpu" = ia64; then
17386           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17387           allow_undefined_flag_GCJ="-z nodefs"
17388           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17389         else
17390          # Determine the default libpath from the value encoded in an empty executable.
17391          cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17399 main ()
17402   ;
17403   return 0;
17405 _ACEOF
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_link") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest$ac_exeext &&
17423        $as_test_x conftest$ac_exeext; then
17424   
17425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17427 # Check for a 64-bit object if we didn't find anything.
17428 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17429 }'`; fi
17430 else
17431   echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434         
17437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17438       conftest$ac_exeext conftest.$ac_ext
17439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17441          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17442           # Warning - without using the other run time loading flags,
17443           # -berok will link without error, but may produce a broken library.
17444           no_undefined_flag_GCJ=' ${wl}-bernotok'
17445           allow_undefined_flag_GCJ=' ${wl}-berok'
17446           # -bexpall does not export symbols beginning with underscore (_)
17447           always_export_symbols_GCJ=yes
17448           # Exported symbols can be pulled into shared objects from archives
17449           whole_archive_flag_spec_GCJ=' '
17450           archive_cmds_need_lc_GCJ=yes
17451           # This is similar to how AIX traditionally builds its shared libraries.
17452           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17453         fi
17454       fi
17455       ;;
17457     amigaos*)
17458       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)'
17459       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17460       hardcode_minus_L_GCJ=yes
17461       # see comment about different semantics on the GNU ld section
17462       ld_shlibs_GCJ=no
17463       ;;
17465     bsdi[45]*)
17466       export_dynamic_flag_spec_GCJ=-rdynamic
17467       ;;
17469     cygwin* | mingw* | pw32*)
17470       # When not using gcc, we currently assume that we are using
17471       # Microsoft Visual C++.
17472       # hardcode_libdir_flag_spec is actually meaningless, as there is
17473       # no search path for DLLs.
17474       hardcode_libdir_flag_spec_GCJ=' '
17475       allow_undefined_flag_GCJ=unsupported
17476       # Tell ltmain to make .lib files, not .a files.
17477       libext=lib
17478       # Tell ltmain to make .dll files, not .so files.
17479       shrext_cmds=".dll"
17480       # FIXME: Setting linknames here is a bad hack.
17481       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17482       # The linker will automatically build a .lib file if we build a DLL.
17483       old_archive_From_new_cmds_GCJ='true'
17484       # FIXME: Should let the user specify the lib program.
17485       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17486       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17487       enable_shared_with_static_runtimes_GCJ=yes
17488       ;;
17490     darwin* | rhapsody*)
17491       case $host_os in
17492         rhapsody* | darwin1.[012])
17493          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17494          ;;
17495        *) # Darwin 1.3 on
17496          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17497            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17498          else
17499            case ${MACOSX_DEPLOYMENT_TARGET} in
17500              10.[012])
17501                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17502                ;;
17503              10.*)
17504                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17505                ;;
17506            esac
17507          fi
17508          ;;
17509       esac
17510       archive_cmds_need_lc_GCJ=no
17511       hardcode_direct_GCJ=no
17512       hardcode_automatic_GCJ=yes
17513       hardcode_shlibpath_var_GCJ=unsupported
17514       whole_archive_flag_spec_GCJ=''
17515       link_all_deplibs_GCJ=yes
17516     if test "$GCC" = yes ; then
17517         output_verbose_link_cmd='echo'
17518         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17519       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17520       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17521       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}'
17522       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}'
17523     else
17524       case $cc_basename in
17525         xlc*)
17526          output_verbose_link_cmd='echo'
17527          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17528          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17529           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17530          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17531           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}'
17532           ;;
17533        *)
17534          ld_shlibs_GCJ=no
17535           ;;
17536       esac
17537     fi
17538       ;;
17540     dgux*)
17541       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17542       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17543       hardcode_shlibpath_var_GCJ=no
17544       ;;
17546     freebsd1*)
17547       ld_shlibs_GCJ=no
17548       ;;
17550     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17551     # support.  Future versions do this automatically, but an explicit c++rt0.o
17552     # does not break anything, and helps significantly (at the cost of a little
17553     # extra space).
17554     freebsd2.2*)
17555       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17556       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17557       hardcode_direct_GCJ=yes
17558       hardcode_shlibpath_var_GCJ=no
17559       ;;
17561     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17562     freebsd2*)
17563       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17564       hardcode_direct_GCJ=yes
17565       hardcode_minus_L_GCJ=yes
17566       hardcode_shlibpath_var_GCJ=no
17567       ;;
17569     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17570     freebsd* | kfreebsd*-gnu | dragonfly*)
17571       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17572       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17573       hardcode_direct_GCJ=yes
17574       hardcode_shlibpath_var_GCJ=no
17575       ;;
17577     hpux9*)
17578       if test "$GCC" = yes; then
17579         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'
17580       else
17581         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'
17582       fi
17583       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17584       hardcode_libdir_separator_GCJ=:
17585       hardcode_direct_GCJ=yes
17587       # hardcode_minus_L: Not really in the search PATH,
17588       # but as the default location of the library.
17589       hardcode_minus_L_GCJ=yes
17590       export_dynamic_flag_spec_GCJ='${wl}-E'
17591       ;;
17593     hpux10* | hpux11*)
17594       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17595         case $host_cpu in
17596         hppa*64*|ia64*)
17597           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17598           ;;
17599         *)
17600           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17601           ;;
17602         esac
17603       else
17604         case $host_cpu in
17605         hppa*64*|ia64*)
17606           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17607           ;;
17608         *)
17609           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17610           ;;
17611         esac
17612       fi
17613       if test "$with_gnu_ld" = no; then
17614         case $host_cpu in
17615         hppa*64*)
17616           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17617           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17618           hardcode_libdir_separator_GCJ=:
17619           hardcode_direct_GCJ=no
17620           hardcode_shlibpath_var_GCJ=no
17621           ;;
17622         ia64*)
17623           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17624           hardcode_direct_GCJ=no
17625           hardcode_shlibpath_var_GCJ=no
17627           # hardcode_minus_L: Not really in the search PATH,
17628           # but as the default location of the library.
17629           hardcode_minus_L_GCJ=yes
17630           ;;
17631         *)
17632           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17633           hardcode_libdir_separator_GCJ=:
17634           hardcode_direct_GCJ=yes
17635           export_dynamic_flag_spec_GCJ='${wl}-E'
17637           # hardcode_minus_L: Not really in the search PATH,
17638           # but as the default location of the library.
17639           hardcode_minus_L_GCJ=yes
17640           ;;
17641         esac
17642       fi
17643       ;;
17645     irix5* | irix6* | nonstopux*)
17646       if test "$GCC" = yes; then
17647         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'
17648       else
17649         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'
17650         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17651       fi
17652       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17653       hardcode_libdir_separator_GCJ=:
17654       link_all_deplibs_GCJ=yes
17655       ;;
17657     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17658       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17659         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17660       else
17661         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17662       fi
17663       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17664       hardcode_direct_GCJ=yes
17665       hardcode_shlibpath_var_GCJ=no
17666       ;;
17668     newsos6)
17669       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17670       hardcode_direct_GCJ=yes
17671       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17672       hardcode_libdir_separator_GCJ=:
17673       hardcode_shlibpath_var_GCJ=no
17674       ;;
17676     openbsd*)
17677       hardcode_direct_GCJ=yes
17678       hardcode_shlibpath_var_GCJ=no
17679       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17680         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17681         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17682         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17683         export_dynamic_flag_spec_GCJ='${wl}-E'
17684       else
17685        case $host_os in
17686          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17687            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17688            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17689            ;;
17690          *)
17691            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17692            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17693            ;;
17694        esac
17695       fi
17696       ;;
17698     os2*)
17699       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17700       hardcode_minus_L_GCJ=yes
17701       allow_undefined_flag_GCJ=unsupported
17702       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'
17703       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17704       ;;
17706     osf3*)
17707       if test "$GCC" = yes; then
17708         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17709         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'
17710       else
17711         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17712         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'
17713       fi
17714       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17715       hardcode_libdir_separator_GCJ=:
17716       ;;
17718     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17719       if test "$GCC" = yes; then
17720         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17721         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'
17722         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17723       else
17724         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17725         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'
17726         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~
17727         $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'
17729         # Both c and cxx compiler support -rpath directly
17730         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17731       fi
17732       hardcode_libdir_separator_GCJ=:
17733       ;;
17735     sco3.2v5*)
17736       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737       hardcode_shlibpath_var_GCJ=no
17738       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17739       runpath_var=LD_RUN_PATH
17740       hardcode_runpath_var=yes
17741       ;;
17743     solaris*)
17744       no_undefined_flag_GCJ=' -z text'
17745       if test "$GCC" = yes; then
17746         wlarc='${wl}'
17747         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17748         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17749           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17750       else
17751         wlarc=''
17752         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17753         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17754         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17755       fi
17756       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17757       hardcode_shlibpath_var_GCJ=no
17758       case $host_os in
17759       solaris2.[0-5] | solaris2.[0-5].*) ;;
17760       *)
17761         # The compiler driver will combine linker options so we
17762         # cannot just pass the convience library names through
17763         # without $wl, iff we do not link with $LD.
17764         # Luckily, gcc supports the same syntax we need for Sun Studio.
17765         # Supported since Solaris 2.6 (maybe 2.5.1?)
17766         case $wlarc in
17767         '')
17768           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17769         *)
17770           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17771         esac ;;
17772       esac
17773       link_all_deplibs_GCJ=yes
17774       ;;
17776     sunos4*)
17777       if test "x$host_vendor" = xsequent; then
17778         # Use $CC to link under sequent, because it throws in some extra .o
17779         # files that make .init and .fini sections work.
17780         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17781       else
17782         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17783       fi
17784       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17785       hardcode_direct_GCJ=yes
17786       hardcode_minus_L_GCJ=yes
17787       hardcode_shlibpath_var_GCJ=no
17788       ;;
17790     sysv4)
17791       case $host_vendor in
17792         sni)
17793           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794           hardcode_direct_GCJ=yes # is this really true???
17795         ;;
17796         siemens)
17797           ## LD is ld it makes a PLAMLIB
17798           ## CC just makes a GrossModule.
17799           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17800           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17801           hardcode_direct_GCJ=no
17802         ;;
17803         motorola)
17804           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17805           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17806         ;;
17807       esac
17808       runpath_var='LD_RUN_PATH'
17809       hardcode_shlibpath_var_GCJ=no
17810       ;;
17812     sysv4.3*)
17813       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17814       hardcode_shlibpath_var_GCJ=no
17815       export_dynamic_flag_spec_GCJ='-Bexport'
17816       ;;
17818     sysv4*MP*)
17819       if test -d /usr/nec; then
17820         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17821         hardcode_shlibpath_var_GCJ=no
17822         runpath_var=LD_RUN_PATH
17823         hardcode_runpath_var=yes
17824         ld_shlibs_GCJ=yes
17825       fi
17826       ;;
17828     sysv4.2uw2*)
17829       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17830       hardcode_direct_GCJ=yes
17831       hardcode_minus_L_GCJ=no
17832       hardcode_shlibpath_var_GCJ=no
17833       hardcode_runpath_var=yes
17834       runpath_var=LD_RUN_PATH
17835       ;;
17837    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17838       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17839       if test "$GCC" = yes; then
17840         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17841       else
17842         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17843       fi
17844       runpath_var='LD_RUN_PATH'
17845       hardcode_shlibpath_var_GCJ=no
17846       ;;
17848     sysv5*)
17849       no_undefined_flag_GCJ=' -z text'
17850       # $CC -shared without GNU ld will not create a library from C++
17851       # object files and a static libstdc++, better avoid it by now
17852       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17853       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17854                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17855       hardcode_libdir_flag_spec_GCJ=
17856       hardcode_shlibpath_var_GCJ=no
17857       runpath_var='LD_RUN_PATH'
17858       ;;
17860     uts4*)
17861       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17862       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17863       hardcode_shlibpath_var_GCJ=no
17864       ;;
17866     *)
17867       ld_shlibs_GCJ=no
17868       ;;
17869     esac
17870   fi
17872 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17873 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17874 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17877 if test "$GCC" = yes; then
17878   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17882 # Do we need to explicitly link libc?
17884 case "x$archive_cmds_need_lc_GCJ" in
17885 x|xyes)
17886   # Assume -lc should be added
17887   archive_cmds_need_lc_GCJ=yes
17889   if test "$enable_shared" = yes && test "$GCC" = yes; then
17890     case $archive_cmds_GCJ in
17891     *'~'*)
17892       # FIXME: we may have to deal with multi-command sequences.
17893       ;;
17894     '$CC '*)
17895       # Test whether the compiler implicitly links with -lc since on some
17896       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17897       # to ld, don't add -lc before -lgcc.
17898       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17900       $rm conftest*
17901       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17903       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17904   (eval $ac_compile) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); } 2>conftest.err; then
17908         soname=conftest
17909         lib=conftest
17910         libobjs=conftest.$ac_objext
17911         deplibs=
17912         wl=$lt_prog_compiler_wl_GCJ
17913         compiler_flags=-v
17914         linker_flags=-v
17915         verstring=
17916         output_objdir=.
17917         libname=conftest
17918         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17919         allow_undefined_flag_GCJ=
17920         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17921   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }
17925         then
17926           archive_cmds_need_lc_GCJ=no
17927         else
17928           archive_cmds_need_lc_GCJ=yes
17929         fi
17930         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17931       else
17932         cat conftest.err 1>&5
17933       fi
17934       $rm conftest*
17935       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17936 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17937       ;;
17938     esac
17939   fi
17940   ;;
17941 esac
17943 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17944 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17945 library_names_spec=
17946 libname_spec='lib$name'
17947 soname_spec=
17948 shrext_cmds=".so"
17949 postinstall_cmds=
17950 postuninstall_cmds=
17951 finish_cmds=
17952 finish_eval=
17953 shlibpath_var=
17954 shlibpath_overrides_runpath=unknown
17955 version_type=none
17956 dynamic_linker="$host_os ld.so"
17957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17958 if test "$GCC" = yes; then
17959   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17960   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17961     # if the path contains ";" then we assume it to be the separator
17962     # otherwise default to the standard path separator (i.e. ":") - it is
17963     # assumed that no part of a normal pathname contains ";" but that should
17964     # okay in the real world where ";" in dirpaths is itself problematic.
17965     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17966   else
17967     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17968   fi
17969 else
17970   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17972 need_lib_prefix=unknown
17973 hardcode_into_libs=no
17975 # when you set need_version to no, make sure it does not cause -set_version
17976 # flags to be left without arguments
17977 need_version=unknown
17979 case $host_os in
17980 aix3*)
17981   version_type=linux
17982   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17983   shlibpath_var=LIBPATH
17985   # AIX 3 has no versioning support, so we append a major version to the name.
17986   soname_spec='${libname}${release}${shared_ext}$major'
17987   ;;
17989 aix4* | aix5*)
17990   version_type=linux
17991   need_lib_prefix=no
17992   need_version=no
17993   hardcode_into_libs=yes
17994   if test "$host_cpu" = ia64; then
17995     # AIX 5 supports IA64
17996     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17997     shlibpath_var=LD_LIBRARY_PATH
17998   else
17999     # With GCC up to 2.95.x, collect2 would create an import file
18000     # for dependence libraries.  The import file would start with
18001     # the line `#! .'.  This would cause the generated library to
18002     # depend on `.', always an invalid library.  This was fixed in
18003     # development snapshots of GCC prior to 3.0.
18004     case $host_os in
18005       aix4 | aix4.[01] | aix4.[01].*)
18006       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18007            echo ' yes '
18008            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18009         :
18010       else
18011         can_build_shared=no
18012       fi
18013       ;;
18014     esac
18015     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18016     # soname into executable. Probably we can add versioning support to
18017     # collect2, so additional links can be useful in future.
18018     if test "$aix_use_runtimelinking" = yes; then
18019       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18020       # instead of lib<name>.a to let people know that these are not
18021       # typical AIX shared libraries.
18022       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023     else
18024       # We preserve .a as extension for shared libraries through AIX4.2
18025       # and later when we are not doing run time linking.
18026       library_names_spec='${libname}${release}.a $libname.a'
18027       soname_spec='${libname}${release}${shared_ext}$major'
18028     fi
18029     shlibpath_var=LIBPATH
18030   fi
18031   ;;
18033 amigaos*)
18034   library_names_spec='$libname.ixlibrary $libname.a'
18035   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18036   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'
18037   ;;
18039 beos*)
18040   library_names_spec='${libname}${shared_ext}'
18041   dynamic_linker="$host_os ld.so"
18042   shlibpath_var=LIBRARY_PATH
18043   ;;
18045 bsdi[45]*)
18046   version_type=linux
18047   need_version=no
18048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18049   soname_spec='${libname}${release}${shared_ext}$major'
18050   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18051   shlibpath_var=LD_LIBRARY_PATH
18052   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18053   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18054   # the default ld.so.conf also contains /usr/contrib/lib and
18055   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18056   # libtool to hard-code these into programs
18057   ;;
18059 cygwin* | mingw* | pw32*)
18060   version_type=windows
18061   shrext_cmds=".dll"
18062   need_version=no
18063   need_lib_prefix=no
18065   case $GCC,$host_os in
18066   yes,cygwin* | yes,mingw* | yes,pw32*)
18067     library_names_spec='$libname.dll.a'
18068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18069     postinstall_cmds='base_file=`basename \${file}`~
18070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18071       dldir=$destdir/`dirname \$dlpath`~
18072       test -d \$dldir || mkdir -p \$dldir~
18073       $install_prog $dir/$dlname \$dldir/$dlname~
18074       chmod a+x \$dldir/$dlname'
18075     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18076       dlpath=$dir/\$dldll~
18077        $rm \$dlpath'
18078     shlibpath_overrides_runpath=yes
18080     case $host_os in
18081     cygwin*)
18082       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18083       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18084       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18085       ;;
18086     mingw*)
18087       # MinGW DLLs use traditional 'lib' prefix
18088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18089       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18090       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18091         # It is most probably a Windows format PATH printed by
18092         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18093         # path with ; separators, and with drive letters. We can handle the
18094         # drive letters (cygwin fileutils understands them), so leave them,
18095         # especially as we might pass files found there to a mingw objdump,
18096         # which wouldn't understand a cygwinified path. Ahh.
18097         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18098       else
18099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18100       fi
18101       ;;
18102     pw32*)
18103       # pw32 DLLs use 'pw' prefix rather than 'lib'
18104       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18105       ;;
18106     esac
18107     ;;
18109   *)
18110     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18111     ;;
18112   esac
18113   dynamic_linker='Win32 ld.exe'
18114   # FIXME: first we should search . and the directory the executable is in
18115   shlibpath_var=PATH
18116   ;;
18118 darwin* | rhapsody*)
18119   dynamic_linker="$host_os dyld"
18120   version_type=darwin
18121   need_lib_prefix=no
18122   need_version=no
18123   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18124   soname_spec='${libname}${release}${major}$shared_ext'
18125   shlibpath_overrides_runpath=yes
18126   shlibpath_var=DYLD_LIBRARY_PATH
18127   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18128   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18129   if test "$GCC" = yes; then
18130     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18131   else
18132     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18133   fi
18134   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18135   ;;
18137 dgux*)
18138   version_type=linux
18139   need_lib_prefix=no
18140   need_version=no
18141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18142   soname_spec='${libname}${release}${shared_ext}$major'
18143   shlibpath_var=LD_LIBRARY_PATH
18144   ;;
18146 freebsd1*)
18147   dynamic_linker=no
18148   ;;
18150 kfreebsd*-gnu)
18151   version_type=linux
18152   need_lib_prefix=no
18153   need_version=no
18154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18155   soname_spec='${libname}${release}${shared_ext}$major'
18156   shlibpath_var=LD_LIBRARY_PATH
18157   shlibpath_overrides_runpath=no
18158   hardcode_into_libs=yes
18159   dynamic_linker='GNU ld.so'
18160   ;;
18162 freebsd* | dragonfly*)
18163   # DragonFly does not have aout.  When/if they implement a new
18164   # versioning mechanism, adjust this.
18165   if test -x /usr/bin/objformat; then
18166     objformat=`/usr/bin/objformat`
18167   else
18168     case $host_os in
18169     freebsd[123]*) objformat=aout ;;
18170     *) objformat=elf ;;
18171     esac
18172   fi
18173   version_type=freebsd-$objformat
18174   case $version_type in
18175     freebsd-elf*)
18176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18177       need_version=no
18178       need_lib_prefix=no
18179       ;;
18180     freebsd-*)
18181       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18182       need_version=yes
18183       ;;
18184   esac
18185   shlibpath_var=LD_LIBRARY_PATH
18186   case $host_os in
18187   freebsd2*)
18188     shlibpath_overrides_runpath=yes
18189     ;;
18190   freebsd3.[01]* | freebsdelf3.[01]*)
18191     shlibpath_overrides_runpath=yes
18192     hardcode_into_libs=yes
18193     ;;
18194   *) # from 3.2 on
18195     shlibpath_overrides_runpath=no
18196     hardcode_into_libs=yes
18197     ;;
18198   esac
18199   ;;
18201 gnu*)
18202   version_type=linux
18203   need_lib_prefix=no
18204   need_version=no
18205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18206   soname_spec='${libname}${release}${shared_ext}$major'
18207   shlibpath_var=LD_LIBRARY_PATH
18208   hardcode_into_libs=yes
18209   ;;
18211 hpux9* | hpux10* | hpux11*)
18212   # Give a soname corresponding to the major version so that dld.sl refuses to
18213   # link against other versions.
18214   version_type=sunos
18215   need_lib_prefix=no
18216   need_version=no
18217   case $host_cpu in
18218   ia64*)
18219     shrext_cmds='.so'
18220     hardcode_into_libs=yes
18221     dynamic_linker="$host_os dld.so"
18222     shlibpath_var=LD_LIBRARY_PATH
18223     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225     soname_spec='${libname}${release}${shared_ext}$major'
18226     if test "X$HPUX_IA64_MODE" = X32; then
18227       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18228     else
18229       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18230     fi
18231     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18232     ;;
18233    hppa*64*)
18234      shrext_cmds='.sl'
18235      hardcode_into_libs=yes
18236      dynamic_linker="$host_os dld.sl"
18237      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18238      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18239      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240      soname_spec='${libname}${release}${shared_ext}$major'
18241      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18242      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18243      ;;
18244    *)
18245     shrext_cmds='.sl'
18246     dynamic_linker="$host_os dld.sl"
18247     shlibpath_var=SHLIB_PATH
18248     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250     soname_spec='${libname}${release}${shared_ext}$major'
18251     ;;
18252   esac
18253   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18254   postinstall_cmds='chmod 555 $lib'
18255   ;;
18257 irix5* | irix6* | nonstopux*)
18258   case $host_os in
18259     nonstopux*) version_type=nonstopux ;;
18260     *)
18261         if test "$lt_cv_prog_gnu_ld" = yes; then
18262                 version_type=linux
18263         else
18264                 version_type=irix
18265         fi ;;
18266   esac
18267   need_lib_prefix=no
18268   need_version=no
18269   soname_spec='${libname}${release}${shared_ext}$major'
18270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18271   case $host_os in
18272   irix5* | nonstopux*)
18273     libsuff= shlibsuff=
18274     ;;
18275   *)
18276     case $LD in # libtool.m4 will add one of these switches to LD
18277     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18278       libsuff= shlibsuff= libmagic=32-bit;;
18279     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18280       libsuff=32 shlibsuff=N32 libmagic=N32;;
18281     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18282       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18283     *) libsuff= shlibsuff= libmagic=never-match;;
18284     esac
18285     ;;
18286   esac
18287   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18288   shlibpath_overrides_runpath=no
18289   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18290   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18291   hardcode_into_libs=yes
18292   ;;
18294 # No shared lib support for Linux oldld, aout, or coff.
18295 linux*oldld* | linux*aout* | linux*coff*)
18296   dynamic_linker=no
18297   ;;
18299 # This must be Linux ELF.
18300 linux*)
18301   version_type=linux
18302   need_lib_prefix=no
18303   need_version=no
18304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305   soname_spec='${libname}${release}${shared_ext}$major'
18306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18307   shlibpath_var=LD_LIBRARY_PATH
18308   shlibpath_overrides_runpath=no
18309   # This implies no fast_install, which is unacceptable.
18310   # Some rework will be needed to allow for fast_install
18311   # before this can be enabled.
18312   hardcode_into_libs=yes
18314   # Append ld.so.conf contents to the search path
18315   if test -f /etc/ld.so.conf; then
18316     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18317     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18318   fi
18320   # We used to test for /lib/ld.so.1 and disable shared libraries on
18321   # powerpc, because MkLinux only supported shared libraries with the
18322   # GNU dynamic linker.  Since this was broken with cross compilers,
18323   # most powerpc-linux boxes support dynamic linking these days and
18324   # people can always --disable-shared, the test was removed, and we
18325   # assume the GNU/Linux dynamic linker is in use.
18326   dynamic_linker='GNU/Linux ld.so'
18327   ;;
18329 netbsdelf*-gnu)
18330   version_type=linux
18331   need_lib_prefix=no
18332   need_version=no
18333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18334   soname_spec='${libname}${release}${shared_ext}$major'
18335   shlibpath_var=LD_LIBRARY_PATH
18336   shlibpath_overrides_runpath=no
18337   hardcode_into_libs=yes
18338   dynamic_linker='NetBSD ld.elf_so'
18339   ;;
18341 knetbsd*-gnu)
18342   version_type=linux
18343   need_lib_prefix=no
18344   need_version=no
18345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18346   soname_spec='${libname}${release}${shared_ext}$major'
18347   shlibpath_var=LD_LIBRARY_PATH
18348   shlibpath_overrides_runpath=no
18349   hardcode_into_libs=yes
18350   dynamic_linker='GNU ld.so'
18351   ;;
18353 netbsd*)
18354   version_type=sunos
18355   need_lib_prefix=no
18356   need_version=no
18357   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18359     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18360     dynamic_linker='NetBSD (a.out) ld.so'
18361   else
18362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18363     soname_spec='${libname}${release}${shared_ext}$major'
18364     dynamic_linker='NetBSD ld.elf_so'
18365   fi
18366   shlibpath_var=LD_LIBRARY_PATH
18367   shlibpath_overrides_runpath=yes
18368   hardcode_into_libs=yes
18369   ;;
18371 newsos6)
18372   version_type=linux
18373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374   shlibpath_var=LD_LIBRARY_PATH
18375   shlibpath_overrides_runpath=yes
18376   ;;
18378 nto-qnx*)
18379   version_type=linux
18380   need_lib_prefix=no
18381   need_version=no
18382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383   soname_spec='${libname}${release}${shared_ext}$major'
18384   shlibpath_var=LD_LIBRARY_PATH
18385   shlibpath_overrides_runpath=yes
18386   ;;
18388 openbsd*)
18389   version_type=sunos
18390   need_lib_prefix=no
18391   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18392   case $host_os in
18393     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18394     *)                         need_version=no  ;;
18395   esac
18396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18398   shlibpath_var=LD_LIBRARY_PATH
18399   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18400     case $host_os in
18401       openbsd2.[89] | openbsd2.[89].*)
18402         shlibpath_overrides_runpath=no
18403         ;;
18404       *)
18405         shlibpath_overrides_runpath=yes
18406         ;;
18407       esac
18408   else
18409     shlibpath_overrides_runpath=yes
18410   fi
18411   ;;
18413 os2*)
18414   libname_spec='$name'
18415   shrext_cmds=".dll"
18416   need_lib_prefix=no
18417   library_names_spec='$libname${shared_ext} $libname.a'
18418   dynamic_linker='OS/2 ld.exe'
18419   shlibpath_var=LIBPATH
18420   ;;
18422 osf3* | osf4* | osf5*)
18423   version_type=osf
18424   need_lib_prefix=no
18425   need_version=no
18426   soname_spec='${libname}${release}${shared_ext}$major'
18427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428   shlibpath_var=LD_LIBRARY_PATH
18429   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18430   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18431   ;;
18433 sco3.2v5*)
18434   version_type=osf
18435   soname_spec='${libname}${release}${shared_ext}$major'
18436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437   shlibpath_var=LD_LIBRARY_PATH
18438   ;;
18440 solaris*)
18441   version_type=linux
18442   need_lib_prefix=no
18443   need_version=no
18444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18445   soname_spec='${libname}${release}${shared_ext}$major'
18446   shlibpath_var=LD_LIBRARY_PATH
18447   shlibpath_overrides_runpath=yes
18448   hardcode_into_libs=yes
18449   # ldd complains unless libraries are executable
18450   postinstall_cmds='chmod +x $lib'
18451   ;;
18453 sunos4*)
18454   version_type=sunos
18455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18456   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18457   shlibpath_var=LD_LIBRARY_PATH
18458   shlibpath_overrides_runpath=yes
18459   if test "$with_gnu_ld" = yes; then
18460     need_lib_prefix=no
18461   fi
18462   need_version=yes
18463   ;;
18465 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18466   version_type=linux
18467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18468   soname_spec='${libname}${release}${shared_ext}$major'
18469   shlibpath_var=LD_LIBRARY_PATH
18470   case $host_vendor in
18471     sni)
18472       shlibpath_overrides_runpath=no
18473       need_lib_prefix=no
18474       export_dynamic_flag_spec='${wl}-Blargedynsym'
18475       runpath_var=LD_RUN_PATH
18476       ;;
18477     siemens)
18478       need_lib_prefix=no
18479       ;;
18480     motorola)
18481       need_lib_prefix=no
18482       need_version=no
18483       shlibpath_overrides_runpath=no
18484       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18485       ;;
18486   esac
18487   ;;
18489 sysv4*MP*)
18490   if test -d /usr/nec ;then
18491     version_type=linux
18492     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18493     soname_spec='$libname${shared_ext}.$major'
18494     shlibpath_var=LD_LIBRARY_PATH
18495   fi
18496   ;;
18498 uts4*)
18499   version_type=linux
18500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18501   soname_spec='${libname}${release}${shared_ext}$major'
18502   shlibpath_var=LD_LIBRARY_PATH
18503   ;;
18506   dynamic_linker=no
18507   ;;
18508 esac
18509 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18510 echo "${ECHO_T}$dynamic_linker" >&6; }
18511 test "$dynamic_linker" = no && can_build_shared=no
18513 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18514 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18515 hardcode_action_GCJ=
18516 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18517    test -n "$runpath_var_GCJ" || \
18518    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18520   # We can hardcode non-existant directories.
18521   if test "$hardcode_direct_GCJ" != no &&
18522      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18523      # have to relink, otherwise we might link with an installed library
18524      # when we should be linking with a yet-to-be-installed one
18525      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18526      test "$hardcode_minus_L_GCJ" != no; then
18527     # Linking always hardcodes the temporary library directory.
18528     hardcode_action_GCJ=relink
18529   else
18530     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18531     hardcode_action_GCJ=immediate
18532   fi
18533 else
18534   # We cannot hardcode anything, or else we can only hardcode existing
18535   # directories.
18536   hardcode_action_GCJ=unsupported
18538 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18539 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18541 if test "$hardcode_action_GCJ" = relink; then
18542   # Fast installation is not supported
18543   enable_fast_install=no
18544 elif test "$shlibpath_overrides_runpath" = yes ||
18545      test "$enable_shared" = no; then
18546   # Fast installation is not necessary
18547   enable_fast_install=needless
18550 striplib=
18551 old_striplib=
18552 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18553 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18554 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18555   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18556   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18557   { echo "$as_me:$LINENO: result: yes" >&5
18558 echo "${ECHO_T}yes" >&6; }
18559 else
18560 # FIXME - insert some real tests, host_os isn't really good enough
18561   case $host_os in
18562    darwin*)
18563        if test -n "$STRIP" ; then
18564          striplib="$STRIP -x"
18565          { echo "$as_me:$LINENO: result: yes" >&5
18566 echo "${ECHO_T}yes" >&6; }
18567        else
18568   { echo "$as_me:$LINENO: result: no" >&5
18569 echo "${ECHO_T}no" >&6; }
18571        ;;
18572    *)
18573   { echo "$as_me:$LINENO: result: no" >&5
18574 echo "${ECHO_T}no" >&6; }
18575     ;;
18576   esac
18579 if test "x$enable_dlopen" != xyes; then
18580   enable_dlopen=unknown
18581   enable_dlopen_self=unknown
18582   enable_dlopen_self_static=unknown
18583 else
18584   lt_cv_dlopen=no
18585   lt_cv_dlopen_libs=
18587   case $host_os in
18588   beos*)
18589     lt_cv_dlopen="load_add_on"
18590     lt_cv_dlopen_libs=
18591     lt_cv_dlopen_self=yes
18592     ;;
18594   mingw* | pw32*)
18595     lt_cv_dlopen="LoadLibrary"
18596     lt_cv_dlopen_libs=
18597    ;;
18599   cygwin*)
18600     lt_cv_dlopen="dlopen"
18601     lt_cv_dlopen_libs=
18602    ;;
18604   darwin*)
18605   # if libdl is installed we need to link against it
18606     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18607 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18609   echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611   ac_check_lib_save_LIBS=$LIBS
18612 LIBS="-ldl  $LIBS"
18613 cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h.  */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h.  */
18620 /* Override any GCC internal prototype to avoid an error.
18621    Use char because int might match the return type of a GCC
18622    builtin and then its argument prototype would still apply.  */
18623 #ifdef __cplusplus
18624 extern "C"
18625 #endif
18626 char dlopen ();
18628 main ()
18630 return dlopen ();
18631   ;
18632   return 0;
18634 _ACEOF
18635 rm -f conftest.$ac_objext conftest$ac_exeext
18636 if { (ac_try="$ac_link"
18637 case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_link") 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } && {
18649          test -z "$ac_c_werror_flag" ||
18650          test ! -s conftest.err
18651        } && test -s conftest$ac_exeext &&
18652        $as_test_x conftest$ac_exeext; then
18653   ac_cv_lib_dl_dlopen=yes
18654 else
18655   echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18658         ac_cv_lib_dl_dlopen=no
18661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18662       conftest$ac_exeext conftest.$ac_ext
18663 LIBS=$ac_check_lib_save_LIBS
18665 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18666 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18667 if test $ac_cv_lib_dl_dlopen = yes; then
18668   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18669 else
18670   
18671     lt_cv_dlopen="dyld"
18672     lt_cv_dlopen_libs=
18673     lt_cv_dlopen_self=yes
18674     
18677    ;;
18679   *)
18680     { echo "$as_me:$LINENO: checking for shl_load" >&5
18681 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18682 if test "${ac_cv_func_shl_load+set}" = set; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685   cat >conftest.$ac_ext <<_ACEOF
18686 /* confdefs.h.  */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h.  */
18691 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18693 #define shl_load innocuous_shl_load
18695 /* System header to define __stub macros and hopefully few prototypes,
18696     which can conflict with char shl_load (); below.
18697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18698     <limits.h> exists even on freestanding compilers.  */
18700 #ifdef __STDC__
18701 # include <limits.h>
18702 #else
18703 # include <assert.h>
18704 #endif
18706 #undef shl_load
18708 /* Override any GCC internal prototype to avoid an error.
18709    Use char because int might match the return type of a GCC
18710    builtin and then its argument prototype would still apply.  */
18711 #ifdef __cplusplus
18712 extern "C"
18713 #endif
18714 char shl_load ();
18715 /* The GNU C library defines this for functions which it implements
18716     to always fail with ENOSYS.  Some functions are actually named
18717     something starting with __ and the normal name is an alias.  */
18718 #if defined __stub_shl_load || defined __stub___shl_load
18719 choke me
18720 #endif
18723 main ()
18725 return shl_load ();
18726   ;
18727   return 0;
18729 _ACEOF
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_link") 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } && {
18744          test -z "$ac_c_werror_flag" ||
18745          test ! -s conftest.err
18746        } && test -s conftest$ac_exeext &&
18747        $as_test_x conftest$ac_exeext; then
18748   ac_cv_func_shl_load=yes
18749 else
18750   echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753         ac_cv_func_shl_load=no
18756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18757       conftest$ac_exeext conftest.$ac_ext
18759 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18760 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18761 if test $ac_cv_func_shl_load = yes; then
18762   lt_cv_dlopen="shl_load"
18763 else
18764   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18765 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18766 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18767   echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769   ac_check_lib_save_LIBS=$LIBS
18770 LIBS="-ldld  $LIBS"
18771 cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h.  */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h.  */
18778 /* Override any GCC internal prototype to avoid an error.
18779    Use char because int might match the return type of a GCC
18780    builtin and then its argument prototype would still apply.  */
18781 #ifdef __cplusplus
18782 extern "C"
18783 #endif
18784 char shl_load ();
18786 main ()
18788 return shl_load ();
18789   ;
18790   return 0;
18792 _ACEOF
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (ac_try="$ac_link"
18795 case "(($ac_try" in
18796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797   *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800   (eval "$ac_link") 2>conftest.er1
18801   ac_status=$?
18802   grep -v '^ *+' conftest.er1 >conftest.err
18803   rm -f conftest.er1
18804   cat conftest.err >&5
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); } && {
18807          test -z "$ac_c_werror_flag" ||
18808          test ! -s conftest.err
18809        } && test -s conftest$ac_exeext &&
18810        $as_test_x conftest$ac_exeext; then
18811   ac_cv_lib_dld_shl_load=yes
18812 else
18813   echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18816         ac_cv_lib_dld_shl_load=no
18819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18820       conftest$ac_exeext conftest.$ac_ext
18821 LIBS=$ac_check_lib_save_LIBS
18823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18824 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18825 if test $ac_cv_lib_dld_shl_load = yes; then
18826   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18827 else
18828   { echo "$as_me:$LINENO: checking for dlopen" >&5
18829 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18830 if test "${ac_cv_func_dlopen+set}" = set; then
18831   echo $ECHO_N "(cached) $ECHO_C" >&6
18832 else
18833   cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h.  */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h.  */
18839 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18841 #define dlopen innocuous_dlopen
18843 /* System header to define __stub macros and hopefully few prototypes,
18844     which can conflict with char dlopen (); below.
18845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18846     <limits.h> exists even on freestanding compilers.  */
18848 #ifdef __STDC__
18849 # include <limits.h>
18850 #else
18851 # include <assert.h>
18852 #endif
18854 #undef dlopen
18856 /* Override any GCC internal prototype to avoid an error.
18857    Use char because int might match the return type of a GCC
18858    builtin and then its argument prototype would still apply.  */
18859 #ifdef __cplusplus
18860 extern "C"
18861 #endif
18862 char dlopen ();
18863 /* The GNU C library defines this for functions which it implements
18864     to always fail with ENOSYS.  Some functions are actually named
18865     something starting with __ and the normal name is an alias.  */
18866 #if defined __stub_dlopen || defined __stub___dlopen
18867 choke me
18868 #endif
18871 main ()
18873 return dlopen ();
18874   ;
18875   return 0;
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882   *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885   (eval "$ac_link") 2>conftest.er1
18886   ac_status=$?
18887   grep -v '^ *+' conftest.er1 >conftest.err
18888   rm -f conftest.er1
18889   cat conftest.err >&5
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } && {
18892          test -z "$ac_c_werror_flag" ||
18893          test ! -s conftest.err
18894        } && test -s conftest$ac_exeext &&
18895        $as_test_x conftest$ac_exeext; then
18896   ac_cv_func_dlopen=yes
18897 else
18898   echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901         ac_cv_func_dlopen=no
18904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18905       conftest$ac_exeext conftest.$ac_ext
18907 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18908 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18909 if test $ac_cv_func_dlopen = yes; then
18910   lt_cv_dlopen="dlopen"
18911 else
18912   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917   ac_check_lib_save_LIBS=$LIBS
18918 LIBS="-ldl  $LIBS"
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h.  */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h.  */
18926 /* Override any GCC internal prototype to avoid an error.
18927    Use char because int might match the return type of a GCC
18928    builtin and then its argument prototype would still apply.  */
18929 #ifdef __cplusplus
18930 extern "C"
18931 #endif
18932 char dlopen ();
18934 main ()
18936 return dlopen ();
18937   ;
18938   return 0;
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945   *) ac_try_echo=$ac_try;;
18946 esac
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948   (eval "$ac_link") 2>conftest.er1
18949   ac_status=$?
18950   grep -v '^ *+' conftest.er1 >conftest.err
18951   rm -f conftest.er1
18952   cat conftest.err >&5
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); } && {
18955          test -z "$ac_c_werror_flag" ||
18956          test ! -s conftest.err
18957        } && test -s conftest$ac_exeext &&
18958        $as_test_x conftest$ac_exeext; then
18959   ac_cv_lib_dl_dlopen=yes
18960 else
18961   echo "$as_me: failed program was:" >&5
18962 sed 's/^/| /' conftest.$ac_ext >&5
18964         ac_cv_lib_dl_dlopen=no
18967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18968       conftest$ac_exeext conftest.$ac_ext
18969 LIBS=$ac_check_lib_save_LIBS
18971 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18973 if test $ac_cv_lib_dl_dlopen = yes; then
18974   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18975 else
18976   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18977 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18978 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18979   echo $ECHO_N "(cached) $ECHO_C" >&6
18980 else
18981   ac_check_lib_save_LIBS=$LIBS
18982 LIBS="-lsvld  $LIBS"
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h.  */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h.  */
18990 /* Override any GCC internal prototype to avoid an error.
18991    Use char because int might match the return type of a GCC
18992    builtin and then its argument prototype would still apply.  */
18993 #ifdef __cplusplus
18994 extern "C"
18995 #endif
18996 char dlopen ();
18998 main ()
19000 return dlopen ();
19001   ;
19002   return 0;
19004 _ACEOF
19005 rm -f conftest.$ac_objext conftest$ac_exeext
19006 if { (ac_try="$ac_link"
19007 case "(($ac_try" in
19008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009   *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012   (eval "$ac_link") 2>conftest.er1
19013   ac_status=$?
19014   grep -v '^ *+' conftest.er1 >conftest.err
19015   rm -f conftest.er1
19016   cat conftest.err >&5
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); } && {
19019          test -z "$ac_c_werror_flag" ||
19020          test ! -s conftest.err
19021        } && test -s conftest$ac_exeext &&
19022        $as_test_x conftest$ac_exeext; then
19023   ac_cv_lib_svld_dlopen=yes
19024 else
19025   echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028         ac_cv_lib_svld_dlopen=no
19031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19032       conftest$ac_exeext conftest.$ac_ext
19033 LIBS=$ac_check_lib_save_LIBS
19035 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19036 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19037 if test $ac_cv_lib_svld_dlopen = yes; then
19038   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19039 else
19040   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19041 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19042 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   ac_check_lib_save_LIBS=$LIBS
19046 LIBS="-ldld  $LIBS"
19047 cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h.  */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h.  */
19054 /* Override any GCC internal prototype to avoid an error.
19055    Use char because int might match the return type of a GCC
19056    builtin and then its argument prototype would still apply.  */
19057 #ifdef __cplusplus
19058 extern "C"
19059 #endif
19060 char dld_link ();
19062 main ()
19064 return dld_link ();
19065   ;
19066   return 0;
19068 _ACEOF
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (ac_try="$ac_link"
19071 case "(($ac_try" in
19072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073   *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076   (eval "$ac_link") 2>conftest.er1
19077   ac_status=$?
19078   grep -v '^ *+' conftest.er1 >conftest.err
19079   rm -f conftest.er1
19080   cat conftest.err >&5
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); } && {
19083          test -z "$ac_c_werror_flag" ||
19084          test ! -s conftest.err
19085        } && test -s conftest$ac_exeext &&
19086        $as_test_x conftest$ac_exeext; then
19087   ac_cv_lib_dld_dld_link=yes
19088 else
19089   echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092         ac_cv_lib_dld_dld_link=no
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096       conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19099 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19100 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19101 if test $ac_cv_lib_dld_dld_link = yes; then
19102   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19105               
19108             
19111           
19114         
19117       
19120     ;;
19121   esac
19123   if test "x$lt_cv_dlopen" != xno; then
19124     enable_dlopen=yes
19125   else
19126     enable_dlopen=no
19127   fi
19129   case $lt_cv_dlopen in
19130   dlopen)
19131     save_CPPFLAGS="$CPPFLAGS"
19132     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19134     save_LDFLAGS="$LDFLAGS"
19135     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19137     save_LIBS="$LIBS"
19138     LIBS="$lt_cv_dlopen_libs $LIBS"
19140     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19141 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19142 if test "${lt_cv_dlopen_self+set}" = set; then
19143   echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145           if test "$cross_compiling" = yes; then :
19146   lt_cv_dlopen_self=cross
19147 else
19148   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19149   lt_status=$lt_dlunknown
19150   cat > conftest.$ac_ext <<EOF
19151 #line __oline__ "configure"
19152 #include "confdefs.h"
19154 #if HAVE_DLFCN_H
19155 #include <dlfcn.h>
19156 #endif
19158 #include <stdio.h>
19160 #ifdef RTLD_GLOBAL
19161 #  define LT_DLGLOBAL           RTLD_GLOBAL
19162 #else
19163 #  ifdef DL_GLOBAL
19164 #    define LT_DLGLOBAL         DL_GLOBAL
19165 #  else
19166 #    define LT_DLGLOBAL         0
19167 #  endif
19168 #endif
19170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19171    find out it does not work in some platform. */
19172 #ifndef LT_DLLAZY_OR_NOW
19173 #  ifdef RTLD_LAZY
19174 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19175 #  else
19176 #    ifdef DL_LAZY
19177 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19178 #    else
19179 #      ifdef RTLD_NOW
19180 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19181 #      else
19182 #        ifdef DL_NOW
19183 #          define LT_DLLAZY_OR_NOW      DL_NOW
19184 #        else
19185 #          define LT_DLLAZY_OR_NOW      0
19186 #        endif
19187 #      endif
19188 #    endif
19189 #  endif
19190 #endif
19192 #ifdef __cplusplus
19193 extern "C" void exit (int);
19194 #endif
19196 void fnord() { int i=42;}
19197 int main ()
19199   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19200   int status = $lt_dlunknown;
19202   if (self)
19203     {
19204       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19205       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19206       /* dlclose (self); */
19207     }
19209     exit (status);
19212   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19213   (eval $ac_link) 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19217     (./conftest; exit; ) >&5 2>/dev/null
19218     lt_status=$?
19219     case x$lt_status in
19220       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19221       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19222       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19223     esac
19224   else :
19225     # compilation failed
19226     lt_cv_dlopen_self=no
19227   fi
19229 rm -fr conftest*
19231     
19233 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19234 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19236     if test "x$lt_cv_dlopen_self" = xyes; then
19237       LDFLAGS="$LDFLAGS $link_static_flag"
19238       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19239 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19240 if test "${lt_cv_dlopen_self_static+set}" = set; then
19241   echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243           if test "$cross_compiling" = yes; then :
19244   lt_cv_dlopen_self_static=cross
19245 else
19246   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19247   lt_status=$lt_dlunknown
19248   cat > conftest.$ac_ext <<EOF
19249 #line __oline__ "configure"
19250 #include "confdefs.h"
19252 #if HAVE_DLFCN_H
19253 #include <dlfcn.h>
19254 #endif
19256 #include <stdio.h>
19258 #ifdef RTLD_GLOBAL
19259 #  define LT_DLGLOBAL           RTLD_GLOBAL
19260 #else
19261 #  ifdef DL_GLOBAL
19262 #    define LT_DLGLOBAL         DL_GLOBAL
19263 #  else
19264 #    define LT_DLGLOBAL         0
19265 #  endif
19266 #endif
19268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19269    find out it does not work in some platform. */
19270 #ifndef LT_DLLAZY_OR_NOW
19271 #  ifdef RTLD_LAZY
19272 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19273 #  else
19274 #    ifdef DL_LAZY
19275 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19276 #    else
19277 #      ifdef RTLD_NOW
19278 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19279 #      else
19280 #        ifdef DL_NOW
19281 #          define LT_DLLAZY_OR_NOW      DL_NOW
19282 #        else
19283 #          define LT_DLLAZY_OR_NOW      0
19284 #        endif
19285 #      endif
19286 #    endif
19287 #  endif
19288 #endif
19290 #ifdef __cplusplus
19291 extern "C" void exit (int);
19292 #endif
19294 void fnord() { int i=42;}
19295 int main ()
19297   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19298   int status = $lt_dlunknown;
19300   if (self)
19301     {
19302       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19303       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19304       /* dlclose (self); */
19305     }
19307     exit (status);
19310   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311   (eval $ac_link) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19315     (./conftest; exit; ) >&5 2>/dev/null
19316     lt_status=$?
19317     case x$lt_status in
19318       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19319       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19320       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19321     esac
19322   else :
19323     # compilation failed
19324     lt_cv_dlopen_self_static=no
19325   fi
19327 rm -fr conftest*
19329       
19331 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19332 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19333     fi
19335     CPPFLAGS="$save_CPPFLAGS"
19336     LDFLAGS="$save_LDFLAGS"
19337     LIBS="$save_LIBS"
19338     ;;
19339   esac
19341   case $lt_cv_dlopen_self in
19342   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19343   *) enable_dlopen_self=unknown ;;
19344   esac
19346   case $lt_cv_dlopen_self_static in
19347   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19348   *) enable_dlopen_self_static=unknown ;;
19349   esac
19353 # The else clause should only fire when bootstrapping the
19354 # libtool distribution, otherwise you forgot to ship ltmain.sh
19355 # with your package, and you will get complaints that there are
19356 # no rules to generate ltmain.sh.
19357 if test -f "$ltmain"; then
19358   # See if we are running on zsh, and set the options which allow our commands through
19359   # without removal of \ escapes.
19360   if test -n "${ZSH_VERSION+set}" ; then
19361     setopt NO_GLOB_SUBST
19362   fi
19363   # Now quote all the things that may contain metacharacters while being
19364   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19365   # variables and quote the copies for generation of the libtool script.
19366   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19367     SED SHELL STRIP \
19368     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19369     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19370     deplibs_check_method reload_flag reload_cmds need_locks \
19371     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19372     lt_cv_sys_global_symbol_to_c_name_address \
19373     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19374     old_postinstall_cmds old_postuninstall_cmds \
19375     compiler_GCJ \
19376     CC_GCJ \
19377     LD_GCJ \
19378     lt_prog_compiler_wl_GCJ \
19379     lt_prog_compiler_pic_GCJ \
19380     lt_prog_compiler_static_GCJ \
19381     lt_prog_compiler_no_builtin_flag_GCJ \
19382     export_dynamic_flag_spec_GCJ \
19383     thread_safe_flag_spec_GCJ \
19384     whole_archive_flag_spec_GCJ \
19385     enable_shared_with_static_runtimes_GCJ \
19386     old_archive_cmds_GCJ \
19387     old_archive_from_new_cmds_GCJ \
19388     predep_objects_GCJ \
19389     postdep_objects_GCJ \
19390     predeps_GCJ \
19391     postdeps_GCJ \
19392     compiler_lib_search_path_GCJ \
19393     archive_cmds_GCJ \
19394     archive_expsym_cmds_GCJ \
19395     postinstall_cmds_GCJ \
19396     postuninstall_cmds_GCJ \
19397     old_archive_from_expsyms_cmds_GCJ \
19398     allow_undefined_flag_GCJ \
19399     no_undefined_flag_GCJ \
19400     export_symbols_cmds_GCJ \
19401     hardcode_libdir_flag_spec_GCJ \
19402     hardcode_libdir_flag_spec_ld_GCJ \
19403     hardcode_libdir_separator_GCJ \
19404     hardcode_automatic_GCJ \
19405     module_cmds_GCJ \
19406     module_expsym_cmds_GCJ \
19407     lt_cv_prog_compiler_c_o_GCJ \
19408     exclude_expsyms_GCJ \
19409     include_expsyms_GCJ; do
19411     case $var in
19412     old_archive_cmds_GCJ | \
19413     old_archive_from_new_cmds_GCJ | \
19414     archive_cmds_GCJ | \
19415     archive_expsym_cmds_GCJ | \
19416     module_cmds_GCJ | \
19417     module_expsym_cmds_GCJ | \
19418     old_archive_from_expsyms_cmds_GCJ | \
19419     export_symbols_cmds_GCJ | \
19420     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19421     postinstall_cmds | postuninstall_cmds | \
19422     old_postinstall_cmds | old_postuninstall_cmds | \
19423     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19424       # Double-quote double-evaled strings.
19425       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19426       ;;
19427     *)
19428       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19429       ;;
19430     esac
19431   done
19433   case $lt_echo in
19434   *'\$0 --fallback-echo"')
19435     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19436     ;;
19437   esac
19439 cfgfile="$ofile"
19441   cat <<__EOF__ >> "$cfgfile"
19442 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19444 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19446 # Shell to use when invoking shell scripts.
19447 SHELL=$lt_SHELL
19449 # Whether or not to build shared libraries.
19450 build_libtool_libs=$enable_shared
19452 # Whether or not to build static libraries.
19453 build_old_libs=$enable_static
19455 # Whether or not to add -lc for building shared libraries.
19456 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19458 # Whether or not to disallow shared libs when runtime libs are static
19459 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19461 # Whether or not to optimize for fast installation.
19462 fast_install=$enable_fast_install
19464 # The host system.
19465 host_alias=$host_alias
19466 host=$host
19467 host_os=$host_os
19469 # The build system.
19470 build_alias=$build_alias
19471 build=$build
19472 build_os=$build_os
19474 # An echo program that does not interpret backslashes.
19475 echo=$lt_echo
19477 # The archiver.
19478 AR=$lt_AR
19479 AR_FLAGS=$lt_AR_FLAGS
19481 # A C compiler.
19482 LTCC=$lt_LTCC
19484 # A language-specific compiler.
19485 CC=$lt_compiler_GCJ
19487 # Is the compiler the GNU C compiler?
19488 with_gcc=$GCC_GCJ
19490 # An ERE matcher.
19491 EGREP=$lt_EGREP
19493 # The linker used to build libraries.
19494 LD=$lt_LD_GCJ
19496 # Whether we need hard or soft links.
19497 LN_S=$lt_LN_S
19499 # A BSD-compatible nm program.
19500 NM=$lt_NM
19502 # A symbol stripping program
19503 STRIP=$lt_STRIP
19505 # Used to examine libraries when file_magic_cmd begins "file"
19506 MAGIC_CMD=$MAGIC_CMD
19508 # Used on cygwin: DLL creation program.
19509 DLLTOOL="$DLLTOOL"
19511 # Used on cygwin: object dumper.
19512 OBJDUMP="$OBJDUMP"
19514 # Used on cygwin: assembler.
19515 AS="$AS"
19517 # The name of the directory that contains temporary libtool files.
19518 objdir=$objdir
19520 # How to create reloadable object files.
19521 reload_flag=$lt_reload_flag
19522 reload_cmds=$lt_reload_cmds
19524 # How to pass a linker flag through the compiler.
19525 wl=$lt_lt_prog_compiler_wl_GCJ
19527 # Object file suffix (normally "o").
19528 objext="$ac_objext"
19530 # Old archive suffix (normally "a").
19531 libext="$libext"
19533 # Shared library suffix (normally ".so").
19534 shrext_cmds='$shrext_cmds'
19536 # Executable file suffix (normally "").
19537 exeext="$exeext"
19539 # Additional compiler flags for building library objects.
19540 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19541 pic_mode=$pic_mode
19543 # What is the maximum length of a command?
19544 max_cmd_len=$lt_cv_sys_max_cmd_len
19546 # Does compiler simultaneously support -c and -o options?
19547 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19549 # Must we lock files when doing compilation?
19550 need_locks=$lt_need_locks
19552 # Do we need the lib prefix for modules?
19553 need_lib_prefix=$need_lib_prefix
19555 # Do we need a version for libraries?
19556 need_version=$need_version
19558 # Whether dlopen is supported.
19559 dlopen_support=$enable_dlopen
19561 # Whether dlopen of programs is supported.
19562 dlopen_self=$enable_dlopen_self
19564 # Whether dlopen of statically linked programs is supported.
19565 dlopen_self_static=$enable_dlopen_self_static
19567 # Compiler flag to prevent dynamic linking.
19568 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19570 # Compiler flag to turn off builtin functions.
19571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19573 # Compiler flag to allow reflexive dlopens.
19574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19576 # Compiler flag to generate shared objects directly from archives.
19577 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19579 # Compiler flag to generate thread-safe objects.
19580 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19582 # Library versioning type.
19583 version_type=$version_type
19585 # Format of library name prefix.
19586 libname_spec=$lt_libname_spec
19588 # List of archive names.  First name is the real one, the rest are links.
19589 # The last name is the one that the linker finds with -lNAME.
19590 library_names_spec=$lt_library_names_spec
19592 # The coded name of the library, if different from the real name.
19593 soname_spec=$lt_soname_spec
19595 # Commands used to build and install an old-style archive.
19596 RANLIB=$lt_RANLIB
19597 old_archive_cmds=$lt_old_archive_cmds_GCJ
19598 old_postinstall_cmds=$lt_old_postinstall_cmds
19599 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19601 # Create an old-style archive from a shared archive.
19602 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19604 # Create a temporary old-style archive to link instead of a shared archive.
19605 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19607 # Commands used to build and install a shared archive.
19608 archive_cmds=$lt_archive_cmds_GCJ
19609 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19610 postinstall_cmds=$lt_postinstall_cmds
19611 postuninstall_cmds=$lt_postuninstall_cmds
19613 # Commands used to build a loadable module (assumed same as above if empty)
19614 module_cmds=$lt_module_cmds_GCJ
19615 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19617 # Commands to strip libraries.
19618 old_striplib=$lt_old_striplib
19619 striplib=$lt_striplib
19621 # Dependencies to place before the objects being linked to create a
19622 # shared library.
19623 predep_objects=$lt_predep_objects_GCJ
19625 # Dependencies to place after the objects being linked to create a
19626 # shared library.
19627 postdep_objects=$lt_postdep_objects_GCJ
19629 # Dependencies to place before the objects being linked to create a
19630 # shared library.
19631 predeps=$lt_predeps_GCJ
19633 # Dependencies to place after the objects being linked to create a
19634 # shared library.
19635 postdeps=$lt_postdeps_GCJ
19637 # The library search path used internally by the compiler when linking
19638 # a shared library.
19639 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19641 # Method to check whether dependent libraries are shared objects.
19642 deplibs_check_method=$lt_deplibs_check_method
19644 # Command to use when deplibs_check_method == file_magic.
19645 file_magic_cmd=$lt_file_magic_cmd
19647 # Flag that allows shared libraries with undefined symbols to be built.
19648 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19650 # Flag that forces no undefined symbols.
19651 no_undefined_flag=$lt_no_undefined_flag_GCJ
19653 # Commands used to finish a libtool library installation in a directory.
19654 finish_cmds=$lt_finish_cmds
19656 # Same as above, but a single script fragment to be evaled but not shown.
19657 finish_eval=$lt_finish_eval
19659 # Take the output of nm and produce a listing of raw symbols and C names.
19660 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19662 # Transform the output of nm in a proper C declaration
19663 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19665 # Transform the output of nm in a C name address pair
19666 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19668 # This is the shared library runtime path variable.
19669 runpath_var=$runpath_var
19671 # This is the shared library path variable.
19672 shlibpath_var=$shlibpath_var
19674 # Is shlibpath searched before the hard-coded library search path?
19675 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19677 # How to hardcode a shared library path into an executable.
19678 hardcode_action=$hardcode_action_GCJ
19680 # Whether we should hardcode library paths into libraries.
19681 hardcode_into_libs=$hardcode_into_libs
19683 # Flag to hardcode \$libdir into a binary during linking.
19684 # This must work even if \$libdir does not exist.
19685 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19687 # If ld is used when linking, flag to hardcode \$libdir into
19688 # a binary during linking. This must work even if \$libdir does
19689 # not exist.
19690 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19692 # Whether we need a single -rpath flag with a separated argument.
19693 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19695 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19696 # resulting binary.
19697 hardcode_direct=$hardcode_direct_GCJ
19699 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19700 # resulting binary.
19701 hardcode_minus_L=$hardcode_minus_L_GCJ
19703 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19704 # the resulting binary.
19705 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19707 # Set to yes if building a shared library automatically hardcodes DIR into the library
19708 # and all subsequent libraries and executables linked against it.
19709 hardcode_automatic=$hardcode_automatic_GCJ
19711 # Variables whose values should be saved in libtool wrapper scripts and
19712 # restored at relink time.
19713 variables_saved_for_relink="$variables_saved_for_relink"
19715 # Whether libtool must link a program against all its dependency libraries.
19716 link_all_deplibs=$link_all_deplibs_GCJ
19718 # Compile-time system search path for libraries
19719 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19721 # Run-time system search path for libraries
19722 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19724 # Fix the shell variable \$srcfile for the compiler.
19725 fix_srcfile_path="$fix_srcfile_path_GCJ"
19727 # Set to yes if exported symbols are required.
19728 always_export_symbols=$always_export_symbols_GCJ
19730 # The commands to list exported symbols.
19731 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19733 # The commands to extract the exported symbol list from a shared archive.
19734 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19736 # Symbols that should not be listed in the preloaded symbols.
19737 exclude_expsyms=$lt_exclude_expsyms_GCJ
19739 # Symbols that must always be exported.
19740 include_expsyms=$lt_include_expsyms_GCJ
19742 # ### END LIBTOOL TAG CONFIG: $tagname
19744 __EOF__
19747 else
19748   # If there is no Makefile yet, we rely on a make rule to execute
19749   # `config.status --recheck' to rerun these tests and create the
19750   # libtool script then.
19751   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19752   if test -f "$ltmain_in"; then
19753     test -f Makefile && make "$ltmain"
19754   fi
19758 ac_ext=c
19759 ac_cpp='$CPP $CPPFLAGS'
19760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19764 CC="$lt_save_CC"
19766         else
19767           tagname=""
19768         fi
19769         ;;
19771       RC)
19772         
19774 # Source file extension for RC test sources.
19775 ac_ext=rc
19777 # Object file extension for compiled RC test sources.
19778 objext=o
19779 objext_RC=$objext
19781 # Code to be used in simple compile tests
19782 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19784 # Code to be used in simple link tests
19785 lt_simple_link_test_code="$lt_simple_compile_test_code"
19787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19789 # If no C compiler was specified, use CC.
19790 LTCC=${LTCC-"$CC"}
19792 # Allow CC to be a program name with arguments.
19793 compiler=$CC
19796 # save warnings/boilerplate of simple test code
19797 ac_outfile=conftest.$ac_objext
19798 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19799 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19800 _lt_compiler_boilerplate=`cat conftest.err`
19801 $rm conftest*
19803 ac_outfile=conftest.$ac_objext
19804 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19805 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19806 _lt_linker_boilerplate=`cat conftest.err`
19807 $rm conftest*
19810 # Allow CC to be a program name with arguments.
19811 lt_save_CC="$CC"
19812 CC=${RC-"windres"}
19813 compiler=$CC
19814 compiler_RC=$CC
19815 for cc_temp in $compiler""; do
19816   case $cc_temp in
19817     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19818     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19819     \-*) ;;
19820     *) break;;
19821   esac
19822 done
19823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19825 lt_cv_prog_compiler_c_o_RC=yes
19827 # The else clause should only fire when bootstrapping the
19828 # libtool distribution, otherwise you forgot to ship ltmain.sh
19829 # with your package, and you will get complaints that there are
19830 # no rules to generate ltmain.sh.
19831 if test -f "$ltmain"; then
19832   # See if we are running on zsh, and set the options which allow our commands through
19833   # without removal of \ escapes.
19834   if test -n "${ZSH_VERSION+set}" ; then
19835     setopt NO_GLOB_SUBST
19836   fi
19837   # Now quote all the things that may contain metacharacters while being
19838   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19839   # variables and quote the copies for generation of the libtool script.
19840   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19841     SED SHELL STRIP \
19842     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19843     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19844     deplibs_check_method reload_flag reload_cmds need_locks \
19845     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19846     lt_cv_sys_global_symbol_to_c_name_address \
19847     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19848     old_postinstall_cmds old_postuninstall_cmds \
19849     compiler_RC \
19850     CC_RC \
19851     LD_RC \
19852     lt_prog_compiler_wl_RC \
19853     lt_prog_compiler_pic_RC \
19854     lt_prog_compiler_static_RC \
19855     lt_prog_compiler_no_builtin_flag_RC \
19856     export_dynamic_flag_spec_RC \
19857     thread_safe_flag_spec_RC \
19858     whole_archive_flag_spec_RC \
19859     enable_shared_with_static_runtimes_RC \
19860     old_archive_cmds_RC \
19861     old_archive_from_new_cmds_RC \
19862     predep_objects_RC \
19863     postdep_objects_RC \
19864     predeps_RC \
19865     postdeps_RC \
19866     compiler_lib_search_path_RC \
19867     archive_cmds_RC \
19868     archive_expsym_cmds_RC \
19869     postinstall_cmds_RC \
19870     postuninstall_cmds_RC \
19871     old_archive_from_expsyms_cmds_RC \
19872     allow_undefined_flag_RC \
19873     no_undefined_flag_RC \
19874     export_symbols_cmds_RC \
19875     hardcode_libdir_flag_spec_RC \
19876     hardcode_libdir_flag_spec_ld_RC \
19877     hardcode_libdir_separator_RC \
19878     hardcode_automatic_RC \
19879     module_cmds_RC \
19880     module_expsym_cmds_RC \
19881     lt_cv_prog_compiler_c_o_RC \
19882     exclude_expsyms_RC \
19883     include_expsyms_RC; do
19885     case $var in
19886     old_archive_cmds_RC | \
19887     old_archive_from_new_cmds_RC | \
19888     archive_cmds_RC | \
19889     archive_expsym_cmds_RC | \
19890     module_cmds_RC | \
19891     module_expsym_cmds_RC | \
19892     old_archive_from_expsyms_cmds_RC | \
19893     export_symbols_cmds_RC | \
19894     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19895     postinstall_cmds | postuninstall_cmds | \
19896     old_postinstall_cmds | old_postuninstall_cmds | \
19897     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19898       # Double-quote double-evaled strings.
19899       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19900       ;;
19901     *)
19902       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19903       ;;
19904     esac
19905   done
19907   case $lt_echo in
19908   *'\$0 --fallback-echo"')
19909     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19910     ;;
19911   esac
19913 cfgfile="$ofile"
19915   cat <<__EOF__ >> "$cfgfile"
19916 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19920 # Shell to use when invoking shell scripts.
19921 SHELL=$lt_SHELL
19923 # Whether or not to build shared libraries.
19924 build_libtool_libs=$enable_shared
19926 # Whether or not to build static libraries.
19927 build_old_libs=$enable_static
19929 # Whether or not to add -lc for building shared libraries.
19930 build_libtool_need_lc=$archive_cmds_need_lc_RC
19932 # Whether or not to disallow shared libs when runtime libs are static
19933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19935 # Whether or not to optimize for fast installation.
19936 fast_install=$enable_fast_install
19938 # The host system.
19939 host_alias=$host_alias
19940 host=$host
19941 host_os=$host_os
19943 # The build system.
19944 build_alias=$build_alias
19945 build=$build
19946 build_os=$build_os
19948 # An echo program that does not interpret backslashes.
19949 echo=$lt_echo
19951 # The archiver.
19952 AR=$lt_AR
19953 AR_FLAGS=$lt_AR_FLAGS
19955 # A C compiler.
19956 LTCC=$lt_LTCC
19958 # A language-specific compiler.
19959 CC=$lt_compiler_RC
19961 # Is the compiler the GNU C compiler?
19962 with_gcc=$GCC_RC
19964 # An ERE matcher.
19965 EGREP=$lt_EGREP
19967 # The linker used to build libraries.
19968 LD=$lt_LD_RC
19970 # Whether we need hard or soft links.
19971 LN_S=$lt_LN_S
19973 # A BSD-compatible nm program.
19974 NM=$lt_NM
19976 # A symbol stripping program
19977 STRIP=$lt_STRIP
19979 # Used to examine libraries when file_magic_cmd begins "file"
19980 MAGIC_CMD=$MAGIC_CMD
19982 # Used on cygwin: DLL creation program.
19983 DLLTOOL="$DLLTOOL"
19985 # Used on cygwin: object dumper.
19986 OBJDUMP="$OBJDUMP"
19988 # Used on cygwin: assembler.
19989 AS="$AS"
19991 # The name of the directory that contains temporary libtool files.
19992 objdir=$objdir
19994 # How to create reloadable object files.
19995 reload_flag=$lt_reload_flag
19996 reload_cmds=$lt_reload_cmds
19998 # How to pass a linker flag through the compiler.
19999 wl=$lt_lt_prog_compiler_wl_RC
20001 # Object file suffix (normally "o").
20002 objext="$ac_objext"
20004 # Old archive suffix (normally "a").
20005 libext="$libext"
20007 # Shared library suffix (normally ".so").
20008 shrext_cmds='$shrext_cmds'
20010 # Executable file suffix (normally "").
20011 exeext="$exeext"
20013 # Additional compiler flags for building library objects.
20014 pic_flag=$lt_lt_prog_compiler_pic_RC
20015 pic_mode=$pic_mode
20017 # What is the maximum length of a command?
20018 max_cmd_len=$lt_cv_sys_max_cmd_len
20020 # Does compiler simultaneously support -c and -o options?
20021 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20023 # Must we lock files when doing compilation?
20024 need_locks=$lt_need_locks
20026 # Do we need the lib prefix for modules?
20027 need_lib_prefix=$need_lib_prefix
20029 # Do we need a version for libraries?
20030 need_version=$need_version
20032 # Whether dlopen is supported.
20033 dlopen_support=$enable_dlopen
20035 # Whether dlopen of programs is supported.
20036 dlopen_self=$enable_dlopen_self
20038 # Whether dlopen of statically linked programs is supported.
20039 dlopen_self_static=$enable_dlopen_self_static
20041 # Compiler flag to prevent dynamic linking.
20042 link_static_flag=$lt_lt_prog_compiler_static_RC
20044 # Compiler flag to turn off builtin functions.
20045 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20047 # Compiler flag to allow reflexive dlopens.
20048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20050 # Compiler flag to generate shared objects directly from archives.
20051 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20053 # Compiler flag to generate thread-safe objects.
20054 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20056 # Library versioning type.
20057 version_type=$version_type
20059 # Format of library name prefix.
20060 libname_spec=$lt_libname_spec
20062 # List of archive names.  First name is the real one, the rest are links.
20063 # The last name is the one that the linker finds with -lNAME.
20064 library_names_spec=$lt_library_names_spec
20066 # The coded name of the library, if different from the real name.
20067 soname_spec=$lt_soname_spec
20069 # Commands used to build and install an old-style archive.
20070 RANLIB=$lt_RANLIB
20071 old_archive_cmds=$lt_old_archive_cmds_RC
20072 old_postinstall_cmds=$lt_old_postinstall_cmds
20073 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20075 # Create an old-style archive from a shared archive.
20076 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20078 # Create a temporary old-style archive to link instead of a shared archive.
20079 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20081 # Commands used to build and install a shared archive.
20082 archive_cmds=$lt_archive_cmds_RC
20083 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20084 postinstall_cmds=$lt_postinstall_cmds
20085 postuninstall_cmds=$lt_postuninstall_cmds
20087 # Commands used to build a loadable module (assumed same as above if empty)
20088 module_cmds=$lt_module_cmds_RC
20089 module_expsym_cmds=$lt_module_expsym_cmds_RC
20091 # Commands to strip libraries.
20092 old_striplib=$lt_old_striplib
20093 striplib=$lt_striplib
20095 # Dependencies to place before the objects being linked to create a
20096 # shared library.
20097 predep_objects=$lt_predep_objects_RC
20099 # Dependencies to place after the objects being linked to create a
20100 # shared library.
20101 postdep_objects=$lt_postdep_objects_RC
20103 # Dependencies to place before the objects being linked to create a
20104 # shared library.
20105 predeps=$lt_predeps_RC
20107 # Dependencies to place after the objects being linked to create a
20108 # shared library.
20109 postdeps=$lt_postdeps_RC
20111 # The library search path used internally by the compiler when linking
20112 # a shared library.
20113 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20115 # Method to check whether dependent libraries are shared objects.
20116 deplibs_check_method=$lt_deplibs_check_method
20118 # Command to use when deplibs_check_method == file_magic.
20119 file_magic_cmd=$lt_file_magic_cmd
20121 # Flag that allows shared libraries with undefined symbols to be built.
20122 allow_undefined_flag=$lt_allow_undefined_flag_RC
20124 # Flag that forces no undefined symbols.
20125 no_undefined_flag=$lt_no_undefined_flag_RC
20127 # Commands used to finish a libtool library installation in a directory.
20128 finish_cmds=$lt_finish_cmds
20130 # Same as above, but a single script fragment to be evaled but not shown.
20131 finish_eval=$lt_finish_eval
20133 # Take the output of nm and produce a listing of raw symbols and C names.
20134 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20136 # Transform the output of nm in a proper C declaration
20137 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20139 # Transform the output of nm in a C name address pair
20140 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20142 # This is the shared library runtime path variable.
20143 runpath_var=$runpath_var
20145 # This is the shared library path variable.
20146 shlibpath_var=$shlibpath_var
20148 # Is shlibpath searched before the hard-coded library search path?
20149 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20151 # How to hardcode a shared library path into an executable.
20152 hardcode_action=$hardcode_action_RC
20154 # Whether we should hardcode library paths into libraries.
20155 hardcode_into_libs=$hardcode_into_libs
20157 # Flag to hardcode \$libdir into a binary during linking.
20158 # This must work even if \$libdir does not exist.
20159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20161 # If ld is used when linking, flag to hardcode \$libdir into
20162 # a binary during linking. This must work even if \$libdir does
20163 # not exist.
20164 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20166 # Whether we need a single -rpath flag with a separated argument.
20167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20169 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20170 # resulting binary.
20171 hardcode_direct=$hardcode_direct_RC
20173 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20174 # resulting binary.
20175 hardcode_minus_L=$hardcode_minus_L_RC
20177 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20178 # the resulting binary.
20179 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20181 # Set to yes if building a shared library automatically hardcodes DIR into the library
20182 # and all subsequent libraries and executables linked against it.
20183 hardcode_automatic=$hardcode_automatic_RC
20185 # Variables whose values should be saved in libtool wrapper scripts and
20186 # restored at relink time.
20187 variables_saved_for_relink="$variables_saved_for_relink"
20189 # Whether libtool must link a program against all its dependency libraries.
20190 link_all_deplibs=$link_all_deplibs_RC
20192 # Compile-time system search path for libraries
20193 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20195 # Run-time system search path for libraries
20196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20198 # Fix the shell variable \$srcfile for the compiler.
20199 fix_srcfile_path="$fix_srcfile_path_RC"
20201 # Set to yes if exported symbols are required.
20202 always_export_symbols=$always_export_symbols_RC
20204 # The commands to list exported symbols.
20205 export_symbols_cmds=$lt_export_symbols_cmds_RC
20207 # The commands to extract the exported symbol list from a shared archive.
20208 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20210 # Symbols that should not be listed in the preloaded symbols.
20211 exclude_expsyms=$lt_exclude_expsyms_RC
20213 # Symbols that must always be exported.
20214 include_expsyms=$lt_include_expsyms_RC
20216 # ### END LIBTOOL TAG CONFIG: $tagname
20218 __EOF__
20221 else
20222   # If there is no Makefile yet, we rely on a make rule to execute
20223   # `config.status --recheck' to rerun these tests and create the
20224   # libtool script then.
20225   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20226   if test -f "$ltmain_in"; then
20227     test -f Makefile && make "$ltmain"
20228   fi
20232 ac_ext=c
20233 ac_cpp='$CPP $CPPFLAGS'
20234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20238 CC="$lt_save_CC"
20240         ;;
20242       *)
20243         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20244 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20245    { (exit 1); exit 1; }; }
20246         ;;
20247       esac
20249       # Append the new tag name to the list of available tags.
20250       if test -n "$tagname" ; then
20251       available_tags="$available_tags $tagname"
20252     fi
20253     fi
20254   done
20255   IFS="$lt_save_ifs"
20257   # Now substitute the updated list of available tags.
20258   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20259     mv "${ofile}T" "$ofile"
20260     chmod +x "$ofile"
20261   else
20262     rm -f "${ofile}T"
20263     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20264 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20265    { (exit 1); exit 1; }; }
20266   fi
20271 # This can be used to rebuild libtool when needed
20272 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20274 # Always use our own libtool.
20275 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20277 # Prevent multiple expansion
20289   
20291   
20294   
20295        
20296        
20298 LIBTOOL="$LIBTOOL --silent"
20300 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20301 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20302 if test "${ac_cv_header_stdc+set}" = set; then
20303   echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305   cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311 #include <stdlib.h>
20312 #include <stdarg.h>
20313 #include <string.h>
20314 #include <float.h>
20317 main ()
20320   ;
20321   return 0;
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331   (eval "$ac_compile") 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } && {
20338          test -z "$ac_c_werror_flag" ||
20339          test ! -s conftest.err
20340        } && test -s conftest.$ac_objext; then
20341   ac_cv_header_stdc=yes
20342 else
20343   echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346         ac_cv_header_stdc=no
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351 if test $ac_cv_header_stdc = yes; then
20352   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20353   cat >conftest.$ac_ext <<_ACEOF
20354 /* confdefs.h.  */
20355 _ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h.  */
20359 #include <string.h>
20361 _ACEOF
20362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20363   $EGREP "memchr" >/dev/null 2>&1; then
20364   :
20365 else
20366   ac_cv_header_stdc=no
20368 rm -f conftest*
20372 if test $ac_cv_header_stdc = yes; then
20373   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20374   cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380 #include <stdlib.h>
20382 _ACEOF
20383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20384   $EGREP "free" >/dev/null 2>&1; then
20385   :
20386 else
20387   ac_cv_header_stdc=no
20389 rm -f conftest*
20393 if test $ac_cv_header_stdc = yes; then
20394   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20395   if test "$cross_compiling" = yes; then
20396   :
20397 else
20398   cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404 #include <ctype.h>
20405 #include <stdlib.h>
20406 #if ((' ' & 0x0FF) == 0x020)
20407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20409 #else
20410 # define ISLOWER(c) \
20411                    (('a' <= (c) && (c) <= 'i') \
20412                      || ('j' <= (c) && (c) <= 'r') \
20413                      || ('s' <= (c) && (c) <= 'z'))
20414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20415 #endif
20417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20419 main ()
20421   int i;
20422   for (i = 0; i < 256; i++)
20423     if (XOR (islower (i), ISLOWER (i))
20424         || toupper (i) != TOUPPER (i))
20425       return 2;
20426   return 0;
20428 _ACEOF
20429 rm -f conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_link") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20440   { (case "(($ac_try" in
20441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442   *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445   (eval "$ac_try") 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); }; }; then
20449   :
20450 else
20451   echo "$as_me: program exited with status $ac_status" >&5
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ( exit $ac_status )
20456 ac_cv_header_stdc=no
20458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20465 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20466 if test $ac_cv_header_stdc = yes; then
20467   
20468 cat >>confdefs.h <<\_ACEOF
20469 @%:@define STDC_HEADERS 1
20470 _ACEOF
20475 GAIM_MIN=pidgin_version_min
20476 GAIM_MAX=2.0.0
20480 # tell pkgconfig to look in the same prefix we're installing this to,
20481 # as that's likely where gaim will be found if it's not in the default
20482 # pkgconfig path
20483 PREFIX=$ac_default_prefix
20484 if test "$prefix" != "NONE"; then
20485    PREFIX=$prefix
20488 PKG_CONFIG_PATH="$PKG_CONFIG_PATH":"$PREFIX/lib/pkgconfig"
20489 export PKG_CONFIG_PATH
20491 # debug mode
20492 # Check whether --enable-debug was given.
20493 if test "${enable_debug+set}" = set; then
20494   enableval=$enable_debug; 
20495 else
20496   enable_debug=no
20500 if test "$enable_debug" = yes; then
20501    
20502 cat >>confdefs.h <<\_ACEOF
20503 @%:@define DEBUG 1
20504 _ACEOF
20508 # Check for Pidgin
20511 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20512         if test -n "$ac_tool_prefix"; then
20513   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20514 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20518   echo $ECHO_N "(cached) $ECHO_C" >&6
20519 else
20520   case $PKG_CONFIG in
20521   [\\/]* | ?:[\\/]*)
20522   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20523   ;;
20524   *)
20525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20526 for as_dir in $PATH
20528   IFS=$as_save_IFS
20529   test -z "$as_dir" && as_dir=.
20530   for ac_exec_ext in '' $ac_executable_extensions; do
20531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20532     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20534     break 2
20535   fi
20536 done
20537 done
20538 IFS=$as_save_IFS
20540   ;;
20541 esac
20543 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20544 if test -n "$PKG_CONFIG"; then
20545   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20546 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20547 else
20548   { echo "$as_me:$LINENO: result: no" >&5
20549 echo "${ECHO_T}no" >&6; }
20554 if test -z "$ac_cv_path_PKG_CONFIG"; then
20555   ac_pt_PKG_CONFIG=$PKG_CONFIG
20556   # Extract the first word of "pkg-config", so it can be a program name with args.
20557 set dummy pkg-config; ac_word=$2
20558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20560 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   case $ac_pt_PKG_CONFIG in
20564   [\\/]* | ?:[\\/]*)
20565   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20566   ;;
20567   *)
20568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20569 for as_dir in $PATH
20571   IFS=$as_save_IFS
20572   test -z "$as_dir" && as_dir=.
20573   for ac_exec_ext in '' $ac_executable_extensions; do
20574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20575     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20577     break 2
20578   fi
20579 done
20580 done
20581 IFS=$as_save_IFS
20583   ;;
20584 esac
20586 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20587 if test -n "$ac_pt_PKG_CONFIG"; then
20588   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20589 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20590 else
20591   { echo "$as_me:$LINENO: result: no" >&5
20592 echo "${ECHO_T}no" >&6; }
20595   if test "x$ac_pt_PKG_CONFIG" = x; then
20596     PKG_CONFIG=""
20597   else
20598     case $cross_compiling:$ac_tool_warned in
20599 yes:)
20600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20601 whose name does not start with the host triplet.  If you think this
20602 configuration is useful to you, please write to autoconf@gnu.org." >&5
20603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20604 whose name does not start with the host triplet.  If you think this
20605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20606 ac_tool_warned=yes ;;
20607 esac
20608     PKG_CONFIG=$ac_pt_PKG_CONFIG
20609   fi
20610 else
20611   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20615 if test -n "$PKG_CONFIG"; then
20616         _pkg_min_version=0.9.0
20617         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20618 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20619         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20620                 { echo "$as_me:$LINENO: result: yes" >&5
20621 echo "${ECHO_T}yes" >&6; }
20622         else
20623                 { echo "$as_me:$LINENO: result: no" >&5
20624 echo "${ECHO_T}no" >&6; }
20625                 PKG_CONFIG=""
20626         fi
20627                 
20630 pkg_failed=no
20631 { echo "$as_me:$LINENO: checking for libpurple" >&5
20632 echo $ECHO_N "checking for libpurple... $ECHO_C" >&6; }
20634 if test -n "$PKG_CONFIG"; then
20635     if test -n "$libpurple_CFLAGS"; then
20636         pkg_cv_libpurple_CFLAGS="$libpurple_CFLAGS"
20637     else
20638         if test -n "$PKG_CONFIG" && \
20639     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
20640   ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; then
20644   pkg_cv_libpurple_CFLAGS=`$PKG_CONFIG --cflags "pidgin >= 2.0.0" 2>/dev/null`
20645 else
20646   pkg_failed=yes
20648     fi
20649 else
20650         pkg_failed=untried
20652 if test -n "$PKG_CONFIG"; then
20653     if test -n "$libpurple_LIBS"; then
20654         pkg_cv_libpurple_LIBS="$libpurple_LIBS"
20655     else
20656         if test -n "$PKG_CONFIG" && \
20657     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
20658   ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; then
20662   pkg_cv_libpurple_LIBS=`$PKG_CONFIG --libs "pidgin >= 2.0.0" 2>/dev/null`
20663 else
20664   pkg_failed=yes
20666     fi
20667 else
20668         pkg_failed=untried
20673 if test $pkg_failed = yes; then
20674         
20675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20676         _pkg_short_errors_supported=yes
20677 else
20678         _pkg_short_errors_supported=no
20680         if test $_pkg_short_errors_supported = yes; then
20681                 libpurple_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pidgin >= 2.0.0"`
20682         else 
20683                 libpurple_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pidgin >= 2.0.0"`
20684         fi
20685         # Put the nasty error message in config.log where it belongs
20686         echo "$libpurple_PKG_ERRORS" >&5
20688         { { echo "$as_me:$LINENO: error: Package requirements (pidgin >= 2.0.0) were not met:
20690 $libpurple_PKG_ERRORS
20692 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20693 installed software in a non-standard prefix.
20695 Alternatively, you may set the environment variables libpurple_CFLAGS
20696 and libpurple_LIBS to avoid the need to call pkg-config.
20697 See the pkg-config man page for more details.
20698 " >&5
20699 echo "$as_me: error: Package requirements (pidgin >= 2.0.0) were not met:
20701 $libpurple_PKG_ERRORS
20703 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20704 installed software in a non-standard prefix.
20706 Alternatively, you may set the environment variables libpurple_CFLAGS
20707 and libpurple_LIBS to avoid the need to call pkg-config.
20708 See the pkg-config man page for more details.
20709 " >&2;}
20710    { (exit 1); exit 1; }; }
20711 elif test $pkg_failed = untried; then
20712         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20713 is in your PATH or set the PKG_CONFIG environment variable to the full
20714 path to pkg-config.
20716 Alternatively, you may set the environment variables libpurple_CFLAGS
20717 and libpurple_LIBS to avoid the need to call pkg-config.
20718 See the pkg-config man page for more details.
20720 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20721 See \`config.log' for more details." >&5
20722 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20723 is in your PATH or set the PKG_CONFIG environment variable to the full
20724 path to pkg-config.
20726 Alternatively, you may set the environment variables libpurple_CFLAGS
20727 and libpurple_LIBS to avoid the need to call pkg-config.
20728 See the pkg-config man page for more details.
20730 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20731 See \`config.log' for more details." >&2;}
20732    { (exit 1); exit 1; }; }
20733 else
20734         libpurple_CFLAGS=$pkg_cv_libpurple_CFLAGS
20735         libpurple_LIBS=$pkg_cv_libpurple_LIBS
20736         { echo "$as_me:$LINENO: result: yes" >&5
20737 echo "${ECHO_T}yes" >&6; }
20738         
20739         
20740 cat >>confdefs.h <<\_ACEOF
20741 @%:@define HAVE_PIDGIN 1
20742 _ACEOF
20747 PIDGIN_CFLAGS=`$PKG_CONFIG --cflags purple`
20748 PIDGIN_LIBS=`$PKG_CONFIG --libs purple`
20753 { echo "$as_me:$LINENO: checking for inet_aton" >&5
20754 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
20755 if test "${ac_cv_func_inet_aton+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
20765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20766 #define inet_aton innocuous_inet_aton
20768 /* System header to define __stub macros and hopefully few prototypes,
20769     which can conflict with char inet_aton (); below.
20770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20771     <limits.h> exists even on freestanding compilers.  */
20773 #ifdef __STDC__
20774 # include <limits.h>
20775 #else
20776 # include <assert.h>
20777 #endif
20779 #undef inet_aton
20781 /* Override any GCC internal prototype to avoid an error.
20782    Use char because int might match the return type of a GCC
20783    builtin and then its argument prototype would still apply.  */
20784 #ifdef __cplusplus
20785 extern "C"
20786 #endif
20787 char inet_aton ();
20788 /* The GNU C library defines this for functions which it implements
20789     to always fail with ENOSYS.  Some functions are actually named
20790     something starting with __ and the normal name is an alias.  */
20791 #if defined __stub_inet_aton || defined __stub___inet_aton
20792 choke me
20793 #endif
20796 main ()
20798 return inet_aton ();
20799   ;
20800   return 0;
20802 _ACEOF
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810   (eval "$ac_link") 2>conftest.er1
20811   ac_status=$?
20812   grep -v '^ *+' conftest.er1 >conftest.err
20813   rm -f conftest.er1
20814   cat conftest.err >&5
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } && {
20817          test -z "$ac_c_werror_flag" ||
20818          test ! -s conftest.err
20819        } && test -s conftest$ac_exeext &&
20820        $as_test_x conftest$ac_exeext; then
20821   ac_cv_func_inet_aton=yes
20822 else
20823   echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826         ac_cv_func_inet_aton=no
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830       conftest$ac_exeext conftest.$ac_ext
20832 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
20833 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
20834 if test $ac_cv_func_inet_aton = yes; then
20835   :
20836 else
20837   
20838 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20839 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20840 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20841   echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843   ac_check_lib_save_LIBS=$LIBS
20844 LIBS="-lresolv  $LIBS"
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20852 /* Override any GCC internal prototype to avoid an error.
20853    Use char because int might match the return type of a GCC
20854    builtin and then its argument prototype would still apply.  */
20855 #ifdef __cplusplus
20856 extern "C"
20857 #endif
20858 char inet_aton ();
20860 main ()
20862 return inet_aton ();
20863   ;
20864   return 0;
20866 _ACEOF
20867 rm -f conftest.$ac_objext conftest$ac_exeext
20868 if { (ac_try="$ac_link"
20869 case "(($ac_try" in
20870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871   *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874   (eval "$ac_link") 2>conftest.er1
20875   ac_status=$?
20876   grep -v '^ *+' conftest.er1 >conftest.err
20877   rm -f conftest.er1
20878   cat conftest.err >&5
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); } && {
20881          test -z "$ac_c_werror_flag" ||
20882          test ! -s conftest.err
20883        } && test -s conftest$ac_exeext &&
20884        $as_test_x conftest$ac_exeext; then
20885   ac_cv_lib_resolv_inet_aton=yes
20886 else
20887   echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890         ac_cv_lib_resolv_inet_aton=no
20893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20894       conftest$ac_exeext conftest.$ac_ext
20895 LIBS=$ac_check_lib_save_LIBS
20897 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20898 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20899 if test $ac_cv_lib_resolv_inet_aton = yes; then
20900   cat >>confdefs.h <<_ACEOF
20901 @%:@define HAVE_LIBRESOLV 1
20902 _ACEOF
20904   LIBS="-lresolv $LIBS"
20906 else
20907   { { echo "$as_me:$LINENO: error: inet_aton not found" >&5
20908 echo "$as_me: error: inet_aton not found" >&2;}
20909    { (exit 1); exit 1; }; }
20915 SIPE_LIBA=`$PKG_CONFIG sipe --variable=libarchive`
20918 # Check whether --enable-static-sipe was given.
20919 if test "${enable_static_sipe+set}" = set; then
20920   enableval=$enable_static_sipe; sipe_static="yes"
20921 else
20922   sipe_static="no"
20928 if test $sipe_static = yes; then
20929   SIPE_STATIC_TRUE=
20930   SIPE_STATIC_FALSE='#'
20931 else
20932   SIPE_STATIC_TRUE='#'
20933   SIPE_STATIC_FALSE=
20937 # substitutions and generated files
20938 ac_config_files="$ac_config_files src/config.h Makefile pixmaps/Makefile pixmaps/16/Makefile pixmaps/22/Makefile pixmaps/48/Makefile src/Makefile"
20941 cat >confcache <<\_ACEOF
20942 # This file is a shell script that caches the results of configure
20943 # tests run on this system so they can be shared between configure
20944 # scripts and configure runs, see configure's option --config-cache.
20945 # It is not useful on other systems.  If it contains results you don't
20946 # want to keep, you may remove or edit it.
20948 # config.status only pays attention to the cache file if you give it
20949 # the --recheck option to rerun configure.
20951 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20953 # following values.
20955 _ACEOF
20957 # The following way of writing the cache mishandles newlines in values,
20958 # but we know of no workaround that is simple, portable, and efficient.
20959 # So, we kill variables containing newlines.
20960 # Ultrix sh set writes to stderr and can't be redirected directly,
20961 # and sets the high bit in the cache file unless we assign to the vars.
20963   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20964     eval ac_val=\$$ac_var
20965     case $ac_val in #(
20966     *${as_nl}*)
20967       case $ac_var in #(
20968       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20969 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20970       esac
20971       case $ac_var in #(
20972       _ | IFS | as_nl) ;; #(
20973       *) $as_unset $ac_var ;;
20974       esac ;;
20975     esac
20976   done
20978   (set) 2>&1 |
20979     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20980     *${as_nl}ac_space=\ *)
20981       # `set' does not quote correctly, so add quotes (double-quote
20982       # substitution turns \\\\ into \\, and sed turns \\ into \).
20983       sed -n \
20984         "s/'/'\\\\''/g;
20985           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20986       ;; #(
20987     *)
20988       # `set' quotes correctly as required by POSIX, so do not add quotes.
20989       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20990       ;;
20991     esac |
20992     sort
20993 ) |
20994   sed '
20995      /^ac_cv_env_/b end
20996      t clear
20997      :clear
20998      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20999      t end
21000      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21001      :end' >>confcache
21002 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21003   if test -w "$cache_file"; then
21004     test "x$cache_file" != "x/dev/null" &&
21005       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21006 echo "$as_me: updating cache $cache_file" >&6;}
21007     cat confcache >$cache_file
21008   else
21009     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21010 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21011   fi
21013 rm -f confcache
21015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21016 # Let make expand exec_prefix.
21017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21019 # Transform confdefs.h into DEFS.
21020 # Protect against shell expansion while executing Makefile rules.
21021 # Protect against Makefile macro expansion.
21023 # If the first sed substitution is executed (which looks for macros that
21024 # take arguments), then branch to the quote section.  Otherwise,
21025 # look for a macro that doesn't take arguments.
21026 ac_script='
21027 t clear
21028 :clear
21029 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21030 t quote
21031 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21032 t quote
21033 b any
21034 :quote
21035 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21036 s/\[/\\&/g
21037 s/\]/\\&/g
21038 s/\$/$$/g
21040 :any
21042         g
21043         s/^\n//
21044         s/\n/ /g
21045         p
21048 DEFS=`sed -n "$ac_script" confdefs.h`
21051 ac_libobjs=
21052 ac_ltlibobjs=
21053 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21054   # 1. Remove the extension, and $U if already installed.
21055   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21056   ac_i=`echo "$ac_i" | sed "$ac_script"`
21057   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21058   #    will be set to the directory where LIBOBJS objects are built.
21059   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21060   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21061 done
21062 LIB@&t@OBJS=$ac_libobjs
21064 LTLIBOBJS=$ac_ltlibobjs
21067 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21068   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21069 Usually this means the macro was only invoked conditionally." >&5
21070 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21071 Usually this means the macro was only invoked conditionally." >&2;}
21072    { (exit 1); exit 1; }; }
21074 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21075   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21076 Usually this means the macro was only invoked conditionally." >&5
21077 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21078 Usually this means the macro was only invoked conditionally." >&2;}
21079    { (exit 1); exit 1; }; }
21081 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21082   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21083 Usually this means the macro was only invoked conditionally." >&5
21084 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21085 Usually this means the macro was only invoked conditionally." >&2;}
21086    { (exit 1); exit 1; }; }
21088 if test -z "${SIPE_STATIC_TRUE}" && test -z "${SIPE_STATIC_FALSE}"; then
21089   { { echo "$as_me:$LINENO: error: conditional \"SIPE_STATIC\" was never defined.
21090 Usually this means the macro was only invoked conditionally." >&5
21091 echo "$as_me: error: conditional \"SIPE_STATIC\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&2;}
21093    { (exit 1); exit 1; }; }
21096 : ${CONFIG_STATUS=./config.status}
21097 ac_clean_files_save=$ac_clean_files
21098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21099 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21100 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21101 cat >$CONFIG_STATUS <<_ACEOF
21102 #! $SHELL
21103 # Generated by $as_me.
21104 # Run this file to recreate the current configuration.
21105 # Compiler output produced by configure, useful for debugging
21106 # configure, is in config.log if it exists.
21108 debug=false
21109 ac_cs_recheck=false
21110 ac_cs_silent=false
21111 SHELL=\${CONFIG_SHELL-$SHELL}
21112 _ACEOF
21114 cat >>$CONFIG_STATUS <<\_ACEOF
21115 ## --------------------- ##
21116 ## M4sh Initialization.  ##
21117 ## --------------------- ##
21119 # Be more Bourne compatible
21120 DUALCASE=1; export DUALCASE # for MKS sh
21121 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21122   emulate sh
21123   NULLCMD=:
21124   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21125   # is contrary to our usage.  Disable this feature.
21126   alias -g '${1+"$@"}'='"$@"'
21127   setopt NO_GLOB_SUBST
21128 else
21129   case `(set -o) 2>/dev/null` in
21130   *posix*) set -o posix ;;
21131 esac
21138 # PATH needs CR
21139 # Avoid depending upon Character Ranges.
21140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21143 as_cr_digits='0123456789'
21144 as_cr_alnum=$as_cr_Letters$as_cr_digits
21146 # The user is always right.
21147 if test "${PATH_SEPARATOR+set}" != set; then
21148   echo "#! /bin/sh" >conf$$.sh
21149   echo  "exit 0"   >>conf$$.sh
21150   chmod +x conf$$.sh
21151   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21152     PATH_SEPARATOR=';'
21153   else
21154     PATH_SEPARATOR=:
21155   fi
21156   rm -f conf$$.sh
21159 # Support unset when possible.
21160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21161   as_unset=unset
21162 else
21163   as_unset=false
21167 # IFS
21168 # We need space, tab and new line, in precisely that order.  Quoting is
21169 # there to prevent editors from complaining about space-tab.
21170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21171 # splitting by setting IFS to empty value.)
21172 as_nl='
21174 IFS=" ""        $as_nl"
21176 # Find who we are.  Look in the path if we contain no directory separator.
21177 case $0 in
21178   *[\\/]* ) as_myself=$0 ;;
21179   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21180 for as_dir in $PATH
21182   IFS=$as_save_IFS
21183   test -z "$as_dir" && as_dir=.
21184   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21185 done
21186 IFS=$as_save_IFS
21188      ;;
21189 esac
21190 # We did not find ourselves, most probably we were run as `sh COMMAND'
21191 # in which case we are not to be found in the path.
21192 if test "x$as_myself" = x; then
21193   as_myself=$0
21195 if test ! -f "$as_myself"; then
21196   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21197   { (exit 1); exit 1; }
21200 # Work around bugs in pre-3.0 UWIN ksh.
21201 for as_var in ENV MAIL MAILPATH
21202 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21203 done
21204 PS1='$ '
21205 PS2='> '
21206 PS4='+ '
21208 # NLS nuisances.
21209 for as_var in \
21210   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21211   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21212   LC_TELEPHONE LC_TIME
21214   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21215     eval $as_var=C; export $as_var
21216   else
21217     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21218   fi
21219 done
21221 # Required to use basename.
21222 if expr a : '\(a\)' >/dev/null 2>&1 &&
21223    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21224   as_expr=expr
21225 else
21226   as_expr=false
21229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21230   as_basename=basename
21231 else
21232   as_basename=false
21236 # Name of the executable.
21237 as_me=`$as_basename -- "$0" ||
21238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21239          X"$0" : 'X\(//\)$' \| \
21240          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21241 echo X/"$0" |
21242     sed '/^.*\/\([^/][^/]*\)\/*$/{
21243             s//\1/
21244             q
21245           }
21246           /^X\/\(\/\/\)$/{
21247             s//\1/
21248             q
21249           }
21250           /^X\/\(\/\).*/{
21251             s//\1/
21252             q
21253           }
21254           s/.*/./; q'`
21256 # CDPATH.
21257 $as_unset CDPATH
21261   as_lineno_1=$LINENO
21262   as_lineno_2=$LINENO
21263   test "x$as_lineno_1" != "x$as_lineno_2" &&
21264   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21266   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21267   # uniformly replaced by the line number.  The first 'sed' inserts a
21268   # line-number line after each line using $LINENO; the second 'sed'
21269   # does the real work.  The second script uses 'N' to pair each
21270   # line-number line with the line containing $LINENO, and appends
21271   # trailing '-' during substitution so that $LINENO is not a special
21272   # case at line end.
21273   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21274   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21275   # E. McMahon (1931-1989) for sed's syntax.  :-)
21276   sed -n '
21277     p
21278     /[$]LINENO/=
21279   ' <$as_myself |
21280     sed '
21281       s/[$]LINENO.*/&-/
21282       t lineno
21283       b
21284       :lineno
21285       N
21286       :loop
21287       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21288       t loop
21289       s/-\n.*//
21290     ' >$as_me.lineno &&
21291   chmod +x "$as_me.lineno" ||
21292     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21293    { (exit 1); exit 1; }; }
21295   # Don't try to exec as it changes $[0], causing all sort of problems
21296   # (the dirname of $[0] is not the place where we might find the
21297   # original and so on.  Autoconf is especially sensitive to this).
21298   . "./$as_me.lineno"
21299   # Exit status is that of the last command.
21300   exit
21304 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21305   as_dirname=dirname
21306 else
21307   as_dirname=false
21310 ECHO_C= ECHO_N= ECHO_T=
21311 case `echo -n x` in
21312 -n*)
21313   case `echo 'x\c'` in
21314   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21315   *)   ECHO_C='\c';;
21316   esac;;
21318   ECHO_N='-n';;
21319 esac
21321 if expr a : '\(a\)' >/dev/null 2>&1 &&
21322    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21323   as_expr=expr
21324 else
21325   as_expr=false
21328 rm -f conf$$ conf$$.exe conf$$.file
21329 if test -d conf$$.dir; then
21330   rm -f conf$$.dir/conf$$.file
21331 else
21332   rm -f conf$$.dir
21333   mkdir conf$$.dir
21335 echo >conf$$.file
21336 if ln -s conf$$.file conf$$ 2>/dev/null; then
21337   as_ln_s='ln -s'
21338   # ... but there are two gotchas:
21339   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21340   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21341   # In both cases, we have to default to `cp -p'.
21342   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21343     as_ln_s='cp -p'
21344 elif ln conf$$.file conf$$ 2>/dev/null; then
21345   as_ln_s=ln
21346 else
21347   as_ln_s='cp -p'
21349 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21350 rmdir conf$$.dir 2>/dev/null
21352 if mkdir -p . 2>/dev/null; then
21353   as_mkdir_p=:
21354 else
21355   test -d ./-p && rmdir ./-p
21356   as_mkdir_p=false
21359 if test -x / >/dev/null 2>&1; then
21360   as_test_x='test -x'
21361 else
21362   if ls -dL / >/dev/null 2>&1; then
21363     as_ls_L_option=L
21364   else
21365     as_ls_L_option=
21366   fi
21367   as_test_x='
21368     eval sh -c '\''
21369       if test -d "$1"; then
21370         test -d "$1/.";
21371       else
21372         case $1 in
21373         -*)set "./$1";;
21374         esac;
21375         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21376         ???[sx]*):;;*)false;;esac;fi
21377     '\'' sh
21378   '
21380 as_executable_p=$as_test_x
21382 # Sed expression to map a string onto a valid CPP name.
21383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21385 # Sed expression to map a string onto a valid variable name.
21386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21389 exec 6>&1
21391 # Save the log message, to keep $[0] and so on meaningful, and to
21392 # report actual input values of CONFIG_FILES etc. instead of their
21393 # values after options handling.
21394 ac_log="
21395 This file was extended by $as_me, which was
21396 generated by GNU Autoconf 2.61.  Invocation command line was
21398   CONFIG_FILES    = $CONFIG_FILES
21399   CONFIG_HEADERS  = $CONFIG_HEADERS
21400   CONFIG_LINKS    = $CONFIG_LINKS
21401   CONFIG_COMMANDS = $CONFIG_COMMANDS
21402   $ $0 $@
21404 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21407 _ACEOF
21409 cat >>$CONFIG_STATUS <<_ACEOF
21410 # Files that config.status was made for.
21411 config_files="$ac_config_files"
21412 config_commands="$ac_config_commands"
21414 _ACEOF
21416 cat >>$CONFIG_STATUS <<\_ACEOF
21417 ac_cs_usage="\
21418 \`$as_me' instantiates files from templates according to the
21419 current configuration.
21421 Usage: $0 [OPTIONS] [FILE]...
21423   -h, --help       print this help, then exit
21424   -V, --version    print version number and configuration settings, then exit
21425   -q, --quiet      do not print progress messages
21426   -d, --debug      don't remove temporary files
21427       --recheck    update $as_me by reconfiguring in the same conditions
21428   --file=FILE[:TEMPLATE]
21429                    instantiate the configuration file FILE
21431 Configuration files:
21432 $config_files
21434 Configuration commands:
21435 $config_commands
21437 Report bugs to <bug-autoconf@gnu.org>."
21439 _ACEOF
21440 cat >>$CONFIG_STATUS <<_ACEOF
21441 ac_cs_version="\\
21442 config.status
21443 configured by $0, generated by GNU Autoconf 2.61,
21444   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21446 Copyright (C) 2006 Free Software Foundation, Inc.
21447 This config.status script is free software; the Free Software Foundation
21448 gives unlimited permission to copy, distribute and modify it."
21450 ac_pwd='$ac_pwd'
21451 srcdir='$srcdir'
21452 INSTALL='$INSTALL'
21453 _ACEOF
21455 cat >>$CONFIG_STATUS <<\_ACEOF
21456 # If no file are specified by the user, then we need to provide default
21457 # value.  By we need to know if files were specified by the user.
21458 ac_need_defaults=:
21459 while test $# != 0
21461   case $1 in
21462   --*=*)
21463     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21464     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21465     ac_shift=:
21466     ;;
21467   *)
21468     ac_option=$1
21469     ac_optarg=$2
21470     ac_shift=shift
21471     ;;
21472   esac
21474   case $ac_option in
21475   # Handling of the options.
21476   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21477     ac_cs_recheck=: ;;
21478   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21479     echo "$ac_cs_version"; exit ;;
21480   --debug | --debu | --deb | --de | --d | -d )
21481     debug=: ;;
21482   --file | --fil | --fi | --f )
21483     $ac_shift
21484     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21485     ac_need_defaults=false;;
21486   --he | --h |  --help | --hel | -h )
21487     echo "$ac_cs_usage"; exit ;;
21488   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21489   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21490     ac_cs_silent=: ;;
21492   # This is an error.
21493   -*) { echo "$as_me: error: unrecognized option: $1
21494 Try \`$0 --help' for more information." >&2
21495    { (exit 1); exit 1; }; } ;;
21497   *) ac_config_targets="$ac_config_targets $1"
21498      ac_need_defaults=false ;;
21500   esac
21501   shift
21502 done
21504 ac_configure_extra_args=
21506 if $ac_cs_silent; then
21507   exec 6>/dev/null
21508   ac_configure_extra_args="$ac_configure_extra_args --silent"
21511 _ACEOF
21512 cat >>$CONFIG_STATUS <<_ACEOF
21513 if \$ac_cs_recheck; then
21514   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21515   CONFIG_SHELL=$SHELL
21516   export CONFIG_SHELL
21517   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21520 _ACEOF
21521 cat >>$CONFIG_STATUS <<\_ACEOF
21522 exec 5>>config.log
21524   echo
21525   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21526 @%:@@%:@ Running $as_me. @%:@@%:@
21527 _ASBOX
21528   echo "$ac_log"
21529 } >&5
21531 _ACEOF
21532 cat >>$CONFIG_STATUS <<_ACEOF
21534 # INIT-COMMANDS
21536 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21538 _ACEOF
21540 cat >>$CONFIG_STATUS <<\_ACEOF
21542 # Handling of arguments.
21543 for ac_config_target in $ac_config_targets
21545   case $ac_config_target in
21546     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21547     "src/config.h") CONFIG_FILES="$CONFIG_FILES src/config.h" ;;
21548     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21549     "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
21550     "pixmaps/16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16/Makefile" ;;
21551     "pixmaps/22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22/Makefile" ;;
21552     "pixmaps/48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48/Makefile" ;;
21553     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21555   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21556 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21557    { (exit 1); exit 1; }; };;
21558   esac
21559 done
21562 # If the user did not use the arguments to specify the items to instantiate,
21563 # then the envvar interface is used.  Set only those that are not.
21564 # We use the long form for the default assignment because of an extremely
21565 # bizarre bug on SunOS 4.1.3.
21566 if $ac_need_defaults; then
21567   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21568   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21571 # Have a temporary directory for convenience.  Make it in the build tree
21572 # simply because there is no reason against having it here, and in addition,
21573 # creating and moving files from /tmp can sometimes cause problems.
21574 # Hook for its removal unless debugging.
21575 # Note that there is a small window in which the directory will not be cleaned:
21576 # after its creation but before its name has been assigned to `$tmp'.
21577 $debug ||
21579   tmp=
21580   trap 'exit_status=$?
21581   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21582 ' 0
21583   trap '{ (exit 1); exit 1; }' 1 2 13 15
21585 # Create a (secure) tmp directory for tmp files.
21588   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21589   test -n "$tmp" && test -d "$tmp"
21590 }  ||
21592   tmp=./conf$$-$RANDOM
21593   (umask 077 && mkdir "$tmp")
21594 } ||
21596    echo "$me: cannot create a temporary directory in ." >&2
21597    { (exit 1); exit 1; }
21601 # Set up the sed scripts for CONFIG_FILES section.
21604 # No need to generate the scripts if there are no CONFIG_FILES.
21605 # This happens for instance when ./config.status config.h
21606 if test -n "$CONFIG_FILES"; then
21608 _ACEOF
21612 ac_delim='%!_!# '
21613 for ac_last_try in false false false false false :; do
21614   cat >conf$$subs.sed <<_ACEOF
21615 SHELL!$SHELL$ac_delim
21616 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21617 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21618 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21619 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21620 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21621 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21622 exec_prefix!$exec_prefix$ac_delim
21623 prefix!$prefix$ac_delim
21624 program_transform_name!$program_transform_name$ac_delim
21625 bindir!$bindir$ac_delim
21626 sbindir!$sbindir$ac_delim
21627 libexecdir!$libexecdir$ac_delim
21628 datarootdir!$datarootdir$ac_delim
21629 datadir!$datadir$ac_delim
21630 sysconfdir!$sysconfdir$ac_delim
21631 sharedstatedir!$sharedstatedir$ac_delim
21632 localstatedir!$localstatedir$ac_delim
21633 includedir!$includedir$ac_delim
21634 oldincludedir!$oldincludedir$ac_delim
21635 docdir!$docdir$ac_delim
21636 infodir!$infodir$ac_delim
21637 htmldir!$htmldir$ac_delim
21638 dvidir!$dvidir$ac_delim
21639 pdfdir!$pdfdir$ac_delim
21640 psdir!$psdir$ac_delim
21641 libdir!$libdir$ac_delim
21642 localedir!$localedir$ac_delim
21643 mandir!$mandir$ac_delim
21644 DEFS!$DEFS$ac_delim
21645 ECHO_C!$ECHO_C$ac_delim
21646 ECHO_N!$ECHO_N$ac_delim
21647 ECHO_T!$ECHO_T$ac_delim
21648 LIBS!$LIBS$ac_delim
21649 build_alias!$build_alias$ac_delim
21650 host_alias!$host_alias$ac_delim
21651 target_alias!$target_alias$ac_delim
21652 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21653 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21654 INSTALL_DATA!$INSTALL_DATA$ac_delim
21655 CYGPATH_W!$CYGPATH_W$ac_delim
21656 PACKAGE!$PACKAGE$ac_delim
21657 VERSION!$VERSION$ac_delim
21658 ACLOCAL!$ACLOCAL$ac_delim
21659 AUTOCONF!$AUTOCONF$ac_delim
21660 AUTOMAKE!$AUTOMAKE$ac_delim
21661 AUTOHEADER!$AUTOHEADER$ac_delim
21662 MAKEINFO!$MAKEINFO$ac_delim
21663 install_sh!$install_sh$ac_delim
21664 STRIP!$STRIP$ac_delim
21665 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21666 mkdir_p!$mkdir_p$ac_delim
21667 AWK!$AWK$ac_delim
21668 SET_MAKE!$SET_MAKE$ac_delim
21669 am__leading_dot!$am__leading_dot$ac_delim
21670 AMTAR!$AMTAR$ac_delim
21671 am__tar!$am__tar$ac_delim
21672 am__untar!$am__untar$ac_delim
21673 CC!$CC$ac_delim
21674 CFLAGS!$CFLAGS$ac_delim
21675 LDFLAGS!$LDFLAGS$ac_delim
21676 CPPFLAGS!$CPPFLAGS$ac_delim
21677 ac_ct_CC!$ac_ct_CC$ac_delim
21678 EXEEXT!$EXEEXT$ac_delim
21679 OBJEXT!$OBJEXT$ac_delim
21680 DEPDIR!$DEPDIR$ac_delim
21681 am__include!$am__include$ac_delim
21682 am__quote!$am__quote$ac_delim
21683 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21684 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21685 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21686 CCDEPMODE!$CCDEPMODE$ac_delim
21687 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21688 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21689 build!$build$ac_delim
21690 build_cpu!$build_cpu$ac_delim
21691 build_vendor!$build_vendor$ac_delim
21692 build_os!$build_os$ac_delim
21693 host!$host$ac_delim
21694 host_cpu!$host_cpu$ac_delim
21695 host_vendor!$host_vendor$ac_delim
21696 host_os!$host_os$ac_delim
21697 GREP!$GREP$ac_delim
21698 EGREP!$EGREP$ac_delim
21699 LN_S!$LN_S$ac_delim
21700 ECHO!$ECHO$ac_delim
21701 AR!$AR$ac_delim
21702 RANLIB!$RANLIB$ac_delim
21703 CPP!$CPP$ac_delim
21704 CXX!$CXX$ac_delim
21705 CXXFLAGS!$CXXFLAGS$ac_delim
21706 ac_ct_CXX!$ac_ct_CXX$ac_delim
21707 CXXDEPMODE!$CXXDEPMODE$ac_delim
21708 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21709 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21710 CXXCPP!$CXXCPP$ac_delim
21711 F77!$F77$ac_delim
21712 _ACEOF
21714   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21715     break
21716   elif $ac_last_try; then
21717     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21718 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21719    { (exit 1); exit 1; }; }
21720   else
21721     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21722   fi
21723 done
21725 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21726 if test -n "$ac_eof"; then
21727   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21728   ac_eof=`expr $ac_eof + 1`
21731 cat >>$CONFIG_STATUS <<_ACEOF
21732 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21734 _ACEOF
21735 sed '
21736 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21737 s/^/s,@/; s/!/@,|#_!!_#|/
21739 t n
21740 s/'"$ac_delim"'$/,g/; t
21741 s/$/\\/; p
21742 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21743 ' >>$CONFIG_STATUS <conf$$subs.sed
21744 rm -f conf$$subs.sed
21745 cat >>$CONFIG_STATUS <<_ACEOF
21746 CEOF$ac_eof
21747 _ACEOF
21750 ac_delim='%!_!# '
21751 for ac_last_try in false false false false false :; do
21752   cat >conf$$subs.sed <<_ACEOF
21753 FFLAGS!$FFLAGS$ac_delim
21754 ac_ct_F77!$ac_ct_F77$ac_delim
21755 LIBTOOL!$LIBTOOL$ac_delim
21756 PIDGIN_MIN!$PIDGIN_MIN$ac_delim
21757 PIDGIN_MAX!$PIDGIN_MAX$ac_delim
21758 PKG_CONFIG!$PKG_CONFIG$ac_delim
21759 libpurple_CFLAGS!$libpurple_CFLAGS$ac_delim
21760 libpurple_LIBS!$libpurple_LIBS$ac_delim
21761 PIDGIN_CFLAGS!$PIDGIN_CFLAGS$ac_delim
21762 PIDGIN_LIBS!$PIDGIN_LIBS$ac_delim
21763 SIPE_LIBA!$SIPE_LIBA$ac_delim
21764 SIPE_STATIC_TRUE!$SIPE_STATIC_TRUE$ac_delim
21765 SIPE_STATIC_FALSE!$SIPE_STATIC_FALSE$ac_delim
21766 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
21767 LTLIBOBJS!$LTLIBOBJS$ac_delim
21768 _ACEOF
21770   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
21771     break
21772   elif $ac_last_try; then
21773     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21774 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21775    { (exit 1); exit 1; }; }
21776   else
21777     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21778   fi
21779 done
21781 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21782 if test -n "$ac_eof"; then
21783   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21784   ac_eof=`expr $ac_eof + 1`
21787 cat >>$CONFIG_STATUS <<_ACEOF
21788 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21790 _ACEOF
21791 sed '
21792 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21793 s/^/s,@/; s/!/@,|#_!!_#|/
21795 t n
21796 s/'"$ac_delim"'$/,g/; t
21797 s/$/\\/; p
21798 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21799 ' >>$CONFIG_STATUS <conf$$subs.sed
21800 rm -f conf$$subs.sed
21801 cat >>$CONFIG_STATUS <<_ACEOF
21802 :end
21803 s/|#_!!_#|//g
21804 CEOF$ac_eof
21805 _ACEOF
21808 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21809 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21810 # trailing colons and then remove the whole line if VPATH becomes empty
21811 # (actually we leave an empty line to preserve line numbers).
21812 if test "x$srcdir" = x.; then
21813   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21814 s/:*\$(srcdir):*/:/
21815 s/:*\${srcdir}:*/:/
21816 s/:*@srcdir@:*/:/
21817 s/^\([^=]*=[     ]*\):*/\1/
21818 s/:*$//
21819 s/^[^=]*=[       ]*$//
21823 cat >>$CONFIG_STATUS <<\_ACEOF
21824 fi # test -n "$CONFIG_FILES"
21827 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21829   case $ac_tag in
21830   :[FHLC]) ac_mode=$ac_tag; continue;;
21831   esac
21832   case $ac_mode$ac_tag in
21833   :[FHL]*:*);;
21834   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21835 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21836    { (exit 1); exit 1; }; };;
21837   :[FH]-) ac_tag=-:-;;
21838   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21839   esac
21840   ac_save_IFS=$IFS
21841   IFS=:
21842   set x $ac_tag
21843   IFS=$ac_save_IFS
21844   shift
21845   ac_file=$1
21846   shift
21848   case $ac_mode in
21849   :L) ac_source=$1;;
21850   :[FH])
21851     ac_file_inputs=
21852     for ac_f
21853     do
21854       case $ac_f in
21855       -) ac_f="$tmp/stdin";;
21856       *) # Look for the file first in the build tree, then in the source tree
21857          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21858          # because $ac_f cannot contain `:'.
21859          test -f "$ac_f" ||
21860            case $ac_f in
21861            [\\/$]*) false;;
21862            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21863            esac ||
21864            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21865 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21866    { (exit 1); exit 1; }; };;
21867       esac
21868       ac_file_inputs="$ac_file_inputs $ac_f"
21869     done
21871     # Let's still pretend it is `configure' which instantiates (i.e., don't
21872     # use $as_me), people would be surprised to read:
21873     #    /* config.h.  Generated by config.status.  */
21874     configure_input="Generated from "`IFS=:
21875           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21876     if test x"$ac_file" != x-; then
21877       configure_input="$ac_file.  $configure_input"
21878       { echo "$as_me:$LINENO: creating $ac_file" >&5
21879 echo "$as_me: creating $ac_file" >&6;}
21880     fi
21882     case $ac_tag in
21883     *:-:* | *:-) cat >"$tmp/stdin";;
21884     esac
21885     ;;
21886   esac
21888   ac_dir=`$as_dirname -- "$ac_file" ||
21889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21890          X"$ac_file" : 'X\(//\)[^/]' \| \
21891          X"$ac_file" : 'X\(//\)$' \| \
21892          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21893 echo X"$ac_file" |
21894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21895             s//\1/
21896             q
21897           }
21898           /^X\(\/\/\)[^/].*/{
21899             s//\1/
21900             q
21901           }
21902           /^X\(\/\/\)$/{
21903             s//\1/
21904             q
21905           }
21906           /^X\(\/\).*/{
21907             s//\1/
21908             q
21909           }
21910           s/.*/./; q'`
21911   { as_dir="$ac_dir"
21912   case $as_dir in #(
21913   -*) as_dir=./$as_dir;;
21914   esac
21915   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21916     as_dirs=
21917     while :; do
21918       case $as_dir in #(
21919       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21920       *) as_qdir=$as_dir;;
21921       esac
21922       as_dirs="'$as_qdir' $as_dirs"
21923       as_dir=`$as_dirname -- "$as_dir" ||
21924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21925          X"$as_dir" : 'X\(//\)[^/]' \| \
21926          X"$as_dir" : 'X\(//\)$' \| \
21927          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21928 echo X"$as_dir" |
21929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21930             s//\1/
21931             q
21932           }
21933           /^X\(\/\/\)[^/].*/{
21934             s//\1/
21935             q
21936           }
21937           /^X\(\/\/\)$/{
21938             s//\1/
21939             q
21940           }
21941           /^X\(\/\).*/{
21942             s//\1/
21943             q
21944           }
21945           s/.*/./; q'`
21946       test -d "$as_dir" && break
21947     done
21948     test -z "$as_dirs" || eval "mkdir $as_dirs"
21949   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21950 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21951    { (exit 1); exit 1; }; }; }
21952   ac_builddir=.
21954 case "$ac_dir" in
21955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21957   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21958   # A ".." for each directory in $ac_dir_suffix.
21959   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21960   case $ac_top_builddir_sub in
21961   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21962   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21963   esac ;;
21964 esac
21965 ac_abs_top_builddir=$ac_pwd
21966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21967 # for backward compatibility:
21968 ac_top_builddir=$ac_top_build_prefix
21970 case $srcdir in
21971   .)  # We are building in place.
21972     ac_srcdir=.
21973     ac_top_srcdir=$ac_top_builddir_sub
21974     ac_abs_top_srcdir=$ac_pwd ;;
21975   [\\/]* | ?:[\\/]* )  # Absolute name.
21976     ac_srcdir=$srcdir$ac_dir_suffix;
21977     ac_top_srcdir=$srcdir
21978     ac_abs_top_srcdir=$srcdir ;;
21979   *) # Relative name.
21980     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21981     ac_top_srcdir=$ac_top_build_prefix$srcdir
21982     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21983 esac
21984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21987   case $ac_mode in
21988   :F)
21989   #
21990   # CONFIG_FILE
21991   #
21993   case $INSTALL in
21994   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21995   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21996   esac
21997 _ACEOF
21999 cat >>$CONFIG_STATUS <<\_ACEOF
22000 # If the template does not know about datarootdir, expand it.
22001 # FIXME: This hack should be removed a few years after 2.60.
22002 ac_datarootdir_hack=; ac_datarootdir_seen=
22004 case `sed -n '/datarootdir/ {
22005   p
22006   q
22008 /@datadir@/p
22009 /@docdir@/p
22010 /@infodir@/p
22011 /@localedir@/p
22012 /@mandir@/p
22013 ' $ac_file_inputs` in
22014 *datarootdir*) ac_datarootdir_seen=yes;;
22015 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22016   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22017 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22018 _ACEOF
22019 cat >>$CONFIG_STATUS <<_ACEOF
22020   ac_datarootdir_hack='
22021   s&@datadir@&$datadir&g
22022   s&@docdir@&$docdir&g
22023   s&@infodir@&$infodir&g
22024   s&@localedir@&$localedir&g
22025   s&@mandir@&$mandir&g
22026     s&\\\${datarootdir}&$datarootdir&g' ;;
22027 esac
22028 _ACEOF
22030 # Neutralize VPATH when `$srcdir' = `.'.
22031 # Shell code in configure.ac might set extrasub.
22032 # FIXME: do we really want to maintain this feature?
22033 cat >>$CONFIG_STATUS <<_ACEOF
22034   sed "$ac_vpsub
22035 $extrasub
22036 _ACEOF
22037 cat >>$CONFIG_STATUS <<\_ACEOF
22039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22040 s&@configure_input@&$configure_input&;t t
22041 s&@top_builddir@&$ac_top_builddir_sub&;t t
22042 s&@srcdir@&$ac_srcdir&;t t
22043 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22044 s&@top_srcdir@&$ac_top_srcdir&;t t
22045 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22046 s&@builddir@&$ac_builddir&;t t
22047 s&@abs_builddir@&$ac_abs_builddir&;t t
22048 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22049 s&@INSTALL@&$ac_INSTALL&;t t
22050 $ac_datarootdir_hack
22051 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22054   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22055   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22056   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22057 which seems to be undefined.  Please make sure it is defined." >&5
22058 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22059 which seems to be undefined.  Please make sure it is defined." >&2;}
22061   rm -f "$tmp/stdin"
22062   case $ac_file in
22063   -) cat "$tmp/out"; rm -f "$tmp/out";;
22064   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22065   esac
22066  ;;
22067   
22068   
22069   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22070 echo "$as_me: executing $ac_file commands" >&6;}
22071  ;;
22072   esac
22075   case $ac_file$ac_mode in
22076     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22077   # Strip MF so we end up with the name of the file.
22078   mf=`echo "$mf" | sed -e 's/:.*$//'`
22079   # Check whether this is an Automake generated Makefile or not.
22080   # We used to match only the files named `Makefile.in', but
22081   # some people rename them; so instead we look at the file content.
22082   # Grep'ing the first line is not enough: some people post-process
22083   # each Makefile.in and add a new line on top of each file to say so.
22084   # So let's grep whole file.
22085   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22086     dirpart=`$as_dirname -- "$mf" ||
22087 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22088          X"$mf" : 'X\(//\)[^/]' \| \
22089          X"$mf" : 'X\(//\)$' \| \
22090          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22091 echo X"$mf" |
22092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22093             s//\1/
22094             q
22095           }
22096           /^X\(\/\/\)[^/].*/{
22097             s//\1/
22098             q
22099           }
22100           /^X\(\/\/\)$/{
22101             s//\1/
22102             q
22103           }
22104           /^X\(\/\).*/{
22105             s//\1/
22106             q
22107           }
22108           s/.*/./; q'`
22109   else
22110     continue
22111   fi
22112   # Extract the definition of DEPDIR, am__include, and am__quote
22113   # from the Makefile without running `make'.
22114   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22115   test -z "$DEPDIR" && continue
22116   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22117   test -z "am__include" && continue
22118   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22119   # When using ansi2knr, U may be empty or an underscore; expand it
22120   U=`sed -n 's/^U = //p' < "$mf"`
22121   # Find all dependency output files, they are included files with
22122   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22123   # simplest approach to changing $(DEPDIR) to its actual value in the
22124   # expansion.
22125   for file in `sed -n "
22126     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22127        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22128     # Make sure the directory exists.
22129     test -f "$dirpart/$file" && continue
22130     fdir=`$as_dirname -- "$file" ||
22131 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22132          X"$file" : 'X\(//\)[^/]' \| \
22133          X"$file" : 'X\(//\)$' \| \
22134          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22135 echo X"$file" |
22136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22137             s//\1/
22138             q
22139           }
22140           /^X\(\/\/\)[^/].*/{
22141             s//\1/
22142             q
22143           }
22144           /^X\(\/\/\)$/{
22145             s//\1/
22146             q
22147           }
22148           /^X\(\/\).*/{
22149             s//\1/
22150             q
22151           }
22152           s/.*/./; q'`
22153     { as_dir=$dirpart/$fdir
22154   case $as_dir in #(
22155   -*) as_dir=./$as_dir;;
22156   esac
22157   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22158     as_dirs=
22159     while :; do
22160       case $as_dir in #(
22161       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22162       *) as_qdir=$as_dir;;
22163       esac
22164       as_dirs="'$as_qdir' $as_dirs"
22165       as_dir=`$as_dirname -- "$as_dir" ||
22166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22167          X"$as_dir" : 'X\(//\)[^/]' \| \
22168          X"$as_dir" : 'X\(//\)$' \| \
22169          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22170 echo X"$as_dir" |
22171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22172             s//\1/
22173             q
22174           }
22175           /^X\(\/\/\)[^/].*/{
22176             s//\1/
22177             q
22178           }
22179           /^X\(\/\/\)$/{
22180             s//\1/
22181             q
22182           }
22183           /^X\(\/\).*/{
22184             s//\1/
22185             q
22186           }
22187           s/.*/./; q'`
22188       test -d "$as_dir" && break
22189     done
22190     test -z "$as_dirs" || eval "mkdir $as_dirs"
22191   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22192 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22193    { (exit 1); exit 1; }; }; }
22194     # echo "creating $dirpart/$file"
22195     echo '# dummy' > "$dirpart/$file"
22196   done
22197 done
22198  ;;
22200   esac
22201 done # for ac_tag
22204 { (exit 0); exit 0; }
22205 _ACEOF
22206 chmod +x $CONFIG_STATUS
22207 ac_clean_files=$ac_clean_files_save
22210 # configure is writing to config.log, and then calls config.status.
22211 # config.status does its own redirection, appending to config.log.
22212 # Unfortunately, on DOS this fails, as config.log is still kept open
22213 # by configure, so config.status won't be able to write to it; its
22214 # output is simply discarded.  So we exec the FD to /dev/null,
22215 # effectively closing config.log, so it can be properly (re)opened and
22216 # appended to by config.status.  When coming back to configure, we
22217 # need to make the FD available again.
22218 if test "$no_create" != yes; then
22219   ac_cs_success=:
22220   ac_config_status_args=
22221   test "$silent" = yes &&
22222     ac_config_status_args="$ac_config_status_args --quiet"
22223   exec 5>/dev/null
22224   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22225   exec 5>>config.log
22226   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22227   # would make configure fail if this is the last instruction.
22228   $ac_cs_success || { (exit 1); exit 1; }
22233 echo
22234 echo -n "Simple Exchange linking mode... : "
22235 if test "$sipe_static" = "yes" ; then
22236    echo "static"
22237    echo "Simple Exchange library...      : $SIPE_LIBA"
22238 else
22239    echo "dynamic"
22242 echo
22243 echo configure complete, now run \`make\`
22244 echo
22246 # The End.