Aarch64 build fix
[platform/upstream/libtool.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GNU Libtool 2.4.2.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 lt_ltdl_dir='libltdl'
548
549 SHELL=${CONFIG_SHELL-/bin/sh}
550
551 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
553
554 test -n "$DJDIR" || exec 7<&0 </dev/null
555 exec 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573
574 # Identity of this package.
575 PACKAGE_NAME='GNU Libtool'
576 PACKAGE_TARNAME='libtool'
577 PACKAGE_VERSION='2.4.2'
578 PACKAGE_STRING='GNU Libtool 2.4.2'
579 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
580 PACKAGE_URL='http://www.gnu.org/software/libtool/'
581
582 ac_unique_file="libtoolize.in"
583 ac_config_libobj_dir=libltdl
584 # Factoring default headers for most tests.
585 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
594 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 #  include <stdlib.h>
599 # endif
600 #endif
601 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #  include <memory.h>
604 # endif
605 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_UNISTD_H
617 # include <unistd.h>
618 #endif"
619
620 ac_subst_vars='am__EXEEXT_FALSE
621 am__EXEEXT_TRUE
622 LTLIBOBJS
623 HELP2MAN
624 ORDER
625 HAVE_RC_FALSE
626 HAVE_RC_TRUE
627 HAVE_GCJ_FALSE
628 HAVE_GCJ_TRUE
629 HAVE_FC_FALSE
630 HAVE_FC_TRUE
631 HAVE_F77_FALSE
632 HAVE_F77_TRUE
633 HAVE_CXX_FALSE
634 HAVE_CXX_TRUE
635 to_tool_file_cmd
636 to_host_file_cmd
637 RC
638 GCJFLAGS
639 GCJ
640 GOC
641 ac_ct_FC
642 FCFLAGS
643 FC
644 ac_ct_F77
645 FFLAGS
646 F77
647 CXXCPP
648 am__fastdepCXX_FALSE
649 am__fastdepCXX_TRUE
650 CXXDEPMODE
651 ac_ct_CXX
652 CXXFLAGS
653 CXX
654 LTDLOPEN
655 LT_CONFIG_H
656 CONVENIENCE_LTDL_FALSE
657 CONVENIENCE_LTDL_TRUE
658 INSTALL_LTDL_FALSE
659 INSTALL_LTDL_TRUE
660 ARGZ_H
661 LIBOBJS
662 sys_symbol_underscore
663 LIBADD_DL
664 LT_DLPREOPEN
665 LIBADD_DLD_LINK
666 LIBADD_SHL_LOAD
667 LIBADD_DLOPEN
668 LT_DLLOADERS
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 LIBTOOL
688 OBJDUMP
689 DLLTOOL
690 AS
691 CPP
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__quote
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 DIST_MAKEFILE_LIST
709 CONF_SUBDIRS
710 pkgdatadir
711 aclocaldir
712 CONFIG_STATUS_DEPENDENCIES
713 M4SH
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 package_revision
746 TIMESTAMP
747 LASTRELEASE
748 AUTOTEST
749 AUTOM4TE
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_ltdl_install
792 enable_dependency_tracking
793 enable_shared
794 enable_static
795 with_pic
796 enable_fast_install
797 with_gnu_ld
798 with_sysroot
799 enable_libtool_lock
800 '
801       ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CPP
810 CXX
811 CXXFLAGS
812 CCC
813 CXXCPP
814 F77
815 FFLAGS
816 FC
817 FCFLAGS'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *=)   ac_optarg= ;;
882   *)    ac_optarg=yes ;;
883   esac
884
885   # Accept the important Cygnus configure options, so we can diagnose typos.
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927       as_fn_error $? "invalid feature name: $ac_useropt"
928     ac_useropt_orig=$ac_useropt
929     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930     case $ac_user_opts in
931       *"
932 "enable_$ac_useropt"
933 "*) ;;
934       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935          ac_unrecognized_sep=', ';;
936     esac
937     eval enable_$ac_useropt=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=\$ac_optarg ;;
964
965   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967   | --exec | --exe | --ex)
968     ac_prev=exec_prefix ;;
969   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971   | --exec=* | --exe=* | --ex=*)
972     exec_prefix=$ac_optarg ;;
973
974   -gas | --gas | --ga | --g)
975     # Obsolete; use --with-gas.
976     with_gas=yes ;;
977
978   -help | --help | --hel | --he | -h)
979     ac_init_help=long ;;
980   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981     ac_init_help=recursive ;;
982   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983     ac_init_help=short ;;
984
985   -host | --host | --hos | --ho)
986     ac_prev=host_alias ;;
987   -host=* | --host=* | --hos=* | --ho=*)
988     host_alias=$ac_optarg ;;
989
990   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991     ac_prev=htmldir ;;
992   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993   | --ht=*)
994     htmldir=$ac_optarg ;;
995
996   -includedir | --includedir | --includedi | --included | --include \
997   | --includ | --inclu | --incl | --inc)
998     ac_prev=includedir ;;
999   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000   | --includ=* | --inclu=* | --incl=* | --inc=*)
1001     includedir=$ac_optarg ;;
1002
1003   -infodir | --infodir | --infodi | --infod | --info | --inf)
1004     ac_prev=infodir ;;
1005   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006     infodir=$ac_optarg ;;
1007
1008   -libdir | --libdir | --libdi | --libd)
1009     ac_prev=libdir ;;
1010   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011     libdir=$ac_optarg ;;
1012
1013   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014   | --libexe | --libex | --libe)
1015     ac_prev=libexecdir ;;
1016   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017   | --libexe=* | --libex=* | --libe=*)
1018     libexecdir=$ac_optarg ;;
1019
1020   -localedir | --localedir | --localedi | --localed | --locale)
1021     ac_prev=localedir ;;
1022   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023     localedir=$ac_optarg ;;
1024
1025   -localstatedir | --localstatedir | --localstatedi | --localstated \
1026   | --localstate | --localstat | --localsta | --localst | --locals)
1027     ac_prev=localstatedir ;;
1028   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030     localstatedir=$ac_optarg ;;
1031
1032   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033     ac_prev=mandir ;;
1034   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035     mandir=$ac_optarg ;;
1036
1037   -nfp | --nfp | --nf)
1038     # Obsolete; use --without-fp.
1039     with_fp=no ;;
1040
1041   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042   | --no-cr | --no-c | -n)
1043     no_create=yes ;;
1044
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     no_recursion=yes ;;
1048
1049   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051   | --oldin | --oldi | --old | --ol | --o)
1052     ac_prev=oldincludedir ;;
1053   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056     oldincludedir=$ac_optarg ;;
1057
1058   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059     ac_prev=prefix ;;
1060   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061     prefix=$ac_optarg ;;
1062
1063   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064   | --program-pre | --program-pr | --program-p)
1065     ac_prev=program_prefix ;;
1066   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068     program_prefix=$ac_optarg ;;
1069
1070   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071   | --program-suf | --program-su | --program-s)
1072     ac_prev=program_suffix ;;
1073   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075     program_suffix=$ac_optarg ;;
1076
1077   -program-transform-name | --program-transform-name \
1078   | --program-transform-nam | --program-transform-na \
1079   | --program-transform-n | --program-transform- \
1080   | --program-transform | --program-transfor \
1081   | --program-transfo | --program-transf \
1082   | --program-trans | --program-tran \
1083   | --progr-tra | --program-tr | --program-t)
1084     ac_prev=program_transform_name ;;
1085   -program-transform-name=* | --program-transform-name=* \
1086   | --program-transform-nam=* | --program-transform-na=* \
1087   | --program-transform-n=* | --program-transform-=* \
1088   | --program-transform=* | --program-transfor=* \
1089   | --program-transfo=* | --program-transf=* \
1090   | --program-trans=* | --program-tran=* \
1091   | --progr-tra=* | --program-tr=* | --program-t=*)
1092     program_transform_name=$ac_optarg ;;
1093
1094   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095     ac_prev=pdfdir ;;
1096   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097     pdfdir=$ac_optarg ;;
1098
1099   -psdir | --psdir | --psdi | --psd | --ps)
1100     ac_prev=psdir ;;
1101   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102     psdir=$ac_optarg ;;
1103
1104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105   | -silent | --silent | --silen | --sile | --sil)
1106     silent=yes ;;
1107
1108   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109     ac_prev=sbindir ;;
1110   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111   | --sbi=* | --sb=*)
1112     sbindir=$ac_optarg ;;
1113
1114   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116   | --sharedst | --shareds | --shared | --share | --shar \
1117   | --sha | --sh)
1118     ac_prev=sharedstatedir ;;
1119   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122   | --sha=* | --sh=*)
1123     sharedstatedir=$ac_optarg ;;
1124
1125   -site | --site | --sit)
1126     ac_prev=site ;;
1127   -site=* | --site=* | --sit=*)
1128     site=$ac_optarg ;;
1129
1130   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131     ac_prev=srcdir ;;
1132   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133     srcdir=$ac_optarg ;;
1134
1135   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136   | --syscon | --sysco | --sysc | --sys | --sy)
1137     ac_prev=sysconfdir ;;
1138   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140     sysconfdir=$ac_optarg ;;
1141
1142   -target | --target | --targe | --targ | --tar | --ta | --t)
1143     ac_prev=target_alias ;;
1144   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145     target_alias=$ac_optarg ;;
1146
1147   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148     verbose=yes ;;
1149
1150   -version | --version | --versio | --versi | --vers | -V)
1151     ac_init_version=: ;;
1152
1153   -with-* | --with-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error $? "invalid package name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval with_$ac_useropt=\$ac_optarg ;;
1168
1169   -without-* | --without-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=no ;;
1184
1185   --x)
1186     # Obsolete; use --with-x.
1187     with_x=yes ;;
1188
1189   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190   | --x-incl | --x-inc | --x-in | --x-i)
1191     ac_prev=x_includes ;;
1192   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194     x_includes=$ac_optarg ;;
1195
1196   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198     ac_prev=x_libraries ;;
1199   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201     x_libraries=$ac_optarg ;;
1202
1203   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1205     ;;
1206
1207   *=*)
1208     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209     # Reject names that are not valid shell variable names.
1210     case $ac_envvar in #(
1211       '' | [0-9]* | *[!_$as_cr_alnum]* )
1212       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213     esac
1214     eval $ac_envvar=\$ac_optarg
1215     export $ac_envvar ;;
1216
1217   *)
1218     # FIXME: should be removed in autoconf 3.0.
1219     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223     ;;
1224
1225   esac
1226 done
1227
1228 if test -n "$ac_prev"; then
1229   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230   as_fn_error $? "missing argument to $ac_option"
1231 fi
1232
1233 if test -n "$ac_unrecognized_opts"; then
1234   case $enable_option_checking in
1235     no) ;;
1236     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238   esac
1239 fi
1240
1241 # Check all directory arguments for consistency.
1242 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243                 datadir sysconfdir sharedstatedir localstatedir includedir \
1244                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245                 libdir localedir mandir
1246 do
1247   eval ac_val=\$$ac_var
1248   # Remove trailing slashes.
1249   case $ac_val in
1250     */ )
1251       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252       eval $ac_var=\$ac_val;;
1253   esac
1254   # Be sure to have absolute directory names.
1255   case $ac_val in
1256     [\\/$]* | ?:[\\/]* )  continue;;
1257     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258   esac
1259   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271   if test "x$build_alias" = x; then
1272     cross_compiling=maybe
1273     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1274     If a cross compiler is detected then cross compile mode will be used" >&2
1275   elif test "x$build_alias" != "x$host_alias"; then
1276     cross_compiling=yes
1277   fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289   as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291   as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296   ac_srcdir_defaulted=yes
1297   # Try the directory containing this script, then the parent directory.
1298   ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300          X"$as_myself" : 'X\(//\)[^/]' \| \
1301          X"$as_myself" : 'X\(//\)$' \| \
1302          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)[^/].*/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\/\)$/{
1313             s//\1/
1314             q
1315           }
1316           /^X\(\/\).*/{
1317             s//\1/
1318             q
1319           }
1320           s/.*/./; q'`
1321   srcdir=$ac_confdir
1322   if test ! -r "$srcdir/$ac_unique_file"; then
1323     srcdir=..
1324   fi
1325 else
1326   ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335         pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338   srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348   eval ac_env_${ac_var}_value=\$${ac_var}
1349   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357   # Omit some internal or obsolete options to make the list less imposing.
1358   # This message is too long to be a string in the A/UX 3.1 sh.
1359   cat <<_ACEOF
1360 \`configure' configures GNU Libtool 2.4.2 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370   -h, --help              display this help and exit
1371       --help=short        display options specific to this package
1372       --help=recursive    display the short help of all the included packages
1373   -V, --version           display version information and exit
1374   -q, --quiet, --silent   do not print \`checking ...' messages
1375       --cache-file=FILE   cache test results in FILE [disabled]
1376   -C, --config-cache      alias for \`--cache-file=config.cache'
1377   -n, --no-create         do not create output files
1378       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381   --prefix=PREFIX         install architecture-independent files in PREFIX
1382                           [$ac_default_prefix]
1383   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                           [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394   --bindir=DIR            user executables [EPREFIX/bin]
1395   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396   --libexecdir=DIR        program executables [EPREFIX/libexec]
1397   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400   --libdir=DIR            object code libraries [EPREFIX/lib]
1401   --includedir=DIR        C header files [PREFIX/include]
1402   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405   --infodir=DIR           info documentation [DATAROOTDIR/info]
1406   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407   --mandir=DIR            man documentation [DATAROOTDIR/man]
1408   --docdir=DIR            documentation root [DATAROOTDIR/doc/libtool]
1409   --htmldir=DIR           html documentation [DOCDIR]
1410   --dvidir=DIR            dvi documentation [DOCDIR]
1411   --pdfdir=DIR            pdf documentation [DOCDIR]
1412   --psdir=DIR             ps documentation [DOCDIR]
1413 _ACEOF
1414
1415   cat <<\_ACEOF
1416
1417 Program names:
1418   --program-prefix=PREFIX            prepend PREFIX to installed program names
1419   --program-suffix=SUFFIX            append SUFFIX to installed program names
1420   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421
1422 System types:
1423   --build=BUILD     configure for building on BUILD [guessed]
1424   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429   case $ac_init_help in
1430      short | recursive ) echo "Configuration of GNU Libtool 2.4.2:";;
1431    esac
1432   cat <<\_ACEOF
1433
1434 Optional Features:
1435   --disable-option-checking  ignore unrecognized --enable/--with options
1436   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438   --disable-ltdl-install  do not install libltdl
1439   --disable-dependency-tracking  speeds up one-time build
1440   --enable-dependency-tracking   do not reject slow dependency extractors
1441   --enable-shared[=PKGS]  build shared libraries [default=yes]
1442   --enable-static[=PKGS]  build static libraries [default=yes]
1443   --enable-fast-install[=PKGS]
1444                           optimize for fast installation [default=yes]
1445   --disable-libtool-lock  avoid locking (might break parallel builds)
1446   --enable-ltdl-install   install libltdl
1447
1448 Optional Packages:
1449   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1452                           both]
1453   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1454   --with-sysroot=DIR Search for dependent libraries within DIR
1455                         (or the compiler's sysroot if not specified).
1456
1457 Some influential environment variables:
1458   CC          C compiler command
1459   CFLAGS      C compiler flags
1460   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461               nonstandard directory <lib dir>
1462   LIBS        libraries to pass to the linker, e.g. -l<library>
1463   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464               you have headers in a nonstandard directory <include dir>
1465   CPP         C preprocessor
1466   CXX         C++ compiler command
1467   CXXFLAGS    C++ compiler flags
1468   CXXCPP      C++ preprocessor
1469   F77         Fortran 77 compiler command
1470   FFLAGS      Fortran 77 compiler flags
1471   FC          Fortran compiler command
1472   FCFLAGS     Fortran compiler flags
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to <bug-libtool@gnu.org>.
1478 GNU Libtool home page: <http://www.gnu.org/software/libtool/>.
1479 General help using GNU software: <http://www.gnu.org/gethelp/>.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485   # If there are subdirs, report their specific --help.
1486   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487     test -d "$ac_dir" ||
1488       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489       continue
1490     ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496   # A ".." for each directory in $ac_dir_suffix.
1497   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498   case $ac_top_builddir_sub in
1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501   esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509   .)  # We are building in place.
1510     ac_srcdir=.
1511     ac_top_srcdir=$ac_top_builddir_sub
1512     ac_abs_top_srcdir=$ac_pwd ;;
1513   [\\/]* | ?:[\\/]* )  # Absolute name.
1514     ac_srcdir=$srcdir$ac_dir_suffix;
1515     ac_top_srcdir=$srcdir
1516     ac_abs_top_srcdir=$srcdir ;;
1517   *) # Relative name.
1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524     cd "$ac_dir" || { ac_status=$?; continue; }
1525     # Check for guested configure.
1526     if test -f "$ac_srcdir/configure.gnu"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529     elif test -f "$ac_srcdir/configure"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure" --help=recursive
1532     else
1533       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534     fi || ac_status=$?
1535     cd "$ac_pwd" || { ac_status=$?; break; }
1536   done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541   cat <<\_ACEOF
1542 GNU Libtool configure 2.4.2
1543 generated by GNU Autoconf 2.68
1544
1545 Copyright (C) 2010 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549   exit
1550 fi
1551
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1555
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1560 {
1561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562   rm -f conftest.$ac_objext
1563   if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566   *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570   (eval "$ac_compile") 2>conftest.err
1571   ac_status=$?
1572   if test -s conftest.err; then
1573     grep -v '^ *+' conftest.err >conftest.er1
1574     cat conftest.er1 >&5
1575     mv -f conftest.er1 conftest.err
1576   fi
1577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578   test $ac_status = 0; } && {
1579          test -z "$ac_c_werror_flag" ||
1580          test ! -s conftest.err
1581        } && test -s conftest.$ac_objext; then :
1582   ac_retval=0
1583 else
1584   $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587         ac_retval=1
1588 fi
1589   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590   as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_compile
1593
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1598 {
1599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600   if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603   *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608   ac_status=$?
1609   if test -s conftest.err; then
1610     grep -v '^ *+' conftest.err >conftest.er1
1611     cat conftest.er1 >&5
1612     mv -f conftest.er1 conftest.err
1613   fi
1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615   test $ac_status = 0; } > conftest.i && {
1616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617          test ! -s conftest.err
1618        }; then :
1619   ac_retval=0
1620 else
1621   $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624     ac_retval=1
1625 fi
1626   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627   as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_cpp
1630
1631 # ac_fn_c_try_link LINENO
1632 # -----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_link ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   rm -f conftest.$ac_objext conftest$ac_exeext
1638   if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641   *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645   (eval "$ac_link") 2>conftest.err
1646   ac_status=$?
1647   if test -s conftest.err; then
1648     grep -v '^ *+' conftest.err >conftest.er1
1649     cat conftest.er1 >&5
1650     mv -f conftest.er1 conftest.err
1651   fi
1652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653   test $ac_status = 0; } && {
1654          test -z "$ac_c_werror_flag" ||
1655          test ! -s conftest.err
1656        } && test -s conftest$ac_exeext && {
1657          test "$cross_compiling" = yes ||
1658          $as_test_x conftest$ac_exeext
1659        }; then :
1660   ac_retval=0
1661 else
1662   $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665         ac_retval=1
1666 fi
1667   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1668   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1669   # interfere with the next link command; also delete a directory that is
1670   # left behind by Apple's compiler.  We do this before executing the actions.
1671   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673   as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_link
1676
1677 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists and can be compiled using the include files in
1680 # INCLUDES, setting the cache variable VAR accordingly.
1681 ac_fn_c_check_header_compile ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687   $as_echo_n "(cached) " >&6
1688 else
1689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h.  */
1691 $4
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"; then :
1695   eval "$3=yes"
1696 else
1697   eval "$3=no"
1698 fi
1699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 fi
1701 eval ac_res=\$$3
1702                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
1706 } # ac_fn_c_check_header_compile
1707
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718   *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722   (eval "$ac_link") 2>&5
1723   ac_status=$?
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726   { { case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_try") 2>&5
1733   ac_status=$?
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; }; }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: program exited with status $ac_status" >&5
1739        $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742        ac_retval=$ac_status
1743 fi
1744   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_run
1749
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759   $as_echo_n "(cached) " >&6
1760 else
1761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1765 #define $2 innocuous_$2
1766
1767 /* System header to define __stub macros and hopefully few prototypes,
1768     which can conflict with char $2 (); below.
1769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770     <limits.h> exists even on freestanding compilers.  */
1771
1772 #ifdef __STDC__
1773 # include <limits.h>
1774 #else
1775 # include <assert.h>
1776 #endif
1777
1778 #undef $2
1779
1780 /* Override any GCC internal prototype to avoid an error.
1781    Use char because int might match the return type of a GCC
1782    builtin and then its argument prototype would still apply.  */
1783 #ifdef __cplusplus
1784 extern "C"
1785 #endif
1786 char $2 ();
1787 /* The GNU C library defines this for functions which it implements
1788     to always fail with ENOSYS.  Some functions are actually named
1789     something starting with __ and the normal name is an alias.  */
1790 #if defined __stub_$2 || defined __stub___$2
1791 choke me
1792 #endif
1793
1794 int
1795 main ()
1796 {
1797 return $2 ();
1798   ;
1799   return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_link "$LINENO"; then :
1803   eval "$3=yes"
1804 else
1805   eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext \
1808     conftest$ac_exeext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_func
1816
1817 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1818 # ---------------------------------------------
1819 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1820 # accordingly.
1821 ac_fn_c_check_decl ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   as_decl_name=`echo $2|sed 's/ *(.*//'`
1825   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1827 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1828 if eval \${$3+:} false; then :
1829   $as_echo_n "(cached) " >&6
1830 else
1831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h.  */
1833 $4
1834 int
1835 main ()
1836 {
1837 #ifndef $as_decl_name
1838 #ifdef __cplusplus
1839   (void) $as_decl_use;
1840 #else
1841   (void) $as_decl_name;
1842 #endif
1843 #endif
1844
1845   ;
1846   return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850   eval "$3=yes"
1851 else
1852   eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_c_check_decl
1862
1863 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1864 # -------------------------------------------
1865 # Tests whether TYPE exists after having included INCLUDES, setting cache
1866 # variable VAR accordingly.
1867 ac_fn_c_check_type ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873   $as_echo_n "(cached) " >&6
1874 else
1875   eval "$3=no"
1876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 $4
1879 int
1880 main ()
1881 {
1882 if (sizeof ($2))
1883          return 0;
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h.  */
1891 $4
1892 int
1893 main ()
1894 {
1895 if (sizeof (($2)))
1896             return 0;
1897   ;
1898   return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902
1903 else
1904   eval "$3=yes"
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 fi
1910 eval ac_res=\$$3
1911                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_type
1916
1917 # ac_fn_cxx_try_compile LINENO
1918 # ----------------------------
1919 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_compile ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   rm -f conftest.$ac_objext
1924   if { { ac_try="$ac_compile"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_compile") 2>conftest.err
1932   ac_status=$?
1933   if test -s conftest.err; then
1934     grep -v '^ *+' conftest.err >conftest.er1
1935     cat conftest.er1 >&5
1936     mv -f conftest.er1 conftest.err
1937   fi
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && {
1940          test -z "$ac_cxx_werror_flag" ||
1941          test ! -s conftest.err
1942        } && test -s conftest.$ac_objext; then :
1943   ac_retval=0
1944 else
1945   $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948         ac_retval=1
1949 fi
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_cxx_try_compile
1954
1955 # ac_fn_cxx_try_cpp LINENO
1956 # ------------------------
1957 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_cpp ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   if { { ac_try="$ac_cpp conftest.$ac_ext"
1962 case "(($ac_try" in
1963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964   *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1969   ac_status=$?
1970   if test -s conftest.err; then
1971     grep -v '^ *+' conftest.err >conftest.er1
1972     cat conftest.er1 >&5
1973     mv -f conftest.er1 conftest.err
1974   fi
1975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976   test $ac_status = 0; } > conftest.i && {
1977          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1978          test ! -s conftest.err
1979        }; then :
1980   ac_retval=0
1981 else
1982   $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985     ac_retval=1
1986 fi
1987   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988   as_fn_set_status $ac_retval
1989
1990 } # ac_fn_cxx_try_cpp
1991
1992 # ac_fn_cxx_try_link LINENO
1993 # -------------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_link ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   rm -f conftest.$ac_objext conftest$ac_exeext
1999   if { { ac_try="$ac_link"
2000 case "(($ac_try" in
2001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002   *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006   (eval "$ac_link") 2>conftest.err
2007   ac_status=$?
2008   if test -s conftest.err; then
2009     grep -v '^ *+' conftest.err >conftest.er1
2010     cat conftest.er1 >&5
2011     mv -f conftest.er1 conftest.err
2012   fi
2013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014   test $ac_status = 0; } && {
2015          test -z "$ac_cxx_werror_flag" ||
2016          test ! -s conftest.err
2017        } && test -s conftest$ac_exeext && {
2018          test "$cross_compiling" = yes ||
2019          $as_test_x conftest$ac_exeext
2020        }; then :
2021   ac_retval=0
2022 else
2023   $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026         ac_retval=1
2027 fi
2028   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2029   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2030   # interfere with the next link command; also delete a directory that is
2031   # left behind by Apple's compiler.  We do this before executing the actions.
2032   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034   as_fn_set_status $ac_retval
2035
2036 } # ac_fn_cxx_try_link
2037
2038 # ac_fn_f77_try_compile LINENO
2039 # ----------------------------
2040 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2041 ac_fn_f77_try_compile ()
2042 {
2043   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044   rm -f conftest.$ac_objext
2045   if { { ac_try="$ac_compile"
2046 case "(($ac_try" in
2047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048   *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052   (eval "$ac_compile") 2>conftest.err
2053   ac_status=$?
2054   if test -s conftest.err; then
2055     grep -v '^ *+' conftest.err >conftest.er1
2056     cat conftest.er1 >&5
2057     mv -f conftest.er1 conftest.err
2058   fi
2059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060   test $ac_status = 0; } && {
2061          test -z "$ac_f77_werror_flag" ||
2062          test ! -s conftest.err
2063        } && test -s conftest.$ac_objext; then :
2064   ac_retval=0
2065 else
2066   $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069         ac_retval=1
2070 fi
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072   as_fn_set_status $ac_retval
2073
2074 } # ac_fn_f77_try_compile
2075
2076 # ac_fn_f77_try_link LINENO
2077 # -------------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 ac_fn_f77_try_link ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   rm -f conftest.$ac_objext conftest$ac_exeext
2083   if { { ac_try="$ac_link"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090   (eval "$ac_link") 2>conftest.err
2091   ac_status=$?
2092   if test -s conftest.err; then
2093     grep -v '^ *+' conftest.err >conftest.er1
2094     cat conftest.er1 >&5
2095     mv -f conftest.er1 conftest.err
2096   fi
2097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098   test $ac_status = 0; } && {
2099          test -z "$ac_f77_werror_flag" ||
2100          test ! -s conftest.err
2101        } && test -s conftest$ac_exeext && {
2102          test "$cross_compiling" = yes ||
2103          $as_test_x conftest$ac_exeext
2104        }; then :
2105   ac_retval=0
2106 else
2107   $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110         ac_retval=1
2111 fi
2112   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114   # interfere with the next link command; also delete a directory that is
2115   # left behind by Apple's compiler.  We do this before executing the actions.
2116   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118   as_fn_set_status $ac_retval
2119
2120 } # ac_fn_f77_try_link
2121
2122 # ac_fn_fc_try_compile LINENO
2123 # ---------------------------
2124 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_fc_try_compile ()
2126 {
2127   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128   rm -f conftest.$ac_objext
2129   if { { ac_try="$ac_compile"
2130 case "(($ac_try" in
2131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132   *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136   (eval "$ac_compile") 2>conftest.err
2137   ac_status=$?
2138   if test -s conftest.err; then
2139     grep -v '^ *+' conftest.err >conftest.er1
2140     cat conftest.er1 >&5
2141     mv -f conftest.er1 conftest.err
2142   fi
2143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144   test $ac_status = 0; } && {
2145          test -z "$ac_fc_werror_flag" ||
2146          test ! -s conftest.err
2147        } && test -s conftest.$ac_objext; then :
2148   ac_retval=0
2149 else
2150   $as_echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153         ac_retval=1
2154 fi
2155   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156   as_fn_set_status $ac_retval
2157
2158 } # ac_fn_fc_try_compile
2159
2160 # ac_fn_fc_try_link LINENO
2161 # ------------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_fc_try_link ()
2164 {
2165   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166   rm -f conftest.$ac_objext conftest$ac_exeext
2167   if { { ac_try="$ac_link"
2168 case "(($ac_try" in
2169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170   *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174   (eval "$ac_link") 2>conftest.err
2175   ac_status=$?
2176   if test -s conftest.err; then
2177     grep -v '^ *+' conftest.err >conftest.er1
2178     cat conftest.er1 >&5
2179     mv -f conftest.er1 conftest.err
2180   fi
2181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182   test $ac_status = 0; } && {
2183          test -z "$ac_fc_werror_flag" ||
2184          test ! -s conftest.err
2185        } && test -s conftest$ac_exeext && {
2186          test "$cross_compiling" = yes ||
2187          $as_test_x conftest$ac_exeext
2188        }; then :
2189   ac_retval=0
2190 else
2191   $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194         ac_retval=1
2195 fi
2196   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198   # interfere with the next link command; also delete a directory that is
2199   # left behind by Apple's compiler.  We do this before executing the actions.
2200   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202   as_fn_set_status $ac_retval
2203
2204 } # ac_fn_fc_try_link
2205 cat >config.log <<_ACEOF
2206 This file contains any messages produced by compilers while
2207 running configure, to aid debugging if configure makes a mistake.
2208
2209 It was created by GNU Libtool $as_me 2.4.2, which was
2210 generated by GNU Autoconf 2.68.  Invocation command line was
2211
2212   $ $0 $@
2213
2214 _ACEOF
2215 exec 5>>config.log
2216 {
2217 cat <<_ASUNAME
2218 ## --------- ##
2219 ## Platform. ##
2220 ## --------- ##
2221
2222 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2223 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2224 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2225 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2226 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2227
2228 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2229 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2230
2231 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2232 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2233 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2234 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2235 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2236 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2237 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2238
2239 _ASUNAME
2240
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246     $as_echo "PATH: $as_dir"
2247   done
2248 IFS=$as_save_IFS
2249
2250 } >&5
2251
2252 cat >&5 <<_ACEOF
2253
2254
2255 ## ----------- ##
2256 ## Core tests. ##
2257 ## ----------- ##
2258
2259 _ACEOF
2260
2261
2262 # Keep a trace of the command line.
2263 # Strip out --no-create and --no-recursion so they do not pile up.
2264 # Strip out --silent because we don't want to record it for future runs.
2265 # Also quote any args containing shell meta-characters.
2266 # Make two passes to allow for proper duplicate-argument suppression.
2267 ac_configure_args=
2268 ac_configure_args0=
2269 ac_configure_args1=
2270 ac_must_keep_next=false
2271 for ac_pass in 1 2
2272 do
2273   for ac_arg
2274   do
2275     case $ac_arg in
2276     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2277     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2278     | -silent | --silent | --silen | --sile | --sil)
2279       continue ;;
2280     *\'*)
2281       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2282     esac
2283     case $ac_pass in
2284     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2285     2)
2286       as_fn_append ac_configure_args1 " '$ac_arg'"
2287       if test $ac_must_keep_next = true; then
2288         ac_must_keep_next=false # Got value, back to normal.
2289       else
2290         case $ac_arg in
2291           *=* | --config-cache | -C | -disable-* | --disable-* \
2292           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2293           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2294           | -with-* | --with-* | -without-* | --without-* | --x)
2295             case "$ac_configure_args0 " in
2296               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2297             esac
2298             ;;
2299           -* ) ac_must_keep_next=true ;;
2300         esac
2301       fi
2302       as_fn_append ac_configure_args " '$ac_arg'"
2303       ;;
2304     esac
2305   done
2306 done
2307 { ac_configure_args0=; unset ac_configure_args0;}
2308 { ac_configure_args1=; unset ac_configure_args1;}
2309
2310 # When interrupted or exit'd, cleanup temporary files, and complete
2311 # config.log.  We remove comments because anyway the quotes in there
2312 # would cause problems or look ugly.
2313 # WARNING: Use '\'' to represent an apostrophe within the trap.
2314 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2315 trap 'exit_status=$?
2316   # Save into config.log some information that might help in debugging.
2317   {
2318     echo
2319
2320     $as_echo "## ---------------- ##
2321 ## Cache variables. ##
2322 ## ---------------- ##"
2323     echo
2324     # The following way of writing the cache mishandles newlines in values,
2325 (
2326   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327     eval ac_val=\$$ac_var
2328     case $ac_val in #(
2329     *${as_nl}*)
2330       case $ac_var in #(
2331       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333       esac
2334       case $ac_var in #(
2335       _ | IFS | as_nl) ;; #(
2336       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337       *) { eval $ac_var=; unset $ac_var;} ;;
2338       esac ;;
2339     esac
2340   done
2341   (set) 2>&1 |
2342     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343     *${as_nl}ac_space=\ *)
2344       sed -n \
2345         "s/'\''/'\''\\\\'\'''\''/g;
2346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347       ;; #(
2348     *)
2349       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350       ;;
2351     esac |
2352     sort
2353 )
2354     echo
2355
2356     $as_echo "## ----------------- ##
2357 ## Output variables. ##
2358 ## ----------------- ##"
2359     echo
2360     for ac_var in $ac_subst_vars
2361     do
2362       eval ac_val=\$$ac_var
2363       case $ac_val in
2364       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365       esac
2366       $as_echo "$ac_var='\''$ac_val'\''"
2367     done | sort
2368     echo
2369
2370     if test -n "$ac_subst_files"; then
2371       $as_echo "## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##"
2374       echo
2375       for ac_var in $ac_subst_files
2376       do
2377         eval ac_val=\$$ac_var
2378         case $ac_val in
2379         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380         esac
2381         $as_echo "$ac_var='\''$ac_val'\''"
2382       done | sort
2383       echo
2384     fi
2385
2386     if test -s confdefs.h; then
2387       $as_echo "## ----------- ##
2388 ## confdefs.h. ##
2389 ## ----------- ##"
2390       echo
2391       cat confdefs.h
2392       echo
2393     fi
2394     test "$ac_signal" != 0 &&
2395       $as_echo "$as_me: caught signal $ac_signal"
2396     $as_echo "$as_me: exit $exit_status"
2397   } >&5
2398   rm -f core *.core core.conftest.* &&
2399     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400     exit $exit_status
2401 ' 0
2402 for ac_signal in 1 2 13 15; do
2403   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2404 done
2405 ac_signal=0
2406
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest* confdefs.h
2409
2410 $as_echo "/* confdefs.h */" > confdefs.h
2411
2412 # Predefined preprocessor variables.
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_NAME "$PACKAGE_NAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_STRING "$PACKAGE_STRING"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_URL "$PACKAGE_URL"
2436 _ACEOF
2437
2438
2439 # Let the site file select an alternate cache file if it wants to.
2440 # Prefer an explicitly selected file to automatically selected ones.
2441 ac_site_file1=NONE
2442 ac_site_file2=NONE
2443 if test -n "$CONFIG_SITE"; then
2444   # We do not want a PATH search for config.site.
2445   case $CONFIG_SITE in #((
2446     -*)  ac_site_file1=./$CONFIG_SITE;;
2447     */*) ac_site_file1=$CONFIG_SITE;;
2448     *)   ac_site_file1=./$CONFIG_SITE;;
2449   esac
2450 elif test "x$prefix" != xNONE; then
2451   ac_site_file1=$prefix/share/config.site
2452   ac_site_file2=$prefix/etc/config.site
2453 else
2454   ac_site_file1=$ac_default_prefix/share/config.site
2455   ac_site_file2=$ac_default_prefix/etc/config.site
2456 fi
2457 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2458 do
2459   test "x$ac_site_file" = xNONE && continue
2460   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2462 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2463     sed 's/^/| /' "$ac_site_file" >&5
2464     . "$ac_site_file" \
2465       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 as_fn_error $? "failed to load site script $ac_site_file
2468 See \`config.log' for more details" "$LINENO" 5; }
2469   fi
2470 done
2471
2472 if test -r "$cache_file"; then
2473   # Some versions of bash will fail to source /dev/null (special files
2474   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2475   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477 $as_echo "$as_me: loading cache $cache_file" >&6;}
2478     case $cache_file in
2479       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480       *)                      . "./$cache_file";;
2481     esac
2482   fi
2483 else
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485 $as_echo "$as_me: creating cache $cache_file" >&6;}
2486   >$cache_file
2487 fi
2488
2489 # Check that the precious variables saved in the cache have kept the same
2490 # value.
2491 ac_cache_corrupted=false
2492 for ac_var in $ac_precious_vars; do
2493   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494   eval ac_new_set=\$ac_env_${ac_var}_set
2495   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496   eval ac_new_val=\$ac_env_${ac_var}_value
2497   case $ac_old_set,$ac_new_set in
2498     set,)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,set)
2503       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505       ac_cache_corrupted=: ;;
2506     ,);;
2507     *)
2508       if test "x$ac_old_val" != "x$ac_new_val"; then
2509         # differences in whitespace do not lead to failure.
2510         ac_old_val_w=`echo x $ac_old_val`
2511         ac_new_val_w=`echo x $ac_new_val`
2512         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515           ac_cache_corrupted=:
2516         else
2517           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519           eval $ac_var=\$ac_old_val
2520         fi
2521         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2522 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2523         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2524 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2525       fi;;
2526   esac
2527   # Pass precious variables to config.status.
2528   if test "$ac_new_set" = set; then
2529     case $ac_new_val in
2530     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531     *) ac_arg=$ac_var=$ac_new_val ;;
2532     esac
2533     case " $ac_configure_args " in
2534       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2535       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2536     esac
2537   fi
2538 done
2539 if $ac_cache_corrupted; then
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2545 fi
2546 ## -------------------- ##
2547 ## Main body of script. ##
2548 ## -------------------- ##
2549
2550 ac_ext=c
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555
2556
2557
2558 ac_config_headers="$ac_config_headers config.h:config-h.in"
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568 ac_aux_dir=
2569 for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
2570   if test -f "$ac_dir/install-sh"; then
2571     ac_aux_dir=$ac_dir
2572     ac_install_sh="$ac_aux_dir/install-sh -c"
2573     break
2574   elif test -f "$ac_dir/install.sh"; then
2575     ac_aux_dir=$ac_dir
2576     ac_install_sh="$ac_aux_dir/install.sh -c"
2577     break
2578   elif test -f "$ac_dir/shtool"; then
2579     ac_aux_dir=$ac_dir
2580     ac_install_sh="$ac_aux_dir/shtool install -c"
2581     break
2582   fi
2583 done
2584 if test -z "$ac_aux_dir"; then
2585   as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
2586 fi
2587
2588 # These three variables are undocumented and unsupported,
2589 # and are intended to be withdrawn in a future Autoconf release.
2590 # They can cause serious problems if a builder's source tree is in a directory
2591 # whose full name contains unusual characters.
2592 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2593 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2594 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2595
2596
2597
2598
2599
2600
2601 ## ------------------------ ##
2602 ## Autotest initialisation. ##
2603 ## ------------------------ ##
2604
2605 ac_config_commands="$ac_config_commands tests/atconfig"
2606
2607 AUTOM4TE=${AUTOM4TE=autom4te}
2608
2609 AUTOTEST='$(AUTOM4TE) --language=autotest'
2610
2611
2612
2613 ## ---------------------------------------- ##
2614 ## Display a configure time version banner. ##
2615 ## ---------------------------------------- ##
2616
2617 # Calculating the previous version is somewhat involved, so do it once
2618 # here, and SUBST the result for the maintainer release rules.  The
2619 # versioning scheme we use is described here:
2620 #       http://www.gnu.org/software/libtool/contribute.html
2621
2622 # First we break the version number up into its constituent parts.
2623 lt_major=`echo "2.4.2" | sed 's,\..*$,,g'`
2624 lt_minor=`echo "2.4.2" | sed 's,^[0-9]*\.\([0-9]*\).*$,\1,'`
2625 lt_micro=`echo "2.4.2" | sed 's,^[0-9]*\.[0-9]*\(\.[0-9]*\).*$,\1,'`
2626 lt_alpha=`echo "2.4.2" | sed 's,^[0-9.]*,,'`
2627
2628 test "$lt_minor" = "2.4.2" && lt_minor=0
2629 test "$lt_micro" = "2.4.2" && lt_micro=""
2630
2631 # Then we try to work out what the release before this one would have been
2632 # numbered.  The only time we come unstuck is when this is the first release
2633 # from a stable branch (lt_micro=lt_alpha=""), so LASTRELEASE is the last
2634 # release from the old stable branch, and we don't know what version that
2635 # was, so leave it unset so that the Makefile can complain.
2636 case $lt_alpha in
2637   [ab])
2638     case $lt_micro in
2639       .[01])
2640         LASTRELEASE="$lt_major.$lt_minor" ;;
2641       *)
2642         LASTRELEASE="$lt_major.$lt_minor$lt_micro" ;;
2643     esac
2644     ;;
2645   [cegikmoqsuwy])
2646     LASTRELEASE=`echo "2.4.2" | tr 'c-y' 'b-w'` ;;
2647   [dfhjlnprtvxz])
2648     LASTRELEASE=`echo "2.4.2" | tr 'd-z' 'b-x'` ;;
2649   *) # No lt_alpha component
2650     case $lt_micro in
2651       .0)
2652         LASTRELEASE="" ;;
2653       .1)
2654         LASTRELEASE="$lt_major.$lt_minor" ;;
2655       .*)
2656         lt_micro_value=`echo $lt_micro | sed 's,^\.,,'`
2657         LASTRELEASE="$lt_major.$lt_minor.`expr $lt_micro_value - 1`" ;;
2658       *)
2659         LASTRELEASE="" ;;
2660     esac
2661     ;;
2662 esac
2663
2664
2665 # This is a sanity check so we can see which version is used in bug reports.
2666 # It is assumed that we only want to see the date extension for cvs libtool
2667 # versions (i.e. "odd" letters) and not actual alpha releases.
2668 TIMESTAMP=`${CONFIG_SHELL} ${ac_aux_dir}/mkstamp ${srcdir}`
2669 package_revision=`( set $TIMESTAMP; echo $1; )`
2670 case $lt_alpha in
2671   ""|[bdfhjlnprtvxz])
2672     TIMESTAMP=
2673     ;;
2674 esac
2675 timestamp_string="${TIMESTAMP:+ (Build:$TIMESTAMP)}"
2676 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2677 ## Configuring libtool$timestamp_string 2.4.2 ##
2678 _ASBOX
2679 echo
2680
2681
2682
2683
2684 ## ------------------------ ##
2685 ## Automake Initialisation. ##
2686 ## ------------------------ ##
2687
2688 am__api_version='1.11'
2689
2690 # Find a good install program.  We prefer a C program (faster),
2691 # so one script is as good as another.  But avoid the broken or
2692 # incompatible versions:
2693 # SysV /etc/install, /usr/sbin/install
2694 # SunOS /usr/etc/install
2695 # IRIX /sbin/install
2696 # AIX /bin/install
2697 # AmigaOS /C/install, which installs bootblocks on floppy discs
2698 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2699 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2700 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2701 # OS/2's system install, which has a completely different semantic
2702 # ./install, which can be erroneously created by make from ./install.sh.
2703 # Reject install programs that cannot install multiple files.
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2705 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2706 if test -z "$INSTALL"; then
2707 if ${ac_cv_path_install+:} false; then :
2708   $as_echo_n "(cached) " >&6
2709 else
2710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   test -z "$as_dir" && as_dir=.
2715     # Account for people who put trailing slashes in PATH elements.
2716 case $as_dir/ in #((
2717   ./ | .// | /[cC]/* | \
2718   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2719   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2720   /usr/ucb/* ) ;;
2721   *)
2722     # OSF1 and SCO ODT 3.0 have their own names for install.
2723     # Don't use installbsd from OSF since it installs stuff as root
2724     # by default.
2725     for ac_prog in ginstall scoinst install; do
2726       for ac_exec_ext in '' $ac_executable_extensions; do
2727         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2728           if test $ac_prog = install &&
2729             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730             # AIX install.  It has an incompatible calling convention.
2731             :
2732           elif test $ac_prog = install &&
2733             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734             # program-specific install script used by HP pwplus--don't use.
2735             :
2736           else
2737             rm -rf conftest.one conftest.two conftest.dir
2738             echo one > conftest.one
2739             echo two > conftest.two
2740             mkdir conftest.dir
2741             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2742               test -s conftest.one && test -s conftest.two &&
2743               test -s conftest.dir/conftest.one &&
2744               test -s conftest.dir/conftest.two
2745             then
2746               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2747               break 3
2748             fi
2749           fi
2750         fi
2751       done
2752     done
2753     ;;
2754 esac
2755
2756   done
2757 IFS=$as_save_IFS
2758
2759 rm -rf conftest.one conftest.two conftest.dir
2760
2761 fi
2762   if test "${ac_cv_path_install+set}" = set; then
2763     INSTALL=$ac_cv_path_install
2764   else
2765     # As a last resort, use the slow shell script.  Don't cache a
2766     # value for INSTALL within a source directory, because that will
2767     # break other packages using the cache if that directory is
2768     # removed, or if the value is a relative name.
2769     INSTALL=$ac_install_sh
2770   fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2773 $as_echo "$INSTALL" >&6; }
2774
2775 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2776 # It thinks the first close brace ends the variable substitution.
2777 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2778
2779 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2780
2781 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2784 $as_echo_n "checking whether build environment is sane... " >&6; }
2785 # Just in case
2786 sleep 1
2787 echo timestamp > conftest.file
2788 # Reject unsafe characters in $srcdir or the absolute working directory
2789 # name.  Accept space and tab only in the latter.
2790 am_lf='
2791 '
2792 case `pwd` in
2793   *[\\\"\#\$\&\'\`$am_lf]*)
2794     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2795 esac
2796 case $srcdir in
2797   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2798     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2799 esac
2800
2801 # Do `set' in a subshell so we don't clobber the current shell's
2802 # arguments.  Must try -L first in case configure is actually a
2803 # symlink; some systems play weird games with the mod time of symlinks
2804 # (eg FreeBSD returns the mod time of the symlink's containing
2805 # directory).
2806 if (
2807    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2808    if test "$*" = "X"; then
2809       # -L didn't work.
2810       set X `ls -t "$srcdir/configure" conftest.file`
2811    fi
2812    rm -f conftest.file
2813    if test "$*" != "X $srcdir/configure conftest.file" \
2814       && test "$*" != "X conftest.file $srcdir/configure"; then
2815
2816       # If neither matched, then we have a broken ls.  This can happen
2817       # if, for instance, CONFIG_SHELL is bash and it inherits a
2818       # broken ls alias from the environment.  This has actually
2819       # happened.  Such a system could not be considered "sane".
2820       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2821 alias in your environment" "$LINENO" 5
2822    fi
2823
2824    test "$2" = conftest.file
2825    )
2826 then
2827    # Ok.
2828    :
2829 else
2830    as_fn_error $? "newly created file is older than distributed files!
2831 Check your system clock" "$LINENO" 5
2832 fi
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2834 $as_echo "yes" >&6; }
2835 test "$program_prefix" != NONE &&
2836   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837 # Use a double $ so make ignores it.
2838 test "$program_suffix" != NONE &&
2839   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2840 # Double any \ or $.
2841 # By default was `s,x,x', remove it if useless.
2842 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2844
2845 # expand $ac_aux_dir to an absolute path
2846 am_aux_dir=`cd $ac_aux_dir && pwd`
2847
2848 if test x"${MISSING+set}" != xset; then
2849   case $am_aux_dir in
2850   *\ * | *\     *)
2851     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2852   *)
2853     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2854   esac
2855 fi
2856 # Use eval to expand $SHELL
2857 if eval "$MISSING --run true"; then
2858   am_missing_run="$MISSING --run "
2859 else
2860   am_missing_run=
2861   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2862 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2863 fi
2864
2865 if test x"${install_sh}" != xset; then
2866   case $am_aux_dir in
2867   *\ * | *\     *)
2868     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2869   *)
2870     install_sh="\${SHELL} $am_aux_dir/install-sh"
2871   esac
2872 fi
2873
2874 # Installed binaries are usually stripped using `strip' when the user
2875 # run `make install-strip'.  However `strip' might not be the right
2876 # tool to use in cross-compilation environments, therefore Automake
2877 # will honor the `STRIP' environment variable to overrule this program.
2878 if test "$cross_compiling" != no; then
2879   if test -n "$ac_tool_prefix"; then
2880   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}strip; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_STRIP+:} false; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   if test -n "$STRIP"; then
2888   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902   done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 STRIP=$ac_cv_prog_STRIP
2908 if test -n "$STRIP"; then
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2910 $as_echo "$STRIP" >&6; }
2911 else
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_STRIP"; then
2919   ac_ct_STRIP=$STRIP
2920   # Extract the first word of "strip", so it can be a program name with args.
2921 set dummy strip; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$ac_ct_STRIP"; then
2928   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_ac_ct_STRIP="strip"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2948 if test -n "$ac_ct_STRIP"; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2950 $as_echo "$ac_ct_STRIP" >&6; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956   if test "x$ac_ct_STRIP" = x; then
2957     STRIP=":"
2958   else
2959     case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965     STRIP=$ac_ct_STRIP
2966   fi
2967 else
2968   STRIP="$ac_cv_prog_STRIP"
2969 fi
2970
2971 fi
2972 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2975 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2976 if test -z "$MKDIR_P"; then
2977   if ${ac_cv_path_mkdir+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985     for ac_prog in mkdir gmkdir; do
2986          for ac_exec_ext in '' $ac_executable_extensions; do
2987            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2988            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2989              'mkdir (GNU coreutils) '* | \
2990              'mkdir (coreutils) '* | \
2991              'mkdir (fileutils) '4.1*)
2992                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2993                break 3;;
2994            esac
2995          done
2996        done
2997   done
2998 IFS=$as_save_IFS
2999
3000 fi
3001
3002   test -d ./--version && rmdir ./--version
3003   if test "${ac_cv_path_mkdir+set}" = set; then
3004     MKDIR_P="$ac_cv_path_mkdir -p"
3005   else
3006     # As a last resort, use the slow shell script.  Don't cache a
3007     # value for MKDIR_P within a source directory, because that will
3008     # break other packages using the cache if that directory is
3009     # removed, or if the value is a relative name.
3010     MKDIR_P="$ac_install_sh -d"
3011   fi
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3014 $as_echo "$MKDIR_P" >&6; }
3015
3016 mkdir_p="$MKDIR_P"
3017 case $mkdir_p in
3018   [\\/$]* | ?:[\\/]*) ;;
3019   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3020 esac
3021
3022 for ac_prog in gawk mawk nawk awk
3023 do
3024   # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_AWK+:} false; then :
3029   $as_echo_n "(cached) " >&6
3030 else
3031   if test -n "$AWK"; then
3032   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037   IFS=$as_save_IFS
3038   test -z "$as_dir" && as_dir=.
3039     for ac_exec_ext in '' $ac_executable_extensions; do
3040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041     ac_cv_prog_AWK="$ac_prog"
3042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043     break 2
3044   fi
3045 done
3046   done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 AWK=$ac_cv_prog_AWK
3052 if test -n "$AWK"; then
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3054 $as_echo "$AWK" >&6; }
3055 else
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060
3061   test -n "$AWK" && break
3062 done
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3065 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3066 set x ${MAKE-make}
3067 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3068 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3069   $as_echo_n "(cached) " >&6
3070 else
3071   cat >conftest.make <<\_ACEOF
3072 SHELL = /bin/sh
3073 all:
3074         @echo '@@@%%%=$(MAKE)=@@@%%%'
3075 _ACEOF
3076 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3077 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3078   *@@@%%%=?*=@@@%%%*)
3079     eval ac_cv_prog_make_${ac_make}_set=yes;;
3080   *)
3081     eval ac_cv_prog_make_${ac_make}_set=no;;
3082 esac
3083 rm -f conftest.make
3084 fi
3085 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087 $as_echo "yes" >&6; }
3088   SET_MAKE=
3089 else
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092   SET_MAKE="MAKE=${MAKE-make}"
3093 fi
3094
3095 rm -rf .tst 2>/dev/null
3096 mkdir .tst 2>/dev/null
3097 if test -d .tst; then
3098   am__leading_dot=.
3099 else
3100   am__leading_dot=_
3101 fi
3102 rmdir .tst 2>/dev/null
3103
3104 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3105   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3106   # is not polluted with repeated "-I."
3107   am__isrc=' -I$(srcdir)'
3108   # test to see if srcdir already configured
3109   if test -f $srcdir/config.status; then
3110     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3111   fi
3112 fi
3113
3114 # test whether we have cygpath
3115 if test -z "$CYGPATH_W"; then
3116   if (cygpath --version) >/dev/null 2>/dev/null; then
3117     CYGPATH_W='cygpath -w'
3118   else
3119     CYGPATH_W=echo
3120   fi
3121 fi
3122
3123
3124 # Define the identity of the package.
3125  PACKAGE='libtool'
3126  VERSION='2.4.2'
3127
3128
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE "$PACKAGE"
3131 _ACEOF
3132
3133
3134 cat >>confdefs.h <<_ACEOF
3135 #define VERSION "$VERSION"
3136 _ACEOF
3137
3138 # Some tools Automake needs.
3139
3140 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3141
3142
3143 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3144
3145
3146 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3147
3148
3149 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3150
3151
3152 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3153
3154 # We need awk for the "check" target.  The system "awk" is bad on
3155 # some platforms.
3156 # Always define AMTAR for backward compatibility.
3157
3158 AMTAR=${AMTAR-"${am_missing_run}tar"}
3159
3160 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3161
3162
3163
3164
3165
3166
3167
3168 ## ------------------------- ##
3169 ## Autobuild initialisation. ##
3170 ## ------------------------- ##
3171
3172 # You can set autobuild_mode at configure time to specify a "unique"
3173 # string for this build.
3174 : ${autobuild_mode=default}
3175 AB_VERSION="2.4.2 ($TIMESTAMP)"
3176 # Make sure we can run config.sub.
3177 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3178   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3181 $as_echo_n "checking build system type... " >&6; }
3182 if ${ac_cv_build+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   ac_build_alias=$build_alias
3186 test "x$ac_build_alias" = x &&
3187   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3188 test "x$ac_build_alias" = x &&
3189   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3190 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3191   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3192
3193 fi
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3195 $as_echo "$ac_cv_build" >&6; }
3196 case $ac_cv_build in
3197 *-*-*) ;;
3198 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3199 esac
3200 build=$ac_cv_build
3201 ac_save_IFS=$IFS; IFS='-'
3202 set x $ac_cv_build
3203 shift
3204 build_cpu=$1
3205 build_vendor=$2
3206 shift; shift
3207 # Remember, the first character of IFS is used to create $*,
3208 # except with old shells:
3209 build_os=$*
3210 IFS=$ac_save_IFS
3211 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3212
3213
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3215 $as_echo_n "checking host system type... " >&6; }
3216 if ${ac_cv_host+:} false; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   if test "x$host_alias" = x; then
3220   ac_cv_host=$ac_cv_build
3221 else
3222   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3223     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3224 fi
3225
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3228 $as_echo "$ac_cv_host" >&6; }
3229 case $ac_cv_host in
3230 *-*-*) ;;
3231 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3232 esac
3233 host=$ac_cv_host
3234 ac_save_IFS=$IFS; IFS='-'
3235 set x $ac_cv_host
3236 shift
3237 host_cpu=$1
3238 host_vendor=$2
3239 shift; shift
3240 # Remember, the first character of IFS is used to create $*,
3241 # except with old shells:
3242 host_os=$*
3243 IFS=$ac_save_IFS
3244 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3245
3246
3247
3248
3249
3250
3251   if test -z "$AB_PACKAGE"; then
3252     AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
3253   fi
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
3255 $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
3256
3257   if test -z "$AB_VERSION"; then
3258     AB_VERSION=${PACKAGE_VERSION:-$VERSION}
3259   fi
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
3261 $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
3262
3263   hostname=`hostname`
3264   if test "$hostname"; then
3265     { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3266 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3267   fi
3268
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild mode... $autobuild_mode" >&5
3270 $as_echo "$as_me: autobuild mode... $autobuild_mode" >&6;}
3271
3272   date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
3273   if test "$?" != 0; then
3274     date=`date`
3275   fi
3276   if test "$date"; then
3277     { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3278 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3279   fi
3280
3281
3282
3283 M4SH='$(AUTOM4TE) --language=m4sh'
3284
3285
3286 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/ChangeLog'
3287
3288
3289
3290 ## ------------------------------- ##
3291 ## Libtool specific configuration. ##
3292 ## ------------------------------- ##
3293
3294 aclocaldir="\${datadir}/aclocal"
3295
3296 pkgdatadir="\${datadir}/$PACKAGE"
3297
3298
3299 # Check whether --enable-ltdl-install was given.
3300 if test "${enable_ltdl_install+set}" = set; then :
3301   enableval=$enable_ltdl_install;
3302 fi
3303
3304 if test x"${enable_ltdl_install+set}" != xset; then
3305   enable_ltdl_install=yes
3306 fi
3307
3308 # All subdirectories that are configured on demand, but that must be
3309 # included in the distribution.
3310 CONF_SUBDIRS="tests/cdemo tests/demo tests/depdemo tests/f77demo tests/fcdemo \
3311         tests/mdemo tests/mdemo2 tests/pdemo tests/tagdemo"
3312
3313
3314 DIST_MAKEFILE_LIST=
3315 for dir in $CONF_SUBDIRS; do
3316   DIST_MAKEFILE_LIST="${DIST_MAKEFILE_LIST}$dir/Makefile "
3317 done
3318
3319
3320
3321 ## ---------------- ##
3322 ## compiler checks. ##
3323 ## ---------------- ##
3324
3325 # Need to be sure that we have a working C compiler, otherwise even with
3326 # a good C compiler: if the following C++ tests fail, the whole libtool
3327 # build fails!
3328 ac_ext=c
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 if test -n "$ac_tool_prefix"; then
3334   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   if test -n "$CC"; then
3342   ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347   IFS=$as_save_IFS
3348   test -z "$as_dir" && as_dir=.
3349     for ac_exec_ext in '' $ac_executable_extensions; do
3350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353     break 2
3354   fi
3355 done
3356   done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371 fi
3372 if test -z "$ac_cv_prog_CC"; then
3373   ac_ct_CC=$CC
3374   # Extract the first word of "gcc", so it can be a program name with args.
3375 set dummy gcc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test -n "$ac_ct_CC"; then
3382   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389     for ac_exec_ext in '' $ac_executable_extensions; do
3390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391     ac_cv_prog_ac_ct_CC="gcc"
3392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396   done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410   if test "x$ac_ct_CC" = x; then
3411     CC=""
3412   else
3413     case $cross_compiling:$ac_tool_warned in
3414 yes:)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3418 esac
3419     CC=$ac_ct_CC
3420   fi
3421 else
3422   CC="$ac_cv_prog_CC"
3423 fi
3424
3425 if test -z "$CC"; then
3426           if test -n "$ac_tool_prefix"; then
3427     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3428 set dummy ${ac_tool_prefix}cc; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432   $as_echo_n "(cached) " >&6
3433 else
3434   if test -n "$CC"; then
3435   ac_cv_prog_CC="$CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442     for ac_exec_ext in '' $ac_executable_extensions; do
3443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444     ac_cv_prog_CC="${ac_tool_prefix}cc"
3445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446     break 2
3447   fi
3448 done
3449   done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3458 else
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463
3464   fi
3465 fi
3466 if test -z "$CC"; then
3467   # Extract the first word of "cc", so it can be a program name with args.
3468 set dummy cc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_CC+:} false; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   if test -n "$CC"; then
3475   ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477   ac_prog_rejected=no
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483     for ac_exec_ext in '' $ac_executable_extensions; do
3484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3486        ac_prog_rejected=yes
3487        continue
3488      fi
3489     ac_cv_prog_CC="cc"
3490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494   done
3495 IFS=$as_save_IFS
3496
3497 if test $ac_prog_rejected = yes; then
3498   # We found a bogon in the path, so make sure we never use it.
3499   set dummy $ac_cv_prog_CC
3500   shift
3501   if test $# != 0; then
3502     # We chose a different compiler from the bogus one.
3503     # However, it has the same basename, so the bogon will be chosen
3504     # first if we set CC to just the basename; use the full file name.
3505     shift
3506     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3507   fi
3508 fi
3509 fi
3510 fi
3511 CC=$ac_cv_prog_CC
3512 if test -n "$CC"; then
3513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3515 else
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520
3521 fi
3522 if test -z "$CC"; then
3523   if test -n "$ac_tool_prefix"; then
3524   for ac_prog in cl.exe
3525   do
3526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   if test -n "$CC"; then
3534   ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541     for ac_exec_ext in '' $ac_executable_extensions; do
3542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548   done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3557 else
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 fi
3561
3562
3563     test -n "$CC" && break
3564   done
3565 fi
3566 if test -z "$CC"; then
3567   ac_ct_CC=$CC
3568   for ac_prog in cl.exe
3569 do
3570   # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   if test -n "$ac_ct_CC"; then
3578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585     for ac_exec_ext in '' $ac_executable_extensions; do
3586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587     ac_cv_prog_ac_ct_CC="$ac_prog"
3588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592   done
3593 IFS=$as_save_IFS
3594
3595 fi
3596 fi
3597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3598 if test -n "$ac_ct_CC"; then
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600 $as_echo "$ac_ct_CC" >&6; }
3601 else
3602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 fi
3605
3606
3607   test -n "$ac_ct_CC" && break
3608 done
3609
3610   if test "x$ac_ct_CC" = x; then
3611     CC=""
3612   else
3613     case $cross_compiling:$ac_tool_warned in
3614 yes:)
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned=yes ;;
3618 esac
3619     CC=$ac_ct_CC
3620   fi
3621 fi
3622
3623 fi
3624
3625
3626 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "no acceptable C compiler found in \$PATH
3629 See \`config.log' for more details" "$LINENO" 5; }
3630
3631 # Provide some information about the compiler.
3632 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3633 set X $ac_compile
3634 ac_compiler=$2
3635 for ac_option in --version -v -V -qversion; do
3636   { { ac_try="$ac_compiler $ac_option >&5"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3644   ac_status=$?
3645   if test -s conftest.err; then
3646     sed '10a\
3647 ... rest of stderr output deleted ...
3648          10q' conftest.err >conftest.er1
3649     cat conftest.er1 >&5
3650   fi
3651   rm -f conftest.er1 conftest.err
3652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653   test $ac_status = 0; }
3654 done
3655
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h.  */
3658
3659 int
3660 main ()
3661 {
3662
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 ac_clean_files_save=$ac_clean_files
3668 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3669 # Try to create an executable without -o first, disregard a.out.
3670 # It will help us diagnose broken compilers, and finding out an intuition
3671 # of exeext.
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3673 $as_echo_n "checking whether the C compiler works... " >&6; }
3674 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3675
3676 # The possible output files:
3677 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3678
3679 ac_rmfiles=
3680 for ac_file in $ac_files
3681 do
3682   case $ac_file in
3683     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3685   esac
3686 done
3687 rm -f $ac_rmfiles
3688
3689 if { { ac_try="$ac_link_default"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696   (eval "$ac_link_default") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; then :
3700   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3701 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3702 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3703 # so that the user can short-circuit this test for compilers unknown to
3704 # Autoconf.
3705 for ac_file in $ac_files ''
3706 do
3707   test -f "$ac_file" || continue
3708   case $ac_file in
3709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3710         ;;
3711     [ab].out )
3712         # We found the default executable, but exeext='' is most
3713         # certainly right.
3714         break;;
3715     *.* )
3716         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3717         then :; else
3718            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719         fi
3720         # We set ac_cv_exeext here because the later test for it is not
3721         # safe: cross compilers may not add the suffix if given an `-o'
3722         # argument, so we may need to know it at that point already.
3723         # Even if this section looks crufty: it has the advantage of
3724         # actually working.
3725         break;;
3726     * )
3727         break;;
3728   esac
3729 done
3730 test "$ac_cv_exeext" = no && ac_cv_exeext=
3731
3732 else
3733   ac_file=''
3734 fi
3735 if test -z "$ac_file"; then :
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error 77 "C compiler cannot create executables
3744 See \`config.log' for more details" "$LINENO" 5; }
3745 else
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3747 $as_echo "yes" >&6; }
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3750 $as_echo_n "checking for C compiler default output file name... " >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3752 $as_echo "$ac_file" >&6; }
3753 ac_exeext=$ac_cv_exeext
3754
3755 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3756 ac_clean_files=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3758 $as_echo_n "checking for suffix of executables... " >&6; }
3759 if { { ac_try="$ac_link"
3760 case "(($ac_try" in
3761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762   *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766   (eval "$ac_link") 2>&5
3767   ac_status=$?
3768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769   test $ac_status = 0; }; then :
3770   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3771 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3772 # work properly (i.e., refer to `conftest.exe'), while it won't with
3773 # `rm'.
3774 for ac_file in conftest.exe conftest conftest.*; do
3775   test -f "$ac_file" || continue
3776   case $ac_file in
3777     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3778     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3779           break;;
3780     * ) break;;
3781   esac
3782 done
3783 else
3784   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details" "$LINENO" 5; }
3788 fi
3789 rm -f conftest conftest$ac_cv_exeext
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3791 $as_echo "$ac_cv_exeext" >&6; }
3792
3793 rm -f conftest.$ac_ext
3794 EXEEXT=$ac_cv_exeext
3795 ac_exeext=$EXEEXT
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h.  */
3798 #include <stdio.h>
3799 int
3800 main ()
3801 {
3802 FILE *f = fopen ("conftest.out", "w");
3803  return ferror (f) || fclose (f) != 0;
3804
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 ac_clean_files="$ac_clean_files conftest.out"
3810 # Check that the compiler produces executables we can run.  If not, either
3811 # the compiler is broken, or we cross compile.
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3813 $as_echo_n "checking whether we are cross compiling... " >&6; }
3814 if test "$cross_compiling" != yes; then
3815   { { ac_try="$ac_link"
3816 case "(($ac_try" in
3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818   *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822   (eval "$ac_link") 2>&5
3823   ac_status=$?
3824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825   test $ac_status = 0; }
3826   if { ac_try='./conftest$ac_cv_exeext'
3827   { { case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 $as_echo "$ac_try_echo"; } >&5
3833   (eval "$ac_try") 2>&5
3834   ac_status=$?
3835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836   test $ac_status = 0; }; }; then
3837     cross_compiling=no
3838   else
3839     if test "$cross_compiling" = maybe; then
3840         cross_compiling=yes
3841     else
3842         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error $? "cannot run C compiled programs.
3845 If you meant to cross compile, use \`--host'.
3846 See \`config.log' for more details" "$LINENO" 5; }
3847     fi
3848   fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3851 $as_echo "$cross_compiling" >&6; }
3852
3853 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3854 ac_clean_files=$ac_clean_files_save
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3856 $as_echo_n "checking for suffix of object files... " >&6; }
3857 if ${ac_cv_objext+:} false; then :
3858   $as_echo_n "(cached) " >&6
3859 else
3860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h.  */
3862
3863 int
3864 main ()
3865 {
3866
3867   ;
3868   return 0;
3869 }
3870 _ACEOF
3871 rm -f conftest.o conftest.obj
3872 if { { ac_try="$ac_compile"
3873 case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879   (eval "$ac_compile") 2>&5
3880   ac_status=$?
3881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882   test $ac_status = 0; }; then :
3883   for ac_file in conftest.o conftest.obj conftest.*; do
3884   test -f "$ac_file" || continue;
3885   case $ac_file in
3886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3887     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3888        break;;
3889   esac
3890 done
3891 else
3892   $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "cannot compute suffix of object files: cannot compile
3898 See \`config.log' for more details" "$LINENO" 5; }
3899 fi
3900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3903 $as_echo "$ac_cv_objext" >&6; }
3904 OBJEXT=$ac_cv_objext
3905 ac_objext=$OBJEXT
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3907 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3908 if ${ac_cv_c_compiler_gnu+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917 #ifndef __GNUC__
3918        choke me
3919 #endif
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926   ac_compiler_gnu=yes
3927 else
3928   ac_compiler_gnu=no
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3932
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3935 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3936 if test $ac_compiler_gnu = yes; then
3937   GCC=yes
3938 else
3939   GCC=
3940 fi
3941 ac_test_CFLAGS=${CFLAGS+set}
3942 ac_save_CFLAGS=$CFLAGS
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3944 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3945 if ${ac_cv_prog_cc_g+:} false; then :
3946   $as_echo_n "(cached) " >&6
3947 else
3948   ac_save_c_werror_flag=$ac_c_werror_flag
3949    ac_c_werror_flag=yes
3950    ac_cv_prog_cc_g=no
3951    CFLAGS="-g"
3952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h.  */
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_prog_cc_g=yes
3965 else
3966   CFLAGS=""
3967       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979
3980 else
3981   ac_c_werror_flag=$ac_save_c_werror_flag
3982          CFLAGS="-g"
3983          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985
3986 int
3987 main ()
3988 {
3989
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_c_try_compile "$LINENO"; then :
3995   ac_cv_prog_cc_g=yes
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 fi
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002    ac_c_werror_flag=$ac_save_c_werror_flag
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4005 $as_echo "$ac_cv_prog_cc_g" >&6; }
4006 if test "$ac_test_CFLAGS" = set; then
4007   CFLAGS=$ac_save_CFLAGS
4008 elif test $ac_cv_prog_cc_g = yes; then
4009   if test "$GCC" = yes; then
4010     CFLAGS="-g -O2"
4011   else
4012     CFLAGS="-g"
4013   fi
4014 else
4015   if test "$GCC" = yes; then
4016     CFLAGS="-O2"
4017   else
4018     CFLAGS=
4019   fi
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4022 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4023 if ${ac_cv_prog_cc_c89+:} false; then :
4024   $as_echo_n "(cached) " >&6
4025 else
4026   ac_cv_prog_cc_c89=no
4027 ac_save_CC=$CC
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030 #include <stdarg.h>
4031 #include <stdio.h>
4032 #include <sys/types.h>
4033 #include <sys/stat.h>
4034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4035 struct buf { int x; };
4036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4037 static char *e (p, i)
4038      char **p;
4039      int i;
4040 {
4041   return p[i];
4042 }
4043 static char *f (char * (*g) (char **, int), char **p, ...)
4044 {
4045   char *s;
4046   va_list v;
4047   va_start (v,p);
4048   s = g (p, va_arg (v,int));
4049   va_end (v);
4050   return s;
4051 }
4052
4053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4054    function prototypes and stuff, but not '\xHH' hex character constants.
4055    These don't provoke an error unfortunately, instead are silently treated
4056    as 'x'.  The following induces an error, until -std is added to get
4057    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4058    array size at least.  It's necessary to write '\x00'==0 to get something
4059    that's true only with -std.  */
4060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4061
4062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4063    inside strings and character constants.  */
4064 #define FOO(x) 'x'
4065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4066
4067 int test (int i, double x);
4068 struct s1 {int (*f) (int a);};
4069 struct s2 {int (*f) (double a);};
4070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4071 int argc;
4072 char **argv;
4073 int
4074 main ()
4075 {
4076 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4082         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4083 do
4084   CC="$ac_save_CC $ac_arg"
4085   if ac_fn_c_try_compile "$LINENO"; then :
4086   ac_cv_prog_cc_c89=$ac_arg
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext
4089   test "x$ac_cv_prog_cc_c89" != "xno" && break
4090 done
4091 rm -f conftest.$ac_ext
4092 CC=$ac_save_CC
4093
4094 fi
4095 # AC_CACHE_VAL
4096 case "x$ac_cv_prog_cc_c89" in
4097   x)
4098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4099 $as_echo "none needed" >&6; } ;;
4100   xno)
4101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4102 $as_echo "unsupported" >&6; } ;;
4103   *)
4104     CC="$CC $ac_cv_prog_cc_c89"
4105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4106 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4107 esac
4108 if test "x$ac_cv_prog_cc_c89" != xno; then :
4109
4110 fi
4111
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 DEPDIR="${am__leading_dot}deps"
4118
4119 ac_config_commands="$ac_config_commands depfiles"
4120
4121
4122 am_make=${MAKE-make}
4123 cat > confinc << 'END'
4124 am__doit:
4125         @echo this is the am__doit target
4126 .PHONY: am__doit
4127 END
4128 # If we don't find an include directive, just comment out the code.
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4130 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4131 am__include="#"
4132 am__quote=
4133 _am_result=none
4134 # First try GNU make style include.
4135 echo "include confinc" > confmf
4136 # Ignore all kinds of additional output from `make'.
4137 case `$am_make -s -f confmf 2> /dev/null` in #(
4138 *the\ am__doit\ target*)
4139   am__include=include
4140   am__quote=
4141   _am_result=GNU
4142   ;;
4143 esac
4144 # Now try BSD make style include.
4145 if test "$am__include" = "#"; then
4146    echo '.include "confinc"' > confmf
4147    case `$am_make -s -f confmf 2> /dev/null` in #(
4148    *the\ am__doit\ target*)
4149      am__include=.include
4150      am__quote="\""
4151      _am_result=BSD
4152      ;;
4153    esac
4154 fi
4155
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4158 $as_echo "$_am_result" >&6; }
4159 rm -f confinc confmf
4160
4161 # Check whether --enable-dependency-tracking was given.
4162 if test "${enable_dependency_tracking+set}" = set; then :
4163   enableval=$enable_dependency_tracking;
4164 fi
4165
4166 if test "x$enable_dependency_tracking" != xno; then
4167   am_depcomp="$ac_aux_dir/depcomp"
4168   AMDEPBACKSLASH='\'
4169 fi
4170  if test "x$enable_dependency_tracking" != xno; then
4171   AMDEP_TRUE=
4172   AMDEP_FALSE='#'
4173 else
4174   AMDEP_TRUE='#'
4175   AMDEP_FALSE=
4176 fi
4177
4178
4179
4180 depcc="$CC"   am_compiler_list=
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183 $as_echo_n "checking dependency style of $depcc... " >&6; }
4184 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188   # We make a subdir and do the tests there.  Otherwise we can end up
4189   # making bogus files that we don't know about and never remove.  For
4190   # instance it was reported that on HP-UX the gcc test will end up
4191   # making a dummy file named `D' -- because `-MD' means `put the output
4192   # in D'.
4193   mkdir conftest.dir
4194   # Copy depcomp to subdir because otherwise we won't find it if we're
4195   # using a relative directory.
4196   cp "$am_depcomp" conftest.dir
4197   cd conftest.dir
4198   # We will build objects and dependencies in a subdirectory because
4199   # it helps to detect inapplicable dependency modes.  For instance
4200   # both Tru64's cc and ICC support -MD to output dependencies as a
4201   # side effect of compilation, but ICC will put the dependencies in
4202   # the current directory while Tru64 will put them in the object
4203   # directory.
4204   mkdir sub
4205
4206   am_cv_CC_dependencies_compiler_type=none
4207   if test "$am_compiler_list" = ""; then
4208      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4209   fi
4210   am__universal=false
4211   case " $depcc " in #(
4212      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4213      esac
4214
4215   for depmode in $am_compiler_list; do
4216     # Setup a source with many dependencies, because some compilers
4217     # like to wrap large dependency lists on column 80 (with \), and
4218     # we should not choose a depcomp mode which is confused by this.
4219     #
4220     # We need to recreate these files for each test, as the compiler may
4221     # overwrite some of them when testing with obscure command lines.
4222     # This happens at least with the AIX C compiler.
4223     : > sub/conftest.c
4224     for i in 1 2 3 4 5 6; do
4225       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4226       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4227       # Solaris 8's {/usr,}/bin/sh.
4228       touch sub/conftst$i.h
4229     done
4230     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4231
4232     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4233     # mode.  It turns out that the SunPro C++ compiler does not properly
4234     # handle `-M -o', and we need to detect this.  Also, some Intel
4235     # versions had trouble with output in subdirs
4236     am__obj=sub/conftest.${OBJEXT-o}
4237     am__minus_obj="-o $am__obj"
4238     case $depmode in
4239     gcc)
4240       # This depmode causes a compiler race in universal mode.
4241       test "$am__universal" = false || continue
4242       ;;
4243     nosideeffect)
4244       # after this tag, mechanisms are not by side-effect, so they'll
4245       # only be used when explicitly requested
4246       if test "x$enable_dependency_tracking" = xyes; then
4247         continue
4248       else
4249         break
4250       fi
4251       ;;
4252     msvisualcpp | msvcmsys)
4253       # This compiler won't grok `-c -o', but also, the minuso test has
4254       # not run yet.  These depmodes are late enough in the game, and
4255       # so weak that their functioning should not be impacted.
4256       am__obj=conftest.${OBJEXT-o}
4257       am__minus_obj=
4258       ;;
4259     none) break ;;
4260     esac
4261     if depmode=$depmode \
4262        source=sub/conftest.c object=$am__obj \
4263        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4264        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4265          >/dev/null 2>conftest.err &&
4266        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4267        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4268        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4269        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4270       # icc doesn't choke on unknown options, it will just issue warnings
4271       # or remarks (even with -Werror).  So we grep stderr for any message
4272       # that says an option was ignored or not supported.
4273       # When given -MP, icc 7.0 and 7.1 complain thusly:
4274       #   icc: Command line warning: ignoring option '-M'; no argument required
4275       # The diagnosis changed in icc 8.0:
4276       #   icc: Command line remark: option '-MP' not supported
4277       if (grep 'ignoring option' conftest.err ||
4278           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4279         am_cv_CC_dependencies_compiler_type=$depmode
4280         break
4281       fi
4282     fi
4283   done
4284
4285   cd ..
4286   rm -rf conftest.dir
4287 else
4288   am_cv_CC_dependencies_compiler_type=none
4289 fi
4290
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4293 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4294 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4295
4296  if
4297   test "x$enable_dependency_tracking" != xno \
4298   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4299   am__fastdepCC_TRUE=
4300   am__fastdepCC_FALSE='#'
4301 else
4302   am__fastdepCC_TRUE='#'
4303   am__fastdepCC_FALSE=
4304 fi
4305
4306
4307 if test "x$CC" != xcc; then
4308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4309 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4310 else
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4312 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4313 fi
4314 set dummy $CC; ac_cc=`$as_echo "$2" |
4315                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4316 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4317   $as_echo_n "(cached) " >&6
4318 else
4319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h.  */
4321
4322 int
4323 main ()
4324 {
4325
4326   ;
4327   return 0;
4328 }
4329 _ACEOF
4330 # Make sure it works both with $CC and with simple cc.
4331 # We do the test twice because some compilers refuse to overwrite an
4332 # existing .o file with -o, though they will create one.
4333 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4334 rm -f conftest2.*
4335 if { { case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341   (eval "$ac_try") 2>&5
4342   ac_status=$?
4343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344   test $ac_status = 0; } &&
4345    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351   (eval "$ac_try") 2>&5
4352   ac_status=$?
4353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354   test $ac_status = 0; };
4355 then
4356   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4357   if test "x$CC" != xcc; then
4358     # Test first that cc exists at all.
4359     if { ac_try='cc -c conftest.$ac_ext >&5'
4360   { { case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366   (eval "$ac_try") 2>&5
4367   ac_status=$?
4368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369   test $ac_status = 0; }; }; then
4370       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4371       rm -f conftest2.*
4372       if { { case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378   (eval "$ac_try") 2>&5
4379   ac_status=$?
4380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381   test $ac_status = 0; } &&
4382          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388   (eval "$ac_try") 2>&5
4389   ac_status=$?
4390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391   test $ac_status = 0; };
4392       then
4393         # cc works too.
4394         :
4395       else
4396         # cc exists but doesn't like -o.
4397         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4398       fi
4399     fi
4400   fi
4401 else
4402   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4403 fi
4404 rm -f core conftest*
4405
4406 fi
4407 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4409 $as_echo "yes" >&6; }
4410 else
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413
4414 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4415
4416 fi
4417
4418 # FIXME: we rely on the cache variable name because
4419 # there is no other way.
4420 set dummy $CC
4421 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4422 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4423 if test "$am_t" != yes; then
4424    # Losing compiler, so override with the script.
4425    # FIXME: It is wrong to rewrite CC.
4426    # But if we don't then we get into trouble of one sort or another.
4427    # A longer-term fix would be to have automake use am__CC in this case,
4428    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4429    CC="$am_aux_dir/compile $CC"
4430 fi
4431
4432
4433 ac_ext=c
4434 ac_cpp='$CPP $CPPFLAGS'
4435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4439 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4440 # On Suns, sometimes $CPP names a directory.
4441 if test -n "$CPP" && test -d "$CPP"; then
4442   CPP=
4443 fi
4444 if test -z "$CPP"; then
4445   if ${ac_cv_prog_CPP+:} false; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448       # Double quotes because CPP needs to be expanded
4449     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4450     do
4451       ac_preproc_ok=false
4452 for ac_c_preproc_warn_flag in '' yes
4453 do
4454   # Use a header file that comes with gcc, so configuring glibc
4455   # with a fresh cross-compiler works.
4456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4457   # <limits.h> exists even on freestanding compilers.
4458   # On the NeXT, cc -E runs the code through the compiler's parser,
4459   # not just through cpp. "Syntax error" is here to catch this case.
4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h.  */
4462 #ifdef __STDC__
4463 # include <limits.h>
4464 #else
4465 # include <assert.h>
4466 #endif
4467                      Syntax error
4468 _ACEOF
4469 if ac_fn_c_try_cpp "$LINENO"; then :
4470
4471 else
4472   # Broken: fails on valid input.
4473 continue
4474 fi
4475 rm -f conftest.err conftest.i conftest.$ac_ext
4476
4477   # OK, works on sane cases.  Now check whether nonexistent headers
4478   # can be detected and how.
4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481 #include <ac_nonexistent.h>
4482 _ACEOF
4483 if ac_fn_c_try_cpp "$LINENO"; then :
4484   # Broken: success on invalid input.
4485 continue
4486 else
4487   # Passes both tests.
4488 ac_preproc_ok=:
4489 break
4490 fi
4491 rm -f conftest.err conftest.i conftest.$ac_ext
4492
4493 done
4494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4495 rm -f conftest.i conftest.err conftest.$ac_ext
4496 if $ac_preproc_ok; then :
4497   break
4498 fi
4499
4500     done
4501     ac_cv_prog_CPP=$CPP
4502
4503 fi
4504   CPP=$ac_cv_prog_CPP
4505 else
4506   ac_cv_prog_CPP=$CPP
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4509 $as_echo "$CPP" >&6; }
4510 ac_preproc_ok=false
4511 for ac_c_preproc_warn_flag in '' yes
4512 do
4513   # Use a header file that comes with gcc, so configuring glibc
4514   # with a fresh cross-compiler works.
4515   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516   # <limits.h> exists even on freestanding compilers.
4517   # On the NeXT, cc -E runs the code through the compiler's parser,
4518   # not just through cpp. "Syntax error" is here to catch this case.
4519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521 #ifdef __STDC__
4522 # include <limits.h>
4523 #else
4524 # include <assert.h>
4525 #endif
4526                      Syntax error
4527 _ACEOF
4528 if ac_fn_c_try_cpp "$LINENO"; then :
4529
4530 else
4531   # Broken: fails on valid input.
4532 continue
4533 fi
4534 rm -f conftest.err conftest.i conftest.$ac_ext
4535
4536   # OK, works on sane cases.  Now check whether nonexistent headers
4537   # can be detected and how.
4538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540 #include <ac_nonexistent.h>
4541 _ACEOF
4542 if ac_fn_c_try_cpp "$LINENO"; then :
4543   # Broken: success on invalid input.
4544 continue
4545 else
4546   # Passes both tests.
4547 ac_preproc_ok=:
4548 break
4549 fi
4550 rm -f conftest.err conftest.i conftest.$ac_ext
4551
4552 done
4553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4554 rm -f conftest.i conftest.err conftest.$ac_ext
4555 if $ac_preproc_ok; then :
4556
4557 else
4558   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4561 See \`config.log' for more details" "$LINENO" 5; }
4562 fi
4563
4564 ac_ext=c
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569
4570
4571 ## ----------------------- ##
4572 ## Libtool initialisation. ##
4573 ## ----------------------- ##
4574 case `pwd` in
4575   *\ * | *\     *)
4576     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4577 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4578 esac
4579
4580
4581
4582 macro_version='2.4.2'
4583 macro_revision='1.3337'
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597 ltmain="$ac_aux_dir/ltmain.sh"
4598
4599 # Backslashify metacharacters that are still active within
4600 # double-quoted strings.
4601 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4602
4603 # Same as above, but do not quote variable references.
4604 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4605
4606 # Sed substitution to delay expansion of an escaped shell variable in a
4607 # double_quote_subst'ed string.
4608 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4609
4610 # Sed substitution to delay expansion of an escaped single quote.
4611 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4612
4613 # Sed substitution to avoid accidental globbing in evaled expressions
4614 no_glob_subst='s/\*/\\\*/g'
4615
4616 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4617 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4618 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4621 $as_echo_n "checking how to print strings... " >&6; }
4622 # Test print first, because it will be a builtin if present.
4623 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4624    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4625   ECHO='print -r --'
4626 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4627   ECHO='printf %s\n'
4628 else
4629   # Use this function as a fallback that always works.
4630   func_fallback_echo ()
4631   {
4632     eval 'cat <<_LTECHO_EOF
4633 $1
4634 _LTECHO_EOF'
4635   }
4636   ECHO='func_fallback_echo'
4637 fi
4638
4639 # func_echo_all arg...
4640 # Invoke $ECHO with all args, space-separated.
4641 func_echo_all ()
4642 {
4643     $ECHO ""
4644 }
4645
4646 case "$ECHO" in
4647   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4648 $as_echo "printf" >&6; } ;;
4649   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4650 $as_echo "print -r" >&6; } ;;
4651   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4652 $as_echo "cat" >&6; } ;;
4653 esac
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4669 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4670 if ${ac_cv_path_SED+:} false; then :
4671   $as_echo_n "(cached) " >&6
4672 else
4673             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4674      for ac_i in 1 2 3 4 5 6 7; do
4675        ac_script="$ac_script$as_nl$ac_script"
4676      done
4677      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4678      { ac_script=; unset ac_script;}
4679      if test -z "$SED"; then
4680   ac_path_SED_found=false
4681   # Loop through the user's path and test for each of PROGNAME-LIST
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687     for ac_prog in sed gsed; do
4688     for ac_exec_ext in '' $ac_executable_extensions; do
4689       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4690       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4691 # Check for GNU ac_path_SED and select it if it is found.
4692   # Check for GNU $ac_path_SED
4693 case `"$ac_path_SED" --version 2>&1` in
4694 *GNU*)
4695   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4696 *)
4697   ac_count=0
4698   $as_echo_n 0123456789 >"conftest.in"
4699   while :
4700   do
4701     cat "conftest.in" "conftest.in" >"conftest.tmp"
4702     mv "conftest.tmp" "conftest.in"
4703     cp "conftest.in" "conftest.nl"
4704     $as_echo '' >> "conftest.nl"
4705     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707     as_fn_arith $ac_count + 1 && ac_count=$as_val
4708     if test $ac_count -gt ${ac_path_SED_max-0}; then
4709       # Best one so far, save it but keep looking for a better one
4710       ac_cv_path_SED="$ac_path_SED"
4711       ac_path_SED_max=$ac_count
4712     fi
4713     # 10*(2^10) chars as input seems more than enough
4714     test $ac_count -gt 10 && break
4715   done
4716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717 esac
4718
4719       $ac_path_SED_found && break 3
4720     done
4721   done
4722   done
4723 IFS=$as_save_IFS
4724   if test -z "$ac_cv_path_SED"; then
4725     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4726   fi
4727 else
4728   ac_cv_path_SED=$SED
4729 fi
4730
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4733 $as_echo "$ac_cv_path_SED" >&6; }
4734  SED="$ac_cv_path_SED"
4735   rm -f conftest.sed
4736
4737 test -z "$SED" && SED=sed
4738 Xsed="$SED -e 1s/^X//"
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4751 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4752 if ${ac_cv_path_GREP+:} false; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   if test -z "$GREP"; then
4756   ac_path_GREP_found=false
4757   # Loop through the user's path and test for each of PROGNAME-LIST
4758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763     for ac_prog in grep ggrep; do
4764     for ac_exec_ext in '' $ac_executable_extensions; do
4765       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4766       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4767 # Check for GNU ac_path_GREP and select it if it is found.
4768   # Check for GNU $ac_path_GREP
4769 case `"$ac_path_GREP" --version 2>&1` in
4770 *GNU*)
4771   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4772 *)
4773   ac_count=0
4774   $as_echo_n 0123456789 >"conftest.in"
4775   while :
4776   do
4777     cat "conftest.in" "conftest.in" >"conftest.tmp"
4778     mv "conftest.tmp" "conftest.in"
4779     cp "conftest.in" "conftest.nl"
4780     $as_echo 'GREP' >> "conftest.nl"
4781     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783     as_fn_arith $ac_count + 1 && ac_count=$as_val
4784     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4785       # Best one so far, save it but keep looking for a better one
4786       ac_cv_path_GREP="$ac_path_GREP"
4787       ac_path_GREP_max=$ac_count
4788     fi
4789     # 10*(2^10) chars as input seems more than enough
4790     test $ac_count -gt 10 && break
4791   done
4792   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793 esac
4794
4795       $ac_path_GREP_found && break 3
4796     done
4797   done
4798   done
4799 IFS=$as_save_IFS
4800   if test -z "$ac_cv_path_GREP"; then
4801     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802   fi
4803 else
4804   ac_cv_path_GREP=$GREP
4805 fi
4806
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4809 $as_echo "$ac_cv_path_GREP" >&6; }
4810  GREP="$ac_cv_path_GREP"
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4814 $as_echo_n "checking for egrep... " >&6; }
4815 if ${ac_cv_path_EGREP+:} false; then :
4816   $as_echo_n "(cached) " >&6
4817 else
4818   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4819    then ac_cv_path_EGREP="$GREP -E"
4820    else
4821      if test -z "$EGREP"; then
4822   ac_path_EGREP_found=false
4823   # Loop through the user's path and test for each of PROGNAME-LIST
4824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829     for ac_prog in egrep; do
4830     for ac_exec_ext in '' $ac_executable_extensions; do
4831       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4832       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4833 # Check for GNU ac_path_EGREP and select it if it is found.
4834   # Check for GNU $ac_path_EGREP
4835 case `"$ac_path_EGREP" --version 2>&1` in
4836 *GNU*)
4837   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4838 *)
4839   ac_count=0
4840   $as_echo_n 0123456789 >"conftest.in"
4841   while :
4842   do
4843     cat "conftest.in" "conftest.in" >"conftest.tmp"
4844     mv "conftest.tmp" "conftest.in"
4845     cp "conftest.in" "conftest.nl"
4846     $as_echo 'EGREP' >> "conftest.nl"
4847     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849     as_fn_arith $ac_count + 1 && ac_count=$as_val
4850     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4851       # Best one so far, save it but keep looking for a better one
4852       ac_cv_path_EGREP="$ac_path_EGREP"
4853       ac_path_EGREP_max=$ac_count
4854     fi
4855     # 10*(2^10) chars as input seems more than enough
4856     test $ac_count -gt 10 && break
4857   done
4858   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 esac
4860
4861       $ac_path_EGREP_found && break 3
4862     done
4863   done
4864   done
4865 IFS=$as_save_IFS
4866   if test -z "$ac_cv_path_EGREP"; then
4867     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4868   fi
4869 else
4870   ac_cv_path_EGREP=$EGREP
4871 fi
4872
4873    fi
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4876 $as_echo "$ac_cv_path_EGREP" >&6; }
4877  EGREP="$ac_cv_path_EGREP"
4878
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4881 $as_echo_n "checking for fgrep... " >&6; }
4882 if ${ac_cv_path_FGREP+:} false; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4886    then ac_cv_path_FGREP="$GREP -F"
4887    else
4888      if test -z "$FGREP"; then
4889   ac_path_FGREP_found=false
4890   # Loop through the user's path and test for each of PROGNAME-LIST
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896     for ac_prog in fgrep; do
4897     for ac_exec_ext in '' $ac_executable_extensions; do
4898       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4899       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4900 # Check for GNU ac_path_FGREP and select it if it is found.
4901   # Check for GNU $ac_path_FGREP
4902 case `"$ac_path_FGREP" --version 2>&1` in
4903 *GNU*)
4904   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4905 *)
4906   ac_count=0
4907   $as_echo_n 0123456789 >"conftest.in"
4908   while :
4909   do
4910     cat "conftest.in" "conftest.in" >"conftest.tmp"
4911     mv "conftest.tmp" "conftest.in"
4912     cp "conftest.in" "conftest.nl"
4913     $as_echo 'FGREP' >> "conftest.nl"
4914     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916     as_fn_arith $ac_count + 1 && ac_count=$as_val
4917     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4918       # Best one so far, save it but keep looking for a better one
4919       ac_cv_path_FGREP="$ac_path_FGREP"
4920       ac_path_FGREP_max=$ac_count
4921     fi
4922     # 10*(2^10) chars as input seems more than enough
4923     test $ac_count -gt 10 && break
4924   done
4925   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926 esac
4927
4928       $ac_path_FGREP_found && break 3
4929     done
4930   done
4931   done
4932 IFS=$as_save_IFS
4933   if test -z "$ac_cv_path_FGREP"; then
4934     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4935   fi
4936 else
4937   ac_cv_path_FGREP=$FGREP
4938 fi
4939
4940    fi
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4943 $as_echo "$ac_cv_path_FGREP" >&6; }
4944  FGREP="$ac_cv_path_FGREP"
4945
4946
4947 test -z "$GREP" && GREP=grep
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967 # Check whether --with-gnu-ld was given.
4968 if test "${with_gnu_ld+set}" = set; then :
4969   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4970 else
4971   with_gnu_ld=no
4972 fi
4973
4974 ac_prog=ld
4975 if test "$GCC" = yes; then
4976   # Check if gcc -print-prog-name=ld gives a path.
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4978 $as_echo_n "checking for ld used by $CC... " >&6; }
4979   case $host in
4980   *-*-mingw*)
4981     # gcc leaves a trailing carriage return which upsets mingw
4982     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4983   *)
4984     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4985   esac
4986   case $ac_prog in
4987     # Accept absolute paths.
4988     [\\/]* | ?:[\\/]*)
4989       re_direlt='/[^/][^/]*/\.\./'
4990       # Canonicalize the pathname of ld
4991       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4992       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4993         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4994       done
4995       test -z "$LD" && LD="$ac_prog"
4996       ;;
4997   "")
4998     # If it fails, then pretend we aren't using GCC.
4999     ac_prog=ld
5000     ;;
5001   *)
5002     # If it is relative, then search for the first ld in PATH.
5003     with_gnu_ld=unknown
5004     ;;
5005   esac
5006 elif test "$with_gnu_ld" = yes; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5008 $as_echo_n "checking for GNU ld... " >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5011 $as_echo_n "checking for non-GNU ld... " >&6; }
5012 fi
5013 if ${lt_cv_path_LD+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   if test -z "$LD"; then
5017   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5018   for ac_dir in $PATH; do
5019     IFS="$lt_save_ifs"
5020     test -z "$ac_dir" && ac_dir=.
5021     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5022       lt_cv_path_LD="$ac_dir/$ac_prog"
5023       # Check to see if the program is GNU ld.  I'd rather use --version,
5024       # but apparently some variants of GNU ld only accept -v.
5025       # Break only if it was the GNU/non-GNU ld that we prefer.
5026       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5027       *GNU* | *'with BFD'*)
5028         test "$with_gnu_ld" != no && break
5029         ;;
5030       *)
5031         test "$with_gnu_ld" != yes && break
5032         ;;
5033       esac
5034     fi
5035   done
5036   IFS="$lt_save_ifs"
5037 else
5038   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5039 fi
5040 fi
5041
5042 LD="$lt_cv_path_LD"
5043 if test -n "$LD"; then
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5045 $as_echo "$LD" >&6; }
5046 else
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5052 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5053 if ${lt_cv_prog_gnu_ld+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5057 case `$LD -v 2>&1 </dev/null` in
5058 *GNU* | *'with BFD'*)
5059   lt_cv_prog_gnu_ld=yes
5060   ;;
5061 *)
5062   lt_cv_prog_gnu_ld=no
5063   ;;
5064 esac
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5067 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5068 with_gnu_ld=$lt_cv_prog_gnu_ld
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5079 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5080 if ${lt_cv_path_NM+:} false; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   if test -n "$NM"; then
5084   # Let the user override the test.
5085   lt_cv_path_NM="$NM"
5086 else
5087   lt_nm_to_check="${ac_tool_prefix}nm"
5088   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5089     lt_nm_to_check="$lt_nm_to_check nm"
5090   fi
5091   for lt_tmp_nm in $lt_nm_to_check; do
5092     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5093     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5094       IFS="$lt_save_ifs"
5095       test -z "$ac_dir" && ac_dir=.
5096       tmp_nm="$ac_dir/$lt_tmp_nm"
5097       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5098         # Check to see if the nm accepts a BSD-compat flag.
5099         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5100         #   nm: unknown option "B" ignored
5101         # Tru64's nm complains that /dev/null is an invalid object file
5102         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5103         */dev/null* | *'Invalid file or object type'*)
5104           lt_cv_path_NM="$tmp_nm -B"
5105           break
5106           ;;
5107         *)
5108           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5109           */dev/null*)
5110             lt_cv_path_NM="$tmp_nm -p"
5111             break
5112             ;;
5113           *)
5114             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5115             continue # so that we can try to find one that supports BSD flags
5116             ;;
5117           esac
5118           ;;
5119         esac
5120       fi
5121     done
5122     IFS="$lt_save_ifs"
5123   done
5124   : ${lt_cv_path_NM=no}
5125 fi
5126 fi
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5128 $as_echo "$lt_cv_path_NM" >&6; }
5129 if test "$lt_cv_path_NM" != "no"; then
5130   NM="$lt_cv_path_NM"
5131 else
5132   # Didn't find any BSD compatible name lister, look for dumpbin.
5133   if test -n "$DUMPBIN"; then :
5134     # Let the user override the test.
5135   else
5136     if test -n "$ac_tool_prefix"; then
5137   for ac_prog in dumpbin "link -dump"
5138   do
5139     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_DUMPBIN+:} false; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   if test -n "$DUMPBIN"; then
5147   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154     for ac_exec_ext in '' $ac_executable_extensions; do
5155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158     break 2
5159   fi
5160 done
5161   done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 DUMPBIN=$ac_cv_prog_DUMPBIN
5167 if test -n "$DUMPBIN"; then
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5169 $as_echo "$DUMPBIN" >&6; }
5170 else
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175
5176     test -n "$DUMPBIN" && break
5177   done
5178 fi
5179 if test -z "$DUMPBIN"; then
5180   ac_ct_DUMPBIN=$DUMPBIN
5181   for ac_prog in dumpbin "link -dump"
5182 do
5183   # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 set dummy $ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   if test -n "$ac_ct_DUMPBIN"; then
5191   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205   done
5206 IFS=$as_save_IFS
5207
5208 fi
5209 fi
5210 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5211 if test -n "$ac_ct_DUMPBIN"; then
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5213 $as_echo "$ac_ct_DUMPBIN" >&6; }
5214 else
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219
5220   test -n "$ac_ct_DUMPBIN" && break
5221 done
5222
5223   if test "x$ac_ct_DUMPBIN" = x; then
5224     DUMPBIN=":"
5225   else
5226     case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232     DUMPBIN=$ac_ct_DUMPBIN
5233   fi
5234 fi
5235
5236     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5237     *COFF*)
5238       DUMPBIN="$DUMPBIN -symbols"
5239       ;;
5240     *)
5241       DUMPBIN=:
5242       ;;
5243     esac
5244   fi
5245
5246   if test "$DUMPBIN" != ":"; then
5247     NM="$DUMPBIN"
5248   fi
5249 fi
5250 test -z "$NM" && NM=nm
5251
5252
5253
5254
5255
5256
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5258 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5259 if ${lt_cv_nm_interface+:} false; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262   lt_cv_nm_interface="BSD nm"
5263   echo "int some_variable = 0;" > conftest.$ac_ext
5264   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5265   (eval "$ac_compile" 2>conftest.err)
5266   cat conftest.err >&5
5267   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5268   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5269   cat conftest.err >&5
5270   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5271   cat conftest.out >&5
5272   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5273     lt_cv_nm_interface="MS dumpbin"
5274   fi
5275   rm -f conftest*
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5278 $as_echo "$lt_cv_nm_interface" >&6; }
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5281 $as_echo_n "checking whether ln -s works... " >&6; }
5282 LN_S=$as_ln_s
5283 if test "$LN_S" = "ln -s"; then
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5285 $as_echo "yes" >&6; }
5286 else
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5288 $as_echo "no, using $LN_S" >&6; }
5289 fi
5290
5291 # find the maximum length of command line arguments
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5293 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5294 if ${lt_cv_sys_max_cmd_len+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297     i=0
5298   teststring="ABCD"
5299
5300   case $build_os in
5301   msdosdjgpp*)
5302     # On DJGPP, this test can blow up pretty badly due to problems in libc
5303     # (any single argument exceeding 2000 bytes causes a buffer overrun
5304     # during glob expansion).  Even if it were fixed, the result of this
5305     # check would be larger than it should be.
5306     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5307     ;;
5308
5309   gnu*)
5310     # Under GNU Hurd, this test is not required because there is
5311     # no limit to the length of command line arguments.
5312     # Libtool will interpret -1 as no limit whatsoever
5313     lt_cv_sys_max_cmd_len=-1;
5314     ;;
5315
5316   cygwin* | mingw* | cegcc*)
5317     # On Win9x/ME, this test blows up -- it succeeds, but takes
5318     # about 5 minutes as the teststring grows exponentially.
5319     # Worse, since 9x/ME are not pre-emptively multitasking,
5320     # you end up with a "frozen" computer, even though with patience
5321     # the test eventually succeeds (with a max line length of 256k).
5322     # Instead, let's just punt: use the minimum linelength reported by
5323     # all of the supported platforms: 8192 (on NT/2K/XP).
5324     lt_cv_sys_max_cmd_len=8192;
5325     ;;
5326
5327   mint*)
5328     # On MiNT this can take a long time and run out of memory.
5329     lt_cv_sys_max_cmd_len=8192;
5330     ;;
5331
5332   amigaos*)
5333     # On AmigaOS with pdksh, this test takes hours, literally.
5334     # So we just punt and use a minimum line length of 8192.
5335     lt_cv_sys_max_cmd_len=8192;
5336     ;;
5337
5338   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5339     # This has been around since 386BSD, at least.  Likely further.
5340     if test -x /sbin/sysctl; then
5341       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5342     elif test -x /usr/sbin/sysctl; then
5343       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5344     else
5345       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5346     fi
5347     # And add a safety zone
5348     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5349     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5350     ;;
5351
5352   interix*)
5353     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5354     lt_cv_sys_max_cmd_len=196608
5355     ;;
5356
5357   os2*)
5358     # The test takes a long time on OS/2.
5359     lt_cv_sys_max_cmd_len=8192
5360     ;;
5361
5362   osf*)
5363     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5364     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5365     # nice to cause kernel panics so lets avoid the loop below.
5366     # First set a reasonable default.
5367     lt_cv_sys_max_cmd_len=16384
5368     #
5369     if test -x /sbin/sysconfig; then
5370       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5371         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5372       esac
5373     fi
5374     ;;
5375   sco3.2v5*)
5376     lt_cv_sys_max_cmd_len=102400
5377     ;;
5378   sysv5* | sco5v6* | sysv4.2uw2*)
5379     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5380     if test -n "$kargmax"; then
5381       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5382     else
5383       lt_cv_sys_max_cmd_len=32768
5384     fi
5385     ;;
5386   *)
5387     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5388     if test -n "$lt_cv_sys_max_cmd_len"; then
5389       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5390       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5391     else
5392       # Make teststring a little bigger before we do anything with it.
5393       # a 1K string should be a reasonable start.
5394       for i in 1 2 3 4 5 6 7 8 ; do
5395         teststring=$teststring$teststring
5396       done
5397       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5398       # If test is not a shell built-in, we'll probably end up computing a
5399       # maximum length that is only half of the actual maximum length, but
5400       # we can't tell.
5401       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5402                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5403               test $i != 17 # 1/2 MB should be enough
5404       do
5405         i=`expr $i + 1`
5406         teststring=$teststring$teststring
5407       done
5408       # Only check the string length outside the loop.
5409       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5410       teststring=
5411       # Add a significant safety factor because C++ compilers can tack on
5412       # massive amounts of additional arguments before passing them to the
5413       # linker.  It appears as though 1/2 is a usable value.
5414       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5415     fi
5416     ;;
5417   esac
5418
5419 fi
5420
5421 if test -n $lt_cv_sys_max_cmd_len ; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5423 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5426 $as_echo "none" >&6; }
5427 fi
5428 max_cmd_len=$lt_cv_sys_max_cmd_len
5429
5430
5431
5432
5433
5434
5435 : ${CP="cp -f"}
5436 : ${MV="mv -f"}
5437 : ${RM="rm -f"}
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5440 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5441 # Try some XSI features
5442 xsi_shell=no
5443 ( _lt_dummy="a/b/c"
5444   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5445       = c,a/b,b/c, \
5446     && eval 'test $(( 1 + 1 )) -eq 2 \
5447     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5448   && xsi_shell=yes
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5450 $as_echo "$xsi_shell" >&6; }
5451
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5454 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5455 lt_shell_append=no
5456 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5457     >/dev/null 2>&1 \
5458   && lt_shell_append=yes
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5460 $as_echo "$lt_shell_append" >&6; }
5461
5462
5463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5464   lt_unset=unset
5465 else
5466   lt_unset=false
5467 fi
5468
5469
5470
5471
5472
5473 # test EBCDIC or ASCII
5474 case `echo X|tr X '\101'` in
5475  A) # ASCII based system
5476     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5477   lt_SP2NL='tr \040 \012'
5478   lt_NL2SP='tr \015\012 \040\040'
5479   ;;
5480  *) # EBCDIC based system
5481   lt_SP2NL='tr \100 \n'
5482   lt_NL2SP='tr \r\n \100\100'
5483   ;;
5484 esac
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5495 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5496 if ${lt_cv_to_host_file_cmd+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   case $host in
5500   *-*-mingw* )
5501     case $build in
5502       *-*-mingw* ) # actually msys
5503         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5504         ;;
5505       *-*-cygwin* )
5506         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5507         ;;
5508       * ) # otherwise, assume *nix
5509         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5510         ;;
5511     esac
5512     ;;
5513   *-*-cygwin* )
5514     case $build in
5515       *-*-mingw* ) # actually msys
5516         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5517         ;;
5518       *-*-cygwin* )
5519         lt_cv_to_host_file_cmd=func_convert_file_noop
5520         ;;
5521       * ) # otherwise, assume *nix
5522         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5523         ;;
5524     esac
5525     ;;
5526   * ) # unhandled hosts (and "normal" native builds)
5527     lt_cv_to_host_file_cmd=func_convert_file_noop
5528     ;;
5529 esac
5530
5531 fi
5532
5533 to_host_file_cmd=$lt_cv_to_host_file_cmd
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5535 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5536
5537
5538
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5542 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5543 if ${lt_cv_to_tool_file_cmd+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   #assume ordinary cross tools, or native build.
5547 lt_cv_to_tool_file_cmd=func_convert_file_noop
5548 case $host in
5549   *-*-mingw* )
5550     case $build in
5551       *-*-mingw* ) # actually msys
5552         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5553         ;;
5554     esac
5555     ;;
5556 esac
5557
5558 fi
5559
5560 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5562 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5563
5564
5565
5566
5567
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5569 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5570 if ${lt_cv_ld_reload_flag+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   lt_cv_ld_reload_flag='-r'
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5576 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5577 reload_flag=$lt_cv_ld_reload_flag
5578 case $reload_flag in
5579 "" | " "*) ;;
5580 *) reload_flag=" $reload_flag" ;;
5581 esac
5582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5583 case $host_os in
5584   cygwin* | mingw* | pw32* | cegcc*)
5585     if test "$GCC" != yes; then
5586       reload_cmds=false
5587     fi
5588     ;;
5589   darwin*)
5590     if test "$GCC" = yes; then
5591       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5592     else
5593       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5594     fi
5595     ;;
5596 esac
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 if test -n "$ac_tool_prefix"; then
5607   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if ${ac_cv_prog_OBJDUMP+:} false; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614   if test -n "$OBJDUMP"; then
5615   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629   done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 OBJDUMP=$ac_cv_prog_OBJDUMP
5635 if test -n "$OBJDUMP"; then
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5637 $as_echo "$OBJDUMP" >&6; }
5638 else
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 fi
5645 if test -z "$ac_cv_prog_OBJDUMP"; then
5646   ac_ct_OBJDUMP=$OBJDUMP
5647   # Extract the first word of "objdump", so it can be a program name with args.
5648 set dummy objdump; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5652   $as_echo_n "(cached) " >&6
5653 else
5654   if test -n "$ac_ct_OBJDUMP"; then
5655   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662     for ac_exec_ext in '' $ac_executable_extensions; do
5663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669   done
5670 IFS=$as_save_IFS
5671
5672 fi
5673 fi
5674 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5675 if test -n "$ac_ct_OBJDUMP"; then
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5677 $as_echo "$ac_ct_OBJDUMP" >&6; }
5678 else
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682
5683   if test "x$ac_ct_OBJDUMP" = x; then
5684     OBJDUMP="false"
5685   else
5686     case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692     OBJDUMP=$ac_ct_OBJDUMP
5693   fi
5694 else
5695   OBJDUMP="$ac_cv_prog_OBJDUMP"
5696 fi
5697
5698 test -z "$OBJDUMP" && OBJDUMP=objdump
5699
5700
5701
5702
5703
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5706 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5707 if ${lt_cv_deplibs_check_method+:} false; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   lt_cv_file_magic_cmd='$MAGIC_CMD'
5711 lt_cv_file_magic_test_file=
5712 lt_cv_deplibs_check_method='unknown'
5713 # Need to set the preceding variable on all platforms that support
5714 # interlibrary dependencies.
5715 # 'none' -- dependencies not supported.
5716 # `unknown' -- same as none, but documents that we really don't know.
5717 # 'pass_all' -- all dependencies passed with no checks.
5718 # 'test_compile' -- check by making test program.
5719 # 'file_magic [[regex]]' -- check by looking for files in library path
5720 # which responds to the $file_magic_cmd with a given extended regex.
5721 # If you have `file' or equivalent on your system and you're not sure
5722 # whether `pass_all' will *always* work, you probably want this one.
5723
5724 case $host_os in
5725 aix[4-9]*)
5726   lt_cv_deplibs_check_method=pass_all
5727   ;;
5728
5729 beos*)
5730   lt_cv_deplibs_check_method=pass_all
5731   ;;
5732
5733 bsdi[45]*)
5734   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5735   lt_cv_file_magic_cmd='/usr/bin/file -L'
5736   lt_cv_file_magic_test_file=/shlib/libc.so
5737   ;;
5738
5739 cygwin*)
5740   # func_win32_libid is a shell function defined in ltmain.sh
5741   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5742   lt_cv_file_magic_cmd='func_win32_libid'
5743   ;;
5744
5745 mingw* | pw32*)
5746   # Base MSYS/MinGW do not provide the 'file' command needed by
5747   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5748   # unless we find 'file', for example because we are cross-compiling.
5749   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5750   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5751     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5752     lt_cv_file_magic_cmd='func_win32_libid'
5753   else
5754     # Keep this pattern in sync with the one in func_win32_libid.
5755     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5756     lt_cv_file_magic_cmd='$OBJDUMP -f'
5757   fi
5758   ;;
5759
5760 cegcc*)
5761   # use the weaker test based on 'objdump'. See mingw*.
5762   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5763   lt_cv_file_magic_cmd='$OBJDUMP -f'
5764   ;;
5765
5766 darwin* | rhapsody*)
5767   lt_cv_deplibs_check_method=pass_all
5768   ;;
5769
5770 freebsd* | dragonfly*)
5771   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5772     case $host_cpu in
5773     i*86 )
5774       # Not sure whether the presence of OpenBSD here was a mistake.
5775       # Let's accept both of them until this is cleared up.
5776       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5777       lt_cv_file_magic_cmd=/usr/bin/file
5778       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5779       ;;
5780     esac
5781   else
5782     lt_cv_deplibs_check_method=pass_all
5783   fi
5784   ;;
5785
5786 gnu*)
5787   lt_cv_deplibs_check_method=pass_all
5788   ;;
5789
5790 haiku*)
5791   lt_cv_deplibs_check_method=pass_all
5792   ;;
5793
5794 hpux10.20* | hpux11*)
5795   lt_cv_file_magic_cmd=/usr/bin/file
5796   case $host_cpu in
5797   ia64*)
5798     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5799     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5800     ;;
5801   hppa*64*)
5802     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5803     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5804     ;;
5805   *)
5806     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5807     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5808     ;;
5809   esac
5810   ;;
5811
5812 interix[3-9]*)
5813   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5814   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5815   ;;
5816
5817 irix5* | irix6* | nonstopux*)
5818   case $LD in
5819   *-32|*"-32 ") libmagic=32-bit;;
5820   *-n32|*"-n32 ") libmagic=N32;;
5821   *-64|*"-64 ") libmagic=64-bit;;
5822   *) libmagic=never-match;;
5823   esac
5824   lt_cv_deplibs_check_method=pass_all
5825   ;;
5826
5827 # This must be glibc/ELF.
5828 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5829   lt_cv_deplibs_check_method=pass_all
5830   ;;
5831
5832 netbsd*)
5833   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5834     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5835   else
5836     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5837   fi
5838   ;;
5839
5840 newos6*)
5841   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5842   lt_cv_file_magic_cmd=/usr/bin/file
5843   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5844   ;;
5845
5846 *nto* | *qnx*)
5847   lt_cv_deplibs_check_method=pass_all
5848   ;;
5849
5850 openbsd*)
5851   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5852     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5853   else
5854     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5855   fi
5856   ;;
5857
5858 osf3* | osf4* | osf5*)
5859   lt_cv_deplibs_check_method=pass_all
5860   ;;
5861
5862 rdos*)
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865
5866 solaris*)
5867   lt_cv_deplibs_check_method=pass_all
5868   ;;
5869
5870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5871   lt_cv_deplibs_check_method=pass_all
5872   ;;
5873
5874 sysv4 | sysv4.3*)
5875   case $host_vendor in
5876   motorola)
5877     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]'
5878     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5879     ;;
5880   ncr)
5881     lt_cv_deplibs_check_method=pass_all
5882     ;;
5883   sequent)
5884     lt_cv_file_magic_cmd='/bin/file'
5885     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5886     ;;
5887   sni)
5888     lt_cv_file_magic_cmd='/bin/file'
5889     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5890     lt_cv_file_magic_test_file=/lib/libc.so
5891     ;;
5892   siemens)
5893     lt_cv_deplibs_check_method=pass_all
5894     ;;
5895   pc)
5896     lt_cv_deplibs_check_method=pass_all
5897     ;;
5898   esac
5899   ;;
5900
5901 tpf*)
5902   lt_cv_deplibs_check_method=pass_all
5903   ;;
5904 esac
5905
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5908 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5909
5910 file_magic_glob=
5911 want_nocaseglob=no
5912 if test "$build" = "$host"; then
5913   case $host_os in
5914   mingw* | pw32*)
5915     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5916       want_nocaseglob=yes
5917     else
5918       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5919     fi
5920     ;;
5921   esac
5922 fi
5923
5924 file_magic_cmd=$lt_cv_file_magic_cmd
5925 deplibs_check_method=$lt_cv_deplibs_check_method
5926 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949 if test -n "$ac_tool_prefix"; then
5950   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5951 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_prog_DLLTOOL+:} false; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   if test -n "$DLLTOOL"; then
5958   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   test -z "$as_dir" && as_dir=.
5965     for ac_exec_ext in '' $ac_executable_extensions; do
5966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972   done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 DLLTOOL=$ac_cv_prog_DLLTOOL
5978 if test -n "$DLLTOOL"; then
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5980 $as_echo "$DLLTOOL" >&6; }
5981 else
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5984 fi
5985
5986
5987 fi
5988 if test -z "$ac_cv_prog_DLLTOOL"; then
5989   ac_ct_DLLTOOL=$DLLTOOL
5990   # Extract the first word of "dlltool", so it can be a program name with args.
5991 set dummy dlltool; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5995   $as_echo_n "(cached) " >&6
5996 else
5997   if test -n "$ac_ct_DLLTOOL"; then
5998   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005     for ac_exec_ext in '' $ac_executable_extensions; do
6006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012   done
6013 IFS=$as_save_IFS
6014
6015 fi
6016 fi
6017 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6018 if test -n "$ac_ct_DLLTOOL"; then
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6020 $as_echo "$ac_ct_DLLTOOL" >&6; }
6021 else
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6024 fi
6025
6026   if test "x$ac_ct_DLLTOOL" = x; then
6027     DLLTOOL="false"
6028   else
6029     case $cross_compiling:$ac_tool_warned in
6030 yes:)
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6033 ac_tool_warned=yes ;;
6034 esac
6035     DLLTOOL=$ac_ct_DLLTOOL
6036   fi
6037 else
6038   DLLTOOL="$ac_cv_prog_DLLTOOL"
6039 fi
6040
6041 test -z "$DLLTOOL" && DLLTOOL=dlltool
6042
6043
6044
6045
6046
6047
6048
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6050 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6051 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   lt_cv_sharedlib_from_linklib_cmd='unknown'
6055
6056 case $host_os in
6057 cygwin* | mingw* | pw32* | cegcc*)
6058   # two different shell functions defined in ltmain.sh
6059   # decide which to use based on capabilities of $DLLTOOL
6060   case `$DLLTOOL --help 2>&1` in
6061   *--identify-strict*)
6062     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6063     ;;
6064   *)
6065     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6066     ;;
6067   esac
6068   ;;
6069 *)
6070   # fallback: assume linklib IS sharedlib
6071   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6072   ;;
6073 esac
6074
6075 fi
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6077 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6078 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6079 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6080
6081
6082
6083
6084
6085
6086
6087
6088 if test -n "$ac_tool_prefix"; then
6089   for ac_prog in ar
6090   do
6091     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if ${ac_cv_prog_AR+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   if test -n "$AR"; then
6099   ac_cv_prog_AR="$AR" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106     for ac_exec_ext in '' $ac_executable_extensions; do
6107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113   done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 AR=$ac_cv_prog_AR
6119 if test -n "$AR"; then
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6121 $as_echo "$AR" >&6; }
6122 else
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126
6127
6128     test -n "$AR" && break
6129   done
6130 fi
6131 if test -z "$AR"; then
6132   ac_ct_AR=$AR
6133   for ac_prog in ar
6134 do
6135   # Extract the first word of "$ac_prog", so it can be a program name with args.
6136 set dummy $ac_prog; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if test -n "$ac_ct_AR"; then
6143   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     for ac_exec_ext in '' $ac_executable_extensions; do
6151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152     ac_cv_prog_ac_ct_AR="$ac_prog"
6153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157   done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6163 if test -n "$ac_ct_AR"; then
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6165 $as_echo "$ac_ct_AR" >&6; }
6166 else
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170
6171
6172   test -n "$ac_ct_AR" && break
6173 done
6174
6175   if test "x$ac_ct_AR" = x; then
6176     AR="false"
6177   else
6178     case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182 ac_tool_warned=yes ;;
6183 esac
6184     AR=$ac_ct_AR
6185   fi
6186 fi
6187
6188 : ${AR=ar}
6189 : ${AR_FLAGS=cru}
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6202 $as_echo_n "checking for archiver @FILE support... " >&6; }
6203 if ${lt_cv_ar_at_file+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   lt_cv_ar_at_file=no
6207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h.  */
6209
6210 int
6211 main ()
6212 {
6213
6214   ;
6215   return 0;
6216 }
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219   echo conftest.$ac_objext > conftest.lst
6220       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6221       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6222   (eval $lt_ar_try) 2>&5
6223   ac_status=$?
6224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6225   test $ac_status = 0; }
6226       if test "$ac_status" -eq 0; then
6227         # Ensure the archiver fails upon bogus file names.
6228         rm -f conftest.$ac_objext libconftest.a
6229         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6230   (eval $lt_ar_try) 2>&5
6231   ac_status=$?
6232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233   test $ac_status = 0; }
6234         if test "$ac_status" -ne 0; then
6235           lt_cv_ar_at_file=@
6236         fi
6237       fi
6238       rm -f conftest.* libconftest.a
6239
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6245 $as_echo "$lt_cv_ar_at_file" >&6; }
6246
6247 if test "x$lt_cv_ar_at_file" = xno; then
6248   archiver_list_spec=
6249 else
6250   archiver_list_spec=$lt_cv_ar_at_file
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259 if test -n "$ac_tool_prefix"; then
6260   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}strip; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_STRIP+:} false; then :
6265   $as_echo_n "(cached) " >&6
6266 else
6267   if test -n "$STRIP"; then
6268   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275     for ac_exec_ext in '' $ac_executable_extensions; do
6276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282   done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 STRIP=$ac_cv_prog_STRIP
6288 if test -n "$STRIP"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6290 $as_echo "$STRIP" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_STRIP"; then
6299   ac_ct_STRIP=$STRIP
6300   # Extract the first word of "strip", so it can be a program name with args.
6301 set dummy strip; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   if test -n "$ac_ct_STRIP"; then
6308   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315     for ac_exec_ext in '' $ac_executable_extensions; do
6316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317     ac_cv_prog_ac_ct_STRIP="strip"
6318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322   done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6328 if test -n "$ac_ct_STRIP"; then
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6330 $as_echo "$ac_ct_STRIP" >&6; }
6331 else
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336   if test "x$ac_ct_STRIP" = x; then
6337     STRIP=":"
6338   else
6339     case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345     STRIP=$ac_ct_STRIP
6346   fi
6347 else
6348   STRIP="$ac_cv_prog_STRIP"
6349 fi
6350
6351 test -z "$STRIP" && STRIP=:
6352
6353
6354
6355
6356
6357
6358 if test -n "$ac_tool_prefix"; then
6359   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if ${ac_cv_prog_RANLIB+:} false; then :
6364   $as_echo_n "(cached) " >&6
6365 else
6366   if test -n "$RANLIB"; then
6367   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372   IFS=$as_save_IFS
6373   test -z "$as_dir" && as_dir=.
6374     for ac_exec_ext in '' $ac_executable_extensions; do
6375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378     break 2
6379   fi
6380 done
6381   done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 RANLIB=$ac_cv_prog_RANLIB
6387 if test -n "$RANLIB"; then
6388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6389 $as_echo "$RANLIB" >&6; }
6390 else
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395
6396 fi
6397 if test -z "$ac_cv_prog_RANLIB"; then
6398   ac_ct_RANLIB=$RANLIB
6399   # Extract the first word of "ranlib", so it can be a program name with args.
6400 set dummy ranlib; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -n "$ac_ct_RANLIB"; then
6407   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414     for ac_exec_ext in '' $ac_executable_extensions; do
6415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416     ac_cv_prog_ac_ct_RANLIB="ranlib"
6417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421   done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6427 if test -n "$ac_ct_RANLIB"; then
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6429 $as_echo "$ac_ct_RANLIB" >&6; }
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435   if test "x$ac_ct_RANLIB" = x; then
6436     RANLIB=":"
6437   else
6438     case $cross_compiling:$ac_tool_warned in
6439 yes:)
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442 ac_tool_warned=yes ;;
6443 esac
6444     RANLIB=$ac_ct_RANLIB
6445   fi
6446 else
6447   RANLIB="$ac_cv_prog_RANLIB"
6448 fi
6449
6450 test -z "$RANLIB" && RANLIB=:
6451
6452
6453
6454
6455
6456
6457 # Determine commands to create old-style static archives.
6458 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6459 old_postinstall_cmds='chmod 644 $oldlib'
6460 old_postuninstall_cmds=
6461
6462 if test -n "$RANLIB"; then
6463   case $host_os in
6464   openbsd*)
6465     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6466     ;;
6467   *)
6468     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6469     ;;
6470   esac
6471   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6472 fi
6473
6474 case $host_os in
6475   darwin*)
6476     lock_old_archive_extraction=yes ;;
6477   *)
6478     lock_old_archive_extraction=no ;;
6479 esac
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 # If no C compiler was specified, use CC.
6520 LTCC=${LTCC-"$CC"}
6521
6522 # If no C compiler flags were specified, use CFLAGS.
6523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6524
6525 # Allow CC to be a program name with arguments.
6526 compiler=$CC
6527
6528
6529 # Check for command to grab the raw symbol name followed by C symbol from nm.
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6531 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6532 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535
6536 # These are sane defaults that work on at least a few old systems.
6537 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6538
6539 # Character class describing NM global symbol codes.
6540 symcode='[BCDEGRST]'
6541
6542 # Regexp to match symbols that can be accessed directly from C.
6543 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6544
6545 # Define system-specific variables.
6546 case $host_os in
6547 aix*)
6548   symcode='[BCDT]'
6549   ;;
6550 cygwin* | mingw* | pw32* | cegcc*)
6551   symcode='[ABCDGISTW]'
6552   ;;
6553 hpux*)
6554   if test "$host_cpu" = ia64; then
6555     symcode='[ABCDEGRST]'
6556   fi
6557   ;;
6558 irix* | nonstopux*)
6559   symcode='[BCDEGRST]'
6560   ;;
6561 osf*)
6562   symcode='[BCDEGQRST]'
6563   ;;
6564 solaris*)
6565   symcode='[BDRT]'
6566   ;;
6567 sco3.2v5*)
6568   symcode='[DT]'
6569   ;;
6570 sysv4.2uw2*)
6571   symcode='[DT]'
6572   ;;
6573 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6574   symcode='[ABDT]'
6575   ;;
6576 sysv4)
6577   symcode='[DFNSTU]'
6578   ;;
6579 esac
6580
6581 # If we're using GNU nm, then use its standard symbol codes.
6582 case `$NM -V 2>&1` in
6583 *GNU* | *'with BFD'*)
6584   symcode='[ABCDGIRSTW]' ;;
6585 esac
6586
6587 # Transform an extracted symbol line into a proper C declaration.
6588 # Some systems (esp. on ia64) link data and code symbols differently,
6589 # so use this general approach.
6590 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6591
6592 # Transform an extracted symbol line into symbol name and symbol address
6593 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6594 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6595
6596 # Handle CRLF in mingw tool chain
6597 opt_cr=
6598 case $build_os in
6599 mingw*)
6600   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6601   ;;
6602 esac
6603
6604 # Try without a prefix underscore, then with it.
6605 for ac_symprfx in "" "_"; do
6606
6607   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6608   symxfrm="\\1 $ac_symprfx\\2 \\2"
6609
6610   # Write the raw and C identifiers.
6611   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6612     # Fake it for dumpbin and say T for any non-static function
6613     # and D for any global variable.
6614     # Also find C++ and __fastcall symbols from MSVC++,
6615     # which start with @ or ?.
6616     lt_cv_sys_global_symbol_pipe="$AWK '"\
6617 "     {last_section=section; section=\$ 3};"\
6618 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6619 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6620 "     \$ 0!~/External *\|/{next};"\
6621 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6622 "     {if(hide[section]) next};"\
6623 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6624 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6625 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6626 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6627 "     ' prfx=^$ac_symprfx"
6628   else
6629     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6630   fi
6631   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6632
6633   # Check to see that the pipe works correctly.
6634   pipe_works=no
6635
6636   rm -f conftest*
6637   cat > conftest.$ac_ext <<_LT_EOF
6638 #ifdef __cplusplus
6639 extern "C" {
6640 #endif
6641 char nm_test_var;
6642 void nm_test_func(void);
6643 void nm_test_func(void){}
6644 #ifdef __cplusplus
6645 }
6646 #endif
6647 int main(){nm_test_var='a';nm_test_func();return(0);}
6648 _LT_EOF
6649
6650   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651   (eval $ac_compile) 2>&5
6652   ac_status=$?
6653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654   test $ac_status = 0; }; then
6655     # Now try to grab the symbols.
6656     nlist=conftest.nm
6657     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6658   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6659   ac_status=$?
6660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6661   test $ac_status = 0; } && test -s "$nlist"; then
6662       # Try sorting and uniquifying the output.
6663       if sort "$nlist" | uniq > "$nlist"T; then
6664         mv -f "$nlist"T "$nlist"
6665       else
6666         rm -f "$nlist"T
6667       fi
6668
6669       # Make sure that we snagged all the symbols we need.
6670       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6671         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6672           cat <<_LT_EOF > conftest.$ac_ext
6673 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6674 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6675 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6676    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6677 # define LT_DLSYM_CONST
6678 #elif defined(__osf__)
6679 /* This system does not cope well with relocations in const data.  */
6680 # define LT_DLSYM_CONST
6681 #else
6682 # define LT_DLSYM_CONST const
6683 #endif
6684
6685 #ifdef __cplusplus
6686 extern "C" {
6687 #endif
6688
6689 _LT_EOF
6690           # Now generate the symbol file.
6691           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6692
6693           cat <<_LT_EOF >> conftest.$ac_ext
6694
6695 /* The mapping between symbol names and symbols.  */
6696 LT_DLSYM_CONST struct {
6697   const char *name;
6698   void       *address;
6699 }
6700 lt__PROGRAM__LTX_preloaded_symbols[] =
6701 {
6702   { "@PROGRAM@", (void *) 0 },
6703 _LT_EOF
6704           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6705           cat <<\_LT_EOF >> conftest.$ac_ext
6706   {0, (void *) 0}
6707 };
6708
6709 /* This works around a problem in FreeBSD linker */
6710 #ifdef FREEBSD_WORKAROUND
6711 static const void *lt_preloaded_setup() {
6712   return lt__PROGRAM__LTX_preloaded_symbols;
6713 }
6714 #endif
6715
6716 #ifdef __cplusplus
6717 }
6718 #endif
6719 _LT_EOF
6720           # Now try linking the two files.
6721           mv conftest.$ac_objext conftstm.$ac_objext
6722           lt_globsym_save_LIBS=$LIBS
6723           lt_globsym_save_CFLAGS=$CFLAGS
6724           LIBS="conftstm.$ac_objext"
6725           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6726           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6727   (eval $ac_link) 2>&5
6728   ac_status=$?
6729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6731             pipe_works=yes
6732           fi
6733           LIBS=$lt_globsym_save_LIBS
6734           CFLAGS=$lt_globsym_save_CFLAGS
6735         else
6736           echo "cannot find nm_test_func in $nlist" >&5
6737         fi
6738       else
6739         echo "cannot find nm_test_var in $nlist" >&5
6740       fi
6741     else
6742       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6743     fi
6744   else
6745     echo "$progname: failed program was:" >&5
6746     cat conftest.$ac_ext >&5
6747   fi
6748   rm -rf conftest* conftst*
6749
6750   # Do not use the global_symbol_pipe unless it works.
6751   if test "$pipe_works" = yes; then
6752     break
6753   else
6754     lt_cv_sys_global_symbol_pipe=
6755   fi
6756 done
6757
6758 fi
6759
6760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6761   lt_cv_sys_global_symbol_to_cdecl=
6762 fi
6763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6765 $as_echo "failed" >&6; }
6766 else
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6768 $as_echo "ok" >&6; }
6769 fi
6770
6771 # Response file support.
6772 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6773   nm_file_list_spec='@'
6774 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6775   nm_file_list_spec='@'
6776 fi
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6805 $as_echo_n "checking for sysroot... " >&6; }
6806
6807 # Check whether --with-sysroot was given.
6808 if test "${with_sysroot+set}" = set; then :
6809   withval=$with_sysroot;
6810 else
6811   with_sysroot=no
6812 fi
6813
6814
6815 lt_sysroot=
6816 case ${with_sysroot} in #(
6817  yes)
6818    if test "$GCC" = yes; then
6819      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6820    fi
6821    ;; #(
6822  /*)
6823    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6824    ;; #(
6825  no|'')
6826    ;; #(
6827  *)
6828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6829 $as_echo "${with_sysroot}" >&6; }
6830    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6831    ;;
6832 esac
6833
6834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6835 $as_echo "${lt_sysroot:-no}" >&6; }
6836
6837
6838
6839
6840
6841 # Check whether --enable-libtool-lock was given.
6842 if test "${enable_libtool_lock+set}" = set; then :
6843   enableval=$enable_libtool_lock;
6844 fi
6845
6846 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6847
6848 # Some flags need to be propagated to the compiler or linker for good
6849 # libtool support.
6850 case $host in
6851 ia64-*-hpux*)
6852   # Find out which ABI we are using.
6853   echo 'int i;' > conftest.$ac_ext
6854   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6855   (eval $ac_compile) 2>&5
6856   ac_status=$?
6857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858   test $ac_status = 0; }; then
6859     case `/usr/bin/file conftest.$ac_objext` in
6860       *ELF-32*)
6861         HPUX_IA64_MODE="32"
6862         ;;
6863       *ELF-64*)
6864         HPUX_IA64_MODE="64"
6865         ;;
6866     esac
6867   fi
6868   rm -rf conftest*
6869   ;;
6870 *-*-irix6*)
6871   # Find out which ABI we are using.
6872   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6873   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874   (eval $ac_compile) 2>&5
6875   ac_status=$?
6876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877   test $ac_status = 0; }; then
6878     if test "$lt_cv_prog_gnu_ld" = yes; then
6879       case `/usr/bin/file conftest.$ac_objext` in
6880         *32-bit*)
6881           LD="${LD-ld} -melf32bsmip"
6882           ;;
6883         *N32*)
6884           LD="${LD-ld} -melf32bmipn32"
6885           ;;
6886         *64-bit*)
6887           LD="${LD-ld} -melf64bmip"
6888         ;;
6889       esac
6890     else
6891       case `/usr/bin/file conftest.$ac_objext` in
6892         *32-bit*)
6893           LD="${LD-ld} -32"
6894           ;;
6895         *N32*)
6896           LD="${LD-ld} -n32"
6897           ;;
6898         *64-bit*)
6899           LD="${LD-ld} -64"
6900           ;;
6901       esac
6902     fi
6903   fi
6904   rm -rf conftest*
6905   ;;
6906
6907 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6908 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6909   # Find out which ABI we are using.
6910   echo 'int i;' > conftest.$ac_ext
6911   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6912   (eval $ac_compile) 2>&5
6913   ac_status=$?
6914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915   test $ac_status = 0; }; then
6916     case `/usr/bin/file conftest.o` in
6917       *32-bit*)
6918         case $host in
6919           x86_64-*kfreebsd*-gnu)
6920             LD="${LD-ld} -m elf_i386_fbsd"
6921             ;;
6922           x86_64-*linux*)
6923             LD="${LD-ld} -m elf_i386"
6924             ;;
6925           ppc64-*linux*|powerpc64-*linux*)
6926             LD="${LD-ld} -m elf32ppclinux"
6927             ;;
6928           s390x-*linux*)
6929             LD="${LD-ld} -m elf_s390"
6930             ;;
6931           sparc64-*linux*)
6932             LD="${LD-ld} -m elf32_sparc"
6933             ;;
6934         esac
6935         ;;
6936       *64-bit*)
6937         case $host in
6938           x86_64-*kfreebsd*-gnu)
6939             LD="${LD-ld} -m elf_x86_64_fbsd"
6940             ;;
6941           x86_64-*linux*)
6942             LD="${LD-ld} -m elf_x86_64"
6943             ;;
6944           ppc*-*linux*|powerpc*-*linux*)
6945             LD="${LD-ld} -m elf64ppc"
6946             ;;
6947           s390*-*linux*|s390*-*tpf*)
6948             LD="${LD-ld} -m elf64_s390"
6949             ;;
6950           sparc*-*linux*)
6951             LD="${LD-ld} -m elf64_sparc"
6952             ;;
6953         esac
6954         ;;
6955     esac
6956   fi
6957   rm -rf conftest*
6958   ;;
6959
6960 *-*-sco3.2v5*)
6961   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6962   SAVE_CFLAGS="$CFLAGS"
6963   CFLAGS="$CFLAGS -belf"
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6965 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6966 if ${lt_cv_cc_needs_belf+:} false; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969   ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974
6975      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h.  */
6977
6978 int
6979 main ()
6980 {
6981
6982   ;
6983   return 0;
6984 }
6985 _ACEOF
6986 if ac_fn_c_try_link "$LINENO"; then :
6987   lt_cv_cc_needs_belf=yes
6988 else
6989   lt_cv_cc_needs_belf=no
6990 fi
6991 rm -f core conftest.err conftest.$ac_objext \
6992     conftest$ac_exeext conftest.$ac_ext
6993      ac_ext=c
6994 ac_cpp='$CPP $CPPFLAGS'
6995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6998
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7001 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7002   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7003     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7004     CFLAGS="$SAVE_CFLAGS"
7005   fi
7006   ;;
7007 *-*solaris*)
7008   # Find out which ABI we are using.
7009   echo 'int i;' > conftest.$ac_ext
7010   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7011   (eval $ac_compile) 2>&5
7012   ac_status=$?
7013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014   test $ac_status = 0; }; then
7015     case `/usr/bin/file conftest.o` in
7016     *64-bit*)
7017       case $lt_cv_prog_gnu_ld in
7018       yes*)
7019         case $host in
7020         i?86-*-solaris*)
7021           LD="${LD-ld} -m elf_x86_64"
7022           ;;
7023         sparc*-*-solaris*)
7024           LD="${LD-ld} -m elf64_sparc"
7025           ;;
7026         esac
7027         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7028         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7029           LD="${LD-ld}_sol2"
7030         fi
7031         ;;
7032       *)
7033         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7034           LD="${LD-ld} -64"
7035         fi
7036         ;;
7037       esac
7038       ;;
7039     esac
7040   fi
7041   rm -rf conftest*
7042   ;;
7043 esac
7044
7045 need_locks="$enable_libtool_lock"
7046
7047 if test -n "$ac_tool_prefix"; then
7048   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}mt; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7053   $as_echo_n "(cached) " >&6
7054 else
7055   if test -n "$MANIFEST_TOOL"; then
7056   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063     for ac_exec_ext in '' $ac_executable_extensions; do
7064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070   done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7076 if test -n "$MANIFEST_TOOL"; then
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7078 $as_echo "$MANIFEST_TOOL" >&6; }
7079 else
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7087   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7088   # Extract the first word of "mt", so it can be a program name with args.
7089 set dummy mt; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   if test -n "$ac_ct_MANIFEST_TOOL"; then
7096   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103     for ac_exec_ext in '' $ac_executable_extensions; do
7104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110   done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7116 if test -n "$ac_ct_MANIFEST_TOOL"; then
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7118 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7119 else
7120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7125     MANIFEST_TOOL=":"
7126   else
7127     case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7134   fi
7135 else
7136   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7137 fi
7138
7139 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7141 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7142 if ${lt_cv_path_mainfest_tool+:} false; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   lt_cv_path_mainfest_tool=no
7146   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7147   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7148   cat conftest.err >&5
7149   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7150     lt_cv_path_mainfest_tool=yes
7151   fi
7152   rm -f conftest*
7153 fi
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7155 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7156 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7157   MANIFEST_TOOL=:
7158 fi
7159
7160
7161
7162
7163
7164
7165   case $host_os in
7166     rhapsody* | darwin*)
7167     if test -n "$ac_tool_prefix"; then
7168   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7173   $as_echo_n "(cached) " >&6
7174 else
7175   if test -n "$DSYMUTIL"; then
7176   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181   IFS=$as_save_IFS
7182   test -z "$as_dir" && as_dir=.
7183     for ac_exec_ext in '' $ac_executable_extensions; do
7184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187     break 2
7188   fi
7189 done
7190   done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7196 if test -n "$DSYMUTIL"; then
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7198 $as_echo "$DSYMUTIL" >&6; }
7199 else
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204
7205 fi
7206 if test -z "$ac_cv_prog_DSYMUTIL"; then
7207   ac_ct_DSYMUTIL=$DSYMUTIL
7208   # Extract the first word of "dsymutil", so it can be a program name with args.
7209 set dummy dsymutil; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   if test -n "$ac_ct_DSYMUTIL"; then
7216   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223     for ac_exec_ext in '' $ac_executable_extensions; do
7224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230   done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7236 if test -n "$ac_ct_DSYMUTIL"; then
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7238 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7239 else
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244   if test "x$ac_ct_DSYMUTIL" = x; then
7245     DSYMUTIL=":"
7246   else
7247     case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253     DSYMUTIL=$ac_ct_DSYMUTIL
7254   fi
7255 else
7256   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7257 fi
7258
7259     if test -n "$ac_tool_prefix"; then
7260   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_NMEDIT+:} false; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   if test -n "$NMEDIT"; then
7268   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275     for ac_exec_ext in '' $ac_executable_extensions; do
7276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282   done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 NMEDIT=$ac_cv_prog_NMEDIT
7288 if test -n "$NMEDIT"; then
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7290 $as_echo "$NMEDIT" >&6; }
7291 else
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 fi
7298 if test -z "$ac_cv_prog_NMEDIT"; then
7299   ac_ct_NMEDIT=$NMEDIT
7300   # Extract the first word of "nmedit", so it can be a program name with args.
7301 set dummy nmedit; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   if test -n "$ac_ct_NMEDIT"; then
7308   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7328 if test -n "$ac_ct_NMEDIT"; then
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7330 $as_echo "$ac_ct_NMEDIT" >&6; }
7331 else
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336   if test "x$ac_ct_NMEDIT" = x; then
7337     NMEDIT=":"
7338   else
7339     case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345     NMEDIT=$ac_ct_NMEDIT
7346   fi
7347 else
7348   NMEDIT="$ac_cv_prog_NMEDIT"
7349 fi
7350
7351     if test -n "$ac_tool_prefix"; then
7352   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_LIPO+:} false; then :
7357   $as_echo_n "(cached) " >&6
7358 else
7359   if test -n "$LIPO"; then
7360   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_exec_ext in '' $ac_executable_extensions; do
7368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374   done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 LIPO=$ac_cv_prog_LIPO
7380 if test -n "$LIPO"; then
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7382 $as_echo "$LIPO" >&6; }
7383 else
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_LIPO"; then
7391   ac_ct_LIPO=$LIPO
7392   # Extract the first word of "lipo", so it can be a program name with args.
7393 set dummy lipo; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   if test -n "$ac_ct_LIPO"; then
7400   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_ac_ct_LIPO="lipo"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7420 if test -n "$ac_ct_LIPO"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7422 $as_echo "$ac_ct_LIPO" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428   if test "x$ac_ct_LIPO" = x; then
7429     LIPO=":"
7430   else
7431     case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7436 esac
7437     LIPO=$ac_ct_LIPO
7438   fi
7439 else
7440   LIPO="$ac_cv_prog_LIPO"
7441 fi
7442
7443     if test -n "$ac_tool_prefix"; then
7444   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}otool; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_OTOOL+:} false; then :
7449   $as_echo_n "(cached) " >&6
7450 else
7451   if test -n "$OTOOL"; then
7452   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459     for ac_exec_ext in '' $ac_executable_extensions; do
7460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466   done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 OTOOL=$ac_cv_prog_OTOOL
7472 if test -n "$OTOOL"; then
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7474 $as_echo "$OTOOL" >&6; }
7475 else
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480
7481 fi
7482 if test -z "$ac_cv_prog_OTOOL"; then
7483   ac_ct_OTOOL=$OTOOL
7484   # Extract the first word of "otool", so it can be a program name with args.
7485 set dummy otool; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   if test -n "$ac_ct_OTOOL"; then
7492   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499     for ac_exec_ext in '' $ac_executable_extensions; do
7500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501     ac_cv_prog_ac_ct_OTOOL="otool"
7502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506   done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7512 if test -n "$ac_ct_OTOOL"; then
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7514 $as_echo "$ac_ct_OTOOL" >&6; }
7515 else
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520   if test "x$ac_ct_OTOOL" = x; then
7521     OTOOL=":"
7522   else
7523     case $cross_compiling:$ac_tool_warned in
7524 yes:)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527 ac_tool_warned=yes ;;
7528 esac
7529     OTOOL=$ac_ct_OTOOL
7530   fi
7531 else
7532   OTOOL="$ac_cv_prog_OTOOL"
7533 fi
7534
7535     if test -n "$ac_tool_prefix"; then
7536   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7537 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_prog_OTOOL64+:} false; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543   if test -n "$OTOOL64"; then
7544   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551     for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558   done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 OTOOL64=$ac_cv_prog_OTOOL64
7564 if test -n "$OTOOL64"; then
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7566 $as_echo "$OTOOL64" >&6; }
7567 else
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571
7572
7573 fi
7574 if test -z "$ac_cv_prog_OTOOL64"; then
7575   ac_ct_OTOOL64=$OTOOL64
7576   # Extract the first word of "otool64", so it can be a program name with args.
7577 set dummy otool64; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   if test -n "$ac_ct_OTOOL64"; then
7584   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591     for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_prog_ac_ct_OTOOL64="otool64"
7594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598   done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7604 if test -n "$ac_ct_OTOOL64"; then
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7606 $as_echo "$ac_ct_OTOOL64" >&6; }
7607 else
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612   if test "x$ac_ct_OTOOL64" = x; then
7613     OTOOL64=":"
7614   else
7615     case $cross_compiling:$ac_tool_warned in
7616 yes:)
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619 ac_tool_warned=yes ;;
7620 esac
7621     OTOOL64=$ac_ct_OTOOL64
7622   fi
7623 else
7624   OTOOL64="$ac_cv_prog_OTOOL64"
7625 fi
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7654 $as_echo_n "checking for -single_module linker flag... " >&6; }
7655 if ${lt_cv_apple_cc_single_mod+:} false; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   lt_cv_apple_cc_single_mod=no
7659       if test -z "${LT_MULTI_MODULE}"; then
7660         # By default we will add the -single_module flag. You can override
7661         # by either setting the environment variable LT_MULTI_MODULE
7662         # non-empty at configure time, or by adding -multi_module to the
7663         # link flags.
7664         rm -rf libconftest.dylib*
7665         echo "int foo(void){return 1;}" > conftest.c
7666         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7667 -dynamiclib -Wl,-single_module conftest.c" >&5
7668         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7669           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7670         _lt_result=$?
7671         # If there is a non-empty error log, and "single_module"
7672         # appears in it, assume the flag caused a linker warning
7673         if test -s conftest.err && $GREP single_module conftest.err; then
7674           cat conftest.err >&5
7675         # Otherwise, if the output was created with a 0 exit code from
7676         # the compiler, it worked.
7677         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7678           lt_cv_apple_cc_single_mod=yes
7679         else
7680           cat conftest.err >&5
7681         fi
7682         rm -rf libconftest.dylib*
7683         rm -f conftest.*
7684       fi
7685 fi
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7687 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7688
7689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7690 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7691 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   lt_cv_ld_exported_symbols_list=no
7695       save_LDFLAGS=$LDFLAGS
7696       echo "_main" > conftest.sym
7697       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7698       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h.  */
7700
7701 int
7702 main ()
7703 {
7704
7705   ;
7706   return 0;
7707 }
7708 _ACEOF
7709 if ac_fn_c_try_link "$LINENO"; then :
7710   lt_cv_ld_exported_symbols_list=yes
7711 else
7712   lt_cv_ld_exported_symbols_list=no
7713 fi
7714 rm -f core conftest.err conftest.$ac_objext \
7715     conftest$ac_exeext conftest.$ac_ext
7716         LDFLAGS="$save_LDFLAGS"
7717
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7720 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7721
7722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7723 $as_echo_n "checking for -force_load linker flag... " >&6; }
7724 if ${lt_cv_ld_force_load+:} false; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   lt_cv_ld_force_load=no
7728       cat > conftest.c << _LT_EOF
7729 int forced_loaded() { return 2;}
7730 _LT_EOF
7731       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7732       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7733       echo "$AR cru libconftest.a conftest.o" >&5
7734       $AR cru libconftest.a conftest.o 2>&5
7735       echo "$RANLIB libconftest.a" >&5
7736       $RANLIB libconftest.a 2>&5
7737       cat > conftest.c << _LT_EOF
7738 int main() { return 0;}
7739 _LT_EOF
7740       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7741       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7742       _lt_result=$?
7743       if test -s conftest.err && $GREP force_load conftest.err; then
7744         cat conftest.err >&5
7745       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7746         lt_cv_ld_force_load=yes
7747       else
7748         cat conftest.err >&5
7749       fi
7750         rm -f conftest.err libconftest.a conftest conftest.c
7751         rm -rf conftest.dSYM
7752
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7755 $as_echo "$lt_cv_ld_force_load" >&6; }
7756     case $host_os in
7757     rhapsody* | darwin1.[012])
7758       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7759     darwin1.*)
7760       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7761     darwin*) # darwin 5.x on
7762       # if running on 10.5 or later, the deployment target defaults
7763       # to the OS version, if on x86, and 10.4, the deployment
7764       # target defaults to 10.4. Don't you love it?
7765       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7766         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7767           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7768         10.[012]*)
7769           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7770         10.*)
7771           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7772       esac
7773     ;;
7774   esac
7775     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7776       _lt_dar_single_mod='$single_module'
7777     fi
7778     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7779       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7780     else
7781       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7782     fi
7783     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7784       _lt_dsymutil='~$DSYMUTIL $lib || :'
7785     else
7786       _lt_dsymutil=
7787     fi
7788     ;;
7789   esac
7790
7791
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7793 $as_echo_n "checking for ANSI C header files... " >&6; }
7794 if ${ac_cv_header_stdc+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h.  */
7799 #include <stdlib.h>
7800 #include <stdarg.h>
7801 #include <string.h>
7802 #include <float.h>
7803
7804 int
7805 main ()
7806 {
7807
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 if ac_fn_c_try_compile "$LINENO"; then :
7813   ac_cv_header_stdc=yes
7814 else
7815   ac_cv_header_stdc=no
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818
7819 if test $ac_cv_header_stdc = yes; then
7820   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h.  */
7823 #include <string.h>
7824
7825 _ACEOF
7826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7827   $EGREP "memchr" >/dev/null 2>&1; then :
7828
7829 else
7830   ac_cv_header_stdc=no
7831 fi
7832 rm -f conftest*
7833
7834 fi
7835
7836 if test $ac_cv_header_stdc = yes; then
7837   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h.  */
7840 #include <stdlib.h>
7841
7842 _ACEOF
7843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7844   $EGREP "free" >/dev/null 2>&1; then :
7845
7846 else
7847   ac_cv_header_stdc=no
7848 fi
7849 rm -f conftest*
7850
7851 fi
7852
7853 if test $ac_cv_header_stdc = yes; then
7854   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7855   if test "$cross_compiling" = yes; then :
7856   :
7857 else
7858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h.  */
7860 #include <ctype.h>
7861 #include <stdlib.h>
7862 #if ((' ' & 0x0FF) == 0x020)
7863 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7864 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7865 #else
7866 # define ISLOWER(c) \
7867                    (('a' <= (c) && (c) <= 'i') \
7868                      || ('j' <= (c) && (c) <= 'r') \
7869                      || ('s' <= (c) && (c) <= 'z'))
7870 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7871 #endif
7872
7873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7874 int
7875 main ()
7876 {
7877   int i;
7878   for (i = 0; i < 256; i++)
7879     if (XOR (islower (i), ISLOWER (i))
7880         || toupper (i) != TOUPPER (i))
7881       return 2;
7882   return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_run "$LINENO"; then :
7886
7887 else
7888   ac_cv_header_stdc=no
7889 fi
7890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7891   conftest.$ac_objext conftest.beam conftest.$ac_ext
7892 fi
7893
7894 fi
7895 fi
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7897 $as_echo "$ac_cv_header_stdc" >&6; }
7898 if test $ac_cv_header_stdc = yes; then
7899
7900 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7901
7902 fi
7903
7904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7906                   inttypes.h stdint.h unistd.h
7907 do :
7908   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7909 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7910 "
7911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7912   cat >>confdefs.h <<_ACEOF
7913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 _ACEOF
7915
7916 fi
7917
7918 done
7919
7920
7921 for ac_header in dlfcn.h
7922 do :
7923   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7924 "
7925 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7926   cat >>confdefs.h <<_ACEOF
7927 #define HAVE_DLFCN_H 1
7928 _ACEOF
7929
7930 fi
7931
7932 done
7933
7934
7935
7936
7937
7938 # Set options
7939 enable_dlopen=yes
7940 enable_win32_dll=yes
7941
7942 case $host in
7943 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7944   if test -n "$ac_tool_prefix"; then
7945   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7946 set dummy ${ac_tool_prefix}as; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if ${ac_cv_prog_AS+:} false; then :
7950   $as_echo_n "(cached) " >&6
7951 else
7952   if test -n "$AS"; then
7953   ac_cv_prog_AS="$AS" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960     for ac_exec_ext in '' $ac_executable_extensions; do
7961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962     ac_cv_prog_AS="${ac_tool_prefix}as"
7963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967   done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 AS=$ac_cv_prog_AS
7973 if test -n "$AS"; then
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7975 $as_echo "$AS" >&6; }
7976 else
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981
7982 fi
7983 if test -z "$ac_cv_prog_AS"; then
7984   ac_ct_AS=$AS
7985   # Extract the first word of "as", so it can be a program name with args.
7986 set dummy as; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7990   $as_echo_n "(cached) " >&6
7991 else
7992   if test -n "$ac_ct_AS"; then
7993   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998   IFS=$as_save_IFS
7999   test -z "$as_dir" && as_dir=.
8000     for ac_exec_ext in '' $ac_executable_extensions; do
8001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002     ac_cv_prog_ac_ct_AS="as"
8003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004     break 2
8005   fi
8006 done
8007   done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8013 if test -n "$ac_ct_AS"; then
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8015 $as_echo "$ac_ct_AS" >&6; }
8016 else
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021   if test "x$ac_ct_AS" = x; then
8022     AS="false"
8023   else
8024     case $cross_compiling:$ac_tool_warned in
8025 yes:)
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8028 ac_tool_warned=yes ;;
8029 esac
8030     AS=$ac_ct_AS
8031   fi
8032 else
8033   AS="$ac_cv_prog_AS"
8034 fi
8035
8036   if test -n "$ac_tool_prefix"; then
8037   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8038 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if ${ac_cv_prog_DLLTOOL+:} false; then :
8042   $as_echo_n "(cached) " >&6
8043 else
8044   if test -n "$DLLTOOL"; then
8045   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050   IFS=$as_save_IFS
8051   test -z "$as_dir" && as_dir=.
8052     for ac_exec_ext in '' $ac_executable_extensions; do
8053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056     break 2
8057   fi
8058 done
8059   done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 DLLTOOL=$ac_cv_prog_DLLTOOL
8065 if test -n "$DLLTOOL"; then
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8067 $as_echo "$DLLTOOL" >&6; }
8068 else
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8071 fi
8072
8073
8074 fi
8075 if test -z "$ac_cv_prog_DLLTOOL"; then
8076   ac_ct_DLLTOOL=$DLLTOOL
8077   # Extract the first word of "dlltool", so it can be a program name with args.
8078 set dummy dlltool; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   if test -n "$ac_ct_DLLTOOL"; then
8085   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090   IFS=$as_save_IFS
8091   test -z "$as_dir" && as_dir=.
8092     for ac_exec_ext in '' $ac_executable_extensions; do
8093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096     break 2
8097   fi
8098 done
8099   done
8100 IFS=$as_save_IFS
8101
8102 fi
8103 fi
8104 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8105 if test -n "$ac_ct_DLLTOOL"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8107 $as_echo "$ac_ct_DLLTOOL" >&6; }
8108 else
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113   if test "x$ac_ct_DLLTOOL" = x; then
8114     DLLTOOL="false"
8115   else
8116     case $cross_compiling:$ac_tool_warned in
8117 yes:)
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120 ac_tool_warned=yes ;;
8121 esac
8122     DLLTOOL=$ac_ct_DLLTOOL
8123   fi
8124 else
8125   DLLTOOL="$ac_cv_prog_DLLTOOL"
8126 fi
8127
8128   if test -n "$ac_tool_prefix"; then
8129   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8130 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if ${ac_cv_prog_OBJDUMP+:} false; then :
8134   $as_echo_n "(cached) " >&6
8135 else
8136   if test -n "$OBJDUMP"; then
8137   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8141 do
8142   IFS=$as_save_IFS
8143   test -z "$as_dir" && as_dir=.
8144     for ac_exec_ext in '' $ac_executable_extensions; do
8145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148     break 2
8149   fi
8150 done
8151   done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 OBJDUMP=$ac_cv_prog_OBJDUMP
8157 if test -n "$OBJDUMP"; then
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8159 $as_echo "$OBJDUMP" >&6; }
8160 else
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8163 fi
8164
8165
8166 fi
8167 if test -z "$ac_cv_prog_OBJDUMP"; then
8168   ac_ct_OBJDUMP=$OBJDUMP
8169   # Extract the first word of "objdump", so it can be a program name with args.
8170 set dummy objdump; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   if test -n "$ac_ct_OBJDUMP"; then
8177   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182   IFS=$as_save_IFS
8183   test -z "$as_dir" && as_dir=.
8184     for ac_exec_ext in '' $ac_executable_extensions; do
8185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188     break 2
8189   fi
8190 done
8191   done
8192 IFS=$as_save_IFS
8193
8194 fi
8195 fi
8196 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8197 if test -n "$ac_ct_OBJDUMP"; then
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8199 $as_echo "$ac_ct_OBJDUMP" >&6; }
8200 else
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8203 fi
8204
8205   if test "x$ac_ct_OBJDUMP" = x; then
8206     OBJDUMP="false"
8207   else
8208     case $cross_compiling:$ac_tool_warned in
8209 yes:)
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8212 ac_tool_warned=yes ;;
8213 esac
8214     OBJDUMP=$ac_ct_OBJDUMP
8215   fi
8216 else
8217   OBJDUMP="$ac_cv_prog_OBJDUMP"
8218 fi
8219
8220   ;;
8221 esac
8222
8223 test -z "$AS" && AS=as
8224
8225
8226
8227
8228
8229 test -z "$DLLTOOL" && DLLTOOL=dlltool
8230
8231
8232
8233
8234
8235 test -z "$OBJDUMP" && OBJDUMP=objdump
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245             # Check whether --enable-shared was given.
8246 if test "${enable_shared+set}" = set; then :
8247   enableval=$enable_shared; p=${PACKAGE-default}
8248     case $enableval in
8249     yes) enable_shared=yes ;;
8250     no) enable_shared=no ;;
8251     *)
8252       enable_shared=no
8253       # Look at the argument we got.  We use all the common list separators.
8254       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8255       for pkg in $enableval; do
8256         IFS="$lt_save_ifs"
8257         if test "X$pkg" = "X$p"; then
8258           enable_shared=yes
8259         fi
8260       done
8261       IFS="$lt_save_ifs"
8262       ;;
8263     esac
8264 else
8265   enable_shared=yes
8266 fi
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276   # Check whether --enable-static was given.
8277 if test "${enable_static+set}" = set; then :
8278   enableval=$enable_static; p=${PACKAGE-default}
8279     case $enableval in
8280     yes) enable_static=yes ;;
8281     no) enable_static=no ;;
8282     *)
8283      enable_static=no
8284       # Look at the argument we got.  We use all the common list separators.
8285       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8286       for pkg in $enableval; do
8287         IFS="$lt_save_ifs"
8288         if test "X$pkg" = "X$p"; then
8289           enable_static=yes
8290         fi
8291       done
8292       IFS="$lt_save_ifs"
8293       ;;
8294     esac
8295 else
8296   enable_static=yes
8297 fi
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308 # Check whether --with-pic was given.
8309 if test "${with_pic+set}" = set; then :
8310   withval=$with_pic; lt_p=${PACKAGE-default}
8311     case $withval in
8312     yes|no) pic_mode=$withval ;;
8313     *)
8314       pic_mode=default
8315       # Look at the argument we got.  We use all the common list separators.
8316       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8317       for lt_pkg in $withval; do
8318         IFS="$lt_save_ifs"
8319         if test "X$lt_pkg" = "X$lt_p"; then
8320           pic_mode=yes
8321         fi
8322       done
8323       IFS="$lt_save_ifs"
8324       ;;
8325     esac
8326 else
8327   pic_mode=default
8328 fi
8329
8330
8331 test -z "$pic_mode" && pic_mode=default
8332
8333
8334
8335
8336
8337
8338
8339   # Check whether --enable-fast-install was given.
8340 if test "${enable_fast_install+set}" = set; then :
8341   enableval=$enable_fast_install; p=${PACKAGE-default}
8342     case $enableval in
8343     yes) enable_fast_install=yes ;;
8344     no) enable_fast_install=no ;;
8345     *)
8346       enable_fast_install=no
8347       # Look at the argument we got.  We use all the common list separators.
8348       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349       for pkg in $enableval; do
8350         IFS="$lt_save_ifs"
8351         if test "X$pkg" = "X$p"; then
8352           enable_fast_install=yes
8353         fi
8354       done
8355       IFS="$lt_save_ifs"
8356       ;;
8357     esac
8358 else
8359   enable_fast_install=yes
8360 fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 # This can be used to rebuild libtool when needed
8373 LIBTOOL_DEPS="$ltmain"
8374
8375 # Always use our own libtool.
8376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407 test -z "$LN_S" && LN_S="ln -s"
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422 if test -n "${ZSH_VERSION+set}" ; then
8423    setopt NO_GLOB_SUBST
8424 fi
8425
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8427 $as_echo_n "checking for objdir... " >&6; }
8428 if ${lt_cv_objdir+:} false; then :
8429   $as_echo_n "(cached) " >&6
8430 else
8431   rm -f .libs 2>/dev/null
8432 mkdir .libs 2>/dev/null
8433 if test -d .libs; then
8434   lt_cv_objdir=.libs
8435 else
8436   # MS-DOS does not allow filenames that begin with a dot.
8437   lt_cv_objdir=_libs
8438 fi
8439 rmdir .libs 2>/dev/null
8440 fi
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8442 $as_echo "$lt_cv_objdir" >&6; }
8443 objdir=$lt_cv_objdir
8444
8445
8446
8447
8448
8449 cat >>confdefs.h <<_ACEOF
8450 #define LT_OBJDIR "$lt_cv_objdir/"
8451 _ACEOF
8452
8453
8454
8455
8456 case $host_os in
8457 aix3*)
8458   # AIX sometimes has problems with the GCC collect2 program.  For some
8459   # reason, if we set the COLLECT_NAMES environment variable, the problems
8460   # vanish in a puff of smoke.
8461   if test "X${COLLECT_NAMES+set}" != Xset; then
8462     COLLECT_NAMES=
8463     export COLLECT_NAMES
8464   fi
8465   ;;
8466 esac
8467
8468 # Global variables:
8469 ofile=libtool
8470 can_build_shared=yes
8471
8472 # All known linkers require a `.a' archive for static linking (except MSVC,
8473 # which needs '.lib').
8474 libext=a
8475
8476 with_gnu_ld="$lt_cv_prog_gnu_ld"
8477
8478 old_CC="$CC"
8479 old_CFLAGS="$CFLAGS"
8480
8481 # Set sane defaults for various variables
8482 test -z "$CC" && CC=cc
8483 test -z "$LTCC" && LTCC=$CC
8484 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8485 test -z "$LD" && LD=ld
8486 test -z "$ac_objext" && ac_objext=o
8487
8488 for cc_temp in $compiler""; do
8489   case $cc_temp in
8490     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8491     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8492     \-*) ;;
8493     *) break;;
8494   esac
8495 done
8496 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8497
8498
8499 # Only perform the check for file, if the check method requires it
8500 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8501 case $deplibs_check_method in
8502 file_magic*)
8503   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8505 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8506 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8507   $as_echo_n "(cached) " >&6
8508 else
8509   case $MAGIC_CMD in
8510 [\\/*] |  ?:[\\/]*)
8511   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8512   ;;
8513 *)
8514   lt_save_MAGIC_CMD="$MAGIC_CMD"
8515   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8516   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8517   for ac_dir in $ac_dummy; do
8518     IFS="$lt_save_ifs"
8519     test -z "$ac_dir" && ac_dir=.
8520     if test -f $ac_dir/${ac_tool_prefix}file; then
8521       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8522       if test -n "$file_magic_test_file"; then
8523         case $deplibs_check_method in
8524         "file_magic "*)
8525           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8526           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8527           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8528             $EGREP "$file_magic_regex" > /dev/null; then
8529             :
8530           else
8531             cat <<_LT_EOF 1>&2
8532
8533 *** Warning: the command libtool uses to detect shared libraries,
8534 *** $file_magic_cmd, produces output that libtool cannot recognize.
8535 *** The result is that libtool may fail to recognize shared libraries
8536 *** as such.  This will affect the creation of libtool libraries that
8537 *** depend on shared libraries, but programs linked with such libtool
8538 *** libraries will work regardless of this problem.  Nevertheless, you
8539 *** may want to report the problem to your system manager and/or to
8540 *** bug-libtool@gnu.org
8541
8542 _LT_EOF
8543           fi ;;
8544         esac
8545       fi
8546       break
8547     fi
8548   done
8549   IFS="$lt_save_ifs"
8550   MAGIC_CMD="$lt_save_MAGIC_CMD"
8551   ;;
8552 esac
8553 fi
8554
8555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8556 if test -n "$MAGIC_CMD"; then
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8558 $as_echo "$MAGIC_CMD" >&6; }
8559 else
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8562 fi
8563
8564
8565
8566
8567
8568 if test -z "$lt_cv_path_MAGIC_CMD"; then
8569   if test -n "$ac_tool_prefix"; then
8570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8571 $as_echo_n "checking for file... " >&6; }
8572 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8573   $as_echo_n "(cached) " >&6
8574 else
8575   case $MAGIC_CMD in
8576 [\\/*] |  ?:[\\/]*)
8577   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8578   ;;
8579 *)
8580   lt_save_MAGIC_CMD="$MAGIC_CMD"
8581   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8582   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8583   for ac_dir in $ac_dummy; do
8584     IFS="$lt_save_ifs"
8585     test -z "$ac_dir" && ac_dir=.
8586     if test -f $ac_dir/file; then
8587       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8588       if test -n "$file_magic_test_file"; then
8589         case $deplibs_check_method in
8590         "file_magic "*)
8591           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8592           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8593           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8594             $EGREP "$file_magic_regex" > /dev/null; then
8595             :
8596           else
8597             cat <<_LT_EOF 1>&2
8598
8599 *** Warning: the command libtool uses to detect shared libraries,
8600 *** $file_magic_cmd, produces output that libtool cannot recognize.
8601 *** The result is that libtool may fail to recognize shared libraries
8602 *** as such.  This will affect the creation of libtool libraries that
8603 *** depend on shared libraries, but programs linked with such libtool
8604 *** libraries will work regardless of this problem.  Nevertheless, you
8605 *** may want to report the problem to your system manager and/or to
8606 *** bug-libtool@gnu.org
8607
8608 _LT_EOF
8609           fi ;;
8610         esac
8611       fi
8612       break
8613     fi
8614   done
8615   IFS="$lt_save_ifs"
8616   MAGIC_CMD="$lt_save_MAGIC_CMD"
8617   ;;
8618 esac
8619 fi
8620
8621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8622 if test -n "$MAGIC_CMD"; then
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8624 $as_echo "$MAGIC_CMD" >&6; }
8625 else
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631   else
8632     MAGIC_CMD=:
8633   fi
8634 fi
8635
8636   fi
8637   ;;
8638 esac
8639
8640 # Use C for the default configuration in the libtool script
8641
8642 lt_save_CC="$CC"
8643 ac_ext=c
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649
8650 # Source file extension for C test sources.
8651 ac_ext=c
8652
8653 # Object file extension for compiled C test sources.
8654 objext=o
8655 objext=$objext
8656
8657 # Code to be used in simple compile tests
8658 lt_simple_compile_test_code="int some_variable = 0;"
8659
8660 # Code to be used in simple link tests
8661 lt_simple_link_test_code='int main(){return(0);}'
8662
8663
8664
8665
8666
8667
8668
8669 # If no C compiler was specified, use CC.
8670 LTCC=${LTCC-"$CC"}
8671
8672 # If no C compiler flags were specified, use CFLAGS.
8673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8674
8675 # Allow CC to be a program name with arguments.
8676 compiler=$CC
8677
8678 # Save the default compiler, since it gets overwritten when the other
8679 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8680 compiler_DEFAULT=$CC
8681
8682 # save warnings/boilerplate of simple test code
8683 ac_outfile=conftest.$ac_objext
8684 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8686 _lt_compiler_boilerplate=`cat conftest.err`
8687 $RM conftest*
8688
8689 ac_outfile=conftest.$ac_objext
8690 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8692 _lt_linker_boilerplate=`cat conftest.err`
8693 $RM -r conftest*
8694
8695
8696 ## CAVEAT EMPTOR:
8697 ## There is no encapsulation within the following macros, do not change
8698 ## the running order or otherwise move them around unless you know exactly
8699 ## what you are doing...
8700 if test -n "$compiler"; then
8701
8702 lt_prog_compiler_no_builtin_flag=
8703
8704 if test "$GCC" = yes; then
8705   case $cc_basename in
8706   nvcc*)
8707     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8708   *)
8709     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8710   esac
8711
8712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8713 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8714 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8715   $as_echo_n "(cached) " >&6
8716 else
8717   lt_cv_prog_compiler_rtti_exceptions=no
8718    ac_outfile=conftest.$ac_objext
8719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8720    lt_compiler_flag="-fno-rtti -fno-exceptions"
8721    # Insert the option either (1) after the last *FLAGS variable, or
8722    # (2) before a word containing "conftest.", or (3) at the end.
8723    # Note that $ac_compile itself does not contain backslashes and begins
8724    # with a dollar sign (not a hyphen), so the echo should work correctly.
8725    # The option is referenced via a variable to avoid confusing sed.
8726    lt_compile=`echo "$ac_compile" | $SED \
8727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8729    -e 's:$: $lt_compiler_flag:'`
8730    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8731    (eval "$lt_compile" 2>conftest.err)
8732    ac_status=$?
8733    cat conftest.err >&5
8734    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735    if (exit $ac_status) && test -s "$ac_outfile"; then
8736      # The compiler can only warn and ignore the option if not recognized
8737      # So say no if there are warnings other than the usual output.
8738      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8741        lt_cv_prog_compiler_rtti_exceptions=yes
8742      fi
8743    fi
8744    $RM conftest*
8745
8746 fi
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8748 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8749
8750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8751     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8752 else
8753     :
8754 fi
8755
8756 fi
8757
8758
8759
8760
8761
8762
8763   lt_prog_compiler_wl=
8764 lt_prog_compiler_pic=
8765 lt_prog_compiler_static=
8766
8767
8768   if test "$GCC" = yes; then
8769     lt_prog_compiler_wl='-Wl,'
8770     lt_prog_compiler_static='-static'
8771
8772     case $host_os in
8773       aix*)
8774       # All AIX code is PIC.
8775       if test "$host_cpu" = ia64; then
8776         # AIX 5 now supports IA64 processor
8777         lt_prog_compiler_static='-Bstatic'
8778       fi
8779       ;;
8780
8781     amigaos*)
8782       case $host_cpu in
8783       powerpc)
8784             # see comment about AmigaOS4 .so support
8785             lt_prog_compiler_pic='-fPIC'
8786         ;;
8787       m68k)
8788             # FIXME: we need at least 68020 code to build shared libraries, but
8789             # adding the `-m68020' flag to GCC prevents building anything better,
8790             # like `-m68040'.
8791             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8792         ;;
8793       esac
8794       ;;
8795
8796     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8797       # PIC is the default for these OSes.
8798       ;;
8799
8800     mingw* | cygwin* | pw32* | os2* | cegcc*)
8801       # This hack is so that the source file can tell whether it is being
8802       # built for inclusion in a dll (and should export symbols for example).
8803       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8804       # (--disable-auto-import) libraries
8805       lt_prog_compiler_pic='-DDLL_EXPORT'
8806       ;;
8807
8808     darwin* | rhapsody*)
8809       # PIC is the default on this platform
8810       # Common symbols not allowed in MH_DYLIB files
8811       lt_prog_compiler_pic='-fno-common'
8812       ;;
8813
8814     haiku*)
8815       # PIC is the default for Haiku.
8816       # The "-static" flag exists, but is broken.
8817       lt_prog_compiler_static=
8818       ;;
8819
8820     hpux*)
8821       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8822       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8823       # sets the default TLS model and affects inlining.
8824       case $host_cpu in
8825       hppa*64*)
8826         # +Z the default
8827         ;;
8828       *)
8829         lt_prog_compiler_pic='-fPIC'
8830         ;;
8831       esac
8832       ;;
8833
8834     interix[3-9]*)
8835       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8836       # Instead, we relocate shared libraries at runtime.
8837       ;;
8838
8839     msdosdjgpp*)
8840       # Just because we use GCC doesn't mean we suddenly get shared libraries
8841       # on systems that don't support them.
8842       lt_prog_compiler_can_build_shared=no
8843       enable_shared=no
8844       ;;
8845
8846     *nto* | *qnx*)
8847       # QNX uses GNU C++, but need to define -shared option too, otherwise
8848       # it will coredump.
8849       lt_prog_compiler_pic='-fPIC -shared'
8850       ;;
8851
8852     sysv4*MP*)
8853       if test -d /usr/nec; then
8854         lt_prog_compiler_pic=-Kconform_pic
8855       fi
8856       ;;
8857
8858     *)
8859       lt_prog_compiler_pic='-fPIC'
8860       ;;
8861     esac
8862
8863     case $cc_basename in
8864     nvcc*) # Cuda Compiler Driver 2.2
8865       lt_prog_compiler_wl='-Xlinker '
8866       if test -n "$lt_prog_compiler_pic"; then
8867         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8868       fi
8869       ;;
8870     esac
8871   else
8872     # PORTME Check for flag to pass linker flags through the system compiler.
8873     case $host_os in
8874     aix*)
8875       lt_prog_compiler_wl='-Wl,'
8876       if test "$host_cpu" = ia64; then
8877         # AIX 5 now supports IA64 processor
8878         lt_prog_compiler_static='-Bstatic'
8879       else
8880         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8881       fi
8882       ;;
8883
8884     mingw* | cygwin* | pw32* | os2* | cegcc*)
8885       # This hack is so that the source file can tell whether it is being
8886       # built for inclusion in a dll (and should export symbols for example).
8887       lt_prog_compiler_pic='-DDLL_EXPORT'
8888       ;;
8889
8890     hpux9* | hpux10* | hpux11*)
8891       lt_prog_compiler_wl='-Wl,'
8892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8893       # not for PA HP-UX.
8894       case $host_cpu in
8895       hppa*64*|ia64*)
8896         # +Z the default
8897         ;;
8898       *)
8899         lt_prog_compiler_pic='+Z'
8900         ;;
8901       esac
8902       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8903       lt_prog_compiler_static='${wl}-a ${wl}archive'
8904       ;;
8905
8906     irix5* | irix6* | nonstopux*)
8907       lt_prog_compiler_wl='-Wl,'
8908       # PIC (with -KPIC) is the default.
8909       lt_prog_compiler_static='-non_shared'
8910       ;;
8911
8912     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8913       case $cc_basename in
8914       # old Intel for x86_64 which still supported -KPIC.
8915       ecc*)
8916         lt_prog_compiler_wl='-Wl,'
8917         lt_prog_compiler_pic='-KPIC'
8918         lt_prog_compiler_static='-static'
8919         ;;
8920       # icc used to be incompatible with GCC.
8921       # ICC 10 doesn't accept -KPIC any more.
8922       icc* | ifort*)
8923         lt_prog_compiler_wl='-Wl,'
8924         lt_prog_compiler_pic='-fPIC'
8925         lt_prog_compiler_static='-static'
8926         ;;
8927       # Lahey Fortran 8.1.
8928       lf95*)
8929         lt_prog_compiler_wl='-Wl,'
8930         lt_prog_compiler_pic='--shared'
8931         lt_prog_compiler_static='--static'
8932         ;;
8933       nagfor*)
8934         # NAG Fortran compiler
8935         lt_prog_compiler_wl='-Wl,-Wl,,'
8936         lt_prog_compiler_pic='-PIC'
8937         lt_prog_compiler_static='-Bstatic'
8938         ;;
8939       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8940         # Portland Group compilers (*not* the Pentium gcc compiler,
8941         # which looks to be a dead project)
8942         lt_prog_compiler_wl='-Wl,'
8943         lt_prog_compiler_pic='-fpic'
8944         lt_prog_compiler_static='-Bstatic'
8945         ;;
8946       ccc*)
8947         lt_prog_compiler_wl='-Wl,'
8948         # All Alpha code is PIC.
8949         lt_prog_compiler_static='-non_shared'
8950         ;;
8951       xl* | bgxl* | bgf* | mpixl*)
8952         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8953         lt_prog_compiler_wl='-Wl,'
8954         lt_prog_compiler_pic='-qpic'
8955         lt_prog_compiler_static='-qstaticlink'
8956         ;;
8957       *)
8958         case `$CC -V 2>&1 | sed 5q` in
8959         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8960           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8961           lt_prog_compiler_pic='-KPIC'
8962           lt_prog_compiler_static='-Bstatic'
8963           lt_prog_compiler_wl=''
8964           ;;
8965         *Sun\ F* | *Sun*Fortran*)
8966           lt_prog_compiler_pic='-KPIC'
8967           lt_prog_compiler_static='-Bstatic'
8968           lt_prog_compiler_wl='-Qoption ld '
8969           ;;
8970         *Sun\ C*)
8971           # Sun C 5.9
8972           lt_prog_compiler_pic='-KPIC'
8973           lt_prog_compiler_static='-Bstatic'
8974           lt_prog_compiler_wl='-Wl,'
8975           ;;
8976         *Intel*\ [CF]*Compiler*)
8977           lt_prog_compiler_wl='-Wl,'
8978           lt_prog_compiler_pic='-fPIC'
8979           lt_prog_compiler_static='-static'
8980           ;;
8981         *Portland\ Group*)
8982           lt_prog_compiler_wl='-Wl,'
8983           lt_prog_compiler_pic='-fpic'
8984           lt_prog_compiler_static='-Bstatic'
8985           ;;
8986         esac
8987         ;;
8988       esac
8989       ;;
8990
8991     newsos6)
8992       lt_prog_compiler_pic='-KPIC'
8993       lt_prog_compiler_static='-Bstatic'
8994       ;;
8995
8996     *nto* | *qnx*)
8997       # QNX uses GNU C++, but need to define -shared option too, otherwise
8998       # it will coredump.
8999       lt_prog_compiler_pic='-fPIC -shared'
9000       ;;
9001
9002     osf3* | osf4* | osf5*)
9003       lt_prog_compiler_wl='-Wl,'
9004       # All OSF/1 code is PIC.
9005       lt_prog_compiler_static='-non_shared'
9006       ;;
9007
9008     rdos*)
9009       lt_prog_compiler_static='-non_shared'
9010       ;;
9011
9012     solaris*)
9013       lt_prog_compiler_pic='-KPIC'
9014       lt_prog_compiler_static='-Bstatic'
9015       case $cc_basename in
9016       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9017         lt_prog_compiler_wl='-Qoption ld ';;
9018       *)
9019         lt_prog_compiler_wl='-Wl,';;
9020       esac
9021       ;;
9022
9023     sunos4*)
9024       lt_prog_compiler_wl='-Qoption ld '
9025       lt_prog_compiler_pic='-PIC'
9026       lt_prog_compiler_static='-Bstatic'
9027       ;;
9028
9029     sysv4 | sysv4.2uw2* | sysv4.3*)
9030       lt_prog_compiler_wl='-Wl,'
9031       lt_prog_compiler_pic='-KPIC'
9032       lt_prog_compiler_static='-Bstatic'
9033       ;;
9034
9035     sysv4*MP*)
9036       if test -d /usr/nec ;then
9037         lt_prog_compiler_pic='-Kconform_pic'
9038         lt_prog_compiler_static='-Bstatic'
9039       fi
9040       ;;
9041
9042     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9043       lt_prog_compiler_wl='-Wl,'
9044       lt_prog_compiler_pic='-KPIC'
9045       lt_prog_compiler_static='-Bstatic'
9046       ;;
9047
9048     unicos*)
9049       lt_prog_compiler_wl='-Wl,'
9050       lt_prog_compiler_can_build_shared=no
9051       ;;
9052
9053     uts4*)
9054       lt_prog_compiler_pic='-pic'
9055       lt_prog_compiler_static='-Bstatic'
9056       ;;
9057
9058     *)
9059       lt_prog_compiler_can_build_shared=no
9060       ;;
9061     esac
9062   fi
9063
9064 case $host_os in
9065   # For platforms which do not support PIC, -DPIC is meaningless:
9066   *djgpp*)
9067     lt_prog_compiler_pic=
9068     ;;
9069   *)
9070     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9071     ;;
9072 esac
9073
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9076 if ${lt_cv_prog_compiler_pic+:} false; then :
9077   $as_echo_n "(cached) " >&6
9078 else
9079   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9082 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9083 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9084
9085 #
9086 # Check to make sure the PIC flag actually works.
9087 #
9088 if test -n "$lt_prog_compiler_pic"; then
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9090 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9091 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9092   $as_echo_n "(cached) " >&6
9093 else
9094   lt_cv_prog_compiler_pic_works=no
9095    ac_outfile=conftest.$ac_objext
9096    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9098    # Insert the option either (1) after the last *FLAGS variable, or
9099    # (2) before a word containing "conftest.", or (3) at the end.
9100    # Note that $ac_compile itself does not contain backslashes and begins
9101    # with a dollar sign (not a hyphen), so the echo should work correctly.
9102    # The option is referenced via a variable to avoid confusing sed.
9103    lt_compile=`echo "$ac_compile" | $SED \
9104    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9105    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9106    -e 's:$: $lt_compiler_flag:'`
9107    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9108    (eval "$lt_compile" 2>conftest.err)
9109    ac_status=$?
9110    cat conftest.err >&5
9111    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112    if (exit $ac_status) && test -s "$ac_outfile"; then
9113      # The compiler can only warn and ignore the option if not recognized
9114      # So say no if there are warnings other than the usual output.
9115      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9116      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9117      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9118        lt_cv_prog_compiler_pic_works=yes
9119      fi
9120    fi
9121    $RM conftest*
9122
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9125 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9126
9127 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9128     case $lt_prog_compiler_pic in
9129      "" | " "*) ;;
9130      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9131      esac
9132 else
9133     lt_prog_compiler_pic=
9134      lt_prog_compiler_can_build_shared=no
9135 fi
9136
9137 fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149 #
9150 # Check to make sure the static flag actually works.
9151 #
9152 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9154 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9155 if ${lt_cv_prog_compiler_static_works+:} false; then :
9156   $as_echo_n "(cached) " >&6
9157 else
9158   lt_cv_prog_compiler_static_works=no
9159    save_LDFLAGS="$LDFLAGS"
9160    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9161    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9162    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9163      # The linker can only warn and ignore the option if not recognized
9164      # So say no if there are warnings
9165      if test -s conftest.err; then
9166        # Append any errors to the config.log.
9167        cat conftest.err 1>&5
9168        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9169        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9170        if diff conftest.exp conftest.er2 >/dev/null; then
9171          lt_cv_prog_compiler_static_works=yes
9172        fi
9173      else
9174        lt_cv_prog_compiler_static_works=yes
9175      fi
9176    fi
9177    $RM -r conftest*
9178    LDFLAGS="$save_LDFLAGS"
9179
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9182 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9183
9184 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9185     :
9186 else
9187     lt_prog_compiler_static=
9188 fi
9189
9190
9191
9192
9193
9194
9195
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9198 if ${lt_cv_prog_compiler_c_o+:} false; then :
9199   $as_echo_n "(cached) " >&6
9200 else
9201   lt_cv_prog_compiler_c_o=no
9202    $RM -r conftest 2>/dev/null
9203    mkdir conftest
9204    cd conftest
9205    mkdir out
9206    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9207
9208    lt_compiler_flag="-o out/conftest2.$ac_objext"
9209    # Insert the option either (1) after the last *FLAGS variable, or
9210    # (2) before a word containing "conftest.", or (3) at the end.
9211    # Note that $ac_compile itself does not contain backslashes and begins
9212    # with a dollar sign (not a hyphen), so the echo should work correctly.
9213    lt_compile=`echo "$ac_compile" | $SED \
9214    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9215    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9216    -e 's:$: $lt_compiler_flag:'`
9217    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9218    (eval "$lt_compile" 2>out/conftest.err)
9219    ac_status=$?
9220    cat out/conftest.err >&5
9221    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9223    then
9224      # The compiler can only warn and ignore the option if not recognized
9225      # So say no if there are warnings
9226      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9227      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9228      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9229        lt_cv_prog_compiler_c_o=yes
9230      fi
9231    fi
9232    chmod u+w . 2>&5
9233    $RM conftest*
9234    # SGI C++ compiler will create directory out/ii_files/ for
9235    # template instantiation
9236    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9237    $RM out/* && rmdir out
9238    cd ..
9239    $RM -r conftest
9240    $RM conftest*
9241
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9245
9246
9247
9248
9249
9250
9251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9253 if ${lt_cv_prog_compiler_c_o+:} false; then :
9254   $as_echo_n "(cached) " >&6
9255 else
9256   lt_cv_prog_compiler_c_o=no
9257    $RM -r conftest 2>/dev/null
9258    mkdir conftest
9259    cd conftest
9260    mkdir out
9261    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9262
9263    lt_compiler_flag="-o out/conftest2.$ac_objext"
9264    # Insert the option either (1) after the last *FLAGS variable, or
9265    # (2) before a word containing "conftest.", or (3) at the end.
9266    # Note that $ac_compile itself does not contain backslashes and begins
9267    # with a dollar sign (not a hyphen), so the echo should work correctly.
9268    lt_compile=`echo "$ac_compile" | $SED \
9269    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9270    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9271    -e 's:$: $lt_compiler_flag:'`
9272    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9273    (eval "$lt_compile" 2>out/conftest.err)
9274    ac_status=$?
9275    cat out/conftest.err >&5
9276    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9278    then
9279      # The compiler can only warn and ignore the option if not recognized
9280      # So say no if there are warnings
9281      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9282      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9283      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9284        lt_cv_prog_compiler_c_o=yes
9285      fi
9286    fi
9287    chmod u+w . 2>&5
9288    $RM conftest*
9289    # SGI C++ compiler will create directory out/ii_files/ for
9290    # template instantiation
9291    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9292    $RM out/* && rmdir out
9293    cd ..
9294    $RM -r conftest
9295    $RM conftest*
9296
9297 fi
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9299 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9300
9301
9302
9303
9304 hard_links="nottested"
9305 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9306   # do not overwrite the value of need_locks provided by the user
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9308 $as_echo_n "checking if we can lock with hard links... " >&6; }
9309   hard_links=yes
9310   $RM conftest*
9311   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9312   touch conftest.a
9313   ln conftest.a conftest.b 2>&5 || hard_links=no
9314   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9316 $as_echo "$hard_links" >&6; }
9317   if test "$hard_links" = no; then
9318     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9319 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9320     need_locks=warn
9321   fi
9322 else
9323   need_locks=no
9324 fi
9325
9326
9327
9328
9329
9330
9331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9332 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9333
9334   runpath_var=
9335   allow_undefined_flag=
9336   always_export_symbols=no
9337   archive_cmds=
9338   archive_expsym_cmds=
9339   compiler_needs_object=no
9340   enable_shared_with_static_runtimes=no
9341   export_dynamic_flag_spec=
9342   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9343   hardcode_automatic=no
9344   hardcode_direct=no
9345   hardcode_direct_absolute=no
9346   hardcode_libdir_flag_spec=
9347   hardcode_libdir_separator=
9348   hardcode_minus_L=no
9349   hardcode_shlibpath_var=unsupported
9350   inherit_rpath=no
9351   link_all_deplibs=unknown
9352   module_cmds=
9353   module_expsym_cmds=
9354   old_archive_from_new_cmds=
9355   old_archive_from_expsyms_cmds=
9356   thread_safe_flag_spec=
9357   whole_archive_flag_spec=
9358   # include_expsyms should be a list of space-separated symbols to be *always*
9359   # included in the symbol list
9360   include_expsyms=
9361   # exclude_expsyms can be an extended regexp of symbols to exclude
9362   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9363   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9364   # as well as any symbol that contains `d'.
9365   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9366   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9367   # platforms (ab)use it in PIC code, but their linkers get confused if
9368   # the symbol is explicitly referenced.  Since portable code cannot
9369   # rely on this symbol name, it's probably fine to never include it in
9370   # preloaded symbol tables.
9371   # Exclude shared library initialization/finalization symbols.
9372   extract_expsyms_cmds=
9373
9374   case $host_os in
9375   cygwin* | mingw* | pw32* | cegcc*)
9376     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9377     # When not using gcc, we currently assume that we are using
9378     # Microsoft Visual C++.
9379     if test "$GCC" != yes; then
9380       with_gnu_ld=no
9381     fi
9382     ;;
9383   interix*)
9384     # we just hope/assume this is gcc and not c89 (= MSVC++)
9385     with_gnu_ld=yes
9386     ;;
9387   openbsd*)
9388     with_gnu_ld=no
9389     ;;
9390   esac
9391
9392   ld_shlibs=yes
9393
9394   # On some targets, GNU ld is compatible enough with the native linker
9395   # that we're better off using the native interface for both.
9396   lt_use_gnu_ld_interface=no
9397   if test "$with_gnu_ld" = yes; then
9398     case $host_os in
9399       aix*)
9400         # The AIX port of GNU ld has always aspired to compatibility
9401         # with the native linker.  However, as the warning in the GNU ld
9402         # block says, versions before 2.19.5* couldn't really create working
9403         # shared libraries, regardless of the interface used.
9404         case `$LD -v 2>&1` in
9405           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9406           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9407           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9408           *)
9409             lt_use_gnu_ld_interface=yes
9410             ;;
9411         esac
9412         ;;
9413       *)
9414         lt_use_gnu_ld_interface=yes
9415         ;;
9416     esac
9417   fi
9418
9419   if test "$lt_use_gnu_ld_interface" = yes; then
9420     # If archive_cmds runs LD, not CC, wlarc should be empty
9421     wlarc='${wl}'
9422
9423     # Set some defaults for GNU ld with shared library support. These
9424     # are reset later if shared libraries are not supported. Putting them
9425     # here allows them to be overridden if necessary.
9426     runpath_var=LD_RUN_PATH
9427     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9428     export_dynamic_flag_spec='${wl}--export-dynamic'
9429     # ancient GNU ld didn't support --whole-archive et. al.
9430     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9431       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9432     else
9433       whole_archive_flag_spec=
9434     fi
9435     supports_anon_versioning=no
9436     case `$LD -v 2>&1` in
9437       *GNU\ gold*) supports_anon_versioning=yes ;;
9438       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9439       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9440       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9441       *\ 2.11.*) ;; # other 2.11 versions
9442       *) supports_anon_versioning=yes ;;
9443     esac
9444
9445     # See if GNU ld supports shared libraries.
9446     case $host_os in
9447     aix[3-9]*)
9448       # On AIX/PPC, the GNU linker is very broken
9449       if test "$host_cpu" != ia64; then
9450         ld_shlibs=no
9451         cat <<_LT_EOF 1>&2
9452
9453 *** Warning: the GNU linker, at least up to release 2.19, is reported
9454 *** to be unable to reliably create shared libraries on AIX.
9455 *** Therefore, libtool is disabling shared libraries support.  If you
9456 *** really care for shared libraries, you may want to install binutils
9457 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9458 *** You will then need to restart the configuration process.
9459
9460 _LT_EOF
9461       fi
9462       ;;
9463
9464     amigaos*)
9465       case $host_cpu in
9466       powerpc)
9467             # see comment about AmigaOS4 .so support
9468             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469             archive_expsym_cmds=''
9470         ;;
9471       m68k)
9472             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)'
9473             hardcode_libdir_flag_spec='-L$libdir'
9474             hardcode_minus_L=yes
9475         ;;
9476       esac
9477       ;;
9478
9479     beos*)
9480       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481         allow_undefined_flag=unsupported
9482         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9483         # support --undefined.  This deserves some investigation.  FIXME
9484         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485       else
9486         ld_shlibs=no
9487       fi
9488       ;;
9489
9490     cygwin* | mingw* | pw32* | cegcc*)
9491       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9492       # as there is no search path for DLLs.
9493       hardcode_libdir_flag_spec='-L$libdir'
9494       export_dynamic_flag_spec='${wl}--export-all-symbols'
9495       allow_undefined_flag=unsupported
9496       always_export_symbols=no
9497       enable_shared_with_static_runtimes=yes
9498       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9499       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9500
9501       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9502         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9503         # If the export-symbols file already is a .def file (1st line
9504         # is EXPORTS), use it as is; otherwise, prepend...
9505         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9506           cp $export_symbols $output_objdir/$soname.def;
9507         else
9508           echo EXPORTS > $output_objdir/$soname.def;
9509           cat $export_symbols >> $output_objdir/$soname.def;
9510         fi~
9511         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9512       else
9513         ld_shlibs=no
9514       fi
9515       ;;
9516
9517     haiku*)
9518       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519       link_all_deplibs=yes
9520       ;;
9521
9522     interix[3-9]*)
9523       hardcode_direct=no
9524       hardcode_shlibpath_var=no
9525       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526       export_dynamic_flag_spec='${wl}-E'
9527       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9528       # Instead, shared libraries are loaded at an image base (0x10000000 by
9529       # default) and relocated if they conflict, which is a slow very memory
9530       # consuming and fragmenting process.  To avoid this, we pick a random,
9531       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9532       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9533       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9534       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9535       ;;
9536
9537     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9538       tmp_diet=no
9539       if test "$host_os" = linux-dietlibc; then
9540         case $cc_basename in
9541           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9542         esac
9543       fi
9544       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9545          && test "$tmp_diet" = no
9546       then
9547         tmp_addflag=' $pic_flag'
9548         tmp_sharedflag='-shared'
9549         case $cc_basename,$host_cpu in
9550         pgcc*)                          # Portland Group C compiler
9551           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9552           tmp_addflag=' $pic_flag'
9553           ;;
9554         pgf77* | pgf90* | pgf95* | pgfortran*)
9555                                         # Portland Group f77 and f90 compilers
9556           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9557           tmp_addflag=' $pic_flag -Mnomain' ;;
9558         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9559           tmp_addflag=' -i_dynamic' ;;
9560         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9561           tmp_addflag=' -i_dynamic -nofor_main' ;;
9562         ifc* | ifort*)                  # Intel Fortran compiler
9563           tmp_addflag=' -nofor_main' ;;
9564         lf95*)                          # Lahey Fortran 8.1
9565           whole_archive_flag_spec=
9566           tmp_sharedflag='--shared' ;;
9567         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9568           tmp_sharedflag='-qmkshrobj'
9569           tmp_addflag= ;;
9570         nvcc*)  # Cuda Compiler Driver 2.2
9571           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9572           compiler_needs_object=yes
9573           ;;
9574         esac
9575         case `$CC -V 2>&1 | sed 5q` in
9576         *Sun\ C*)                       # Sun C 5.9
9577           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9578           compiler_needs_object=yes
9579           tmp_sharedflag='-G' ;;
9580         *Sun\ F*)                       # Sun Fortran 8.3
9581           tmp_sharedflag='-G' ;;
9582         esac
9583         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584
9585         if test "x$supports_anon_versioning" = xyes; then
9586           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9587             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9588             echo "local: *; };" >> $output_objdir/$libname.ver~
9589             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9590         fi
9591
9592         case $cc_basename in
9593         xlf* | bgf* | bgxlf* | mpixlf*)
9594           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9595           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9596           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9598           if test "x$supports_anon_versioning" = xyes; then
9599             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9600               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9601               echo "local: *; };" >> $output_objdir/$libname.ver~
9602               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9603           fi
9604           ;;
9605         esac
9606       else
9607         ld_shlibs=no
9608       fi
9609       ;;
9610
9611     netbsd*)
9612       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9613         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9614         wlarc=
9615       else
9616         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9617         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9618       fi
9619       ;;
9620
9621     solaris*)
9622       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9623         ld_shlibs=no
9624         cat <<_LT_EOF 1>&2
9625
9626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9627 *** create shared libraries on Solaris systems.  Therefore, libtool
9628 *** is disabling shared libraries support.  We urge you to upgrade GNU
9629 *** binutils to release 2.9.1 or newer.  Another option is to modify
9630 *** your PATH or compiler configuration so that the native linker is
9631 *** used, and then restart.
9632
9633 _LT_EOF
9634       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9635         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9636         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9637       else
9638         ld_shlibs=no
9639       fi
9640       ;;
9641
9642     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9643       case `$LD -v 2>&1` in
9644         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9645         ld_shlibs=no
9646         cat <<_LT_EOF 1>&2
9647
9648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9649 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9650 *** is disabling shared libraries support.  We urge you to upgrade GNU
9651 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9652 *** your PATH or compiler configuration so that the native linker is
9653 *** used, and then restart.
9654
9655 _LT_EOF
9656         ;;
9657         *)
9658           # For security reasons, it is highly recommended that you always
9659           # use absolute paths for naming shared libraries, and exclude the
9660           # DT_RUNPATH tag from executables and libraries.  But doing so
9661           # requires that you compile everything twice, which is a pain.
9662           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9663             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9664             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9665             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9666           else
9667             ld_shlibs=no
9668           fi
9669         ;;
9670       esac
9671       ;;
9672
9673     sunos4*)
9674       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9675       wlarc=
9676       hardcode_direct=yes
9677       hardcode_shlibpath_var=no
9678       ;;
9679
9680     *)
9681       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9682         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9684       else
9685         ld_shlibs=no
9686       fi
9687       ;;
9688     esac
9689
9690     if test "$ld_shlibs" = no; then
9691       runpath_var=
9692       hardcode_libdir_flag_spec=
9693       export_dynamic_flag_spec=
9694       whole_archive_flag_spec=
9695     fi
9696   else
9697     # PORTME fill in a description of your system's linker (not GNU ld)
9698     case $host_os in
9699     aix3*)
9700       allow_undefined_flag=unsupported
9701       always_export_symbols=yes
9702       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'
9703       # Note: this linker hardcodes the directories in LIBPATH if there
9704       # are no directories specified by -L.
9705       hardcode_minus_L=yes
9706       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9707         # Neither direct hardcoding nor static linking is supported with a
9708         # broken collect2.
9709         hardcode_direct=unsupported
9710       fi
9711       ;;
9712
9713     aix[4-9]*)
9714       if test "$host_cpu" = ia64; then
9715         # On IA64, the linker does run time linking by default, so we don't
9716         # have to do anything special.
9717         aix_use_runtimelinking=no
9718         exp_sym_flag='-Bexport'
9719         no_entry_flag=""
9720       else
9721         # If we're using GNU nm, then we don't want the "-C" option.
9722         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9723         # Also, AIX nm treats weak defined symbols like other global
9724         # defined symbols, whereas GNU nm marks them as "W".
9725         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9726           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9727         else
9728           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'
9729         fi
9730         aix_use_runtimelinking=no
9731
9732         # Test if we are trying to use run time linking or normal
9733         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9734         # need to do runtime linking.
9735         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9736           for ld_flag in $LDFLAGS; do
9737           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9738             aix_use_runtimelinking=yes
9739             break
9740           fi
9741           done
9742           ;;
9743         esac
9744
9745         exp_sym_flag='-bexport'
9746         no_entry_flag='-bnoentry'
9747       fi
9748
9749       # When large executables or shared objects are built, AIX ld can
9750       # have problems creating the table of contents.  If linking a library
9751       # or program results in "error TOC overflow" add -mminimal-toc to
9752       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9753       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9754
9755       archive_cmds=''
9756       hardcode_direct=yes
9757       hardcode_direct_absolute=yes
9758       hardcode_libdir_separator=':'
9759       link_all_deplibs=yes
9760       file_list_spec='${wl}-f,'
9761
9762       if test "$GCC" = yes; then
9763         case $host_os in aix4.[012]|aix4.[012].*)
9764         # We only want to do this on AIX 4.2 and lower, the check
9765         # below for broken collect2 doesn't work under 4.3+
9766           collect2name=`${CC} -print-prog-name=collect2`
9767           if test -f "$collect2name" &&
9768            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9769           then
9770           # We have reworked collect2
9771           :
9772           else
9773           # We have old collect2
9774           hardcode_direct=unsupported
9775           # It fails to find uninstalled libraries when the uninstalled
9776           # path is not listed in the libpath.  Setting hardcode_minus_L
9777           # to unsupported forces relinking
9778           hardcode_minus_L=yes
9779           hardcode_libdir_flag_spec='-L$libdir'
9780           hardcode_libdir_separator=
9781           fi
9782           ;;
9783         esac
9784         shared_flag='-shared'
9785         if test "$aix_use_runtimelinking" = yes; then
9786           shared_flag="$shared_flag "'${wl}-G'
9787         fi
9788       else
9789         # not using gcc
9790         if test "$host_cpu" = ia64; then
9791         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9792         # chokes on -Wl,-G. The following line is correct:
9793           shared_flag='-G'
9794         else
9795           if test "$aix_use_runtimelinking" = yes; then
9796             shared_flag='${wl}-G'
9797           else
9798             shared_flag='${wl}-bM:SRE'
9799           fi
9800         fi
9801       fi
9802
9803       export_dynamic_flag_spec='${wl}-bexpall'
9804       # It seems that -bexpall does not export symbols beginning with
9805       # underscore (_), so it is better to generate a list of symbols to export.
9806       always_export_symbols=yes
9807       if test "$aix_use_runtimelinking" = yes; then
9808         # Warning - without using the other runtime loading flags (-brtl),
9809         # -berok will link without error, but may produce a broken library.
9810         allow_undefined_flag='-berok'
9811         # Determine the default libpath from the value encoded in an
9812         # empty executable.
9813         if test "${lt_cv_aix_libpath+set}" = set; then
9814   aix_libpath=$lt_cv_aix_libpath
9815 else
9816   if ${lt_cv_aix_libpath_+:} false; then :
9817   $as_echo_n "(cached) " >&6
9818 else
9819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h.  */
9821
9822 int
9823 main ()
9824 {
9825
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 if ac_fn_c_try_link "$LINENO"; then :
9831
9832   lt_aix_libpath_sed='
9833       /Import File Strings/,/^$/ {
9834           /^0/ {
9835               s/^0  *\([^ ]*\) *$/\1/
9836               p
9837           }
9838       }'
9839   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9840   # Check for a 64-bit object if we didn't find anything.
9841   if test -z "$lt_cv_aix_libpath_"; then
9842     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9843   fi
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext \
9846     conftest$ac_exeext conftest.$ac_ext
9847   if test -z "$lt_cv_aix_libpath_"; then
9848     lt_cv_aix_libpath_="/usr/lib:/lib"
9849   fi
9850
9851 fi
9852
9853   aix_libpath=$lt_cv_aix_libpath_
9854 fi
9855
9856         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9857         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9858       else
9859         if test "$host_cpu" = ia64; then
9860           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9861           allow_undefined_flag="-z nodefs"
9862           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9863         else
9864          # Determine the default libpath from the value encoded in an
9865          # empty executable.
9866          if test "${lt_cv_aix_libpath+set}" = set; then
9867   aix_libpath=$lt_cv_aix_libpath
9868 else
9869   if ${lt_cv_aix_libpath_+:} false; then :
9870   $as_echo_n "(cached) " >&6
9871 else
9872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h.  */
9874
9875 int
9876 main ()
9877 {
9878
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 if ac_fn_c_try_link "$LINENO"; then :
9884
9885   lt_aix_libpath_sed='
9886       /Import File Strings/,/^$/ {
9887           /^0/ {
9888               s/^0  *\([^ ]*\) *$/\1/
9889               p
9890           }
9891       }'
9892   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9893   # Check for a 64-bit object if we didn't find anything.
9894   if test -z "$lt_cv_aix_libpath_"; then
9895     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9896   fi
9897 fi
9898 rm -f core conftest.err conftest.$ac_objext \
9899     conftest$ac_exeext conftest.$ac_ext
9900   if test -z "$lt_cv_aix_libpath_"; then
9901     lt_cv_aix_libpath_="/usr/lib:/lib"
9902   fi
9903
9904 fi
9905
9906   aix_libpath=$lt_cv_aix_libpath_
9907 fi
9908
9909          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9910           # Warning - without using the other run time loading flags,
9911           # -berok will link without error, but may produce a broken library.
9912           no_undefined_flag=' ${wl}-bernotok'
9913           allow_undefined_flag=' ${wl}-berok'
9914           if test "$with_gnu_ld" = yes; then
9915             # We only use this code for GNU lds that support --whole-archive.
9916             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9917           else
9918             # Exported symbols can be pulled into shared objects from archives
9919             whole_archive_flag_spec='$convenience'
9920           fi
9921           archive_cmds_need_lc=yes
9922           # This is similar to how AIX traditionally builds its shared libraries.
9923           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9924         fi
9925       fi
9926       ;;
9927
9928     amigaos*)
9929       case $host_cpu in
9930       powerpc)
9931             # see comment about AmigaOS4 .so support
9932             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9933             archive_expsym_cmds=''
9934         ;;
9935       m68k)
9936             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)'
9937             hardcode_libdir_flag_spec='-L$libdir'
9938             hardcode_minus_L=yes
9939         ;;
9940       esac
9941       ;;
9942
9943     bsdi[45]*)
9944       export_dynamic_flag_spec=-rdynamic
9945       ;;
9946
9947     cygwin* | mingw* | pw32* | cegcc*)
9948       # When not using gcc, we currently assume that we are using
9949       # Microsoft Visual C++.
9950       # hardcode_libdir_flag_spec is actually meaningless, as there is
9951       # no search path for DLLs.
9952       case $cc_basename in
9953       cl*)
9954         # Native MSVC
9955         hardcode_libdir_flag_spec=' '
9956         allow_undefined_flag=unsupported
9957         always_export_symbols=yes
9958         file_list_spec='@'
9959         # Tell ltmain to make .lib files, not .a files.
9960         libext=lib
9961         # Tell ltmain to make .dll files, not .so files.
9962         shrext_cmds=".dll"
9963         # FIXME: Setting linknames here is a bad hack.
9964         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9965         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9966             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9967           else
9968             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9969           fi~
9970           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9971           linknames='
9972         # The linker will not automatically build a static lib if we build a DLL.
9973         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9974         enable_shared_with_static_runtimes=yes
9975         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9976         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9977         # Don't use ranlib
9978         old_postinstall_cmds='chmod 644 $oldlib'
9979         postlink_cmds='lt_outputfile="@OUTPUT@"~
9980           lt_tool_outputfile="@TOOL_OUTPUT@"~
9981           case $lt_outputfile in
9982             *.exe|*.EXE) ;;
9983             *)
9984               lt_outputfile="$lt_outputfile.exe"
9985               lt_tool_outputfile="$lt_tool_outputfile.exe"
9986               ;;
9987           esac~
9988           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9989             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9990             $RM "$lt_outputfile.manifest";
9991           fi'
9992         ;;
9993       *)
9994         # Assume MSVC wrapper
9995         hardcode_libdir_flag_spec=' '
9996         allow_undefined_flag=unsupported
9997         # Tell ltmain to make .lib files, not .a files.
9998         libext=lib
9999         # Tell ltmain to make .dll files, not .so files.
10000         shrext_cmds=".dll"
10001         # FIXME: Setting linknames here is a bad hack.
10002         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10003         # The linker will automatically build a .lib file if we build a DLL.
10004         old_archive_from_new_cmds='true'
10005         # FIXME: Should let the user specify the lib program.
10006         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10007         enable_shared_with_static_runtimes=yes
10008         ;;
10009       esac
10010       ;;
10011
10012     darwin* | rhapsody*)
10013
10014
10015   archive_cmds_need_lc=no
10016   hardcode_direct=no
10017   hardcode_automatic=yes
10018   hardcode_shlibpath_var=unsupported
10019   if test "$lt_cv_ld_force_load" = "yes"; then
10020     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10021
10022   else
10023     whole_archive_flag_spec=''
10024   fi
10025   link_all_deplibs=yes
10026   allow_undefined_flag="$_lt_dar_allow_undefined"
10027   case $cc_basename in
10028      ifort*) _lt_dar_can_shared=yes ;;
10029      *) _lt_dar_can_shared=$GCC ;;
10030   esac
10031   if test "$_lt_dar_can_shared" = "yes"; then
10032     output_verbose_link_cmd=func_echo_all
10033     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10034     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10035     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10036     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10037
10038   else
10039   ld_shlibs=no
10040   fi
10041
10042       ;;
10043
10044     dgux*)
10045       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046       hardcode_libdir_flag_spec='-L$libdir'
10047       hardcode_shlibpath_var=no
10048       ;;
10049
10050     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10051     # support.  Future versions do this automatically, but an explicit c++rt0.o
10052     # does not break anything, and helps significantly (at the cost of a little
10053     # extra space).
10054     freebsd2.2*)
10055       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10056       hardcode_libdir_flag_spec='-R$libdir'
10057       hardcode_direct=yes
10058       hardcode_shlibpath_var=no
10059       ;;
10060
10061     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10062     freebsd2.*)
10063       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10064       hardcode_direct=yes
10065       hardcode_minus_L=yes
10066       hardcode_shlibpath_var=no
10067       ;;
10068
10069     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10070     freebsd* | dragonfly*)
10071       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10072       hardcode_libdir_flag_spec='-R$libdir'
10073       hardcode_direct=yes
10074       hardcode_shlibpath_var=no
10075       ;;
10076
10077     hpux9*)
10078       if test "$GCC" = yes; then
10079         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10080       else
10081         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'
10082       fi
10083       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10084       hardcode_libdir_separator=:
10085       hardcode_direct=yes
10086
10087       # hardcode_minus_L: Not really in the search PATH,
10088       # but as the default location of the library.
10089       hardcode_minus_L=yes
10090       export_dynamic_flag_spec='${wl}-E'
10091       ;;
10092
10093     hpux10*)
10094       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10095         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10096       else
10097         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10098       fi
10099       if test "$with_gnu_ld" = no; then
10100         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10101         hardcode_libdir_separator=:
10102         hardcode_direct=yes
10103         hardcode_direct_absolute=yes
10104         export_dynamic_flag_spec='${wl}-E'
10105         # hardcode_minus_L: Not really in the search PATH,
10106         # but as the default location of the library.
10107         hardcode_minus_L=yes
10108       fi
10109       ;;
10110
10111     hpux11*)
10112       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10113         case $host_cpu in
10114         hppa*64*)
10115           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10116           ;;
10117         ia64*)
10118           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10119           ;;
10120         *)
10121           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10122           ;;
10123         esac
10124       else
10125         case $host_cpu in
10126         hppa*64*)
10127           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10128           ;;
10129         ia64*)
10130           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10131           ;;
10132         *)
10133
10134           # Older versions of the 11.00 compiler do not understand -b yet
10135           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10136           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10137 $as_echo_n "checking if $CC understands -b... " >&6; }
10138 if ${lt_cv_prog_compiler__b+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   lt_cv_prog_compiler__b=no
10142    save_LDFLAGS="$LDFLAGS"
10143    LDFLAGS="$LDFLAGS -b"
10144    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10145    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10146      # The linker can only warn and ignore the option if not recognized
10147      # So say no if there are warnings
10148      if test -s conftest.err; then
10149        # Append any errors to the config.log.
10150        cat conftest.err 1>&5
10151        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10152        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10153        if diff conftest.exp conftest.er2 >/dev/null; then
10154          lt_cv_prog_compiler__b=yes
10155        fi
10156      else
10157        lt_cv_prog_compiler__b=yes
10158      fi
10159    fi
10160    $RM -r conftest*
10161    LDFLAGS="$save_LDFLAGS"
10162
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10165 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10166
10167 if test x"$lt_cv_prog_compiler__b" = xyes; then
10168     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10169 else
10170     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10171 fi
10172
10173           ;;
10174         esac
10175       fi
10176       if test "$with_gnu_ld" = no; then
10177         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10178         hardcode_libdir_separator=:
10179
10180         case $host_cpu in
10181         hppa*64*|ia64*)
10182           hardcode_direct=no
10183           hardcode_shlibpath_var=no
10184           ;;
10185         *)
10186           hardcode_direct=yes
10187           hardcode_direct_absolute=yes
10188           export_dynamic_flag_spec='${wl}-E'
10189
10190           # hardcode_minus_L: Not really in the search PATH,
10191           # but as the default location of the library.
10192           hardcode_minus_L=yes
10193           ;;
10194         esac
10195       fi
10196       ;;
10197
10198     irix5* | irix6* | nonstopux*)
10199       if test "$GCC" = yes; then
10200         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10201         # Try to use the -exported_symbol ld option, if it does not
10202         # work, assume that -exports_file does not work either and
10203         # implicitly export all symbols.
10204         # This should be the same for all languages, so no per-tag cache variable.
10205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10206 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10207 if ${lt_cv_irix_exported_symbol+:} false; then :
10208   $as_echo_n "(cached) " >&6
10209 else
10210   save_LDFLAGS="$LDFLAGS"
10211            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10212            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h.  */
10214 int foo (void) { return 0; }
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"; then :
10217   lt_cv_irix_exported_symbol=yes
10218 else
10219   lt_cv_irix_exported_symbol=no
10220 fi
10221 rm -f core conftest.err conftest.$ac_objext \
10222     conftest$ac_exeext conftest.$ac_ext
10223            LDFLAGS="$save_LDFLAGS"
10224 fi
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10226 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10227         if test "$lt_cv_irix_exported_symbol" = yes; then
10228           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10229         fi
10230       else
10231         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10232         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10233       fi
10234       archive_cmds_need_lc='no'
10235       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10236       hardcode_libdir_separator=:
10237       inherit_rpath=yes
10238       link_all_deplibs=yes
10239       ;;
10240
10241     netbsd*)
10242       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10243         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10244       else
10245         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10246       fi
10247       hardcode_libdir_flag_spec='-R$libdir'
10248       hardcode_direct=yes
10249       hardcode_shlibpath_var=no
10250       ;;
10251
10252     newsos6)
10253       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254       hardcode_direct=yes
10255       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10256       hardcode_libdir_separator=:
10257       hardcode_shlibpath_var=no
10258       ;;
10259
10260     *nto* | *qnx*)
10261       ;;
10262
10263     openbsd*)
10264       if test -f /usr/libexec/ld.so; then
10265         hardcode_direct=yes
10266         hardcode_shlibpath_var=no
10267         hardcode_direct_absolute=yes
10268         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10269           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10270           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10271           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10272           export_dynamic_flag_spec='${wl}-E'
10273         else
10274           case $host_os in
10275            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10276              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10277              hardcode_libdir_flag_spec='-R$libdir'
10278              ;;
10279            *)
10280              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10281              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10282              ;;
10283           esac
10284         fi
10285       else
10286         ld_shlibs=no
10287       fi
10288       ;;
10289
10290     os2*)
10291       hardcode_libdir_flag_spec='-L$libdir'
10292       hardcode_minus_L=yes
10293       allow_undefined_flag=unsupported
10294       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'
10295       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10296       ;;
10297
10298     osf3*)
10299       if test "$GCC" = yes; then
10300         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10301         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10302       else
10303         allow_undefined_flag=' -expect_unresolved \*'
10304         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10305       fi
10306       archive_cmds_need_lc='no'
10307       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10308       hardcode_libdir_separator=:
10309       ;;
10310
10311     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10312       if test "$GCC" = yes; then
10313         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10314         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10315         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10316       else
10317         allow_undefined_flag=' -expect_unresolved \*'
10318         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10319         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10320         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10321
10322         # Both c and cxx compiler support -rpath directly
10323         hardcode_libdir_flag_spec='-rpath $libdir'
10324       fi
10325       archive_cmds_need_lc='no'
10326       hardcode_libdir_separator=:
10327       ;;
10328
10329     solaris*)
10330       no_undefined_flag=' -z defs'
10331       if test "$GCC" = yes; then
10332         wlarc='${wl}'
10333         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10334         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10335           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10336       else
10337         case `$CC -V 2>&1` in
10338         *"Compilers 5.0"*)
10339           wlarc=''
10340           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10342           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10343           ;;
10344         *)
10345           wlarc='${wl}'
10346           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10347           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10348           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10349           ;;
10350         esac
10351       fi
10352       hardcode_libdir_flag_spec='-R$libdir'
10353       hardcode_shlibpath_var=no
10354       case $host_os in
10355       solaris2.[0-5] | solaris2.[0-5].*) ;;
10356       *)
10357         # The compiler driver will combine and reorder linker options,
10358         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10359         # but is careful enough not to reorder.
10360         # Supported since Solaris 2.6 (maybe 2.5.1?)
10361         if test "$GCC" = yes; then
10362           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10363         else
10364           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10365         fi
10366         ;;
10367       esac
10368       link_all_deplibs=yes
10369       ;;
10370
10371     sunos4*)
10372       if test "x$host_vendor" = xsequent; then
10373         # Use $CC to link under sequent, because it throws in some extra .o
10374         # files that make .init and .fini sections work.
10375         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10376       else
10377         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10378       fi
10379       hardcode_libdir_flag_spec='-L$libdir'
10380       hardcode_direct=yes
10381       hardcode_minus_L=yes
10382       hardcode_shlibpath_var=no
10383       ;;
10384
10385     sysv4)
10386       case $host_vendor in
10387         sni)
10388           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389           hardcode_direct=yes # is this really true???
10390         ;;
10391         siemens)
10392           ## LD is ld it makes a PLAMLIB
10393           ## CC just makes a GrossModule.
10394           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10395           reload_cmds='$CC -r -o $output$reload_objs'
10396           hardcode_direct=no
10397         ;;
10398         motorola)
10399           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10401         ;;
10402       esac
10403       runpath_var='LD_RUN_PATH'
10404       hardcode_shlibpath_var=no
10405       ;;
10406
10407     sysv4.3*)
10408       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409       hardcode_shlibpath_var=no
10410       export_dynamic_flag_spec='-Bexport'
10411       ;;
10412
10413     sysv4*MP*)
10414       if test -d /usr/nec; then
10415         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416         hardcode_shlibpath_var=no
10417         runpath_var=LD_RUN_PATH
10418         hardcode_runpath_var=yes
10419         ld_shlibs=yes
10420       fi
10421       ;;
10422
10423     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10424       no_undefined_flag='${wl}-z,text'
10425       archive_cmds_need_lc=no
10426       hardcode_shlibpath_var=no
10427       runpath_var='LD_RUN_PATH'
10428
10429       if test "$GCC" = yes; then
10430         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432       else
10433         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10434         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10435       fi
10436       ;;
10437
10438     sysv5* | sco3.2v5* | sco5v6*)
10439       # Note: We can NOT use -z defs as we might desire, because we do not
10440       # link with -lc, and that would cause any symbols used from libc to
10441       # always be unresolved, which means just about no library would
10442       # ever link correctly.  If we're not using GNU ld we use -z text
10443       # though, which does catch some bad symbols but isn't as heavy-handed
10444       # as -z defs.
10445       no_undefined_flag='${wl}-z,text'
10446       allow_undefined_flag='${wl}-z,nodefs'
10447       archive_cmds_need_lc=no
10448       hardcode_shlibpath_var=no
10449       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10450       hardcode_libdir_separator=':'
10451       link_all_deplibs=yes
10452       export_dynamic_flag_spec='${wl}-Bexport'
10453       runpath_var='LD_RUN_PATH'
10454
10455       if test "$GCC" = yes; then
10456         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458       else
10459         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10461       fi
10462       ;;
10463
10464     uts4*)
10465       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466       hardcode_libdir_flag_spec='-L$libdir'
10467       hardcode_shlibpath_var=no
10468       ;;
10469
10470     *)
10471       ld_shlibs=no
10472       ;;
10473     esac
10474
10475     if test x$host_vendor = xsni; then
10476       case $host in
10477       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10478         export_dynamic_flag_spec='${wl}-Blargedynsym'
10479         ;;
10480       esac
10481     fi
10482   fi
10483
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10485 $as_echo "$ld_shlibs" >&6; }
10486 test "$ld_shlibs" = no && can_build_shared=no
10487
10488 with_gnu_ld=$with_gnu_ld
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504 #
10505 # Do we need to explicitly link libc?
10506 #
10507 case "x$archive_cmds_need_lc" in
10508 x|xyes)
10509   # Assume -lc should be added
10510   archive_cmds_need_lc=yes
10511
10512   if test "$enable_shared" = yes && test "$GCC" = yes; then
10513     case $archive_cmds in
10514     *'~'*)
10515       # FIXME: we may have to deal with multi-command sequences.
10516       ;;
10517     '$CC '*)
10518       # Test whether the compiler implicitly links with -lc since on some
10519       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10520       # to ld, don't add -lc before -lgcc.
10521       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10522 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10523 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10524   $as_echo_n "(cached) " >&6
10525 else
10526   $RM conftest*
10527         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10528
10529         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10530   (eval $ac_compile) 2>&5
10531   ac_status=$?
10532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10533   test $ac_status = 0; } 2>conftest.err; then
10534           soname=conftest
10535           lib=conftest
10536           libobjs=conftest.$ac_objext
10537           deplibs=
10538           wl=$lt_prog_compiler_wl
10539           pic_flag=$lt_prog_compiler_pic
10540           compiler_flags=-v
10541           linker_flags=-v
10542           verstring=
10543           output_objdir=.
10544           libname=conftest
10545           lt_save_allow_undefined_flag=$allow_undefined_flag
10546           allow_undefined_flag=
10547           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10548   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10549   ac_status=$?
10550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10551   test $ac_status = 0; }
10552           then
10553             lt_cv_archive_cmds_need_lc=no
10554           else
10555             lt_cv_archive_cmds_need_lc=yes
10556           fi
10557           allow_undefined_flag=$lt_save_allow_undefined_flag
10558         else
10559           cat conftest.err 1>&5
10560         fi
10561         $RM conftest*
10562
10563 fi
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10565 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10566       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10567       ;;
10568     esac
10569   fi
10570   ;;
10571 esac
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10725 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10726
10727 if test "$GCC" = yes; then
10728   case $host_os in
10729     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10730     *) lt_awk_arg="/^libraries:/" ;;
10731   esac
10732   case $host_os in
10733     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10734     *) lt_sed_strip_eq="s,=/,/,g" ;;
10735   esac
10736   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10737   case $lt_search_path_spec in
10738   *\;*)
10739     # if the path contains ";" then we assume it to be the separator
10740     # otherwise default to the standard path separator (i.e. ":") - it is
10741     # assumed that no part of a normal pathname contains ";" but that should
10742     # okay in the real world where ";" in dirpaths is itself problematic.
10743     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10744     ;;
10745   *)
10746     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10747     ;;
10748   esac
10749   # Ok, now we have the path, separated by spaces, we can step through it
10750   # and add multilib dir if necessary.
10751   lt_tmp_lt_search_path_spec=
10752   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10753   for lt_sys_path in $lt_search_path_spec; do
10754     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10755       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10756     else
10757       test -d "$lt_sys_path" && \
10758         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10759     fi
10760   done
10761   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10762 BEGIN {RS=" "; FS="/|\n";} {
10763   lt_foo="";
10764   lt_count=0;
10765   for (lt_i = NF; lt_i > 0; lt_i--) {
10766     if ($lt_i != "" && $lt_i != ".") {
10767       if ($lt_i == "..") {
10768         lt_count++;
10769       } else {
10770         if (lt_count == 0) {
10771           lt_foo="/" $lt_i lt_foo;
10772         } else {
10773           lt_count--;
10774         }
10775       }
10776     }
10777   }
10778   if (lt_foo != "") { lt_freq[lt_foo]++; }
10779   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10780 }'`
10781   # AWK program above erroneously prepends '/' to C:/dos/paths
10782   # for these hosts.
10783   case $host_os in
10784     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10785       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10786   esac
10787   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10788 else
10789   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10790 fi
10791 library_names_spec=
10792 libname_spec='lib$name'
10793 soname_spec=
10794 shrext_cmds=".so"
10795 postinstall_cmds=
10796 postuninstall_cmds=
10797 finish_cmds=
10798 finish_eval=
10799 shlibpath_var=
10800 shlibpath_overrides_runpath=unknown
10801 version_type=none
10802 dynamic_linker="$host_os ld.so"
10803 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10804 need_lib_prefix=unknown
10805 hardcode_into_libs=no
10806
10807 # when you set need_version to no, make sure it does not cause -set_version
10808 # flags to be left without arguments
10809 need_version=unknown
10810
10811 case $host_os in
10812 aix3*)
10813   version_type=linux # correct to gnu/linux during the next big refactor
10814   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10815   shlibpath_var=LIBPATH
10816
10817   # AIX 3 has no versioning support, so we append a major version to the name.
10818   soname_spec='${libname}${release}${shared_ext}$major'
10819   ;;
10820
10821 aix[4-9]*)
10822   version_type=linux # correct to gnu/linux during the next big refactor
10823   need_lib_prefix=no
10824   need_version=no
10825   hardcode_into_libs=yes
10826   if test "$host_cpu" = ia64; then
10827     # AIX 5 supports IA64
10828     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10829     shlibpath_var=LD_LIBRARY_PATH
10830   else
10831     # With GCC up to 2.95.x, collect2 would create an import file
10832     # for dependence libraries.  The import file would start with
10833     # the line `#! .'.  This would cause the generated library to
10834     # depend on `.', always an invalid library.  This was fixed in
10835     # development snapshots of GCC prior to 3.0.
10836     case $host_os in
10837       aix4 | aix4.[01] | aix4.[01].*)
10838       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10839            echo ' yes '
10840            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10841         :
10842       else
10843         can_build_shared=no
10844       fi
10845       ;;
10846     esac
10847     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10848     # soname into executable. Probably we can add versioning support to
10849     # collect2, so additional links can be useful in future.
10850     if test "$aix_use_runtimelinking" = yes; then
10851       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10852       # instead of lib<name>.a to let people know that these are not
10853       # typical AIX shared libraries.
10854       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855     else
10856       # We preserve .a as extension for shared libraries through AIX4.2
10857       # and later when we are not doing run time linking.
10858       library_names_spec='${libname}${release}.a $libname.a'
10859       soname_spec='${libname}${release}${shared_ext}$major'
10860     fi
10861     shlibpath_var=LIBPATH
10862   fi
10863   ;;
10864
10865 amigaos*)
10866   case $host_cpu in
10867   powerpc)
10868     # Since July 2007 AmigaOS4 officially supports .so libraries.
10869     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10871     ;;
10872   m68k)
10873     library_names_spec='$libname.ixlibrary $libname.a'
10874     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10875     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10876     ;;
10877   esac
10878   ;;
10879
10880 beos*)
10881   library_names_spec='${libname}${shared_ext}'
10882   dynamic_linker="$host_os ld.so"
10883   shlibpath_var=LIBRARY_PATH
10884   ;;
10885
10886 bsdi[45]*)
10887   version_type=linux # correct to gnu/linux during the next big refactor
10888   need_version=no
10889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890   soname_spec='${libname}${release}${shared_ext}$major'
10891   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10892   shlibpath_var=LD_LIBRARY_PATH
10893   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10894   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10895   # the default ld.so.conf also contains /usr/contrib/lib and
10896   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10897   # libtool to hard-code these into programs
10898   ;;
10899
10900 cygwin* | mingw* | pw32* | cegcc*)
10901   version_type=windows
10902   shrext_cmds=".dll"
10903   need_version=no
10904   need_lib_prefix=no
10905
10906   case $GCC,$cc_basename in
10907   yes,*)
10908     # gcc
10909     library_names_spec='$libname.dll.a'
10910     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10911     postinstall_cmds='base_file=`basename \${file}`~
10912       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10913       dldir=$destdir/`dirname \$dlpath`~
10914       test -d \$dldir || mkdir -p \$dldir~
10915       $install_prog $dir/$dlname \$dldir/$dlname~
10916       chmod a+x \$dldir/$dlname~
10917       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10918         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10919       fi'
10920     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10921       dlpath=$dir/\$dldll~
10922        $RM \$dlpath'
10923     shlibpath_overrides_runpath=yes
10924
10925     case $host_os in
10926     cygwin*)
10927       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10928       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10929
10930       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10931       ;;
10932     mingw* | cegcc*)
10933       # MinGW DLLs use traditional 'lib' prefix
10934       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10935       ;;
10936     pw32*)
10937       # pw32 DLLs use 'pw' prefix rather than 'lib'
10938       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10939       ;;
10940     esac
10941     dynamic_linker='Win32 ld.exe'
10942     ;;
10943
10944   *,cl*)
10945     # Native MSVC
10946     libname_spec='$name'
10947     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10948     library_names_spec='${libname}.dll.lib'
10949
10950     case $build_os in
10951     mingw*)
10952       sys_lib_search_path_spec=
10953       lt_save_ifs=$IFS
10954       IFS=';'
10955       for lt_path in $LIB
10956       do
10957         IFS=$lt_save_ifs
10958         # Let DOS variable expansion print the short 8.3 style file name.
10959         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10960         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10961       done
10962       IFS=$lt_save_ifs
10963       # Convert to MSYS style.
10964       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10965       ;;
10966     cygwin*)
10967       # Convert to unix form, then to dos form, then back to unix form
10968       # but this time dos style (no spaces!) so that the unix form looks
10969       # like /cygdrive/c/PROGRA~1:/cygdr...
10970       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10971       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10972       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10973       ;;
10974     *)
10975       sys_lib_search_path_spec="$LIB"
10976       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10977         # It is most probably a Windows format PATH.
10978         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10979       else
10980         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10981       fi
10982       # FIXME: find the short name or the path components, as spaces are
10983       # common. (e.g. "Program Files" -> "PROGRA~1")
10984       ;;
10985     esac
10986
10987     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10988     postinstall_cmds='base_file=`basename \${file}`~
10989       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10990       dldir=$destdir/`dirname \$dlpath`~
10991       test -d \$dldir || mkdir -p \$dldir~
10992       $install_prog $dir/$dlname \$dldir/$dlname'
10993     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10994       dlpath=$dir/\$dldll~
10995        $RM \$dlpath'
10996     shlibpath_overrides_runpath=yes
10997     dynamic_linker='Win32 link.exe'
10998     ;;
10999
11000   *)
11001     # Assume MSVC wrapper
11002     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11003     dynamic_linker='Win32 ld.exe'
11004     ;;
11005   esac
11006   # FIXME: first we should search . and the directory the executable is in
11007   shlibpath_var=PATH
11008   ;;
11009
11010 darwin* | rhapsody*)
11011   dynamic_linker="$host_os dyld"
11012   version_type=darwin
11013   need_lib_prefix=no
11014   need_version=no
11015   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11016   soname_spec='${libname}${release}${major}$shared_ext'
11017   shlibpath_overrides_runpath=yes
11018   shlibpath_var=DYLD_LIBRARY_PATH
11019   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11020
11021   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11022   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11023   ;;
11024
11025 dgux*)
11026   version_type=linux # correct to gnu/linux during the next big refactor
11027   need_lib_prefix=no
11028   need_version=no
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11030   soname_spec='${libname}${release}${shared_ext}$major'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   ;;
11033
11034 freebsd* | dragonfly*)
11035   # DragonFly does not have aout.  When/if they implement a new
11036   # versioning mechanism, adjust this.
11037   if test -x /usr/bin/objformat; then
11038     objformat=`/usr/bin/objformat`
11039   else
11040     case $host_os in
11041     freebsd[23].*) objformat=aout ;;
11042     *) objformat=elf ;;
11043     esac
11044   fi
11045   version_type=freebsd-$objformat
11046   case $version_type in
11047     freebsd-elf*)
11048       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11049       need_version=no
11050       need_lib_prefix=no
11051       ;;
11052     freebsd-*)
11053       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11054       need_version=yes
11055       ;;
11056   esac
11057   shlibpath_var=LD_LIBRARY_PATH
11058   case $host_os in
11059   freebsd2.*)
11060     shlibpath_overrides_runpath=yes
11061     ;;
11062   freebsd3.[01]* | freebsdelf3.[01]*)
11063     shlibpath_overrides_runpath=yes
11064     hardcode_into_libs=yes
11065     ;;
11066   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11067   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11068     shlibpath_overrides_runpath=no
11069     hardcode_into_libs=yes
11070     ;;
11071   *) # from 4.6 on, and DragonFly
11072     shlibpath_overrides_runpath=yes
11073     hardcode_into_libs=yes
11074     ;;
11075   esac
11076   ;;
11077
11078 gnu*)
11079   version_type=linux # correct to gnu/linux during the next big refactor
11080   need_lib_prefix=no
11081   need_version=no
11082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11083   soname_spec='${libname}${release}${shared_ext}$major'
11084   shlibpath_var=LD_LIBRARY_PATH
11085   shlibpath_overrides_runpath=no
11086   hardcode_into_libs=yes
11087   ;;
11088
11089 haiku*)
11090   version_type=linux # correct to gnu/linux during the next big refactor
11091   need_lib_prefix=no
11092   need_version=no
11093   dynamic_linker="$host_os runtime_loader"
11094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11095   soname_spec='${libname}${release}${shared_ext}$major'
11096   shlibpath_var=LIBRARY_PATH
11097   shlibpath_overrides_runpath=yes
11098   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11099   hardcode_into_libs=yes
11100   ;;
11101
11102 hpux9* | hpux10* | hpux11*)
11103   # Give a soname corresponding to the major version so that dld.sl refuses to
11104   # link against other versions.
11105   version_type=sunos
11106   need_lib_prefix=no
11107   need_version=no
11108   case $host_cpu in
11109   ia64*)
11110     shrext_cmds='.so'
11111     hardcode_into_libs=yes
11112     dynamic_linker="$host_os dld.so"
11113     shlibpath_var=LD_LIBRARY_PATH
11114     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116     soname_spec='${libname}${release}${shared_ext}$major'
11117     if test "X$HPUX_IA64_MODE" = X32; then
11118       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11119     else
11120       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11121     fi
11122     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11123     ;;
11124   hppa*64*)
11125     shrext_cmds='.sl'
11126     hardcode_into_libs=yes
11127     dynamic_linker="$host_os dld.sl"
11128     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11129     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131     soname_spec='${libname}${release}${shared_ext}$major'
11132     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11133     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11134     ;;
11135   *)
11136     shrext_cmds='.sl'
11137     dynamic_linker="$host_os dld.sl"
11138     shlibpath_var=SHLIB_PATH
11139     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141     soname_spec='${libname}${release}${shared_ext}$major'
11142     ;;
11143   esac
11144   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11145   postinstall_cmds='chmod 555 $lib'
11146   # or fails outright, so override atomically:
11147   install_override_mode=555
11148   ;;
11149
11150 interix[3-9]*)
11151   version_type=linux # correct to gnu/linux during the next big refactor
11152   need_lib_prefix=no
11153   need_version=no
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11155   soname_spec='${libname}${release}${shared_ext}$major'
11156   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11157   shlibpath_var=LD_LIBRARY_PATH
11158   shlibpath_overrides_runpath=no
11159   hardcode_into_libs=yes
11160   ;;
11161
11162 irix5* | irix6* | nonstopux*)
11163   case $host_os in
11164     nonstopux*) version_type=nonstopux ;;
11165     *)
11166         if test "$lt_cv_prog_gnu_ld" = yes; then
11167                 version_type=linux # correct to gnu/linux during the next big refactor
11168         else
11169                 version_type=irix
11170         fi ;;
11171   esac
11172   need_lib_prefix=no
11173   need_version=no
11174   soname_spec='${libname}${release}${shared_ext}$major'
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11176   case $host_os in
11177   irix5* | nonstopux*)
11178     libsuff= shlibsuff=
11179     ;;
11180   *)
11181     case $LD in # libtool.m4 will add one of these switches to LD
11182     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11183       libsuff= shlibsuff= libmagic=32-bit;;
11184     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11185       libsuff=32 shlibsuff=N32 libmagic=N32;;
11186     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11187       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11188     *) libsuff= shlibsuff= libmagic=never-match;;
11189     esac
11190     ;;
11191   esac
11192   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11193   shlibpath_overrides_runpath=no
11194   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11195   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11196   hardcode_into_libs=yes
11197   ;;
11198
11199 # No shared lib support for Linux oldld, aout, or coff.
11200 linux*oldld* | linux*aout* | linux*coff*)
11201   dynamic_linker=no
11202   ;;
11203
11204 # This must be glibc/ELF.
11205 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11206   version_type=linux # correct to gnu/linux during the next big refactor
11207   need_lib_prefix=no
11208   need_version=no
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210   soname_spec='${libname}${release}${shared_ext}$major'
11211   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11212   shlibpath_var=LD_LIBRARY_PATH
11213   shlibpath_overrides_runpath=no
11214
11215   # Some binutils ld are patched to set DT_RUNPATH
11216   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11217   $as_echo_n "(cached) " >&6
11218 else
11219   lt_cv_shlibpath_overrides_runpath=no
11220     save_LDFLAGS=$LDFLAGS
11221     save_libdir=$libdir
11222     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11223          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h.  */
11226
11227 int
11228 main ()
11229 {
11230
11231   ;
11232   return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11237   lt_cv_shlibpath_overrides_runpath=yes
11238 fi
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext \
11241     conftest$ac_exeext conftest.$ac_ext
11242     LDFLAGS=$save_LDFLAGS
11243     libdir=$save_libdir
11244
11245 fi
11246
11247   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11248
11249   # This implies no fast_install, which is unacceptable.
11250   # Some rework will be needed to allow for fast_install
11251   # before this can be enabled.
11252   hardcode_into_libs=yes
11253
11254   # Append ld.so.conf contents to the search path
11255   if test -f /etc/ld.so.conf; then
11256     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11257     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11258   fi
11259
11260   # We used to test for /lib/ld.so.1 and disable shared libraries on
11261   # powerpc, because MkLinux only supported shared libraries with the
11262   # GNU dynamic linker.  Since this was broken with cross compilers,
11263   # most powerpc-linux boxes support dynamic linking these days and
11264   # people can always --disable-shared, the test was removed, and we
11265   # assume the GNU/Linux dynamic linker is in use.
11266   dynamic_linker='GNU/Linux ld.so'
11267   ;;
11268
11269 netbsd*)
11270   version_type=sunos
11271   need_lib_prefix=no
11272   need_version=no
11273   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11275     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11276     dynamic_linker='NetBSD (a.out) ld.so'
11277   else
11278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11279     soname_spec='${libname}${release}${shared_ext}$major'
11280     dynamic_linker='NetBSD ld.elf_so'
11281   fi
11282   shlibpath_var=LD_LIBRARY_PATH
11283   shlibpath_overrides_runpath=yes
11284   hardcode_into_libs=yes
11285   ;;
11286
11287 newsos6)
11288   version_type=linux # correct to gnu/linux during the next big refactor
11289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290   shlibpath_var=LD_LIBRARY_PATH
11291   shlibpath_overrides_runpath=yes
11292   ;;
11293
11294 *nto* | *qnx*)
11295   version_type=qnx
11296   need_lib_prefix=no
11297   need_version=no
11298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299   soname_spec='${libname}${release}${shared_ext}$major'
11300   shlibpath_var=LD_LIBRARY_PATH
11301   shlibpath_overrides_runpath=no
11302   hardcode_into_libs=yes
11303   dynamic_linker='ldqnx.so'
11304   ;;
11305
11306 openbsd*)
11307   version_type=sunos
11308   sys_lib_dlsearch_path_spec="/usr/lib"
11309   need_lib_prefix=no
11310   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11311   case $host_os in
11312     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11313     *)                          need_version=no  ;;
11314   esac
11315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11317   shlibpath_var=LD_LIBRARY_PATH
11318   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11319     case $host_os in
11320       openbsd2.[89] | openbsd2.[89].*)
11321         shlibpath_overrides_runpath=no
11322         ;;
11323       *)
11324         shlibpath_overrides_runpath=yes
11325         ;;
11326       esac
11327   else
11328     shlibpath_overrides_runpath=yes
11329   fi
11330   ;;
11331
11332 os2*)
11333   libname_spec='$name'
11334   shrext_cmds=".dll"
11335   need_lib_prefix=no
11336   library_names_spec='$libname${shared_ext} $libname.a'
11337   dynamic_linker='OS/2 ld.exe'
11338   shlibpath_var=LIBPATH
11339   ;;
11340
11341 osf3* | osf4* | osf5*)
11342   version_type=osf
11343   need_lib_prefix=no
11344   need_version=no
11345   soname_spec='${libname}${release}${shared_ext}$major'
11346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347   shlibpath_var=LD_LIBRARY_PATH
11348   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11349   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11350   ;;
11351
11352 rdos*)
11353   dynamic_linker=no
11354   ;;
11355
11356 solaris*)
11357   version_type=linux # correct to gnu/linux during the next big refactor
11358   need_lib_prefix=no
11359   need_version=no
11360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361   soname_spec='${libname}${release}${shared_ext}$major'
11362   shlibpath_var=LD_LIBRARY_PATH
11363   shlibpath_overrides_runpath=yes
11364   hardcode_into_libs=yes
11365   # ldd complains unless libraries are executable
11366   postinstall_cmds='chmod +x $lib'
11367   ;;
11368
11369 sunos4*)
11370   version_type=sunos
11371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11372   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11373   shlibpath_var=LD_LIBRARY_PATH
11374   shlibpath_overrides_runpath=yes
11375   if test "$with_gnu_ld" = yes; then
11376     need_lib_prefix=no
11377   fi
11378   need_version=yes
11379   ;;
11380
11381 sysv4 | sysv4.3*)
11382   version_type=linux # correct to gnu/linux during the next big refactor
11383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384   soname_spec='${libname}${release}${shared_ext}$major'
11385   shlibpath_var=LD_LIBRARY_PATH
11386   case $host_vendor in
11387     sni)
11388       shlibpath_overrides_runpath=no
11389       need_lib_prefix=no
11390       runpath_var=LD_RUN_PATH
11391       ;;
11392     siemens)
11393       need_lib_prefix=no
11394       ;;
11395     motorola)
11396       need_lib_prefix=no
11397       need_version=no
11398       shlibpath_overrides_runpath=no
11399       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11400       ;;
11401   esac
11402   ;;
11403
11404 sysv4*MP*)
11405   if test -d /usr/nec ;then
11406     version_type=linux # correct to gnu/linux during the next big refactor
11407     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11408     soname_spec='$libname${shared_ext}.$major'
11409     shlibpath_var=LD_LIBRARY_PATH
11410   fi
11411   ;;
11412
11413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11414   version_type=freebsd-elf
11415   need_lib_prefix=no
11416   need_version=no
11417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11418   soname_spec='${libname}${release}${shared_ext}$major'
11419   shlibpath_var=LD_LIBRARY_PATH
11420   shlibpath_overrides_runpath=yes
11421   hardcode_into_libs=yes
11422   if test "$with_gnu_ld" = yes; then
11423     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11424   else
11425     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11426     case $host_os in
11427       sco3.2v5*)
11428         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11429         ;;
11430     esac
11431   fi
11432   sys_lib_dlsearch_path_spec='/usr/lib'
11433   ;;
11434
11435 tpf*)
11436   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11437   version_type=linux # correct to gnu/linux during the next big refactor
11438   need_lib_prefix=no
11439   need_version=no
11440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441   shlibpath_var=LD_LIBRARY_PATH
11442   shlibpath_overrides_runpath=no
11443   hardcode_into_libs=yes
11444   ;;
11445
11446 uts4*)
11447   version_type=linux # correct to gnu/linux during the next big refactor
11448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449   soname_spec='${libname}${release}${shared_ext}$major'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   ;;
11452
11453 *)
11454   dynamic_linker=no
11455   ;;
11456 esac
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11458 $as_echo "$dynamic_linker" >&6; }
11459 test "$dynamic_linker" = no && can_build_shared=no
11460
11461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11462 if test "$GCC" = yes; then
11463   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11464 fi
11465
11466 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11467   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11468 fi
11469 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11470   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11471 fi
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11565 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11566 hardcode_action=
11567 if test -n "$hardcode_libdir_flag_spec" ||
11568    test -n "$runpath_var" ||
11569    test "X$hardcode_automatic" = "Xyes" ; then
11570
11571   # We can hardcode non-existent directories.
11572   if test "$hardcode_direct" != no &&
11573      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11574      # have to relink, otherwise we might link with an installed library
11575      # when we should be linking with a yet-to-be-installed one
11576      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11577      test "$hardcode_minus_L" != no; then
11578     # Linking always hardcodes the temporary library directory.
11579     hardcode_action=relink
11580   else
11581     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11582     hardcode_action=immediate
11583   fi
11584 else
11585   # We cannot hardcode anything, or else we can only hardcode existing
11586   # directories.
11587   hardcode_action=unsupported
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11590 $as_echo "$hardcode_action" >&6; }
11591
11592 if test "$hardcode_action" = relink ||
11593    test "$inherit_rpath" = yes; then
11594   # Fast installation is not supported
11595   enable_fast_install=no
11596 elif test "$shlibpath_overrides_runpath" = yes ||
11597      test "$enable_shared" = no; then
11598   # Fast installation is not necessary
11599   enable_fast_install=needless
11600 fi
11601
11602
11603
11604
11605
11606
11607   if test "x$enable_dlopen" != xyes; then
11608   enable_dlopen=unknown
11609   enable_dlopen_self=unknown
11610   enable_dlopen_self_static=unknown
11611 else
11612   lt_cv_dlopen=no
11613   lt_cv_dlopen_libs=
11614
11615   case $host_os in
11616   beos*)
11617     lt_cv_dlopen="load_add_on"
11618     lt_cv_dlopen_libs=
11619     lt_cv_dlopen_self=yes
11620     ;;
11621
11622   mingw* | pw32* | cegcc*)
11623     lt_cv_dlopen="LoadLibrary"
11624     lt_cv_dlopen_libs=
11625     ;;
11626
11627   cygwin*)
11628     lt_cv_dlopen="dlopen"
11629     lt_cv_dlopen_libs=
11630     ;;
11631
11632   darwin*)
11633   # if libdl is installed we need to link against it
11634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11635 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11636 if ${ac_cv_lib_dl_dlopen+:} false; then :
11637   $as_echo_n "(cached) " >&6
11638 else
11639   ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-ldl  $LIBS"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h.  */
11643
11644 /* Override any GCC internal prototype to avoid an error.
11645    Use char because int might match the return type of a GCC
11646    builtin and then its argument prototype would still apply.  */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 char dlopen ();
11651 int
11652 main ()
11653 {
11654 return dlopen ();
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660   ac_cv_lib_dl_dlopen=yes
11661 else
11662   ac_cv_lib_dl_dlopen=no
11663 fi
11664 rm -f core conftest.err conftest.$ac_objext \
11665     conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_lib_save_LIBS
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11669 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11670 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11671   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11672 else
11673
11674     lt_cv_dlopen="dyld"
11675     lt_cv_dlopen_libs=
11676     lt_cv_dlopen_self=yes
11677
11678 fi
11679
11680     ;;
11681
11682   *)
11683     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11684 if test "x$ac_cv_func_shl_load" = xyes; then :
11685   lt_cv_dlopen="shl_load"
11686 else
11687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11688 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11689 if ${ac_cv_lib_dld_shl_load+:} false; then :
11690   $as_echo_n "(cached) " >&6
11691 else
11692   ac_check_lib_save_LIBS=$LIBS
11693 LIBS="-ldld  $LIBS"
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h.  */
11696
11697 /* Override any GCC internal prototype to avoid an error.
11698    Use char because int might match the return type of a GCC
11699    builtin and then its argument prototype would still apply.  */
11700 #ifdef __cplusplus
11701 extern "C"
11702 #endif
11703 char shl_load ();
11704 int
11705 main ()
11706 {
11707 return shl_load ();
11708   ;
11709   return 0;
11710 }
11711 _ACEOF
11712 if ac_fn_c_try_link "$LINENO"; then :
11713   ac_cv_lib_dld_shl_load=yes
11714 else
11715   ac_cv_lib_dld_shl_load=no
11716 fi
11717 rm -f core conftest.err conftest.$ac_objext \
11718     conftest$ac_exeext conftest.$ac_ext
11719 LIBS=$ac_check_lib_save_LIBS
11720 fi
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11722 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11723 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11724   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11725 else
11726   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11727 if test "x$ac_cv_func_dlopen" = xyes; then :
11728   lt_cv_dlopen="dlopen"
11729 else
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11731 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11732 if ${ac_cv_lib_dl_dlopen+:} false; then :
11733   $as_echo_n "(cached) " >&6
11734 else
11735   ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-ldl  $LIBS"
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h.  */
11739
11740 /* Override any GCC internal prototype to avoid an error.
11741    Use char because int might match the return type of a GCC
11742    builtin and then its argument prototype would still apply.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char dlopen ();
11747 int
11748 main ()
11749 {
11750 return dlopen ();
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_link "$LINENO"; then :
11756   ac_cv_lib_dl_dlopen=yes
11757 else
11758   ac_cv_lib_dl_dlopen=no
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext \
11761     conftest$ac_exeext conftest.$ac_ext
11762 LIBS=$ac_check_lib_save_LIBS
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11765 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11766 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11767   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11768 else
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11770 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11771 if ${ac_cv_lib_svld_dlopen+:} false; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   ac_check_lib_save_LIBS=$LIBS
11775 LIBS="-lsvld  $LIBS"
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h.  */
11778
11779 /* Override any GCC internal prototype to avoid an error.
11780    Use char because int might match the return type of a GCC
11781    builtin and then its argument prototype would still apply.  */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 char dlopen ();
11786 int
11787 main ()
11788 {
11789 return dlopen ();
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_c_try_link "$LINENO"; then :
11795   ac_cv_lib_svld_dlopen=yes
11796 else
11797   ac_cv_lib_svld_dlopen=no
11798 fi
11799 rm -f core conftest.err conftest.$ac_objext \
11800     conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11802 fi
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11804 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11805 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11806   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11807 else
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11809 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11810 if ${ac_cv_lib_dld_dld_link+:} false; then :
11811   $as_echo_n "(cached) " >&6
11812 else
11813   ac_check_lib_save_LIBS=$LIBS
11814 LIBS="-ldld  $LIBS"
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h.  */
11817
11818 /* Override any GCC internal prototype to avoid an error.
11819    Use char because int might match the return type of a GCC
11820    builtin and then its argument prototype would still apply.  */
11821 #ifdef __cplusplus
11822 extern "C"
11823 #endif
11824 char dld_link ();
11825 int
11826 main ()
11827 {
11828 return dld_link ();
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_link "$LINENO"; then :
11834   ac_cv_lib_dld_dld_link=yes
11835 else
11836   ac_cv_lib_dld_dld_link=no
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext \
11839     conftest$ac_exeext conftest.$ac_ext
11840 LIBS=$ac_check_lib_save_LIBS
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11843 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11844 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11845   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11846 fi
11847
11848
11849 fi
11850
11851
11852 fi
11853
11854
11855 fi
11856
11857
11858 fi
11859
11860
11861 fi
11862
11863     ;;
11864   esac
11865
11866   if test "x$lt_cv_dlopen" != xno; then
11867     enable_dlopen=yes
11868   else
11869     enable_dlopen=no
11870   fi
11871
11872   case $lt_cv_dlopen in
11873   dlopen)
11874     save_CPPFLAGS="$CPPFLAGS"
11875     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11876
11877     save_LDFLAGS="$LDFLAGS"
11878     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11879
11880     save_LIBS="$LIBS"
11881     LIBS="$lt_cv_dlopen_libs $LIBS"
11882
11883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11884 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11885 if ${lt_cv_dlopen_self+:} false; then :
11886   $as_echo_n "(cached) " >&6
11887 else
11888           if test "$cross_compiling" = yes; then :
11889   lt_cv_dlopen_self=cross
11890 else
11891   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11892   lt_status=$lt_dlunknown
11893   cat > conftest.$ac_ext <<_LT_EOF
11894 #line $LINENO "configure"
11895 #include "confdefs.h"
11896
11897 #if HAVE_DLFCN_H
11898 #include <dlfcn.h>
11899 #endif
11900
11901 #include <stdio.h>
11902
11903 #ifdef RTLD_GLOBAL
11904 #  define LT_DLGLOBAL           RTLD_GLOBAL
11905 #else
11906 #  ifdef DL_GLOBAL
11907 #    define LT_DLGLOBAL         DL_GLOBAL
11908 #  else
11909 #    define LT_DLGLOBAL         0
11910 #  endif
11911 #endif
11912
11913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11914    find out it does not work in some platform. */
11915 #ifndef LT_DLLAZY_OR_NOW
11916 #  ifdef RTLD_LAZY
11917 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11918 #  else
11919 #    ifdef DL_LAZY
11920 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11921 #    else
11922 #      ifdef RTLD_NOW
11923 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11924 #      else
11925 #        ifdef DL_NOW
11926 #          define LT_DLLAZY_OR_NOW      DL_NOW
11927 #        else
11928 #          define LT_DLLAZY_OR_NOW      0
11929 #        endif
11930 #      endif
11931 #    endif
11932 #  endif
11933 #endif
11934
11935 /* When -fvisbility=hidden is used, assume the code has been annotated
11936    correspondingly for the symbols needed.  */
11937 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11938 int fnord () __attribute__((visibility("default")));
11939 #endif
11940
11941 int fnord () { return 42; }
11942 int main ()
11943 {
11944   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11945   int status = $lt_dlunknown;
11946
11947   if (self)
11948     {
11949       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11950       else
11951         {
11952           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11953           else puts (dlerror ());
11954         }
11955       /* dlclose (self); */
11956     }
11957   else
11958     puts (dlerror ());
11959
11960   return status;
11961 }
11962 _LT_EOF
11963   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11964   (eval $ac_link) 2>&5
11965   ac_status=$?
11966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11967   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11968     (./conftest; exit; ) >&5 2>/dev/null
11969     lt_status=$?
11970     case x$lt_status in
11971       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11972       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11973       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11974     esac
11975   else :
11976     # compilation failed
11977     lt_cv_dlopen_self=no
11978   fi
11979 fi
11980 rm -fr conftest*
11981
11982
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11985 $as_echo "$lt_cv_dlopen_self" >&6; }
11986
11987     if test "x$lt_cv_dlopen_self" = xyes; then
11988       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11989       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11990 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11991 if ${lt_cv_dlopen_self_static+:} false; then :
11992   $as_echo_n "(cached) " >&6
11993 else
11994           if test "$cross_compiling" = yes; then :
11995   lt_cv_dlopen_self_static=cross
11996 else
11997   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11998   lt_status=$lt_dlunknown
11999   cat > conftest.$ac_ext <<_LT_EOF
12000 #line $LINENO "configure"
12001 #include "confdefs.h"
12002
12003 #if HAVE_DLFCN_H
12004 #include <dlfcn.h>
12005 #endif
12006
12007 #include <stdio.h>
12008
12009 #ifdef RTLD_GLOBAL
12010 #  define LT_DLGLOBAL           RTLD_GLOBAL
12011 #else
12012 #  ifdef DL_GLOBAL
12013 #    define LT_DLGLOBAL         DL_GLOBAL
12014 #  else
12015 #    define LT_DLGLOBAL         0
12016 #  endif
12017 #endif
12018
12019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12020    find out it does not work in some platform. */
12021 #ifndef LT_DLLAZY_OR_NOW
12022 #  ifdef RTLD_LAZY
12023 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12024 #  else
12025 #    ifdef DL_LAZY
12026 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12027 #    else
12028 #      ifdef RTLD_NOW
12029 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12030 #      else
12031 #        ifdef DL_NOW
12032 #          define LT_DLLAZY_OR_NOW      DL_NOW
12033 #        else
12034 #          define LT_DLLAZY_OR_NOW      0
12035 #        endif
12036 #      endif
12037 #    endif
12038 #  endif
12039 #endif
12040
12041 /* When -fvisbility=hidden is used, assume the code has been annotated
12042    correspondingly for the symbols needed.  */
12043 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12044 int fnord () __attribute__((visibility("default")));
12045 #endif
12046
12047 int fnord () { return 42; }
12048 int main ()
12049 {
12050   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12051   int status = $lt_dlunknown;
12052
12053   if (self)
12054     {
12055       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12056       else
12057         {
12058           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12059           else puts (dlerror ());
12060         }
12061       /* dlclose (self); */
12062     }
12063   else
12064     puts (dlerror ());
12065
12066   return status;
12067 }
12068 _LT_EOF
12069   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12070   (eval $ac_link) 2>&5
12071   ac_status=$?
12072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12073   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12074     (./conftest; exit; ) >&5 2>/dev/null
12075     lt_status=$?
12076     case x$lt_status in
12077       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12078       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12079       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12080     esac
12081   else :
12082     # compilation failed
12083     lt_cv_dlopen_self_static=no
12084   fi
12085 fi
12086 rm -fr conftest*
12087
12088
12089 fi
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12091 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12092     fi
12093
12094     CPPFLAGS="$save_CPPFLAGS"
12095     LDFLAGS="$save_LDFLAGS"
12096     LIBS="$save_LIBS"
12097     ;;
12098   esac
12099
12100   case $lt_cv_dlopen_self in
12101   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12102   *) enable_dlopen_self=unknown ;;
12103   esac
12104
12105   case $lt_cv_dlopen_self_static in
12106   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12107   *) enable_dlopen_self_static=unknown ;;
12108   esac
12109 fi
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127 striplib=
12128 old_striplib=
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12130 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12131 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12132   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12133   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12135 $as_echo "yes" >&6; }
12136 else
12137 # FIXME - insert some real tests, host_os isn't really good enough
12138   case $host_os in
12139   darwin*)
12140     if test -n "$STRIP" ; then
12141       striplib="$STRIP -x"
12142       old_striplib="$STRIP -S"
12143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12144 $as_echo "yes" >&6; }
12145     else
12146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12148     fi
12149     ;;
12150   *)
12151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12153     ;;
12154   esac
12155 fi
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168   # Report which library types will actually be built
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12170 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12172 $as_echo "$can_build_shared" >&6; }
12173
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12175 $as_echo_n "checking whether to build shared libraries... " >&6; }
12176   test "$can_build_shared" = "no" && enable_shared=no
12177
12178   # On AIX, shared libraries and static libraries use the same namespace, and
12179   # are all built from PIC.
12180   case $host_os in
12181   aix3*)
12182     test "$enable_shared" = yes && enable_static=no
12183     if test -n "$RANLIB"; then
12184       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12185       postinstall_cmds='$RANLIB $lib'
12186     fi
12187     ;;
12188
12189   aix[4-9]*)
12190     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12191       test "$enable_shared" = yes && enable_static=no
12192     fi
12193     ;;
12194   esac
12195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12196 $as_echo "$enable_shared" >&6; }
12197
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12199 $as_echo_n "checking whether to build static libraries... " >&6; }
12200   # Make sure either enable_shared or enable_static is yes.
12201   test "$enable_shared" = yes || enable_static=yes
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12203 $as_echo "$enable_static" >&6; }
12204
12205
12206
12207
12208 fi
12209 ac_ext=c
12210 ac_cpp='$CPP $CPPFLAGS'
12211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12214
12215 CC="$lt_save_CC"
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231         ac_config_commands="$ac_config_commands libtool"
12232
12233
12234
12235
12236 # Only expand once:
12237
12238
12239
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12241 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12242 if ${libltdl_cv_shlibext+:} false; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245
12246 module=yes
12247 eval libltdl_cv_shlibext=$shrext_cmds
12248 module=no
12249 eval libltdl_cv_shrext=$shrext_cmds
12250
12251 fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12253 $as_echo "$libltdl_cv_shlibext" >&6; }
12254 if test -n "$libltdl_cv_shlibext"; then
12255
12256 cat >>confdefs.h <<_ACEOF
12257 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12258 _ACEOF
12259
12260 fi
12261 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12262
12263 cat >>confdefs.h <<_ACEOF
12264 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12265 _ACEOF
12266
12267 fi
12268
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12270 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12271 if ${lt_cv_module_path_var+:} false; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274   lt_cv_module_path_var="$shlibpath_var"
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12277 $as_echo "$lt_cv_module_path_var" >&6; }
12278 if test -n "$lt_cv_module_path_var"; then
12279
12280 cat >>confdefs.h <<_ACEOF
12281 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12282 _ACEOF
12283
12284 fi
12285
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12287 $as_echo_n "checking for the default library search path... " >&6; }
12288 if ${lt_cv_sys_dlsearch_path+:} false; then :
12289   $as_echo_n "(cached) " >&6
12290 else
12291   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12292 fi
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12294 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12295 if test -n "$lt_cv_sys_dlsearch_path"; then
12296   sys_dlsearch_path=
12297   for dir in $lt_cv_sys_dlsearch_path; do
12298     if test -z "$sys_dlsearch_path"; then
12299       sys_dlsearch_path="$dir"
12300     else
12301       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12302     fi
12303   done
12304
12305 cat >>confdefs.h <<_ACEOF
12306 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12307 _ACEOF
12308
12309 fi
12310
12311
12312 LT_DLLOADERS=
12313
12314
12315 ac_ext=c
12316 ac_cpp='$CPP $CPPFLAGS'
12317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12320
12321
12322 LIBADD_DLOPEN=
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12324 $as_echo_n "checking for library containing dlopen... " >&6; }
12325 if ${ac_cv_search_dlopen+:} false; then :
12326   $as_echo_n "(cached) " >&6
12327 else
12328   ac_func_search_save_LIBS=$LIBS
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h.  */
12331
12332 /* Override any GCC internal prototype to avoid an error.
12333    Use char because int might match the return type of a GCC
12334    builtin and then its argument prototype would still apply.  */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 char dlopen ();
12339 int
12340 main ()
12341 {
12342 return dlopen ();
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 for ac_lib in '' dl; do
12348   if test -z "$ac_lib"; then
12349     ac_res="none required"
12350   else
12351     ac_res=-l$ac_lib
12352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12353   fi
12354   if ac_fn_c_try_link "$LINENO"; then :
12355   ac_cv_search_dlopen=$ac_res
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358     conftest$ac_exeext
12359   if ${ac_cv_search_dlopen+:} false; then :
12360   break
12361 fi
12362 done
12363 if ${ac_cv_search_dlopen+:} false; then :
12364
12365 else
12366   ac_cv_search_dlopen=no
12367 fi
12368 rm conftest.$ac_ext
12369 LIBS=$ac_func_search_save_LIBS
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12372 $as_echo "$ac_cv_search_dlopen" >&6; }
12373 ac_res=$ac_cv_search_dlopen
12374 if test "$ac_res" != no; then :
12375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12376
12377 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12378
12379         if test "$ac_cv_search_dlopen" != "none required" ; then
12380           LIBADD_DLOPEN="-ldl"
12381         fi
12382         libltdl_cv_lib_dl_dlopen="yes"
12383         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12384 else
12385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h.  */
12387 #if HAVE_DLFCN_H
12388 #  include <dlfcn.h>
12389 #endif
12390
12391 int
12392 main ()
12393 {
12394 dlopen(0, 0);
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 if ac_fn_c_try_link "$LINENO"; then :
12400
12401 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12402
12403             libltdl_cv_func_dlopen="yes"
12404             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12405 else
12406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12407 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12408 if ${ac_cv_lib_svld_dlopen+:} false; then :
12409   $as_echo_n "(cached) " >&6
12410 else
12411   ac_check_lib_save_LIBS=$LIBS
12412 LIBS="-lsvld  $LIBS"
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h.  */
12415
12416 /* Override any GCC internal prototype to avoid an error.
12417    Use char because int might match the return type of a GCC
12418    builtin and then its argument prototype would still apply.  */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 char dlopen ();
12423 int
12424 main ()
12425 {
12426 return dlopen ();
12427   ;
12428   return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_link "$LINENO"; then :
12432   ac_cv_lib_svld_dlopen=yes
12433 else
12434   ac_cv_lib_svld_dlopen=no
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext \
12437     conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12441 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12442 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12443
12444 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12445
12446                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12447                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12448 fi
12449
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext \
12452     conftest$ac_exeext conftest.$ac_ext
12453 fi
12454
12455 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12456 then
12457   lt_save_LIBS="$LIBS"
12458   LIBS="$LIBS $LIBADD_DLOPEN"
12459   for ac_func in dlerror
12460 do :
12461   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12462 if test "x$ac_cv_func_dlerror" = xyes; then :
12463   cat >>confdefs.h <<_ACEOF
12464 #define HAVE_DLERROR 1
12465 _ACEOF
12466
12467 fi
12468 done
12469
12470   LIBS="$lt_save_LIBS"
12471 fi
12472
12473
12474 LIBADD_SHL_LOAD=
12475 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12476 if test "x$ac_cv_func_shl_load" = xyes; then :
12477
12478 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12479
12480         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12481 else
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12483 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12484 if ${ac_cv_lib_dld_shl_load+:} false; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   ac_check_lib_save_LIBS=$LIBS
12488 LIBS="-ldld  $LIBS"
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h.  */
12491
12492 /* Override any GCC internal prototype to avoid an error.
12493    Use char because int might match the return type of a GCC
12494    builtin and then its argument prototype would still apply.  */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 char shl_load ();
12499 int
12500 main ()
12501 {
12502 return shl_load ();
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 if ac_fn_c_try_link "$LINENO"; then :
12508   ac_cv_lib_dld_shl_load=yes
12509 else
12510   ac_cv_lib_dld_shl_load=no
12511 fi
12512 rm -f core conftest.err conftest.$ac_objext \
12513     conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12517 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12518 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12519
12520 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12521
12522             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12523             LIBADD_SHL_LOAD="-ldld"
12524 fi
12525
12526 fi
12527
12528
12529
12530 case $host_os in
12531 darwin[1567].*)
12532 # We only want this for pre-Mac OS X 10.4.
12533   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12534 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12535
12536 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12537
12538         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12539 fi
12540
12541   ;;
12542 beos*)
12543   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12544   ;;
12545 cygwin* | mingw* | os2* | pw32*)
12546   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12547 "
12548 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12549   ac_have_decl=1
12550 else
12551   ac_have_decl=0
12552 fi
12553
12554 cat >>confdefs.h <<_ACEOF
12555 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12556 _ACEOF
12557
12558   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12559   ;;
12560 esac
12561
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12563 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12564 if ${ac_cv_lib_dld_dld_link+:} false; then :
12565   $as_echo_n "(cached) " >&6
12566 else
12567   ac_check_lib_save_LIBS=$LIBS
12568 LIBS="-ldld  $LIBS"
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h.  */
12571
12572 /* Override any GCC internal prototype to avoid an error.
12573    Use char because int might match the return type of a GCC
12574    builtin and then its argument prototype would still apply.  */
12575 #ifdef __cplusplus
12576 extern "C"
12577 #endif
12578 char dld_link ();
12579 int
12580 main ()
12581 {
12582 return dld_link ();
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 if ac_fn_c_try_link "$LINENO"; then :
12588   ac_cv_lib_dld_dld_link=yes
12589 else
12590   ac_cv_lib_dld_dld_link=no
12591 fi
12592 rm -f core conftest.err conftest.$ac_objext \
12593     conftest$ac_exeext conftest.$ac_ext
12594 LIBS=$ac_check_lib_save_LIBS
12595 fi
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12597 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12598 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12599
12600 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12601
12602                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12603 fi
12604
12605
12606
12607
12608 LT_DLPREOPEN=
12609 if test -n "$LT_DLLOADERS"
12610 then
12611   for lt_loader in $LT_DLLOADERS; do
12612     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12613   done
12614
12615 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12616
12617 fi
12618
12619
12620 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12621
12622
12623 ac_ext=c
12624 ac_cpp='$CPP $CPPFLAGS'
12625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12628
12629
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12631 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12632 if ${lt_cv_sys_symbol_underscore+:} false; then :
12633   $as_echo_n "(cached) " >&6
12634 else
12635   lt_cv_sys_symbol_underscore=no
12636   cat > conftest.$ac_ext <<_LT_EOF
12637 void nm_test_func(){}
12638 int main(){nm_test_func;return 0;}
12639 _LT_EOF
12640   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12641   (eval $ac_compile) 2>&5
12642   ac_status=$?
12643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12644   test $ac_status = 0; }; then
12645     # Now try to grab the symbols.
12646     ac_nlist=conftest.nm
12647     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12648   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12649   ac_status=$?
12650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12651   test $ac_status = 0; } && test -s "$ac_nlist"; then
12652       # See whether the symbols have a leading underscore.
12653       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12654         lt_cv_sys_symbol_underscore=yes
12655       else
12656         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12657           :
12658         else
12659           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12660         fi
12661       fi
12662     else
12663       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12664     fi
12665   else
12666     echo "configure: failed program was:" >&5
12667     cat conftest.c >&5
12668   fi
12669   rm -rf conftest*
12670
12671 fi
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12673 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12674   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12675
12676
12677 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12678   if test x"$libltdl_cv_func_dlopen" = xyes ||
12679      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12680         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12681 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12682 if ${libltdl_cv_need_uscore+:} false; then :
12683   $as_echo_n "(cached) " >&6
12684 else
12685   libltdl_cv_need_uscore=unknown
12686           save_LIBS="$LIBS"
12687           LIBS="$LIBS $LIBADD_DLOPEN"
12688           if test "$cross_compiling" = yes; then :
12689   libltdl_cv_need_uscore=cross
12690 else
12691   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12692   lt_status=$lt_dlunknown
12693   cat > conftest.$ac_ext <<_LT_EOF
12694 #line $LINENO "configure"
12695 #include "confdefs.h"
12696
12697 #if HAVE_DLFCN_H
12698 #include <dlfcn.h>
12699 #endif
12700
12701 #include <stdio.h>
12702
12703 #ifdef RTLD_GLOBAL
12704 #  define LT_DLGLOBAL           RTLD_GLOBAL
12705 #else
12706 #  ifdef DL_GLOBAL
12707 #    define LT_DLGLOBAL         DL_GLOBAL
12708 #  else
12709 #    define LT_DLGLOBAL         0
12710 #  endif
12711 #endif
12712
12713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12714    find out it does not work in some platform. */
12715 #ifndef LT_DLLAZY_OR_NOW
12716 #  ifdef RTLD_LAZY
12717 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12718 #  else
12719 #    ifdef DL_LAZY
12720 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12721 #    else
12722 #      ifdef RTLD_NOW
12723 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12724 #      else
12725 #        ifdef DL_NOW
12726 #          define LT_DLLAZY_OR_NOW      DL_NOW
12727 #        else
12728 #          define LT_DLLAZY_OR_NOW      0
12729 #        endif
12730 #      endif
12731 #    endif
12732 #  endif
12733 #endif
12734
12735 /* When -fvisbility=hidden is used, assume the code has been annotated
12736    correspondingly for the symbols needed.  */
12737 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12738 int fnord () __attribute__((visibility("default")));
12739 #endif
12740
12741 int fnord () { return 42; }
12742 int main ()
12743 {
12744   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12745   int status = $lt_dlunknown;
12746
12747   if (self)
12748     {
12749       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12750       else
12751         {
12752           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12753           else puts (dlerror ());
12754         }
12755       /* dlclose (self); */
12756     }
12757   else
12758     puts (dlerror ());
12759
12760   return status;
12761 }
12762 _LT_EOF
12763   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12764   (eval $ac_link) 2>&5
12765   ac_status=$?
12766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12768     (./conftest; exit; ) >&5 2>/dev/null
12769     lt_status=$?
12770     case x$lt_status in
12771       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12772       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12773       x$lt_dlunknown|x*)  ;;
12774     esac
12775   else :
12776     # compilation failed
12777
12778   fi
12779 fi
12780 rm -fr conftest*
12781
12782           LIBS="$save_LIBS"
12783
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12786 $as_echo "$libltdl_cv_need_uscore" >&6; }
12787   fi
12788 fi
12789
12790 if test x"$libltdl_cv_need_uscore" = xyes; then
12791
12792 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12793
12794 fi
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12797 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12798 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12799   $as_echo_n "(cached) " >&6
12800 else
12801   # PORTME does your system automatically load deplibs for dlopen?
12802   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12803   # For now, we just catch OSes we know something about -- in the
12804   # future, we'll try test this programmatically.
12805   lt_cv_sys_dlopen_deplibs=unknown
12806   case $host_os in
12807   aix3*|aix4.1.*|aix4.2.*)
12808     # Unknown whether this is true for these versions of AIX, but
12809     # we want this `case' here to explicitly catch those versions.
12810     lt_cv_sys_dlopen_deplibs=unknown
12811     ;;
12812   aix[4-9]*)
12813     lt_cv_sys_dlopen_deplibs=yes
12814     ;;
12815   amigaos*)
12816     case $host_cpu in
12817     powerpc)
12818       lt_cv_sys_dlopen_deplibs=no
12819       ;;
12820     esac
12821     ;;
12822   darwin*)
12823     # Assuming the user has installed a libdl from somewhere, this is true
12824     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12825     lt_cv_sys_dlopen_deplibs=yes
12826     ;;
12827   freebsd* | dragonfly*)
12828     lt_cv_sys_dlopen_deplibs=yes
12829     ;;
12830   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12831     # GNU and its variants, using gnu ld.so (Glibc)
12832     lt_cv_sys_dlopen_deplibs=yes
12833     ;;
12834   hpux10*|hpux11*)
12835     lt_cv_sys_dlopen_deplibs=yes
12836     ;;
12837   interix*)
12838     lt_cv_sys_dlopen_deplibs=yes
12839     ;;
12840   irix[12345]*|irix6.[01]*)
12841     # Catch all versions of IRIX before 6.2, and indicate that we don't
12842     # know how it worked for any of those versions.
12843     lt_cv_sys_dlopen_deplibs=unknown
12844     ;;
12845   irix*)
12846     # The case above catches anything before 6.2, and it's known that
12847     # at 6.2 and later dlopen does load deplibs.
12848     lt_cv_sys_dlopen_deplibs=yes
12849     ;;
12850   netbsd*)
12851     lt_cv_sys_dlopen_deplibs=yes
12852     ;;
12853   openbsd*)
12854     lt_cv_sys_dlopen_deplibs=yes
12855     ;;
12856   osf[1234]*)
12857     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12858     # it did *not* use an RPATH in a shared library to find objects the
12859     # library depends on, so we explicitly say `no'.
12860     lt_cv_sys_dlopen_deplibs=no
12861     ;;
12862   osf5.0|osf5.0a|osf5.1)
12863     # dlopen *does* load deplibs and with the right loader patch applied
12864     # it even uses RPATH in a shared library to search for shared objects
12865     # that the library depends on, but there's no easy way to know if that
12866     # patch is installed.  Since this is the case, all we can really
12867     # say is unknown -- it depends on the patch being installed.  If
12868     # it is, this changes to `yes'.  Without it, it would be `no'.
12869     lt_cv_sys_dlopen_deplibs=unknown
12870     ;;
12871   osf*)
12872     # the two cases above should catch all versions of osf <= 5.1.  Read
12873     # the comments above for what we know about them.
12874     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12875     # is used to find them so we can finally say `yes'.
12876     lt_cv_sys_dlopen_deplibs=yes
12877     ;;
12878   qnx*)
12879     lt_cv_sys_dlopen_deplibs=yes
12880     ;;
12881   solaris*)
12882     lt_cv_sys_dlopen_deplibs=yes
12883     ;;
12884   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12885     libltdl_cv_sys_dlopen_deplibs=yes
12886     ;;
12887   esac
12888
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12891 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12892 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12893
12894 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12895
12896 fi
12897
12898 :
12899
12900 for ac_header in argz.h
12901 do :
12902   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12903 "
12904 if test "x$ac_cv_header_argz_h" = xyes; then :
12905   cat >>confdefs.h <<_ACEOF
12906 #define HAVE_ARGZ_H 1
12907 _ACEOF
12908
12909 fi
12910
12911 done
12912
12913
12914 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12915 #  include <argz.h>
12916 #endif
12917 "
12918 if test "x$ac_cv_type_error_t" = xyes; then :
12919
12920 cat >>confdefs.h <<_ACEOF
12921 #define HAVE_ERROR_T 1
12922 _ACEOF
12923
12924
12925 else
12926
12927 $as_echo "#define error_t int" >>confdefs.h
12928
12929
12930 $as_echo "#define __error_t_defined 1" >>confdefs.h
12931
12932 fi
12933
12934
12935 ARGZ_H=
12936 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12937         argz_next argz_stringify
12938 do :
12939   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12941 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12942   cat >>confdefs.h <<_ACEOF
12943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12944 _ACEOF
12945
12946 else
12947   ARGZ_H=argz.h; case " $LIBOBJS " in
12948   *" argz.$ac_objext "* ) ;;
12949   *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12950  ;;
12951 esac
12952
12953 fi
12954 done
12955
12956
12957 if test -z "$ARGZ_H"; then :
12958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12959 $as_echo_n "checking if argz actually works... " >&6; }
12960 if ${lt_cv_sys_argz_works+:} false; then :
12961   $as_echo_n "(cached) " >&6
12962 else
12963   case $host_os in #(
12964          *cygwin*)
12965            lt_cv_sys_argz_works=no
12966            if test "$cross_compiling" != no; then
12967              lt_cv_sys_argz_works="guessing no"
12968            else
12969              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12970              save_IFS=$IFS
12971              IFS=-.
12972              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12973              IFS=$save_IFS
12974              lt_os_major=${2-0}
12975              lt_os_minor=${3-0}
12976              lt_os_micro=${4-0}
12977              if test "$lt_os_major" -gt 1 \
12978                 || { test "$lt_os_major" -eq 1 \
12979                   && { test "$lt_os_minor" -gt 5 \
12980                     || { test "$lt_os_minor" -eq 5 \
12981                       && test "$lt_os_micro" -gt 24; }; }; }; then
12982                lt_cv_sys_argz_works=yes
12983              fi
12984            fi
12985            ;; #(
12986          *) lt_cv_sys_argz_works=yes ;;
12987          esac
12988 fi
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12990 $as_echo "$lt_cv_sys_argz_works" >&6; }
12991      if test "$lt_cv_sys_argz_works" = yes; then :
12992
12993 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12994
12995 else
12996   ARGZ_H=argz.h
12997         case " $LIBOBJS " in
12998   *" argz.$ac_objext "* ) ;;
12999   *) LIBOBJS="$LIBOBJS argz.$ac_objext"
13000  ;;
13001 esac
13002
13003 fi
13004 fi
13005
13006
13007
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13009 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13010 if ${libltdl_cv_preloaded_symbols+:} false; then :
13011   $as_echo_n "(cached) " >&6
13012 else
13013   if test -n "$lt_cv_sys_global_symbol_pipe"; then
13014     libltdl_cv_preloaded_symbols=yes
13015   else
13016     libltdl_cv_preloaded_symbols=no
13017   fi
13018
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13021 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13022 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13023
13024 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13025
13026 fi
13027
13028
13029
13030 # Check whether --enable-ltdl-install was given.
13031 if test "${enable_ltdl_install+set}" = set; then :
13032   enableval=$enable_ltdl_install;
13033 fi
13034
13035
13036 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13037   *yes*) ;;
13038   *) enable_ltdl_convenience=yes ;;
13039 esac
13040
13041  if test x"${enable_ltdl_install-no}" != xno; then
13042   INSTALL_LTDL_TRUE=
13043   INSTALL_LTDL_FALSE='#'
13044 else
13045   INSTALL_LTDL_TRUE='#'
13046   INSTALL_LTDL_FALSE=
13047 fi
13048
13049   if test x"${enable_ltdl_convenience-no}" != xno; then
13050   CONVENIENCE_LTDL_TRUE=
13051   CONVENIENCE_LTDL_FALSE='#'
13052 else
13053   CONVENIENCE_LTDL_TRUE='#'
13054   CONVENIENCE_LTDL_FALSE=
13055 fi
13056
13057
13058
13059
13060
13061
13062 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13063 # the user used.  This is so that ltdl.h can pick up the parent projects
13064 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13065 # definitions required by ltdl.c.
13066 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13067
13068
13069
13070 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13071 do :
13072   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13074 "
13075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13076   cat >>confdefs.h <<_ACEOF
13077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13078 _ACEOF
13079
13080 fi
13081
13082 done
13083
13084
13085 for ac_func in closedir opendir readdir
13086 do :
13087   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13089 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13090   cat >>confdefs.h <<_ACEOF
13091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13092 _ACEOF
13093
13094 else
13095   case " $LIBOBJS " in
13096   *" lt__dirent.$ac_objext "* ) ;;
13097   *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
13098  ;;
13099 esac
13100
13101 fi
13102 done
13103
13104 for ac_func in strlcat strlcpy
13105 do :
13106   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13107 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13108 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13109   cat >>confdefs.h <<_ACEOF
13110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13111 _ACEOF
13112
13113 else
13114   case " $LIBOBJS " in
13115   *" lt__strl.$ac_objext "* ) ;;
13116   *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
13117  ;;
13118 esac
13119
13120 fi
13121 done
13122
13123
13124
13125 cat >>confdefs.h <<_ACEOF
13126 #define LT_LIBEXT "$libext"
13127 _ACEOF
13128
13129
13130 name=
13131 eval "lt_libprefix=\"$libname_spec\""
13132
13133 cat >>confdefs.h <<_ACEOF
13134 #define LT_LIBPREFIX "$lt_libprefix"
13135 _ACEOF
13136
13137
13138 name=ltdl
13139 eval "LTDLOPEN=\"$libname_spec\""
13140
13141
13142
13143 # Enable all the language support we can
13144 ac_ext=cpp
13145 ac_cpp='$CXXCPP $CPPFLAGS'
13146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13149 if test -z "$CXX"; then
13150   if test -n "$CCC"; then
13151     CXX=$CCC
13152   else
13153     if test -n "$ac_tool_prefix"; then
13154   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13155   do
13156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if ${ac_cv_prog_CXX+:} false; then :
13161   $as_echo_n "(cached) " >&6
13162 else
13163   if test -n "$CXX"; then
13164   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13168 do
13169   IFS=$as_save_IFS
13170   test -z "$as_dir" && as_dir=.
13171     for ac_exec_ext in '' $ac_executable_extensions; do
13172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13173     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175     break 2
13176   fi
13177 done
13178   done
13179 IFS=$as_save_IFS
13180
13181 fi
13182 fi
13183 CXX=$ac_cv_prog_CXX
13184 if test -n "$CXX"; then
13185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13186 $as_echo "$CXX" >&6; }
13187 else
13188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13190 fi
13191
13192
13193     test -n "$CXX" && break
13194   done
13195 fi
13196 if test -z "$CXX"; then
13197   ac_ct_CXX=$CXX
13198   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13199 do
13200   # Extract the first word of "$ac_prog", so it can be a program name with args.
13201 set dummy $ac_prog; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 $as_echo_n "checking for $ac_word... " >&6; }
13204 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13205   $as_echo_n "(cached) " >&6
13206 else
13207   if test -n "$ac_ct_CXX"; then
13208   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13209 else
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13212 do
13213   IFS=$as_save_IFS
13214   test -z "$as_dir" && as_dir=.
13215     for ac_exec_ext in '' $ac_executable_extensions; do
13216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13217     ac_cv_prog_ac_ct_CXX="$ac_prog"
13218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219     break 2
13220   fi
13221 done
13222   done
13223 IFS=$as_save_IFS
13224
13225 fi
13226 fi
13227 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13228 if test -n "$ac_ct_CXX"; then
13229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13230 $as_echo "$ac_ct_CXX" >&6; }
13231 else
13232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234 fi
13235
13236
13237   test -n "$ac_ct_CXX" && break
13238 done
13239
13240   if test "x$ac_ct_CXX" = x; then
13241     CXX="g++"
13242   else
13243     case $cross_compiling:$ac_tool_warned in
13244 yes:)
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13247 ac_tool_warned=yes ;;
13248 esac
13249     CXX=$ac_ct_CXX
13250   fi
13251 fi
13252
13253   fi
13254 fi
13255 # Provide some information about the compiler.
13256 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13257 set X $ac_compile
13258 ac_compiler=$2
13259 for ac_option in --version -v -V -qversion; do
13260   { { ac_try="$ac_compiler $ac_option >&5"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13266 $as_echo "$ac_try_echo"; } >&5
13267   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13268   ac_status=$?
13269   if test -s conftest.err; then
13270     sed '10a\
13271 ... rest of stderr output deleted ...
13272          10q' conftest.err >conftest.er1
13273     cat conftest.er1 >&5
13274   fi
13275   rm -f conftest.er1 conftest.err
13276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13277   test $ac_status = 0; }
13278 done
13279
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13281 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13282 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13283   $as_echo_n "(cached) " >&6
13284 else
13285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h.  */
13287
13288 int
13289 main ()
13290 {
13291 #ifndef __GNUC__
13292        choke me
13293 #endif
13294
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 if ac_fn_cxx_try_compile "$LINENO"; then :
13300   ac_compiler_gnu=yes
13301 else
13302   ac_compiler_gnu=no
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13306
13307 fi
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13309 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13310 if test $ac_compiler_gnu = yes; then
13311   GXX=yes
13312 else
13313   GXX=
13314 fi
13315 ac_test_CXXFLAGS=${CXXFLAGS+set}
13316 ac_save_CXXFLAGS=$CXXFLAGS
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13318 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13319 if ${ac_cv_prog_cxx_g+:} false; then :
13320   $as_echo_n "(cached) " >&6
13321 else
13322   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13323    ac_cxx_werror_flag=yes
13324    ac_cv_prog_cxx_g=no
13325    CXXFLAGS="-g"
13326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h.  */
13328
13329 int
13330 main ()
13331 {
13332
13333   ;
13334   return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_cxx_try_compile "$LINENO"; then :
13338   ac_cv_prog_cxx_g=yes
13339 else
13340   CXXFLAGS=""
13341       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h.  */
13343
13344 int
13345 main ()
13346 {
13347
13348   ;
13349   return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_cxx_try_compile "$LINENO"; then :
13353
13354 else
13355   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13356          CXXFLAGS="-g"
13357          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h.  */
13359
13360 int
13361 main ()
13362 {
13363
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_cxx_try_compile "$LINENO"; then :
13369   ac_cv_prog_cxx_g=yes
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 fi
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13377 fi
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13379 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13380 if test "$ac_test_CXXFLAGS" = set; then
13381   CXXFLAGS=$ac_save_CXXFLAGS
13382 elif test $ac_cv_prog_cxx_g = yes; then
13383   if test "$GXX" = yes; then
13384     CXXFLAGS="-g -O2"
13385   else
13386     CXXFLAGS="-g"
13387   fi
13388 else
13389   if test "$GXX" = yes; then
13390     CXXFLAGS="-O2"
13391   else
13392     CXXFLAGS=
13393   fi
13394 fi
13395 ac_ext=c
13396 ac_cpp='$CPP $CPPFLAGS'
13397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13400
13401 depcc="$CXX"  am_compiler_list=
13402
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13404 $as_echo_n "checking dependency style of $depcc... " >&6; }
13405 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13406   $as_echo_n "(cached) " >&6
13407 else
13408   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13409   # We make a subdir and do the tests there.  Otherwise we can end up
13410   # making bogus files that we don't know about and never remove.  For
13411   # instance it was reported that on HP-UX the gcc test will end up
13412   # making a dummy file named `D' -- because `-MD' means `put the output
13413   # in D'.
13414   mkdir conftest.dir
13415   # Copy depcomp to subdir because otherwise we won't find it if we're
13416   # using a relative directory.
13417   cp "$am_depcomp" conftest.dir
13418   cd conftest.dir
13419   # We will build objects and dependencies in a subdirectory because
13420   # it helps to detect inapplicable dependency modes.  For instance
13421   # both Tru64's cc and ICC support -MD to output dependencies as a
13422   # side effect of compilation, but ICC will put the dependencies in
13423   # the current directory while Tru64 will put them in the object
13424   # directory.
13425   mkdir sub
13426
13427   am_cv_CXX_dependencies_compiler_type=none
13428   if test "$am_compiler_list" = ""; then
13429      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13430   fi
13431   am__universal=false
13432   case " $depcc " in #(
13433      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13434      esac
13435
13436   for depmode in $am_compiler_list; do
13437     # Setup a source with many dependencies, because some compilers
13438     # like to wrap large dependency lists on column 80 (with \), and
13439     # we should not choose a depcomp mode which is confused by this.
13440     #
13441     # We need to recreate these files for each test, as the compiler may
13442     # overwrite some of them when testing with obscure command lines.
13443     # This happens at least with the AIX C compiler.
13444     : > sub/conftest.c
13445     for i in 1 2 3 4 5 6; do
13446       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13447       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13448       # Solaris 8's {/usr,}/bin/sh.
13449       touch sub/conftst$i.h
13450     done
13451     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13452
13453     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13454     # mode.  It turns out that the SunPro C++ compiler does not properly
13455     # handle `-M -o', and we need to detect this.  Also, some Intel
13456     # versions had trouble with output in subdirs
13457     am__obj=sub/conftest.${OBJEXT-o}
13458     am__minus_obj="-o $am__obj"
13459     case $depmode in
13460     gcc)
13461       # This depmode causes a compiler race in universal mode.
13462       test "$am__universal" = false || continue
13463       ;;
13464     nosideeffect)
13465       # after this tag, mechanisms are not by side-effect, so they'll
13466       # only be used when explicitly requested
13467       if test "x$enable_dependency_tracking" = xyes; then
13468         continue
13469       else
13470         break
13471       fi
13472       ;;
13473     msvisualcpp | msvcmsys)
13474       # This compiler won't grok `-c -o', but also, the minuso test has
13475       # not run yet.  These depmodes are late enough in the game, and
13476       # so weak that their functioning should not be impacted.
13477       am__obj=conftest.${OBJEXT-o}
13478       am__minus_obj=
13479       ;;
13480     none) break ;;
13481     esac
13482     if depmode=$depmode \
13483        source=sub/conftest.c object=$am__obj \
13484        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13485        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13486          >/dev/null 2>conftest.err &&
13487        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13488        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13489        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13490        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13491       # icc doesn't choke on unknown options, it will just issue warnings
13492       # or remarks (even with -Werror).  So we grep stderr for any message
13493       # that says an option was ignored or not supported.
13494       # When given -MP, icc 7.0 and 7.1 complain thusly:
13495       #   icc: Command line warning: ignoring option '-M'; no argument required
13496       # The diagnosis changed in icc 8.0:
13497       #   icc: Command line remark: option '-MP' not supported
13498       if (grep 'ignoring option' conftest.err ||
13499           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13500         am_cv_CXX_dependencies_compiler_type=$depmode
13501         break
13502       fi
13503     fi
13504   done
13505
13506   cd ..
13507   rm -rf conftest.dir
13508 else
13509   am_cv_CXX_dependencies_compiler_type=none
13510 fi
13511
13512 fi
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13514 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13515 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13516
13517  if
13518   test "x$enable_dependency_tracking" != xno \
13519   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13520   am__fastdepCXX_TRUE=
13521   am__fastdepCXX_FALSE='#'
13522 else
13523   am__fastdepCXX_TRUE='#'
13524   am__fastdepCXX_FALSE=
13525 fi
13526
13527
13528
13529
13530
13531 func_stripname_cnf ()
13532 {
13533   case ${2} in
13534   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13535   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13536   esac
13537 } # func_stripname_cnf
13538
13539       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13540     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13541     (test "X$CXX" != "Xg++"))) ; then
13542   ac_ext=cpp
13543 ac_cpp='$CXXCPP $CPPFLAGS'
13544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13548 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13549 if test -z "$CXXCPP"; then
13550   if ${ac_cv_prog_CXXCPP+:} false; then :
13551   $as_echo_n "(cached) " >&6
13552 else
13553       # Double quotes because CXXCPP needs to be expanded
13554     for CXXCPP in "$CXX -E" "/lib/cpp"
13555     do
13556       ac_preproc_ok=false
13557 for ac_cxx_preproc_warn_flag in '' yes
13558 do
13559   # Use a header file that comes with gcc, so configuring glibc
13560   # with a fresh cross-compiler works.
13561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13562   # <limits.h> exists even on freestanding compilers.
13563   # On the NeXT, cc -E runs the code through the compiler's parser,
13564   # not just through cpp. "Syntax error" is here to catch this case.
13565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h.  */
13567 #ifdef __STDC__
13568 # include <limits.h>
13569 #else
13570 # include <assert.h>
13571 #endif
13572                      Syntax error
13573 _ACEOF
13574 if ac_fn_cxx_try_cpp "$LINENO"; then :
13575
13576 else
13577   # Broken: fails on valid input.
13578 continue
13579 fi
13580 rm -f conftest.err conftest.i conftest.$ac_ext
13581
13582   # OK, works on sane cases.  Now check whether nonexistent headers
13583   # can be detected and how.
13584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h.  */
13586 #include <ac_nonexistent.h>
13587 _ACEOF
13588 if ac_fn_cxx_try_cpp "$LINENO"; then :
13589   # Broken: success on invalid input.
13590 continue
13591 else
13592   # Passes both tests.
13593 ac_preproc_ok=:
13594 break
13595 fi
13596 rm -f conftest.err conftest.i conftest.$ac_ext
13597
13598 done
13599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13600 rm -f conftest.i conftest.err conftest.$ac_ext
13601 if $ac_preproc_ok; then :
13602   break
13603 fi
13604
13605     done
13606     ac_cv_prog_CXXCPP=$CXXCPP
13607
13608 fi
13609   CXXCPP=$ac_cv_prog_CXXCPP
13610 else
13611   ac_cv_prog_CXXCPP=$CXXCPP
13612 fi
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13614 $as_echo "$CXXCPP" >&6; }
13615 ac_preproc_ok=false
13616 for ac_cxx_preproc_warn_flag in '' yes
13617 do
13618   # Use a header file that comes with gcc, so configuring glibc
13619   # with a fresh cross-compiler works.
13620   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13621   # <limits.h> exists even on freestanding compilers.
13622   # On the NeXT, cc -E runs the code through the compiler's parser,
13623   # not just through cpp. "Syntax error" is here to catch this case.
13624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h.  */
13626 #ifdef __STDC__
13627 # include <limits.h>
13628 #else
13629 # include <assert.h>
13630 #endif
13631                      Syntax error
13632 _ACEOF
13633 if ac_fn_cxx_try_cpp "$LINENO"; then :
13634
13635 else
13636   # Broken: fails on valid input.
13637 continue
13638 fi
13639 rm -f conftest.err conftest.i conftest.$ac_ext
13640
13641   # OK, works on sane cases.  Now check whether nonexistent headers
13642   # can be detected and how.
13643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h.  */
13645 #include <ac_nonexistent.h>
13646 _ACEOF
13647 if ac_fn_cxx_try_cpp "$LINENO"; then :
13648   # Broken: success on invalid input.
13649 continue
13650 else
13651   # Passes both tests.
13652 ac_preproc_ok=:
13653 break
13654 fi
13655 rm -f conftest.err conftest.i conftest.$ac_ext
13656
13657 done
13658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13659 rm -f conftest.i conftest.err conftest.$ac_ext
13660 if $ac_preproc_ok; then :
13661
13662 else
13663   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13665 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13666 See \`config.log' for more details" "$LINENO" 5; }
13667 fi
13668
13669 ac_ext=c
13670 ac_cpp='$CPP $CPPFLAGS'
13671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13674
13675 else
13676   _lt_caught_CXX_error=yes
13677 fi
13678
13679 ac_ext=cpp
13680 ac_cpp='$CXXCPP $CPPFLAGS'
13681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13684
13685 archive_cmds_need_lc_CXX=no
13686 allow_undefined_flag_CXX=
13687 always_export_symbols_CXX=no
13688 archive_expsym_cmds_CXX=
13689 compiler_needs_object_CXX=no
13690 export_dynamic_flag_spec_CXX=
13691 hardcode_direct_CXX=no
13692 hardcode_direct_absolute_CXX=no
13693 hardcode_libdir_flag_spec_CXX=
13694 hardcode_libdir_separator_CXX=
13695 hardcode_minus_L_CXX=no
13696 hardcode_shlibpath_var_CXX=unsupported
13697 hardcode_automatic_CXX=no
13698 inherit_rpath_CXX=no
13699 module_cmds_CXX=
13700 module_expsym_cmds_CXX=
13701 link_all_deplibs_CXX=unknown
13702 old_archive_cmds_CXX=$old_archive_cmds
13703 reload_flag_CXX=$reload_flag
13704 reload_cmds_CXX=$reload_cmds
13705 no_undefined_flag_CXX=
13706 whole_archive_flag_spec_CXX=
13707 enable_shared_with_static_runtimes_CXX=no
13708
13709 # Source file extension for C++ test sources.
13710 ac_ext=cpp
13711
13712 # Object file extension for compiled C++ test sources.
13713 objext=o
13714 objext_CXX=$objext
13715
13716 # No sense in running all these tests if we already determined that
13717 # the CXX compiler isn't working.  Some variables (like enable_shared)
13718 # are currently assumed to apply to all compilers on this platform,
13719 # and will be corrupted by setting them based on a non-working compiler.
13720 if test "$_lt_caught_CXX_error" != yes; then
13721   # Code to be used in simple compile tests
13722   lt_simple_compile_test_code="int some_variable = 0;"
13723
13724   # Code to be used in simple link tests
13725   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13726
13727   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13728
13729
13730
13731
13732
13733
13734 # If no C compiler was specified, use CC.
13735 LTCC=${LTCC-"$CC"}
13736
13737 # If no C compiler flags were specified, use CFLAGS.
13738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13739
13740 # Allow CC to be a program name with arguments.
13741 compiler=$CC
13742
13743
13744   # save warnings/boilerplate of simple test code
13745   ac_outfile=conftest.$ac_objext
13746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13748 _lt_compiler_boilerplate=`cat conftest.err`
13749 $RM conftest*
13750
13751   ac_outfile=conftest.$ac_objext
13752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13754 _lt_linker_boilerplate=`cat conftest.err`
13755 $RM -r conftest*
13756
13757
13758   # Allow CC to be a program name with arguments.
13759   lt_save_CC=$CC
13760   lt_save_CFLAGS=$CFLAGS
13761   lt_save_LD=$LD
13762   lt_save_GCC=$GCC
13763   GCC=$GXX
13764   lt_save_with_gnu_ld=$with_gnu_ld
13765   lt_save_path_LD=$lt_cv_path_LD
13766   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13767     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13768   else
13769     $as_unset lt_cv_prog_gnu_ld
13770   fi
13771   if test -n "${lt_cv_path_LDCXX+set}"; then
13772     lt_cv_path_LD=$lt_cv_path_LDCXX
13773   else
13774     $as_unset lt_cv_path_LD
13775   fi
13776   test -z "${LDCXX+set}" || LD=$LDCXX
13777   CC=${CXX-"c++"}
13778   CFLAGS=$CXXFLAGS
13779   compiler=$CC
13780   compiler_CXX=$CC
13781   for cc_temp in $compiler""; do
13782   case $cc_temp in
13783     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13784     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13785     \-*) ;;
13786     *) break;;
13787   esac
13788 done
13789 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13790
13791
13792   if test -n "$compiler"; then
13793     # We don't want -fno-exception when compiling C++ code, so set the
13794     # no_builtin_flag separately
13795     if test "$GXX" = yes; then
13796       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13797     else
13798       lt_prog_compiler_no_builtin_flag_CXX=
13799     fi
13800
13801     if test "$GXX" = yes; then
13802       # Set up default GNU C++ configuration
13803
13804
13805
13806 # Check whether --with-gnu-ld was given.
13807 if test "${with_gnu_ld+set}" = set; then :
13808   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13809 else
13810   with_gnu_ld=no
13811 fi
13812
13813 ac_prog=ld
13814 if test "$GCC" = yes; then
13815   # Check if gcc -print-prog-name=ld gives a path.
13816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13817 $as_echo_n "checking for ld used by $CC... " >&6; }
13818   case $host in
13819   *-*-mingw*)
13820     # gcc leaves a trailing carriage return which upsets mingw
13821     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13822   *)
13823     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13824   esac
13825   case $ac_prog in
13826     # Accept absolute paths.
13827     [\\/]* | ?:[\\/]*)
13828       re_direlt='/[^/][^/]*/\.\./'
13829       # Canonicalize the pathname of ld
13830       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13831       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13832         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13833       done
13834       test -z "$LD" && LD="$ac_prog"
13835       ;;
13836   "")
13837     # If it fails, then pretend we aren't using GCC.
13838     ac_prog=ld
13839     ;;
13840   *)
13841     # If it is relative, then search for the first ld in PATH.
13842     with_gnu_ld=unknown
13843     ;;
13844   esac
13845 elif test "$with_gnu_ld" = yes; then
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13847 $as_echo_n "checking for GNU ld... " >&6; }
13848 else
13849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13850 $as_echo_n "checking for non-GNU ld... " >&6; }
13851 fi
13852 if ${lt_cv_path_LD+:} false; then :
13853   $as_echo_n "(cached) " >&6
13854 else
13855   if test -z "$LD"; then
13856   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13857   for ac_dir in $PATH; do
13858     IFS="$lt_save_ifs"
13859     test -z "$ac_dir" && ac_dir=.
13860     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13861       lt_cv_path_LD="$ac_dir/$ac_prog"
13862       # Check to see if the program is GNU ld.  I'd rather use --version,
13863       # but apparently some variants of GNU ld only accept -v.
13864       # Break only if it was the GNU/non-GNU ld that we prefer.
13865       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13866       *GNU* | *'with BFD'*)
13867         test "$with_gnu_ld" != no && break
13868         ;;
13869       *)
13870         test "$with_gnu_ld" != yes && break
13871         ;;
13872       esac
13873     fi
13874   done
13875   IFS="$lt_save_ifs"
13876 else
13877   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13878 fi
13879 fi
13880
13881 LD="$lt_cv_path_LD"
13882 if test -n "$LD"; then
13883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13884 $as_echo "$LD" >&6; }
13885 else
13886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13888 fi
13889 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13891 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13892 if ${lt_cv_prog_gnu_ld+:} false; then :
13893   $as_echo_n "(cached) " >&6
13894 else
13895   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13896 case `$LD -v 2>&1 </dev/null` in
13897 *GNU* | *'with BFD'*)
13898   lt_cv_prog_gnu_ld=yes
13899   ;;
13900 *)
13901   lt_cv_prog_gnu_ld=no
13902   ;;
13903 esac
13904 fi
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13906 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13907 with_gnu_ld=$lt_cv_prog_gnu_ld
13908
13909
13910
13911
13912
13913
13914
13915       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13916       # archiving commands below assume that GNU ld is being used.
13917       if test "$with_gnu_ld" = yes; then
13918         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13919         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13920
13921         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13922         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13923
13924         # If archive_cmds runs LD, not CC, wlarc should be empty
13925         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13926         #     investigate it a little bit more. (MM)
13927         wlarc='${wl}'
13928
13929         # ancient GNU ld didn't support --whole-archive et. al.
13930         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13931           $GREP 'no-whole-archive' > /dev/null; then
13932           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13933         else
13934           whole_archive_flag_spec_CXX=
13935         fi
13936       else
13937         with_gnu_ld=no
13938         wlarc=
13939
13940         # A generic and very simple default shared library creation
13941         # command for GNU C++ for the case where it uses the native
13942         # linker, instead of GNU ld.  If possible, this setting should
13943         # overridden to take advantage of the native linker features on
13944         # the platform it is being used on.
13945         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13946       fi
13947
13948       # Commands to make compiler produce verbose output that lists
13949       # what "hidden" libraries, object files and flags are used when
13950       # linking a shared library.
13951       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13952
13953     else
13954       GXX=no
13955       with_gnu_ld=no
13956       wlarc=
13957     fi
13958
13959     # PORTME: fill in a description of your system's C++ link characteristics
13960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13961 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13962     ld_shlibs_CXX=yes
13963     case $host_os in
13964       aix3*)
13965         # FIXME: insert proper C++ library support
13966         ld_shlibs_CXX=no
13967         ;;
13968       aix[4-9]*)
13969         if test "$host_cpu" = ia64; then
13970           # On IA64, the linker does run time linking by default, so we don't
13971           # have to do anything special.
13972           aix_use_runtimelinking=no
13973           exp_sym_flag='-Bexport'
13974           no_entry_flag=""
13975         else
13976           aix_use_runtimelinking=no
13977
13978           # Test if we are trying to use run time linking or normal
13979           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13980           # need to do runtime linking.
13981           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13982             for ld_flag in $LDFLAGS; do
13983               case $ld_flag in
13984               *-brtl*)
13985                 aix_use_runtimelinking=yes
13986                 break
13987                 ;;
13988               esac
13989             done
13990             ;;
13991           esac
13992
13993           exp_sym_flag='-bexport'
13994           no_entry_flag='-bnoentry'
13995         fi
13996
13997         # When large executables or shared objects are built, AIX ld can
13998         # have problems creating the table of contents.  If linking a library
13999         # or program results in "error TOC overflow" add -mminimal-toc to
14000         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14001         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14002
14003         archive_cmds_CXX=''
14004         hardcode_direct_CXX=yes
14005         hardcode_direct_absolute_CXX=yes
14006         hardcode_libdir_separator_CXX=':'
14007         link_all_deplibs_CXX=yes
14008         file_list_spec_CXX='${wl}-f,'
14009
14010         if test "$GXX" = yes; then
14011           case $host_os in aix4.[012]|aix4.[012].*)
14012           # We only want to do this on AIX 4.2 and lower, the check
14013           # below for broken collect2 doesn't work under 4.3+
14014           collect2name=`${CC} -print-prog-name=collect2`
14015           if test -f "$collect2name" &&
14016              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14017           then
14018             # We have reworked collect2
14019             :
14020           else
14021             # We have old collect2
14022             hardcode_direct_CXX=unsupported
14023             # It fails to find uninstalled libraries when the uninstalled
14024             # path is not listed in the libpath.  Setting hardcode_minus_L
14025             # to unsupported forces relinking
14026             hardcode_minus_L_CXX=yes
14027             hardcode_libdir_flag_spec_CXX='-L$libdir'
14028             hardcode_libdir_separator_CXX=
14029           fi
14030           esac
14031           shared_flag='-shared'
14032           if test "$aix_use_runtimelinking" = yes; then
14033             shared_flag="$shared_flag "'${wl}-G'
14034           fi
14035         else
14036           # not using gcc
14037           if test "$host_cpu" = ia64; then
14038           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14039           # chokes on -Wl,-G. The following line is correct:
14040           shared_flag='-G'
14041           else
14042             if test "$aix_use_runtimelinking" = yes; then
14043               shared_flag='${wl}-G'
14044             else
14045               shared_flag='${wl}-bM:SRE'
14046             fi
14047           fi
14048         fi
14049
14050         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14051         # It seems that -bexpall does not export symbols beginning with
14052         # underscore (_), so it is better to generate a list of symbols to
14053         # export.
14054         always_export_symbols_CXX=yes
14055         if test "$aix_use_runtimelinking" = yes; then
14056           # Warning - without using the other runtime loading flags (-brtl),
14057           # -berok will link without error, but may produce a broken library.
14058           allow_undefined_flag_CXX='-berok'
14059           # Determine the default libpath from the value encoded in an empty
14060           # executable.
14061           if test "${lt_cv_aix_libpath+set}" = set; then
14062   aix_libpath=$lt_cv_aix_libpath
14063 else
14064   if ${lt_cv_aix_libpath__CXX+:} false; then :
14065   $as_echo_n "(cached) " >&6
14066 else
14067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h.  */
14069
14070 int
14071 main ()
14072 {
14073
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 if ac_fn_cxx_try_link "$LINENO"; then :
14079
14080   lt_aix_libpath_sed='
14081       /Import File Strings/,/^$/ {
14082           /^0/ {
14083               s/^0  *\([^ ]*\) *$/\1/
14084               p
14085           }
14086       }'
14087   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14088   # Check for a 64-bit object if we didn't find anything.
14089   if test -z "$lt_cv_aix_libpath__CXX"; then
14090     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14091   fi
14092 fi
14093 rm -f core conftest.err conftest.$ac_objext \
14094     conftest$ac_exeext conftest.$ac_ext
14095   if test -z "$lt_cv_aix_libpath__CXX"; then
14096     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14097   fi
14098
14099 fi
14100
14101   aix_libpath=$lt_cv_aix_libpath__CXX
14102 fi
14103
14104           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14105
14106           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14107         else
14108           if test "$host_cpu" = ia64; then
14109             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14110             allow_undefined_flag_CXX="-z nodefs"
14111             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14112           else
14113             # Determine the default libpath from the value encoded in an
14114             # empty executable.
14115             if test "${lt_cv_aix_libpath+set}" = set; then
14116   aix_libpath=$lt_cv_aix_libpath
14117 else
14118   if ${lt_cv_aix_libpath__CXX+:} false; then :
14119   $as_echo_n "(cached) " >&6
14120 else
14121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h.  */
14123
14124 int
14125 main ()
14126 {
14127
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 if ac_fn_cxx_try_link "$LINENO"; then :
14133
14134   lt_aix_libpath_sed='
14135       /Import File Strings/,/^$/ {
14136           /^0/ {
14137               s/^0  *\([^ ]*\) *$/\1/
14138               p
14139           }
14140       }'
14141   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14142   # Check for a 64-bit object if we didn't find anything.
14143   if test -z "$lt_cv_aix_libpath__CXX"; then
14144     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14145   fi
14146 fi
14147 rm -f core conftest.err conftest.$ac_objext \
14148     conftest$ac_exeext conftest.$ac_ext
14149   if test -z "$lt_cv_aix_libpath__CXX"; then
14150     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14151   fi
14152
14153 fi
14154
14155   aix_libpath=$lt_cv_aix_libpath__CXX
14156 fi
14157
14158             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14159             # Warning - without using the other run time loading flags,
14160             # -berok will link without error, but may produce a broken library.
14161             no_undefined_flag_CXX=' ${wl}-bernotok'
14162             allow_undefined_flag_CXX=' ${wl}-berok'
14163             if test "$with_gnu_ld" = yes; then
14164               # We only use this code for GNU lds that support --whole-archive.
14165               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14166             else
14167               # Exported symbols can be pulled into shared objects from archives
14168               whole_archive_flag_spec_CXX='$convenience'
14169             fi
14170             archive_cmds_need_lc_CXX=yes
14171             # This is similar to how AIX traditionally builds its shared
14172             # libraries.
14173             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14174           fi
14175         fi
14176         ;;
14177
14178       beos*)
14179         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14180           allow_undefined_flag_CXX=unsupported
14181           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14182           # support --undefined.  This deserves some investigation.  FIXME
14183           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184         else
14185           ld_shlibs_CXX=no
14186         fi
14187         ;;
14188
14189       chorus*)
14190         case $cc_basename in
14191           *)
14192           # FIXME: insert proper C++ library support
14193           ld_shlibs_CXX=no
14194           ;;
14195         esac
14196         ;;
14197
14198       cygwin* | mingw* | pw32* | cegcc*)
14199         case $GXX,$cc_basename in
14200         ,cl* | no,cl*)
14201           # Native MSVC
14202           # hardcode_libdir_flag_spec is actually meaningless, as there is
14203           # no search path for DLLs.
14204           hardcode_libdir_flag_spec_CXX=' '
14205           allow_undefined_flag_CXX=unsupported
14206           always_export_symbols_CXX=yes
14207           file_list_spec_CXX='@'
14208           # Tell ltmain to make .lib files, not .a files.
14209           libext=lib
14210           # Tell ltmain to make .dll files, not .so files.
14211           shrext_cmds=".dll"
14212           # FIXME: Setting linknames here is a bad hack.
14213           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14214           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14215               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14216             else
14217               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14218             fi~
14219             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14220             linknames='
14221           # The linker will not automatically build a static lib if we build a DLL.
14222           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14223           enable_shared_with_static_runtimes_CXX=yes
14224           # Don't use ranlib
14225           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14226           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14227             lt_tool_outputfile="@TOOL_OUTPUT@"~
14228             case $lt_outputfile in
14229               *.exe|*.EXE) ;;
14230               *)
14231                 lt_outputfile="$lt_outputfile.exe"
14232                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14233                 ;;
14234             esac~
14235             func_to_tool_file "$lt_outputfile"~
14236             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14237               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14238               $RM "$lt_outputfile.manifest";
14239             fi'
14240           ;;
14241         *)
14242           # g++
14243           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14244           # as there is no search path for DLLs.
14245           hardcode_libdir_flag_spec_CXX='-L$libdir'
14246           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14247           allow_undefined_flag_CXX=unsupported
14248           always_export_symbols_CXX=no
14249           enable_shared_with_static_runtimes_CXX=yes
14250
14251           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14252             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14253             # If the export-symbols file already is a .def file (1st line
14254             # is EXPORTS), use it as is; otherwise, prepend...
14255             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14256               cp $export_symbols $output_objdir/$soname.def;
14257             else
14258               echo EXPORTS > $output_objdir/$soname.def;
14259               cat $export_symbols >> $output_objdir/$soname.def;
14260             fi~
14261             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14262           else
14263             ld_shlibs_CXX=no
14264           fi
14265           ;;
14266         esac
14267         ;;
14268       darwin* | rhapsody*)
14269
14270
14271   archive_cmds_need_lc_CXX=no
14272   hardcode_direct_CXX=no
14273   hardcode_automatic_CXX=yes
14274   hardcode_shlibpath_var_CXX=unsupported
14275   if test "$lt_cv_ld_force_load" = "yes"; then
14276     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14277
14278   else
14279     whole_archive_flag_spec_CXX=''
14280   fi
14281   link_all_deplibs_CXX=yes
14282   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14283   case $cc_basename in
14284      ifort*) _lt_dar_can_shared=yes ;;
14285      *) _lt_dar_can_shared=$GCC ;;
14286   esac
14287   if test "$_lt_dar_can_shared" = "yes"; then
14288     output_verbose_link_cmd=func_echo_all
14289     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14290     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14291     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14292     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14293        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14294       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14295       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14296     fi
14297
14298   else
14299   ld_shlibs_CXX=no
14300   fi
14301
14302         ;;
14303
14304       dgux*)
14305         case $cc_basename in
14306           ec++*)
14307             # FIXME: insert proper C++ library support
14308             ld_shlibs_CXX=no
14309             ;;
14310           ghcx*)
14311             # Green Hills C++ Compiler
14312             # FIXME: insert proper C++ library support
14313             ld_shlibs_CXX=no
14314             ;;
14315           *)
14316             # FIXME: insert proper C++ library support
14317             ld_shlibs_CXX=no
14318             ;;
14319         esac
14320         ;;
14321
14322       freebsd2.*)
14323         # C++ shared libraries reported to be fairly broken before
14324         # switch to ELF
14325         ld_shlibs_CXX=no
14326         ;;
14327
14328       freebsd-elf*)
14329         archive_cmds_need_lc_CXX=no
14330         ;;
14331
14332       freebsd* | dragonfly*)
14333         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14334         # conventions
14335         ld_shlibs_CXX=yes
14336         ;;
14337
14338       gnu*)
14339         ;;
14340
14341       haiku*)
14342         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14343         link_all_deplibs_CXX=yes
14344         ;;
14345
14346       hpux9*)
14347         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14348         hardcode_libdir_separator_CXX=:
14349         export_dynamic_flag_spec_CXX='${wl}-E'
14350         hardcode_direct_CXX=yes
14351         hardcode_minus_L_CXX=yes # Not in the search PATH,
14352                                              # but as the default
14353                                              # location of the library.
14354
14355         case $cc_basename in
14356           CC*)
14357             # FIXME: insert proper C++ library support
14358             ld_shlibs_CXX=no
14359             ;;
14360           aCC*)
14361             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'
14362             # Commands to make compiler produce verbose output that lists
14363             # what "hidden" libraries, object files and flags are used when
14364             # linking a shared library.
14365             #
14366             # There doesn't appear to be a way to prevent this compiler from
14367             # explicitly linking system object files so we need to strip them
14368             # from the output so that they don't get included in the library
14369             # dependencies.
14370             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14371             ;;
14372           *)
14373             if test "$GXX" = yes; then
14374               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
14375             else
14376               # FIXME: insert proper C++ library support
14377               ld_shlibs_CXX=no
14378             fi
14379             ;;
14380         esac
14381         ;;
14382
14383       hpux10*|hpux11*)
14384         if test $with_gnu_ld = no; then
14385           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14386           hardcode_libdir_separator_CXX=:
14387
14388           case $host_cpu in
14389             hppa*64*|ia64*)
14390               ;;
14391             *)
14392               export_dynamic_flag_spec_CXX='${wl}-E'
14393               ;;
14394           esac
14395         fi
14396         case $host_cpu in
14397           hppa*64*|ia64*)
14398             hardcode_direct_CXX=no
14399             hardcode_shlibpath_var_CXX=no
14400             ;;
14401           *)
14402             hardcode_direct_CXX=yes
14403             hardcode_direct_absolute_CXX=yes
14404             hardcode_minus_L_CXX=yes # Not in the search PATH,
14405                                                  # but as the default
14406                                                  # location of the library.
14407             ;;
14408         esac
14409
14410         case $cc_basename in
14411           CC*)
14412             # FIXME: insert proper C++ library support
14413             ld_shlibs_CXX=no
14414             ;;
14415           aCC*)
14416             case $host_cpu in
14417               hppa*64*)
14418                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14419                 ;;
14420               ia64*)
14421                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14422                 ;;
14423               *)
14424                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14425                 ;;
14426             esac
14427             # Commands to make compiler produce verbose output that lists
14428             # what "hidden" libraries, object files and flags are used when
14429             # linking a shared library.
14430             #
14431             # There doesn't appear to be a way to prevent this compiler from
14432             # explicitly linking system object files so we need to strip them
14433             # from the output so that they don't get included in the library
14434             # dependencies.
14435             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; func_echo_all "$list"'
14436             ;;
14437           *)
14438             if test "$GXX" = yes; then
14439               if test $with_gnu_ld = no; then
14440                 case $host_cpu in
14441                   hppa*64*)
14442                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14443                     ;;
14444                   ia64*)
14445                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14446                     ;;
14447                   *)
14448                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14449                     ;;
14450                 esac
14451               fi
14452             else
14453               # FIXME: insert proper C++ library support
14454               ld_shlibs_CXX=no
14455             fi
14456             ;;
14457         esac
14458         ;;
14459
14460       interix[3-9]*)
14461         hardcode_direct_CXX=no
14462         hardcode_shlibpath_var_CXX=no
14463         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14464         export_dynamic_flag_spec_CXX='${wl}-E'
14465         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14466         # Instead, shared libraries are loaded at an image base (0x10000000 by
14467         # default) and relocated if they conflict, which is a slow very memory
14468         # consuming and fragmenting process.  To avoid this, we pick a random,
14469         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14470         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14471         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14472         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14473         ;;
14474       irix5* | irix6*)
14475         case $cc_basename in
14476           CC*)
14477             # SGI C++
14478             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14479
14480             # Archives containing C++ object files must be created using
14481             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14482             # necessary to make sure instantiated templates are included
14483             # in the archive.
14484             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14485             ;;
14486           *)
14487             if test "$GXX" = yes; then
14488               if test "$with_gnu_ld" = no; then
14489                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14490               else
14491                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14492               fi
14493             fi
14494             link_all_deplibs_CXX=yes
14495             ;;
14496         esac
14497         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14498         hardcode_libdir_separator_CXX=:
14499         inherit_rpath_CXX=yes
14500         ;;
14501
14502       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14503         case $cc_basename in
14504           KCC*)
14505             # Kuck and Associates, Inc. (KAI) C++ Compiler
14506
14507             # KCC will only create a shared library if the output file
14508             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14509             # to its proper name (with version) after linking.
14510             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'
14511             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'
14512             # Commands to make compiler produce verbose output that lists
14513             # what "hidden" libraries, object files and flags are used when
14514             # linking a shared library.
14515             #
14516             # There doesn't appear to be a way to prevent this compiler from
14517             # explicitly linking system object files so we need to strip them
14518             # from the output so that they don't get included in the library
14519             # dependencies.
14520             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; func_echo_all "$list"'
14521
14522             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14523             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14524
14525             # Archives containing C++ object files must be created using
14526             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14527             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14528             ;;
14529           icpc* | ecpc* )
14530             # Intel C++
14531             with_gnu_ld=yes
14532             # version 8.0 and above of icpc choke on multiply defined symbols
14533             # if we add $predep_objects and $postdep_objects, however 7.1 and
14534             # earlier do not add the objects themselves.
14535             case `$CC -V 2>&1` in
14536               *"Version 7."*)
14537                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14538                 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'
14539                 ;;
14540               *)  # Version 8.0 or newer
14541                 tmp_idyn=
14542                 case $host_cpu in
14543                   ia64*) tmp_idyn=' -i_dynamic';;
14544                 esac
14545                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14546                 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'
14547                 ;;
14548             esac
14549             archive_cmds_need_lc_CXX=no
14550             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14551             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14552             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14553             ;;
14554           pgCC* | pgcpp*)
14555             # Portland Group C++ compiler
14556             case `$CC -V` in
14557             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14558               prelink_cmds_CXX='tpldir=Template.dir~
14559                 rm -rf $tpldir~
14560                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14561                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14562               old_archive_cmds_CXX='tpldir=Template.dir~
14563                 rm -rf $tpldir~
14564                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14565                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14566                 $RANLIB $oldlib'
14567               archive_cmds_CXX='tpldir=Template.dir~
14568                 rm -rf $tpldir~
14569                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14570                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14571               archive_expsym_cmds_CXX='tpldir=Template.dir~
14572                 rm -rf $tpldir~
14573                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14574                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14575               ;;
14576             *) # Version 6 and above use weak symbols
14577               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14578               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'
14579               ;;
14580             esac
14581
14582             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14583             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14584             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14585             ;;
14586           cxx*)
14587             # Compaq C++
14588             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14589             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'
14590
14591             runpath_var=LD_RUN_PATH
14592             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14593             hardcode_libdir_separator_CXX=:
14594
14595             # Commands to make compiler produce verbose output that lists
14596             # what "hidden" libraries, object files and flags are used when
14597             # linking a shared library.
14598             #
14599             # There doesn't appear to be a way to prevent this compiler from
14600             # explicitly linking system object files so we need to strip them
14601             # from the output so that they don't get included in the library
14602             # dependencies.
14603             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
14604             ;;
14605           xl* | mpixl* | bgxl*)
14606             # IBM XL 8.0 on PPC, with GNU ld
14607             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14608             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14609             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610             if test "x$supports_anon_versioning" = xyes; then
14611               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14612                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14613                 echo "local: *; };" >> $output_objdir/$libname.ver~
14614                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14615             fi
14616             ;;
14617           *)
14618             case `$CC -V 2>&1 | sed 5q` in
14619             *Sun\ C*)
14620               # Sun C++ 5.9
14621               no_undefined_flag_CXX=' -zdefs'
14622               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14623               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14624               hardcode_libdir_flag_spec_CXX='-R$libdir'
14625               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14626               compiler_needs_object_CXX=yes
14627
14628               # Not sure whether something based on
14629               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14630               # would be better.
14631               output_verbose_link_cmd='func_echo_all'
14632
14633               # Archives containing C++ object files must be created using
14634               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14635               # necessary to make sure instantiated templates are included
14636               # in the archive.
14637               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14638               ;;
14639             esac
14640             ;;
14641         esac
14642         ;;
14643
14644       lynxos*)
14645         # FIXME: insert proper C++ library support
14646         ld_shlibs_CXX=no
14647         ;;
14648
14649       m88k*)
14650         # FIXME: insert proper C++ library support
14651         ld_shlibs_CXX=no
14652         ;;
14653
14654       mvs*)
14655         case $cc_basename in
14656           cxx*)
14657             # FIXME: insert proper C++ library support
14658             ld_shlibs_CXX=no
14659             ;;
14660           *)
14661             # FIXME: insert proper C++ library support
14662             ld_shlibs_CXX=no
14663             ;;
14664         esac
14665         ;;
14666
14667       netbsd*)
14668         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14669           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14670           wlarc=
14671           hardcode_libdir_flag_spec_CXX='-R$libdir'
14672           hardcode_direct_CXX=yes
14673           hardcode_shlibpath_var_CXX=no
14674         fi
14675         # Workaround some broken pre-1.5 toolchains
14676         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14677         ;;
14678
14679       *nto* | *qnx*)
14680         ld_shlibs_CXX=yes
14681         ;;
14682
14683       openbsd2*)
14684         # C++ shared libraries are fairly broken
14685         ld_shlibs_CXX=no
14686         ;;
14687
14688       openbsd*)
14689         if test -f /usr/libexec/ld.so; then
14690           hardcode_direct_CXX=yes
14691           hardcode_shlibpath_var_CXX=no
14692           hardcode_direct_absolute_CXX=yes
14693           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14694           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14695           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14696             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14697             export_dynamic_flag_spec_CXX='${wl}-E'
14698             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14699           fi
14700           output_verbose_link_cmd=func_echo_all
14701         else
14702           ld_shlibs_CXX=no
14703         fi
14704         ;;
14705
14706       osf3* | osf4* | osf5*)
14707         case $cc_basename in
14708           KCC*)
14709             # Kuck and Associates, Inc. (KAI) C++ Compiler
14710
14711             # KCC will only create a shared library if the output file
14712             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14713             # to its proper name (with version) after linking.
14714             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'
14715
14716             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14717             hardcode_libdir_separator_CXX=:
14718
14719             # Archives containing C++ object files must be created using
14720             # the KAI C++ compiler.
14721             case $host in
14722               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14723               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14724             esac
14725             ;;
14726           RCC*)
14727             # Rational C++ 2.4.1
14728             # FIXME: insert proper C++ library support
14729             ld_shlibs_CXX=no
14730             ;;
14731           cxx*)
14732             case $host in
14733               osf3*)
14734                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14735                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14736                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14737                 ;;
14738               *)
14739                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14740                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14741                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14742                   echo "-hidden">> $lib.exp~
14743                   $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~
14744                   $RM $lib.exp'
14745                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14746                 ;;
14747             esac
14748
14749             hardcode_libdir_separator_CXX=:
14750
14751             # Commands to make compiler produce verbose output that lists
14752             # what "hidden" libraries, object files and flags are used when
14753             # linking a shared library.
14754             #
14755             # There doesn't appear to be a way to prevent this compiler from
14756             # explicitly linking system object files so we need to strip them
14757             # from the output so that they don't get included in the library
14758             # dependencies.
14759             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
14760             ;;
14761           *)
14762             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14763               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14764               case $host in
14765                 osf3*)
14766                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14767                   ;;
14768                 *)
14769                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14770                   ;;
14771               esac
14772
14773               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14774               hardcode_libdir_separator_CXX=:
14775
14776               # Commands to make compiler produce verbose output that lists
14777               # what "hidden" libraries, object files and flags are used when
14778               # linking a shared library.
14779               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14780
14781             else
14782               # FIXME: insert proper C++ library support
14783               ld_shlibs_CXX=no
14784             fi
14785             ;;
14786         esac
14787         ;;
14788
14789       psos*)
14790         # FIXME: insert proper C++ library support
14791         ld_shlibs_CXX=no
14792         ;;
14793
14794       sunos4*)
14795         case $cc_basename in
14796           CC*)
14797             # Sun C++ 4.x
14798             # FIXME: insert proper C++ library support
14799             ld_shlibs_CXX=no
14800             ;;
14801           lcc*)
14802             # Lucid
14803             # FIXME: insert proper C++ library support
14804             ld_shlibs_CXX=no
14805             ;;
14806           *)
14807             # FIXME: insert proper C++ library support
14808             ld_shlibs_CXX=no
14809             ;;
14810         esac
14811         ;;
14812
14813       solaris*)
14814         case $cc_basename in
14815           CC* | sunCC*)
14816             # Sun C++ 4.2, 5.x and Centerline C++
14817             archive_cmds_need_lc_CXX=yes
14818             no_undefined_flag_CXX=' -zdefs'
14819             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14820             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14821               $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'
14822
14823             hardcode_libdir_flag_spec_CXX='-R$libdir'
14824             hardcode_shlibpath_var_CXX=no
14825             case $host_os in
14826               solaris2.[0-5] | solaris2.[0-5].*) ;;
14827               *)
14828                 # The compiler driver will combine and reorder linker options,
14829                 # but understands `-z linker_flag'.
14830                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14831                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14832                 ;;
14833             esac
14834             link_all_deplibs_CXX=yes
14835
14836             output_verbose_link_cmd='func_echo_all'
14837
14838             # Archives containing C++ object files must be created using
14839             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14840             # necessary to make sure instantiated templates are included
14841             # in the archive.
14842             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14843             ;;
14844           gcx*)
14845             # Green Hills C++ Compiler
14846             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14847
14848             # The C++ compiler must be used to create the archive.
14849             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14850             ;;
14851           *)
14852             # GNU C++ compiler with Solaris linker
14853             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14854               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14855               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14856                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14857                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14858                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14859
14860                 # Commands to make compiler produce verbose output that lists
14861                 # what "hidden" libraries, object files and flags are used when
14862                 # linking a shared library.
14863                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14864               else
14865                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14866                 # platform.
14867                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14868                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14869                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14870
14871                 # Commands to make compiler produce verbose output that lists
14872                 # what "hidden" libraries, object files and flags are used when
14873                 # linking a shared library.
14874                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14875               fi
14876
14877               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14878               case $host_os in
14879                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14880                 *)
14881                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14882                   ;;
14883               esac
14884             fi
14885             ;;
14886         esac
14887         ;;
14888
14889     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14890       no_undefined_flag_CXX='${wl}-z,text'
14891       archive_cmds_need_lc_CXX=no
14892       hardcode_shlibpath_var_CXX=no
14893       runpath_var='LD_RUN_PATH'
14894
14895       case $cc_basename in
14896         CC*)
14897           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14898           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14899           ;;
14900         *)
14901           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14902           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14903           ;;
14904       esac
14905       ;;
14906
14907       sysv5* | sco3.2v5* | sco5v6*)
14908         # Note: We can NOT use -z defs as we might desire, because we do not
14909         # link with -lc, and that would cause any symbols used from libc to
14910         # always be unresolved, which means just about no library would
14911         # ever link correctly.  If we're not using GNU ld we use -z text
14912         # though, which does catch some bad symbols but isn't as heavy-handed
14913         # as -z defs.
14914         no_undefined_flag_CXX='${wl}-z,text'
14915         allow_undefined_flag_CXX='${wl}-z,nodefs'
14916         archive_cmds_need_lc_CXX=no
14917         hardcode_shlibpath_var_CXX=no
14918         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14919         hardcode_libdir_separator_CXX=':'
14920         link_all_deplibs_CXX=yes
14921         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14922         runpath_var='LD_RUN_PATH'
14923
14924         case $cc_basename in
14925           CC*)
14926             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14927             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14929               '"$old_archive_cmds_CXX"
14930             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14931               '"$reload_cmds_CXX"
14932             ;;
14933           *)
14934             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14935             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14936             ;;
14937         esac
14938       ;;
14939
14940       tandem*)
14941         case $cc_basename in
14942           NCC*)
14943             # NonStop-UX NCC 3.20
14944             # FIXME: insert proper C++ library support
14945             ld_shlibs_CXX=no
14946             ;;
14947           *)
14948             # FIXME: insert proper C++ library support
14949             ld_shlibs_CXX=no
14950             ;;
14951         esac
14952         ;;
14953
14954       vxworks*)
14955         # FIXME: insert proper C++ library support
14956         ld_shlibs_CXX=no
14957         ;;
14958
14959       *)
14960         # FIXME: insert proper C++ library support
14961         ld_shlibs_CXX=no
14962         ;;
14963     esac
14964
14965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14966 $as_echo "$ld_shlibs_CXX" >&6; }
14967     test "$ld_shlibs_CXX" = no && can_build_shared=no
14968
14969     GCC_CXX="$GXX"
14970     LD_CXX="$LD"
14971
14972     ## CAVEAT EMPTOR:
14973     ## There is no encapsulation within the following macros, do not change
14974     ## the running order or otherwise move them around unless you know exactly
14975     ## what you are doing...
14976     # Dependencies to place before and after the object being linked:
14977 predep_objects_CXX=
14978 postdep_objects_CXX=
14979 predeps_CXX=
14980 postdeps_CXX=
14981 compiler_lib_search_path_CXX=
14982
14983 cat > conftest.$ac_ext <<_LT_EOF
14984 class Foo
14985 {
14986 public:
14987   Foo (void) { a = 0; }
14988 private:
14989   int a;
14990 };
14991 _LT_EOF
14992
14993
14994 _lt_libdeps_save_CFLAGS=$CFLAGS
14995 case "$CC $CFLAGS " in #(
14996 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14997 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14998 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14999 esac
15000
15001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15002   (eval $ac_compile) 2>&5
15003   ac_status=$?
15004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15005   test $ac_status = 0; }; then
15006   # Parse the compiler output and extract the necessary
15007   # objects, libraries and library flags.
15008
15009   # Sentinel used to keep track of whether or not we are before
15010   # the conftest object file.
15011   pre_test_object_deps_done=no
15012
15013   for p in `eval "$output_verbose_link_cmd"`; do
15014     case ${prev}${p} in
15015
15016     -L* | -R* | -l*)
15017        # Some compilers place space between "-{L,R}" and the path.
15018        # Remove the space.
15019        if test $p = "-L" ||
15020           test $p = "-R"; then
15021          prev=$p
15022          continue
15023        fi
15024
15025        # Expand the sysroot to ease extracting the directories later.
15026        if test -z "$prev"; then
15027          case $p in
15028          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15029          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15030          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15031          esac
15032        fi
15033        case $p in
15034        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15035        esac
15036        if test "$pre_test_object_deps_done" = no; then
15037          case ${prev} in
15038          -L | -R)
15039            # Internal compiler library paths should come after those
15040            # provided the user.  The postdeps already come after the
15041            # user supplied libs so there is no need to process them.
15042            if test -z "$compiler_lib_search_path_CXX"; then
15043              compiler_lib_search_path_CXX="${prev}${p}"
15044            else
15045              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15046            fi
15047            ;;
15048          # The "-l" case would never come before the object being
15049          # linked, so don't bother handling this case.
15050          esac
15051        else
15052          if test -z "$postdeps_CXX"; then
15053            postdeps_CXX="${prev}${p}"
15054          else
15055            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15056          fi
15057        fi
15058        prev=
15059        ;;
15060
15061     *.lto.$objext) ;; # Ignore GCC LTO objects
15062     *.$objext)
15063        # This assumes that the test object file only shows up
15064        # once in the compiler output.
15065        if test "$p" = "conftest.$objext"; then
15066          pre_test_object_deps_done=yes
15067          continue
15068        fi
15069
15070        if test "$pre_test_object_deps_done" = no; then
15071          if test -z "$predep_objects_CXX"; then
15072            predep_objects_CXX="$p"
15073          else
15074            predep_objects_CXX="$predep_objects_CXX $p"
15075          fi
15076        else
15077          if test -z "$postdep_objects_CXX"; then
15078            postdep_objects_CXX="$p"
15079          else
15080            postdep_objects_CXX="$postdep_objects_CXX $p"
15081          fi
15082        fi
15083        ;;
15084
15085     *) ;; # Ignore the rest.
15086
15087     esac
15088   done
15089
15090   # Clean up.
15091   rm -f a.out a.exe
15092 else
15093   echo "libtool.m4: error: problem compiling CXX test program"
15094 fi
15095
15096 $RM -f confest.$objext
15097 CFLAGS=$_lt_libdeps_save_CFLAGS
15098
15099 # PORTME: override above test on systems where it is broken
15100 case $host_os in
15101 interix[3-9]*)
15102   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15103   # hack all around it, let's just trust "g++" to DTRT.
15104   predep_objects_CXX=
15105   postdep_objects_CXX=
15106   postdeps_CXX=
15107   ;;
15108
15109 linux*)
15110   case `$CC -V 2>&1 | sed 5q` in
15111   *Sun\ C*)
15112     # Sun C++ 5.9
15113
15114     # The more standards-conforming stlport4 library is
15115     # incompatible with the Cstd library. Avoid specifying
15116     # it if it's in CXXFLAGS. Ignore libCrun as
15117     # -library=stlport4 depends on it.
15118     case " $CXX $CXXFLAGS " in
15119     *" -library=stlport4 "*)
15120       solaris_use_stlport4=yes
15121       ;;
15122     esac
15123
15124     if test "$solaris_use_stlport4" != yes; then
15125       postdeps_CXX='-library=Cstd -library=Crun'
15126     fi
15127     ;;
15128   esac
15129   ;;
15130
15131 solaris*)
15132   case $cc_basename in
15133   CC* | sunCC*)
15134     # The more standards-conforming stlport4 library is
15135     # incompatible with the Cstd library. Avoid specifying
15136     # it if it's in CXXFLAGS. Ignore libCrun as
15137     # -library=stlport4 depends on it.
15138     case " $CXX $CXXFLAGS " in
15139     *" -library=stlport4 "*)
15140       solaris_use_stlport4=yes
15141       ;;
15142     esac
15143
15144     # Adding this requires a known-good setup of shared libraries for
15145     # Sun compiler versions before 5.6, else PIC objects from an old
15146     # archive will be linked into the output, leading to subtle bugs.
15147     if test "$solaris_use_stlport4" != yes; then
15148       postdeps_CXX='-library=Cstd -library=Crun'
15149     fi
15150     ;;
15151   esac
15152   ;;
15153 esac
15154
15155
15156 case " $postdeps_CXX " in
15157 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15158 esac
15159  compiler_lib_search_dirs_CXX=
15160 if test -n "${compiler_lib_search_path_CXX}"; then
15161  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15162 fi
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194     lt_prog_compiler_wl_CXX=
15195 lt_prog_compiler_pic_CXX=
15196 lt_prog_compiler_static_CXX=
15197
15198
15199   # C++ specific cases for pic, static, wl, etc.
15200   if test "$GXX" = yes; then
15201     lt_prog_compiler_wl_CXX='-Wl,'
15202     lt_prog_compiler_static_CXX='-static'
15203
15204     case $host_os in
15205     aix*)
15206       # All AIX code is PIC.
15207       if test "$host_cpu" = ia64; then
15208         # AIX 5 now supports IA64 processor
15209         lt_prog_compiler_static_CXX='-Bstatic'
15210       fi
15211       ;;
15212
15213     amigaos*)
15214       case $host_cpu in
15215       powerpc)
15216             # see comment about AmigaOS4 .so support
15217             lt_prog_compiler_pic_CXX='-fPIC'
15218         ;;
15219       m68k)
15220             # FIXME: we need at least 68020 code to build shared libraries, but
15221             # adding the `-m68020' flag to GCC prevents building anything better,
15222             # like `-m68040'.
15223             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15224         ;;
15225       esac
15226       ;;
15227
15228     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15229       # PIC is the default for these OSes.
15230       ;;
15231     mingw* | cygwin* | os2* | pw32* | cegcc*)
15232       # This hack is so that the source file can tell whether it is being
15233       # built for inclusion in a dll (and should export symbols for example).
15234       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15235       # (--disable-auto-import) libraries
15236       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15237       ;;
15238     darwin* | rhapsody*)
15239       # PIC is the default on this platform
15240       # Common symbols not allowed in MH_DYLIB files
15241       lt_prog_compiler_pic_CXX='-fno-common'
15242       ;;
15243     *djgpp*)
15244       # DJGPP does not support shared libraries at all
15245       lt_prog_compiler_pic_CXX=
15246       ;;
15247     haiku*)
15248       # PIC is the default for Haiku.
15249       # The "-static" flag exists, but is broken.
15250       lt_prog_compiler_static_CXX=
15251       ;;
15252     interix[3-9]*)
15253       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15254       # Instead, we relocate shared libraries at runtime.
15255       ;;
15256     sysv4*MP*)
15257       if test -d /usr/nec; then
15258         lt_prog_compiler_pic_CXX=-Kconform_pic
15259       fi
15260       ;;
15261     hpux*)
15262       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15263       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15264       # sets the default TLS model and affects inlining.
15265       case $host_cpu in
15266       hppa*64*)
15267         ;;
15268       *)
15269         lt_prog_compiler_pic_CXX='-fPIC'
15270         ;;
15271       esac
15272       ;;
15273     *qnx* | *nto*)
15274       # QNX uses GNU C++, but need to define -shared option too, otherwise
15275       # it will coredump.
15276       lt_prog_compiler_pic_CXX='-fPIC -shared'
15277       ;;
15278     *)
15279       lt_prog_compiler_pic_CXX='-fPIC'
15280       ;;
15281     esac
15282   else
15283     case $host_os in
15284       aix[4-9]*)
15285         # All AIX code is PIC.
15286         if test "$host_cpu" = ia64; then
15287           # AIX 5 now supports IA64 processor
15288           lt_prog_compiler_static_CXX='-Bstatic'
15289         else
15290           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15291         fi
15292         ;;
15293       chorus*)
15294         case $cc_basename in
15295         cxch68*)
15296           # Green Hills C++ Compiler
15297           # _LT_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"
15298           ;;
15299         esac
15300         ;;
15301       mingw* | cygwin* | os2* | pw32* | cegcc*)
15302         # This hack is so that the source file can tell whether it is being
15303         # built for inclusion in a dll (and should export symbols for example).
15304         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15305         ;;
15306       dgux*)
15307         case $cc_basename in
15308           ec++*)
15309             lt_prog_compiler_pic_CXX='-KPIC'
15310             ;;
15311           ghcx*)
15312             # Green Hills C++ Compiler
15313             lt_prog_compiler_pic_CXX='-pic'
15314             ;;
15315           *)
15316             ;;
15317         esac
15318         ;;
15319       freebsd* | dragonfly*)
15320         # FreeBSD uses GNU C++
15321         ;;
15322       hpux9* | hpux10* | hpux11*)
15323         case $cc_basename in
15324           CC*)
15325             lt_prog_compiler_wl_CXX='-Wl,'
15326             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15327             if test "$host_cpu" != ia64; then
15328               lt_prog_compiler_pic_CXX='+Z'
15329             fi
15330             ;;
15331           aCC*)
15332             lt_prog_compiler_wl_CXX='-Wl,'
15333             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15334             case $host_cpu in
15335             hppa*64*|ia64*)
15336               # +Z the default
15337               ;;
15338             *)
15339               lt_prog_compiler_pic_CXX='+Z'
15340               ;;
15341             esac
15342             ;;
15343           *)
15344             ;;
15345         esac
15346         ;;
15347       interix*)
15348         # This is c89, which is MS Visual C++ (no shared libs)
15349         # Anyone wants to do a port?
15350         ;;
15351       irix5* | irix6* | nonstopux*)
15352         case $cc_basename in
15353           CC*)
15354             lt_prog_compiler_wl_CXX='-Wl,'
15355             lt_prog_compiler_static_CXX='-non_shared'
15356             # CC pic flag -KPIC is the default.
15357             ;;
15358           *)
15359             ;;
15360         esac
15361         ;;
15362       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15363         case $cc_basename in
15364           KCC*)
15365             # KAI C++ Compiler
15366             lt_prog_compiler_wl_CXX='--backend -Wl,'
15367             lt_prog_compiler_pic_CXX='-fPIC'
15368             ;;
15369           ecpc* )
15370             # old Intel C++ for x86_64 which still supported -KPIC.
15371             lt_prog_compiler_wl_CXX='-Wl,'
15372             lt_prog_compiler_pic_CXX='-KPIC'
15373             lt_prog_compiler_static_CXX='-static'
15374             ;;
15375           icpc* )
15376             # Intel C++, used to be incompatible with GCC.
15377             # ICC 10 doesn't accept -KPIC any more.
15378             lt_prog_compiler_wl_CXX='-Wl,'
15379             lt_prog_compiler_pic_CXX='-fPIC'
15380             lt_prog_compiler_static_CXX='-static'
15381             ;;
15382           pgCC* | pgcpp*)
15383             # Portland Group C++ compiler
15384             lt_prog_compiler_wl_CXX='-Wl,'
15385             lt_prog_compiler_pic_CXX='-fpic'
15386             lt_prog_compiler_static_CXX='-Bstatic'
15387             ;;
15388           cxx*)
15389             # Compaq C++
15390             # Make sure the PIC flag is empty.  It appears that all Alpha
15391             # Linux and Compaq Tru64 Unix objects are PIC.
15392             lt_prog_compiler_pic_CXX=
15393             lt_prog_compiler_static_CXX='-non_shared'
15394             ;;
15395           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15396             # IBM XL 8.0, 9.0 on PPC and BlueGene
15397             lt_prog_compiler_wl_CXX='-Wl,'
15398             lt_prog_compiler_pic_CXX='-qpic'
15399             lt_prog_compiler_static_CXX='-qstaticlink'
15400             ;;
15401           *)
15402             case `$CC -V 2>&1 | sed 5q` in
15403             *Sun\ C*)
15404               # Sun C++ 5.9
15405               lt_prog_compiler_pic_CXX='-KPIC'
15406               lt_prog_compiler_static_CXX='-Bstatic'
15407               lt_prog_compiler_wl_CXX='-Qoption ld '
15408               ;;
15409             esac
15410             ;;
15411         esac
15412         ;;
15413       lynxos*)
15414         ;;
15415       m88k*)
15416         ;;
15417       mvs*)
15418         case $cc_basename in
15419           cxx*)
15420             lt_prog_compiler_pic_CXX='-W c,exportall'
15421             ;;
15422           *)
15423             ;;
15424         esac
15425         ;;
15426       netbsd*)
15427         ;;
15428       *qnx* | *nto*)
15429         # QNX uses GNU C++, but need to define -shared option too, otherwise
15430         # it will coredump.
15431         lt_prog_compiler_pic_CXX='-fPIC -shared'
15432         ;;
15433       osf3* | osf4* | osf5*)
15434         case $cc_basename in
15435           KCC*)
15436             lt_prog_compiler_wl_CXX='--backend -Wl,'
15437             ;;
15438           RCC*)
15439             # Rational C++ 2.4.1
15440             lt_prog_compiler_pic_CXX='-pic'
15441             ;;
15442           cxx*)
15443             # Digital/Compaq C++
15444             lt_prog_compiler_wl_CXX='-Wl,'
15445             # Make sure the PIC flag is empty.  It appears that all Alpha
15446             # Linux and Compaq Tru64 Unix objects are PIC.
15447             lt_prog_compiler_pic_CXX=
15448             lt_prog_compiler_static_CXX='-non_shared'
15449             ;;
15450           *)
15451             ;;
15452         esac
15453         ;;
15454       psos*)
15455         ;;
15456       solaris*)
15457         case $cc_basename in
15458           CC* | sunCC*)
15459             # Sun C++ 4.2, 5.x and Centerline C++
15460             lt_prog_compiler_pic_CXX='-KPIC'
15461             lt_prog_compiler_static_CXX='-Bstatic'
15462             lt_prog_compiler_wl_CXX='-Qoption ld '
15463             ;;
15464           gcx*)
15465             # Green Hills C++ Compiler
15466             lt_prog_compiler_pic_CXX='-PIC'
15467             ;;
15468           *)
15469             ;;
15470         esac
15471         ;;
15472       sunos4*)
15473         case $cc_basename in
15474           CC*)
15475             # Sun C++ 4.x
15476             lt_prog_compiler_pic_CXX='-pic'
15477             lt_prog_compiler_static_CXX='-Bstatic'
15478             ;;
15479           lcc*)
15480             # Lucid
15481             lt_prog_compiler_pic_CXX='-pic'
15482             ;;
15483           *)
15484             ;;
15485         esac
15486         ;;
15487       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15488         case $cc_basename in
15489           CC*)
15490             lt_prog_compiler_wl_CXX='-Wl,'
15491             lt_prog_compiler_pic_CXX='-KPIC'
15492             lt_prog_compiler_static_CXX='-Bstatic'
15493             ;;
15494         esac
15495         ;;
15496       tandem*)
15497         case $cc_basename in
15498           NCC*)
15499             # NonStop-UX NCC 3.20
15500             lt_prog_compiler_pic_CXX='-KPIC'
15501             ;;
15502           *)
15503             ;;
15504         esac
15505         ;;
15506       vxworks*)
15507         ;;
15508       *)
15509         lt_prog_compiler_can_build_shared_CXX=no
15510         ;;
15511     esac
15512   fi
15513
15514 case $host_os in
15515   # For platforms which do not support PIC, -DPIC is meaningless:
15516   *djgpp*)
15517     lt_prog_compiler_pic_CXX=
15518     ;;
15519   *)
15520     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15521     ;;
15522 esac
15523
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15525 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15526 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15527   $as_echo_n "(cached) " >&6
15528 else
15529   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15530 fi
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15532 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15533 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15534
15535 #
15536 # Check to make sure the PIC flag actually works.
15537 #
15538 if test -n "$lt_prog_compiler_pic_CXX"; then
15539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15540 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15541 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15542   $as_echo_n "(cached) " >&6
15543 else
15544   lt_cv_prog_compiler_pic_works_CXX=no
15545    ac_outfile=conftest.$ac_objext
15546    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15547    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15548    # Insert the option either (1) after the last *FLAGS variable, or
15549    # (2) before a word containing "conftest.", or (3) at the end.
15550    # Note that $ac_compile itself does not contain backslashes and begins
15551    # with a dollar sign (not a hyphen), so the echo should work correctly.
15552    # The option is referenced via a variable to avoid confusing sed.
15553    lt_compile=`echo "$ac_compile" | $SED \
15554    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15555    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15556    -e 's:$: $lt_compiler_flag:'`
15557    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15558    (eval "$lt_compile" 2>conftest.err)
15559    ac_status=$?
15560    cat conftest.err >&5
15561    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562    if (exit $ac_status) && test -s "$ac_outfile"; then
15563      # The compiler can only warn and ignore the option if not recognized
15564      # So say no if there are warnings other than the usual output.
15565      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15566      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15567      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15568        lt_cv_prog_compiler_pic_works_CXX=yes
15569      fi
15570    fi
15571    $RM conftest*
15572
15573 fi
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15575 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15576
15577 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15578     case $lt_prog_compiler_pic_CXX in
15579      "" | " "*) ;;
15580      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15581      esac
15582 else
15583     lt_prog_compiler_pic_CXX=
15584      lt_prog_compiler_can_build_shared_CXX=no
15585 fi
15586
15587 fi
15588
15589
15590
15591
15592
15593 #
15594 # Check to make sure the static flag actually works.
15595 #
15596 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15598 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15599 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15600   $as_echo_n "(cached) " >&6
15601 else
15602   lt_cv_prog_compiler_static_works_CXX=no
15603    save_LDFLAGS="$LDFLAGS"
15604    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15605    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15606    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15607      # The linker can only warn and ignore the option if not recognized
15608      # So say no if there are warnings
15609      if test -s conftest.err; then
15610        # Append any errors to the config.log.
15611        cat conftest.err 1>&5
15612        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15613        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15614        if diff conftest.exp conftest.er2 >/dev/null; then
15615          lt_cv_prog_compiler_static_works_CXX=yes
15616        fi
15617      else
15618        lt_cv_prog_compiler_static_works_CXX=yes
15619      fi
15620    fi
15621    $RM -r conftest*
15622    LDFLAGS="$save_LDFLAGS"
15623
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15626 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15627
15628 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15629     :
15630 else
15631     lt_prog_compiler_static_CXX=
15632 fi
15633
15634
15635
15636
15637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15639 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15640   $as_echo_n "(cached) " >&6
15641 else
15642   lt_cv_prog_compiler_c_o_CXX=no
15643    $RM -r conftest 2>/dev/null
15644    mkdir conftest
15645    cd conftest
15646    mkdir out
15647    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15648
15649    lt_compiler_flag="-o out/conftest2.$ac_objext"
15650    # Insert the option either (1) after the last *FLAGS variable, or
15651    # (2) before a word containing "conftest.", or (3) at the end.
15652    # Note that $ac_compile itself does not contain backslashes and begins
15653    # with a dollar sign (not a hyphen), so the echo should work correctly.
15654    lt_compile=`echo "$ac_compile" | $SED \
15655    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15657    -e 's:$: $lt_compiler_flag:'`
15658    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15659    (eval "$lt_compile" 2>out/conftest.err)
15660    ac_status=$?
15661    cat out/conftest.err >&5
15662    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15664    then
15665      # The compiler can only warn and ignore the option if not recognized
15666      # So say no if there are warnings
15667      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15668      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15669      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15670        lt_cv_prog_compiler_c_o_CXX=yes
15671      fi
15672    fi
15673    chmod u+w . 2>&5
15674    $RM conftest*
15675    # SGI C++ compiler will create directory out/ii_files/ for
15676    # template instantiation
15677    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15678    $RM out/* && rmdir out
15679    cd ..
15680    $RM -r conftest
15681    $RM conftest*
15682
15683 fi
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15685 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15686
15687
15688
15689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15691 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15692   $as_echo_n "(cached) " >&6
15693 else
15694   lt_cv_prog_compiler_c_o_CXX=no
15695    $RM -r conftest 2>/dev/null
15696    mkdir conftest
15697    cd conftest
15698    mkdir out
15699    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15700
15701    lt_compiler_flag="-o out/conftest2.$ac_objext"
15702    # Insert the option either (1) after the last *FLAGS variable, or
15703    # (2) before a word containing "conftest.", or (3) at the end.
15704    # Note that $ac_compile itself does not contain backslashes and begins
15705    # with a dollar sign (not a hyphen), so the echo should work correctly.
15706    lt_compile=`echo "$ac_compile" | $SED \
15707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15709    -e 's:$: $lt_compiler_flag:'`
15710    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15711    (eval "$lt_compile" 2>out/conftest.err)
15712    ac_status=$?
15713    cat out/conftest.err >&5
15714    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15716    then
15717      # The compiler can only warn and ignore the option if not recognized
15718      # So say no if there are warnings
15719      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15720      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15721      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15722        lt_cv_prog_compiler_c_o_CXX=yes
15723      fi
15724    fi
15725    chmod u+w . 2>&5
15726    $RM conftest*
15727    # SGI C++ compiler will create directory out/ii_files/ for
15728    # template instantiation
15729    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15730    $RM out/* && rmdir out
15731    cd ..
15732    $RM -r conftest
15733    $RM conftest*
15734
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15737 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15738
15739
15740
15741
15742 hard_links="nottested"
15743 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15744   # do not overwrite the value of need_locks provided by the user
15745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15746 $as_echo_n "checking if we can lock with hard links... " >&6; }
15747   hard_links=yes
15748   $RM conftest*
15749   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15750   touch conftest.a
15751   ln conftest.a conftest.b 2>&5 || hard_links=no
15752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15754 $as_echo "$hard_links" >&6; }
15755   if test "$hard_links" = no; then
15756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15757 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15758     need_locks=warn
15759   fi
15760 else
15761   need_locks=no
15762 fi
15763
15764
15765
15766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15767 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15768
15769   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15770   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15771   case $host_os in
15772   aix[4-9]*)
15773     # If we're using GNU nm, then we don't want the "-C" option.
15774     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15775     # Also, AIX nm treats weak defined symbols like other global defined
15776     # symbols, whereas GNU nm marks them as "W".
15777     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15778       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15779     else
15780       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'
15781     fi
15782     ;;
15783   pw32*)
15784     export_symbols_cmds_CXX="$ltdll_cmds"
15785     ;;
15786   cygwin* | mingw* | cegcc*)
15787     case $cc_basename in
15788     cl*)
15789       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15790       ;;
15791     *)
15792       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15793       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15794       ;;
15795     esac
15796     ;;
15797   *)
15798     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15799     ;;
15800   esac
15801
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15803 $as_echo "$ld_shlibs_CXX" >&6; }
15804 test "$ld_shlibs_CXX" = no && can_build_shared=no
15805
15806 with_gnu_ld_CXX=$with_gnu_ld
15807
15808
15809
15810
15811
15812
15813 #
15814 # Do we need to explicitly link libc?
15815 #
15816 case "x$archive_cmds_need_lc_CXX" in
15817 x|xyes)
15818   # Assume -lc should be added
15819   archive_cmds_need_lc_CXX=yes
15820
15821   if test "$enable_shared" = yes && test "$GCC" = yes; then
15822     case $archive_cmds_CXX in
15823     *'~'*)
15824       # FIXME: we may have to deal with multi-command sequences.
15825       ;;
15826     '$CC '*)
15827       # Test whether the compiler implicitly links with -lc since on some
15828       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15829       # to ld, don't add -lc before -lgcc.
15830       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15831 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15832 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15833   $as_echo_n "(cached) " >&6
15834 else
15835   $RM conftest*
15836         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15837
15838         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15839   (eval $ac_compile) 2>&5
15840   ac_status=$?
15841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15842   test $ac_status = 0; } 2>conftest.err; then
15843           soname=conftest
15844           lib=conftest
15845           libobjs=conftest.$ac_objext
15846           deplibs=
15847           wl=$lt_prog_compiler_wl_CXX
15848           pic_flag=$lt_prog_compiler_pic_CXX
15849           compiler_flags=-v
15850           linker_flags=-v
15851           verstring=
15852           output_objdir=.
15853           libname=conftest
15854           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15855           allow_undefined_flag_CXX=
15856           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15857   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15858   ac_status=$?
15859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15860   test $ac_status = 0; }
15861           then
15862             lt_cv_archive_cmds_need_lc_CXX=no
15863           else
15864             lt_cv_archive_cmds_need_lc_CXX=yes
15865           fi
15866           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15867         else
15868           cat conftest.err 1>&5
15869         fi
15870         $RM conftest*
15871
15872 fi
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15874 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15875       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15876       ;;
15877     esac
15878   fi
15879   ;;
15880 esac
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15944 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15945
15946 library_names_spec=
15947 libname_spec='lib$name'
15948 soname_spec=
15949 shrext_cmds=".so"
15950 postinstall_cmds=
15951 postuninstall_cmds=
15952 finish_cmds=
15953 finish_eval=
15954 shlibpath_var=
15955 shlibpath_overrides_runpath=unknown
15956 version_type=none
15957 dynamic_linker="$host_os ld.so"
15958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15959 need_lib_prefix=unknown
15960 hardcode_into_libs=no
15961
15962 # when you set need_version to no, make sure it does not cause -set_version
15963 # flags to be left without arguments
15964 need_version=unknown
15965
15966 case $host_os in
15967 aix3*)
15968   version_type=linux # correct to gnu/linux during the next big refactor
15969   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15970   shlibpath_var=LIBPATH
15971
15972   # AIX 3 has no versioning support, so we append a major version to the name.
15973   soname_spec='${libname}${release}${shared_ext}$major'
15974   ;;
15975
15976 aix[4-9]*)
15977   version_type=linux # correct to gnu/linux during the next big refactor
15978   need_lib_prefix=no
15979   need_version=no
15980   hardcode_into_libs=yes
15981   if test "$host_cpu" = ia64; then
15982     # AIX 5 supports IA64
15983     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15984     shlibpath_var=LD_LIBRARY_PATH
15985   else
15986     # With GCC up to 2.95.x, collect2 would create an import file
15987     # for dependence libraries.  The import file would start with
15988     # the line `#! .'.  This would cause the generated library to
15989     # depend on `.', always an invalid library.  This was fixed in
15990     # development snapshots of GCC prior to 3.0.
15991     case $host_os in
15992       aix4 | aix4.[01] | aix4.[01].*)
15993       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15994            echo ' yes '
15995            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15996         :
15997       else
15998         can_build_shared=no
15999       fi
16000       ;;
16001     esac
16002     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16003     # soname into executable. Probably we can add versioning support to
16004     # collect2, so additional links can be useful in future.
16005     if test "$aix_use_runtimelinking" = yes; then
16006       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16007       # instead of lib<name>.a to let people know that these are not
16008       # typical AIX shared libraries.
16009       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010     else
16011       # We preserve .a as extension for shared libraries through AIX4.2
16012       # and later when we are not doing run time linking.
16013       library_names_spec='${libname}${release}.a $libname.a'
16014       soname_spec='${libname}${release}${shared_ext}$major'
16015     fi
16016     shlibpath_var=LIBPATH
16017   fi
16018   ;;
16019
16020 amigaos*)
16021   case $host_cpu in
16022   powerpc)
16023     # Since July 2007 AmigaOS4 officially supports .so libraries.
16024     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026     ;;
16027   m68k)
16028     library_names_spec='$libname.ixlibrary $libname.a'
16029     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16030     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16031     ;;
16032   esac
16033   ;;
16034
16035 beos*)
16036   library_names_spec='${libname}${shared_ext}'
16037   dynamic_linker="$host_os ld.so"
16038   shlibpath_var=LIBRARY_PATH
16039   ;;
16040
16041 bsdi[45]*)
16042   version_type=linux # correct to gnu/linux during the next big refactor
16043   need_version=no
16044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045   soname_spec='${libname}${release}${shared_ext}$major'
16046   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16047   shlibpath_var=LD_LIBRARY_PATH
16048   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16049   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16050   # the default ld.so.conf also contains /usr/contrib/lib and
16051   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16052   # libtool to hard-code these into programs
16053   ;;
16054
16055 cygwin* | mingw* | pw32* | cegcc*)
16056   version_type=windows
16057   shrext_cmds=".dll"
16058   need_version=no
16059   need_lib_prefix=no
16060
16061   case $GCC,$cc_basename in
16062   yes,*)
16063     # gcc
16064     library_names_spec='$libname.dll.a'
16065     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16066     postinstall_cmds='base_file=`basename \${file}`~
16067       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16068       dldir=$destdir/`dirname \$dlpath`~
16069       test -d \$dldir || mkdir -p \$dldir~
16070       $install_prog $dir/$dlname \$dldir/$dlname~
16071       chmod a+x \$dldir/$dlname~
16072       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16073         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16074       fi'
16075     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16076       dlpath=$dir/\$dldll~
16077        $RM \$dlpath'
16078     shlibpath_overrides_runpath=yes
16079
16080     case $host_os in
16081     cygwin*)
16082       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16083       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084
16085       ;;
16086     mingw* | cegcc*)
16087       # MinGW DLLs use traditional 'lib' prefix
16088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089       ;;
16090     pw32*)
16091       # pw32 DLLs use 'pw' prefix rather than 'lib'
16092       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093       ;;
16094     esac
16095     dynamic_linker='Win32 ld.exe'
16096     ;;
16097
16098   *,cl*)
16099     # Native MSVC
16100     libname_spec='$name'
16101     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16102     library_names_spec='${libname}.dll.lib'
16103
16104     case $build_os in
16105     mingw*)
16106       sys_lib_search_path_spec=
16107       lt_save_ifs=$IFS
16108       IFS=';'
16109       for lt_path in $LIB
16110       do
16111         IFS=$lt_save_ifs
16112         # Let DOS variable expansion print the short 8.3 style file name.
16113         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16114         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16115       done
16116       IFS=$lt_save_ifs
16117       # Convert to MSYS style.
16118       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16119       ;;
16120     cygwin*)
16121       # Convert to unix form, then to dos form, then back to unix form
16122       # but this time dos style (no spaces!) so that the unix form looks
16123       # like /cygdrive/c/PROGRA~1:/cygdr...
16124       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16125       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16126       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16127       ;;
16128     *)
16129       sys_lib_search_path_spec="$LIB"
16130       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16131         # It is most probably a Windows format PATH.
16132         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16133       else
16134         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16135       fi
16136       # FIXME: find the short name or the path components, as spaces are
16137       # common. (e.g. "Program Files" -> "PROGRA~1")
16138       ;;
16139     esac
16140
16141     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16142     postinstall_cmds='base_file=`basename \${file}`~
16143       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16144       dldir=$destdir/`dirname \$dlpath`~
16145       test -d \$dldir || mkdir -p \$dldir~
16146       $install_prog $dir/$dlname \$dldir/$dlname'
16147     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16148       dlpath=$dir/\$dldll~
16149        $RM \$dlpath'
16150     shlibpath_overrides_runpath=yes
16151     dynamic_linker='Win32 link.exe'
16152     ;;
16153
16154   *)
16155     # Assume MSVC wrapper
16156     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16157     dynamic_linker='Win32 ld.exe'
16158     ;;
16159   esac
16160   # FIXME: first we should search . and the directory the executable is in
16161   shlibpath_var=PATH
16162   ;;
16163
16164 darwin* | rhapsody*)
16165   dynamic_linker="$host_os dyld"
16166   version_type=darwin
16167   need_lib_prefix=no
16168   need_version=no
16169   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16170   soname_spec='${libname}${release}${major}$shared_ext'
16171   shlibpath_overrides_runpath=yes
16172   shlibpath_var=DYLD_LIBRARY_PATH
16173   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16174
16175   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16176   ;;
16177
16178 dgux*)
16179   version_type=linux # correct to gnu/linux during the next big refactor
16180   need_lib_prefix=no
16181   need_version=no
16182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16183   soname_spec='${libname}${release}${shared_ext}$major'
16184   shlibpath_var=LD_LIBRARY_PATH
16185   ;;
16186
16187 freebsd* | dragonfly*)
16188   # DragonFly does not have aout.  When/if they implement a new
16189   # versioning mechanism, adjust this.
16190   if test -x /usr/bin/objformat; then
16191     objformat=`/usr/bin/objformat`
16192   else
16193     case $host_os in
16194     freebsd[23].*) objformat=aout ;;
16195     *) objformat=elf ;;
16196     esac
16197   fi
16198   version_type=freebsd-$objformat
16199   case $version_type in
16200     freebsd-elf*)
16201       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16202       need_version=no
16203       need_lib_prefix=no
16204       ;;
16205     freebsd-*)
16206       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16207       need_version=yes
16208       ;;
16209   esac
16210   shlibpath_var=LD_LIBRARY_PATH
16211   case $host_os in
16212   freebsd2.*)
16213     shlibpath_overrides_runpath=yes
16214     ;;
16215   freebsd3.[01]* | freebsdelf3.[01]*)
16216     shlibpath_overrides_runpath=yes
16217     hardcode_into_libs=yes
16218     ;;
16219   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16220   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16221     shlibpath_overrides_runpath=no
16222     hardcode_into_libs=yes
16223     ;;
16224   *) # from 4.6 on, and DragonFly
16225     shlibpath_overrides_runpath=yes
16226     hardcode_into_libs=yes
16227     ;;
16228   esac
16229   ;;
16230
16231 gnu*)
16232   version_type=linux # correct to gnu/linux during the next big refactor
16233   need_lib_prefix=no
16234   need_version=no
16235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16236   soname_spec='${libname}${release}${shared_ext}$major'
16237   shlibpath_var=LD_LIBRARY_PATH
16238   shlibpath_overrides_runpath=no
16239   hardcode_into_libs=yes
16240   ;;
16241
16242 haiku*)
16243   version_type=linux # correct to gnu/linux during the next big refactor
16244   need_lib_prefix=no
16245   need_version=no
16246   dynamic_linker="$host_os runtime_loader"
16247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16248   soname_spec='${libname}${release}${shared_ext}$major'
16249   shlibpath_var=LIBRARY_PATH
16250   shlibpath_overrides_runpath=yes
16251   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16252   hardcode_into_libs=yes
16253   ;;
16254
16255 hpux9* | hpux10* | hpux11*)
16256   # Give a soname corresponding to the major version so that dld.sl refuses to
16257   # link against other versions.
16258   version_type=sunos
16259   need_lib_prefix=no
16260   need_version=no
16261   case $host_cpu in
16262   ia64*)
16263     shrext_cmds='.so'
16264     hardcode_into_libs=yes
16265     dynamic_linker="$host_os dld.so"
16266     shlibpath_var=LD_LIBRARY_PATH
16267     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16269     soname_spec='${libname}${release}${shared_ext}$major'
16270     if test "X$HPUX_IA64_MODE" = X32; then
16271       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16272     else
16273       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16274     fi
16275     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16276     ;;
16277   hppa*64*)
16278     shrext_cmds='.sl'
16279     hardcode_into_libs=yes
16280     dynamic_linker="$host_os dld.sl"
16281     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16282     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284     soname_spec='${libname}${release}${shared_ext}$major'
16285     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16286     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16287     ;;
16288   *)
16289     shrext_cmds='.sl'
16290     dynamic_linker="$host_os dld.sl"
16291     shlibpath_var=SHLIB_PATH
16292     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294     soname_spec='${libname}${release}${shared_ext}$major'
16295     ;;
16296   esac
16297   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16298   postinstall_cmds='chmod 555 $lib'
16299   # or fails outright, so override atomically:
16300   install_override_mode=555
16301   ;;
16302
16303 interix[3-9]*)
16304   version_type=linux # correct to gnu/linux during the next big refactor
16305   need_lib_prefix=no
16306   need_version=no
16307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16308   soname_spec='${libname}${release}${shared_ext}$major'
16309   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16310   shlibpath_var=LD_LIBRARY_PATH
16311   shlibpath_overrides_runpath=no
16312   hardcode_into_libs=yes
16313   ;;
16314
16315 irix5* | irix6* | nonstopux*)
16316   case $host_os in
16317     nonstopux*) version_type=nonstopux ;;
16318     *)
16319         if test "$lt_cv_prog_gnu_ld" = yes; then
16320                 version_type=linux # correct to gnu/linux during the next big refactor
16321         else
16322                 version_type=irix
16323         fi ;;
16324   esac
16325   need_lib_prefix=no
16326   need_version=no
16327   soname_spec='${libname}${release}${shared_ext}$major'
16328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16329   case $host_os in
16330   irix5* | nonstopux*)
16331     libsuff= shlibsuff=
16332     ;;
16333   *)
16334     case $LD in # libtool.m4 will add one of these switches to LD
16335     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16336       libsuff= shlibsuff= libmagic=32-bit;;
16337     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16338       libsuff=32 shlibsuff=N32 libmagic=N32;;
16339     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16340       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16341     *) libsuff= shlibsuff= libmagic=never-match;;
16342     esac
16343     ;;
16344   esac
16345   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16346   shlibpath_overrides_runpath=no
16347   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16348   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16349   hardcode_into_libs=yes
16350   ;;
16351
16352 # No shared lib support for Linux oldld, aout, or coff.
16353 linux*oldld* | linux*aout* | linux*coff*)
16354   dynamic_linker=no
16355   ;;
16356
16357 # This must be glibc/ELF.
16358 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16359   version_type=linux # correct to gnu/linux during the next big refactor
16360   need_lib_prefix=no
16361   need_version=no
16362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363   soname_spec='${libname}${release}${shared_ext}$major'
16364   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16365   shlibpath_var=LD_LIBRARY_PATH
16366   shlibpath_overrides_runpath=no
16367
16368   # Some binutils ld are patched to set DT_RUNPATH
16369   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16370   $as_echo_n "(cached) " >&6
16371 else
16372   lt_cv_shlibpath_overrides_runpath=no
16373     save_LDFLAGS=$LDFLAGS
16374     save_libdir=$libdir
16375     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16376          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h.  */
16379
16380 int
16381 main ()
16382 {
16383
16384   ;
16385   return 0;
16386 }
16387 _ACEOF
16388 if ac_fn_cxx_try_link "$LINENO"; then :
16389   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16390   lt_cv_shlibpath_overrides_runpath=yes
16391 fi
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext \
16394     conftest$ac_exeext conftest.$ac_ext
16395     LDFLAGS=$save_LDFLAGS
16396     libdir=$save_libdir
16397
16398 fi
16399
16400   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16401
16402   # This implies no fast_install, which is unacceptable.
16403   # Some rework will be needed to allow for fast_install
16404   # before this can be enabled.
16405   hardcode_into_libs=yes
16406
16407   # Append ld.so.conf contents to the search path
16408   if test -f /etc/ld.so.conf; then
16409     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16410     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16411   fi
16412
16413   # We used to test for /lib/ld.so.1 and disable shared libraries on
16414   # powerpc, because MkLinux only supported shared libraries with the
16415   # GNU dynamic linker.  Since this was broken with cross compilers,
16416   # most powerpc-linux boxes support dynamic linking these days and
16417   # people can always --disable-shared, the test was removed, and we
16418   # assume the GNU/Linux dynamic linker is in use.
16419   dynamic_linker='GNU/Linux ld.so'
16420   ;;
16421
16422 netbsd*)
16423   version_type=sunos
16424   need_lib_prefix=no
16425   need_version=no
16426   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16428     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16429     dynamic_linker='NetBSD (a.out) ld.so'
16430   else
16431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16432     soname_spec='${libname}${release}${shared_ext}$major'
16433     dynamic_linker='NetBSD ld.elf_so'
16434   fi
16435   shlibpath_var=LD_LIBRARY_PATH
16436   shlibpath_overrides_runpath=yes
16437   hardcode_into_libs=yes
16438   ;;
16439
16440 newsos6)
16441   version_type=linux # correct to gnu/linux during the next big refactor
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443   shlibpath_var=LD_LIBRARY_PATH
16444   shlibpath_overrides_runpath=yes
16445   ;;
16446
16447 *nto* | *qnx*)
16448   version_type=qnx
16449   need_lib_prefix=no
16450   need_version=no
16451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452   soname_spec='${libname}${release}${shared_ext}$major'
16453   shlibpath_var=LD_LIBRARY_PATH
16454   shlibpath_overrides_runpath=no
16455   hardcode_into_libs=yes
16456   dynamic_linker='ldqnx.so'
16457   ;;
16458
16459 openbsd*)
16460   version_type=sunos
16461   sys_lib_dlsearch_path_spec="/usr/lib"
16462   need_lib_prefix=no
16463   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16464   case $host_os in
16465     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16466     *)                          need_version=no  ;;
16467   esac
16468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16469   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16470   shlibpath_var=LD_LIBRARY_PATH
16471   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16472     case $host_os in
16473       openbsd2.[89] | openbsd2.[89].*)
16474         shlibpath_overrides_runpath=no
16475         ;;
16476       *)
16477         shlibpath_overrides_runpath=yes
16478         ;;
16479       esac
16480   else
16481     shlibpath_overrides_runpath=yes
16482   fi
16483   ;;
16484
16485 os2*)
16486   libname_spec='$name'
16487   shrext_cmds=".dll"
16488   need_lib_prefix=no
16489   library_names_spec='$libname${shared_ext} $libname.a'
16490   dynamic_linker='OS/2 ld.exe'
16491   shlibpath_var=LIBPATH
16492   ;;
16493
16494 osf3* | osf4* | osf5*)
16495   version_type=osf
16496   need_lib_prefix=no
16497   need_version=no
16498   soname_spec='${libname}${release}${shared_ext}$major'
16499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500   shlibpath_var=LD_LIBRARY_PATH
16501   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16502   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16503   ;;
16504
16505 rdos*)
16506   dynamic_linker=no
16507   ;;
16508
16509 solaris*)
16510   version_type=linux # correct to gnu/linux during the next big refactor
16511   need_lib_prefix=no
16512   need_version=no
16513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514   soname_spec='${libname}${release}${shared_ext}$major'
16515   shlibpath_var=LD_LIBRARY_PATH
16516   shlibpath_overrides_runpath=yes
16517   hardcode_into_libs=yes
16518   # ldd complains unless libraries are executable
16519   postinstall_cmds='chmod +x $lib'
16520   ;;
16521
16522 sunos4*)
16523   version_type=sunos
16524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16526   shlibpath_var=LD_LIBRARY_PATH
16527   shlibpath_overrides_runpath=yes
16528   if test "$with_gnu_ld" = yes; then
16529     need_lib_prefix=no
16530   fi
16531   need_version=yes
16532   ;;
16533
16534 sysv4 | sysv4.3*)
16535   version_type=linux # correct to gnu/linux during the next big refactor
16536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537   soname_spec='${libname}${release}${shared_ext}$major'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   case $host_vendor in
16540     sni)
16541       shlibpath_overrides_runpath=no
16542       need_lib_prefix=no
16543       runpath_var=LD_RUN_PATH
16544       ;;
16545     siemens)
16546       need_lib_prefix=no
16547       ;;
16548     motorola)
16549       need_lib_prefix=no
16550       need_version=no
16551       shlibpath_overrides_runpath=no
16552       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16553       ;;
16554   esac
16555   ;;
16556
16557 sysv4*MP*)
16558   if test -d /usr/nec ;then
16559     version_type=linux # correct to gnu/linux during the next big refactor
16560     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16561     soname_spec='$libname${shared_ext}.$major'
16562     shlibpath_var=LD_LIBRARY_PATH
16563   fi
16564   ;;
16565
16566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16567   version_type=freebsd-elf
16568   need_lib_prefix=no
16569   need_version=no
16570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16571   soname_spec='${libname}${release}${shared_ext}$major'
16572   shlibpath_var=LD_LIBRARY_PATH
16573   shlibpath_overrides_runpath=yes
16574   hardcode_into_libs=yes
16575   if test "$with_gnu_ld" = yes; then
16576     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16577   else
16578     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16579     case $host_os in
16580       sco3.2v5*)
16581         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16582         ;;
16583     esac
16584   fi
16585   sys_lib_dlsearch_path_spec='/usr/lib'
16586   ;;
16587
16588 tpf*)
16589   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16590   version_type=linux # correct to gnu/linux during the next big refactor
16591   need_lib_prefix=no
16592   need_version=no
16593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594   shlibpath_var=LD_LIBRARY_PATH
16595   shlibpath_overrides_runpath=no
16596   hardcode_into_libs=yes
16597   ;;
16598
16599 uts4*)
16600   version_type=linux # correct to gnu/linux during the next big refactor
16601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602   soname_spec='${libname}${release}${shared_ext}$major'
16603   shlibpath_var=LD_LIBRARY_PATH
16604   ;;
16605
16606 *)
16607   dynamic_linker=no
16608   ;;
16609 esac
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16611 $as_echo "$dynamic_linker" >&6; }
16612 test "$dynamic_linker" = no && can_build_shared=no
16613
16614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16615 if test "$GCC" = yes; then
16616   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16617 fi
16618
16619 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16620   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16621 fi
16622 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16623   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16624 fi
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16664 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16665 hardcode_action_CXX=
16666 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16667    test -n "$runpath_var_CXX" ||
16668    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16669
16670   # We can hardcode non-existent directories.
16671   if test "$hardcode_direct_CXX" != no &&
16672      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16673      # have to relink, otherwise we might link with an installed library
16674      # when we should be linking with a yet-to-be-installed one
16675      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16676      test "$hardcode_minus_L_CXX" != no; then
16677     # Linking always hardcodes the temporary library directory.
16678     hardcode_action_CXX=relink
16679   else
16680     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16681     hardcode_action_CXX=immediate
16682   fi
16683 else
16684   # We cannot hardcode anything, or else we can only hardcode existing
16685   # directories.
16686   hardcode_action_CXX=unsupported
16687 fi
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16689 $as_echo "$hardcode_action_CXX" >&6; }
16690
16691 if test "$hardcode_action_CXX" = relink ||
16692    test "$inherit_rpath_CXX" = yes; then
16693   # Fast installation is not supported
16694   enable_fast_install=no
16695 elif test "$shlibpath_overrides_runpath" = yes ||
16696      test "$enable_shared" = no; then
16697   # Fast installation is not necessary
16698   enable_fast_install=needless
16699 fi
16700
16701
16702
16703
16704
16705
16706
16707   fi # test -n "$compiler"
16708
16709   CC=$lt_save_CC
16710   CFLAGS=$lt_save_CFLAGS
16711   LDCXX=$LD
16712   LD=$lt_save_LD
16713   GCC=$lt_save_GCC
16714   with_gnu_ld=$lt_save_with_gnu_ld
16715   lt_cv_path_LDCXX=$lt_cv_path_LD
16716   lt_cv_path_LD=$lt_save_path_LD
16717   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16718   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16719 fi # test "$_lt_caught_CXX_error" != yes
16720
16721 ac_ext=c
16722 ac_cpp='$CPP $CPPFLAGS'
16723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16726
16727
16728 ac_ext=f
16729 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16730 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16731 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16732 if test -n "$ac_tool_prefix"; then
16733   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 pgfortran pgf95 lf95 ftn
16734   do
16735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16738 $as_echo_n "checking for $ac_word... " >&6; }
16739 if ${ac_cv_prog_F77+:} false; then :
16740   $as_echo_n "(cached) " >&6
16741 else
16742   if test -n "$F77"; then
16743   ac_cv_prog_F77="$F77" # Let the user override the test.
16744 else
16745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746 for as_dir in $PATH
16747 do
16748   IFS=$as_save_IFS
16749   test -z "$as_dir" && as_dir=.
16750     for ac_exec_ext in '' $ac_executable_extensions; do
16751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16752     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16754     break 2
16755   fi
16756 done
16757   done
16758 IFS=$as_save_IFS
16759
16760 fi
16761 fi
16762 F77=$ac_cv_prog_F77
16763 if test -n "$F77"; then
16764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
16765 $as_echo "$F77" >&6; }
16766 else
16767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768 $as_echo "no" >&6; }
16769 fi
16770
16771
16772     test -n "$F77" && break
16773   done
16774 fi
16775 if test -z "$F77"; then
16776   ac_ct_F77=$F77
16777   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 pgfortran pgf95 lf95 ftn
16778 do
16779   # Extract the first word of "$ac_prog", so it can be a program name with args.
16780 set dummy $ac_prog; ac_word=$2
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16782 $as_echo_n "checking for $ac_word... " >&6; }
16783 if ${ac_cv_prog_ac_ct_F77+:} false; then :
16784   $as_echo_n "(cached) " >&6
16785 else
16786   if test -n "$ac_ct_F77"; then
16787   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16788 else
16789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16790 for as_dir in $PATH
16791 do
16792   IFS=$as_save_IFS
16793   test -z "$as_dir" && as_dir=.
16794     for ac_exec_ext in '' $ac_executable_extensions; do
16795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16796     ac_cv_prog_ac_ct_F77="$ac_prog"
16797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16798     break 2
16799   fi
16800 done
16801   done
16802 IFS=$as_save_IFS
16803
16804 fi
16805 fi
16806 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16807 if test -n "$ac_ct_F77"; then
16808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
16809 $as_echo "$ac_ct_F77" >&6; }
16810 else
16811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16812 $as_echo "no" >&6; }
16813 fi
16814
16815
16816   test -n "$ac_ct_F77" && break
16817 done
16818
16819   if test "x$ac_ct_F77" = x; then
16820     F77=""
16821   else
16822     case $cross_compiling:$ac_tool_warned in
16823 yes:)
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16826 ac_tool_warned=yes ;;
16827 esac
16828     F77=$ac_ct_F77
16829   fi
16830 fi
16831
16832
16833 # Provide some information about the compiler.
16834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
16835 set X $ac_compile
16836 ac_compiler=$2
16837 for ac_option in --version -v -V -qversion; do
16838   { { ac_try="$ac_compiler $ac_option >&5"
16839 case "(($ac_try" in
16840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841   *) ac_try_echo=$ac_try;;
16842 esac
16843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16844 $as_echo "$ac_try_echo"; } >&5
16845   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16846   ac_status=$?
16847   if test -s conftest.err; then
16848     sed '10a\
16849 ... rest of stderr output deleted ...
16850          10q' conftest.err >conftest.er1
16851     cat conftest.er1 >&5
16852   fi
16853   rm -f conftest.er1 conftest.err
16854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16855   test $ac_status = 0; }
16856 done
16857 rm -f a.out
16858
16859 # If we don't use `.F' as extension, the preprocessor is not run on the
16860 # input file.  (Note that this only needs to work for GNU compilers.)
16861 ac_save_ext=$ac_ext
16862 ac_ext=F
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
16864 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
16865 if ${ac_cv_f77_compiler_gnu+:} false; then :
16866   $as_echo_n "(cached) " >&6
16867 else
16868   cat > conftest.$ac_ext <<_ACEOF
16869       program main
16870 #ifndef __GNUC__
16871        choke me
16872 #endif
16873
16874       end
16875 _ACEOF
16876 if ac_fn_f77_try_compile "$LINENO"; then :
16877   ac_compiler_gnu=yes
16878 else
16879   ac_compiler_gnu=no
16880 fi
16881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16882 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16883
16884 fi
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
16886 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
16887 ac_ext=$ac_save_ext
16888 ac_test_FFLAGS=${FFLAGS+set}
16889 ac_save_FFLAGS=$FFLAGS
16890 FFLAGS=
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
16892 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
16893 if ${ac_cv_prog_f77_g+:} false; then :
16894   $as_echo_n "(cached) " >&6
16895 else
16896   FFLAGS=-g
16897 cat > conftest.$ac_ext <<_ACEOF
16898       program main
16899
16900       end
16901 _ACEOF
16902 if ac_fn_f77_try_compile "$LINENO"; then :
16903   ac_cv_prog_f77_g=yes
16904 else
16905   ac_cv_prog_f77_g=no
16906 fi
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908
16909 fi
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
16911 $as_echo "$ac_cv_prog_f77_g" >&6; }
16912 if test "$ac_test_FFLAGS" = set; then
16913   FFLAGS=$ac_save_FFLAGS
16914 elif test $ac_cv_prog_f77_g = yes; then
16915   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16916     FFLAGS="-g -O2"
16917   else
16918     FFLAGS="-g"
16919   fi
16920 else
16921   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16922     FFLAGS="-O2"
16923   else
16924     FFLAGS=
16925   fi
16926 fi
16927
16928 if test $ac_compiler_gnu = yes; then
16929   G77=yes
16930 else
16931   G77=
16932 fi
16933 ac_ext=f
16934 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16935 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16936 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16937
16938
16939       ac_ext=f
16940 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16941 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16942 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16943
16944 if test -z "$F77" || test "X$F77" = "Xno"; then
16945   _lt_disable_F77=yes
16946 fi
16947
16948 archive_cmds_need_lc_F77=no
16949 allow_undefined_flag_F77=
16950 always_export_symbols_F77=no
16951 archive_expsym_cmds_F77=
16952 export_dynamic_flag_spec_F77=
16953 hardcode_direct_F77=no
16954 hardcode_direct_absolute_F77=no
16955 hardcode_libdir_flag_spec_F77=
16956 hardcode_libdir_separator_F77=
16957 hardcode_minus_L_F77=no
16958 hardcode_automatic_F77=no
16959 inherit_rpath_F77=no
16960 module_cmds_F77=
16961 module_expsym_cmds_F77=
16962 link_all_deplibs_F77=unknown
16963 old_archive_cmds_F77=$old_archive_cmds
16964 reload_flag_F77=$reload_flag
16965 reload_cmds_F77=$reload_cmds
16966 no_undefined_flag_F77=
16967 whole_archive_flag_spec_F77=
16968 enable_shared_with_static_runtimes_F77=no
16969
16970 # Source file extension for f77 test sources.
16971 ac_ext=f
16972
16973 # Object file extension for compiled f77 test sources.
16974 objext=o
16975 objext_F77=$objext
16976
16977 # No sense in running all these tests if we already determined that
16978 # the F77 compiler isn't working.  Some variables (like enable_shared)
16979 # are currently assumed to apply to all compilers on this platform,
16980 # and will be corrupted by setting them based on a non-working compiler.
16981 if test "$_lt_disable_F77" != yes; then
16982   # Code to be used in simple compile tests
16983   lt_simple_compile_test_code="\
16984       subroutine t
16985       return
16986       end
16987 "
16988
16989   # Code to be used in simple link tests
16990   lt_simple_link_test_code="\
16991       program t
16992       end
16993 "
16994
16995   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16996
16997
16998
16999
17000
17001
17002 # If no C compiler was specified, use CC.
17003 LTCC=${LTCC-"$CC"}
17004
17005 # If no C compiler flags were specified, use CFLAGS.
17006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17007
17008 # Allow CC to be a program name with arguments.
17009 compiler=$CC
17010
17011
17012   # save warnings/boilerplate of simple test code
17013   ac_outfile=conftest.$ac_objext
17014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17016 _lt_compiler_boilerplate=`cat conftest.err`
17017 $RM conftest*
17018
17019   ac_outfile=conftest.$ac_objext
17020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17022 _lt_linker_boilerplate=`cat conftest.err`
17023 $RM -r conftest*
17024
17025
17026   # Allow CC to be a program name with arguments.
17027   lt_save_CC="$CC"
17028   lt_save_GCC=$GCC
17029   lt_save_CFLAGS=$CFLAGS
17030   CC=${F77-"f77"}
17031   CFLAGS=$FFLAGS
17032   compiler=$CC
17033   compiler_F77=$CC
17034   for cc_temp in $compiler""; do
17035   case $cc_temp in
17036     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17037     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17038     \-*) ;;
17039     *) break;;
17040   esac
17041 done
17042 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17043
17044   GCC=$G77
17045   if test -n "$compiler"; then
17046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17047 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17049 $as_echo "$can_build_shared" >&6; }
17050
17051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17052 $as_echo_n "checking whether to build shared libraries... " >&6; }
17053     test "$can_build_shared" = "no" && enable_shared=no
17054
17055     # On AIX, shared libraries and static libraries use the same namespace, and
17056     # are all built from PIC.
17057     case $host_os in
17058       aix3*)
17059         test "$enable_shared" = yes && enable_static=no
17060         if test -n "$RANLIB"; then
17061           archive_cmds="$archive_cmds~\$RANLIB \$lib"
17062           postinstall_cmds='$RANLIB $lib'
17063         fi
17064         ;;
17065       aix[4-9]*)
17066         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17067           test "$enable_shared" = yes && enable_static=no
17068         fi
17069         ;;
17070     esac
17071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17072 $as_echo "$enable_shared" >&6; }
17073
17074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17075 $as_echo_n "checking whether to build static libraries... " >&6; }
17076     # Make sure either enable_shared or enable_static is yes.
17077     test "$enable_shared" = yes || enable_static=yes
17078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17079 $as_echo "$enable_static" >&6; }
17080
17081     GCC_F77="$G77"
17082     LD_F77="$LD"
17083
17084     ## CAVEAT EMPTOR:
17085     ## There is no encapsulation within the following macros, do not change
17086     ## the running order or otherwise move them around unless you know exactly
17087     ## what you are doing...
17088     lt_prog_compiler_wl_F77=
17089 lt_prog_compiler_pic_F77=
17090 lt_prog_compiler_static_F77=
17091
17092
17093   if test "$GCC" = yes; then
17094     lt_prog_compiler_wl_F77='-Wl,'
17095     lt_prog_compiler_static_F77='-static'
17096
17097     case $host_os in
17098       aix*)
17099       # All AIX code is PIC.
17100       if test "$host_cpu" = ia64; then
17101         # AIX 5 now supports IA64 processor
17102         lt_prog_compiler_static_F77='-Bstatic'
17103       fi
17104       ;;
17105
17106     amigaos*)
17107       case $host_cpu in
17108       powerpc)
17109             # see comment about AmigaOS4 .so support
17110             lt_prog_compiler_pic_F77='-fPIC'
17111         ;;
17112       m68k)
17113             # FIXME: we need at least 68020 code to build shared libraries, but
17114             # adding the `-m68020' flag to GCC prevents building anything better,
17115             # like `-m68040'.
17116             lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17117         ;;
17118       esac
17119       ;;
17120
17121     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17122       # PIC is the default for these OSes.
17123       ;;
17124
17125     mingw* | cygwin* | pw32* | os2* | cegcc*)
17126       # This hack is so that the source file can tell whether it is being
17127       # built for inclusion in a dll (and should export symbols for example).
17128       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17129       # (--disable-auto-import) libraries
17130       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17131       ;;
17132
17133     darwin* | rhapsody*)
17134       # PIC is the default on this platform
17135       # Common symbols not allowed in MH_DYLIB files
17136       lt_prog_compiler_pic_F77='-fno-common'
17137       ;;
17138
17139     haiku*)
17140       # PIC is the default for Haiku.
17141       # The "-static" flag exists, but is broken.
17142       lt_prog_compiler_static_F77=
17143       ;;
17144
17145     hpux*)
17146       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17147       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17148       # sets the default TLS model and affects inlining.
17149       case $host_cpu in
17150       hppa*64*)
17151         # +Z the default
17152         ;;
17153       *)
17154         lt_prog_compiler_pic_F77='-fPIC'
17155         ;;
17156       esac
17157       ;;
17158
17159     interix[3-9]*)
17160       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17161       # Instead, we relocate shared libraries at runtime.
17162       ;;
17163
17164     msdosdjgpp*)
17165       # Just because we use GCC doesn't mean we suddenly get shared libraries
17166       # on systems that don't support them.
17167       lt_prog_compiler_can_build_shared_F77=no
17168       enable_shared=no
17169       ;;
17170
17171     *nto* | *qnx*)
17172       # QNX uses GNU C++, but need to define -shared option too, otherwise
17173       # it will coredump.
17174       lt_prog_compiler_pic_F77='-fPIC -shared'
17175       ;;
17176
17177     sysv4*MP*)
17178       if test -d /usr/nec; then
17179         lt_prog_compiler_pic_F77=-Kconform_pic
17180       fi
17181       ;;
17182
17183     *)
17184       lt_prog_compiler_pic_F77='-fPIC'
17185       ;;
17186     esac
17187
17188     case $cc_basename in
17189     nvcc*) # Cuda Compiler Driver 2.2
17190       lt_prog_compiler_wl_F77='-Xlinker '
17191       if test -n "$lt_prog_compiler_pic_F77"; then
17192         lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
17193       fi
17194       ;;
17195     esac
17196   else
17197     # PORTME Check for flag to pass linker flags through the system compiler.
17198     case $host_os in
17199     aix*)
17200       lt_prog_compiler_wl_F77='-Wl,'
17201       if test "$host_cpu" = ia64; then
17202         # AIX 5 now supports IA64 processor
17203         lt_prog_compiler_static_F77='-Bstatic'
17204       else
17205         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17206       fi
17207       ;;
17208
17209     mingw* | cygwin* | pw32* | os2* | cegcc*)
17210       # This hack is so that the source file can tell whether it is being
17211       # built for inclusion in a dll (and should export symbols for example).
17212       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17213       ;;
17214
17215     hpux9* | hpux10* | hpux11*)
17216       lt_prog_compiler_wl_F77='-Wl,'
17217       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17218       # not for PA HP-UX.
17219       case $host_cpu in
17220       hppa*64*|ia64*)
17221         # +Z the default
17222         ;;
17223       *)
17224         lt_prog_compiler_pic_F77='+Z'
17225         ;;
17226       esac
17227       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17228       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17229       ;;
17230
17231     irix5* | irix6* | nonstopux*)
17232       lt_prog_compiler_wl_F77='-Wl,'
17233       # PIC (with -KPIC) is the default.
17234       lt_prog_compiler_static_F77='-non_shared'
17235       ;;
17236
17237     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17238       case $cc_basename in
17239       # old Intel for x86_64 which still supported -KPIC.
17240       ecc*)
17241         lt_prog_compiler_wl_F77='-Wl,'
17242         lt_prog_compiler_pic_F77='-KPIC'
17243         lt_prog_compiler_static_F77='-static'
17244         ;;
17245       # icc used to be incompatible with GCC.
17246       # ICC 10 doesn't accept -KPIC any more.
17247       icc* | ifort*)
17248         lt_prog_compiler_wl_F77='-Wl,'
17249         lt_prog_compiler_pic_F77='-fPIC'
17250         lt_prog_compiler_static_F77='-static'
17251         ;;
17252       # Lahey Fortran 8.1.
17253       lf95*)
17254         lt_prog_compiler_wl_F77='-Wl,'
17255         lt_prog_compiler_pic_F77='--shared'
17256         lt_prog_compiler_static_F77='--static'
17257         ;;
17258       nagfor*)
17259         # NAG Fortran compiler
17260         lt_prog_compiler_wl_F77='-Wl,-Wl,,'
17261         lt_prog_compiler_pic_F77='-PIC'
17262         lt_prog_compiler_static_F77='-Bstatic'
17263         ;;
17264       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17265         # Portland Group compilers (*not* the Pentium gcc compiler,
17266         # which looks to be a dead project)
17267         lt_prog_compiler_wl_F77='-Wl,'
17268         lt_prog_compiler_pic_F77='-fpic'
17269         lt_prog_compiler_static_F77='-Bstatic'
17270         ;;
17271       ccc*)
17272         lt_prog_compiler_wl_F77='-Wl,'
17273         # All Alpha code is PIC.
17274         lt_prog_compiler_static_F77='-non_shared'
17275         ;;
17276       xl* | bgxl* | bgf* | mpixl*)
17277         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17278         lt_prog_compiler_wl_F77='-Wl,'
17279         lt_prog_compiler_pic_F77='-qpic'
17280         lt_prog_compiler_static_F77='-qstaticlink'
17281         ;;
17282       *)
17283         case `$CC -V 2>&1 | sed 5q` in
17284         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
17285           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17286           lt_prog_compiler_pic_F77='-KPIC'
17287           lt_prog_compiler_static_F77='-Bstatic'
17288           lt_prog_compiler_wl_F77=''
17289           ;;
17290         *Sun\ F* | *Sun*Fortran*)
17291           lt_prog_compiler_pic_F77='-KPIC'
17292           lt_prog_compiler_static_F77='-Bstatic'
17293           lt_prog_compiler_wl_F77='-Qoption ld '
17294           ;;
17295         *Sun\ C*)
17296           # Sun C 5.9
17297           lt_prog_compiler_pic_F77='-KPIC'
17298           lt_prog_compiler_static_F77='-Bstatic'
17299           lt_prog_compiler_wl_F77='-Wl,'
17300           ;;
17301         *Intel*\ [CF]*Compiler*)
17302           lt_prog_compiler_wl_F77='-Wl,'
17303           lt_prog_compiler_pic_F77='-fPIC'
17304           lt_prog_compiler_static_F77='-static'
17305           ;;
17306         *Portland\ Group*)
17307           lt_prog_compiler_wl_F77='-Wl,'
17308           lt_prog_compiler_pic_F77='-fpic'
17309           lt_prog_compiler_static_F77='-Bstatic'
17310           ;;
17311         esac
17312         ;;
17313       esac
17314       ;;
17315
17316     newsos6)
17317       lt_prog_compiler_pic_F77='-KPIC'
17318       lt_prog_compiler_static_F77='-Bstatic'
17319       ;;
17320
17321     *nto* | *qnx*)
17322       # QNX uses GNU C++, but need to define -shared option too, otherwise
17323       # it will coredump.
17324       lt_prog_compiler_pic_F77='-fPIC -shared'
17325       ;;
17326
17327     osf3* | osf4* | osf5*)
17328       lt_prog_compiler_wl_F77='-Wl,'
17329       # All OSF/1 code is PIC.
17330       lt_prog_compiler_static_F77='-non_shared'
17331       ;;
17332
17333     rdos*)
17334       lt_prog_compiler_static_F77='-non_shared'
17335       ;;
17336
17337     solaris*)
17338       lt_prog_compiler_pic_F77='-KPIC'
17339       lt_prog_compiler_static_F77='-Bstatic'
17340       case $cc_basename in
17341       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17342         lt_prog_compiler_wl_F77='-Qoption ld ';;
17343       *)
17344         lt_prog_compiler_wl_F77='-Wl,';;
17345       esac
17346       ;;
17347
17348     sunos4*)
17349       lt_prog_compiler_wl_F77='-Qoption ld '
17350       lt_prog_compiler_pic_F77='-PIC'
17351       lt_prog_compiler_static_F77='-Bstatic'
17352       ;;
17353
17354     sysv4 | sysv4.2uw2* | sysv4.3*)
17355       lt_prog_compiler_wl_F77='-Wl,'
17356       lt_prog_compiler_pic_F77='-KPIC'
17357       lt_prog_compiler_static_F77='-Bstatic'
17358       ;;
17359
17360     sysv4*MP*)
17361       if test -d /usr/nec ;then
17362         lt_prog_compiler_pic_F77='-Kconform_pic'
17363         lt_prog_compiler_static_F77='-Bstatic'
17364       fi
17365       ;;
17366
17367     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17368       lt_prog_compiler_wl_F77='-Wl,'
17369       lt_prog_compiler_pic_F77='-KPIC'
17370       lt_prog_compiler_static_F77='-Bstatic'
17371       ;;
17372
17373     unicos*)
17374       lt_prog_compiler_wl_F77='-Wl,'
17375       lt_prog_compiler_can_build_shared_F77=no
17376       ;;
17377
17378     uts4*)
17379       lt_prog_compiler_pic_F77='-pic'
17380       lt_prog_compiler_static_F77='-Bstatic'
17381       ;;
17382
17383     *)
17384       lt_prog_compiler_can_build_shared_F77=no
17385       ;;
17386     esac
17387   fi
17388
17389 case $host_os in
17390   # For platforms which do not support PIC, -DPIC is meaningless:
17391   *djgpp*)
17392     lt_prog_compiler_pic_F77=
17393     ;;
17394   *)
17395     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17396     ;;
17397 esac
17398
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17400 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17401 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
17402   $as_echo_n "(cached) " >&6
17403 else
17404   lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
17405 fi
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
17407 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
17408 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
17409
17410 #
17411 # Check to make sure the PIC flag actually works.
17412 #
17413 if test -n "$lt_prog_compiler_pic_F77"; then
17414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17415 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
17416 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
17417   $as_echo_n "(cached) " >&6
17418 else
17419   lt_cv_prog_compiler_pic_works_F77=no
17420    ac_outfile=conftest.$ac_objext
17421    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17422    lt_compiler_flag="$lt_prog_compiler_pic_F77"
17423    # Insert the option either (1) after the last *FLAGS variable, or
17424    # (2) before a word containing "conftest.", or (3) at the end.
17425    # Note that $ac_compile itself does not contain backslashes and begins
17426    # with a dollar sign (not a hyphen), so the echo should work correctly.
17427    # The option is referenced via a variable to avoid confusing sed.
17428    lt_compile=`echo "$ac_compile" | $SED \
17429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17431    -e 's:$: $lt_compiler_flag:'`
17432    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17433    (eval "$lt_compile" 2>conftest.err)
17434    ac_status=$?
17435    cat conftest.err >&5
17436    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437    if (exit $ac_status) && test -s "$ac_outfile"; then
17438      # The compiler can only warn and ignore the option if not recognized
17439      # So say no if there are warnings other than the usual output.
17440      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17443        lt_cv_prog_compiler_pic_works_F77=yes
17444      fi
17445    fi
17446    $RM conftest*
17447
17448 fi
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
17450 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
17451
17452 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
17453     case $lt_prog_compiler_pic_F77 in
17454      "" | " "*) ;;
17455      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17456      esac
17457 else
17458     lt_prog_compiler_pic_F77=
17459      lt_prog_compiler_can_build_shared_F77=no
17460 fi
17461
17462 fi
17463
17464
17465
17466
17467
17468 #
17469 # Check to make sure the static flag actually works.
17470 #
17471 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17473 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17474 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
17475   $as_echo_n "(cached) " >&6
17476 else
17477   lt_cv_prog_compiler_static_works_F77=no
17478    save_LDFLAGS="$LDFLAGS"
17479    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17480    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17481    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17482      # The linker can only warn and ignore the option if not recognized
17483      # So say no if there are warnings
17484      if test -s conftest.err; then
17485        # Append any errors to the config.log.
17486        cat conftest.err 1>&5
17487        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17488        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17489        if diff conftest.exp conftest.er2 >/dev/null; then
17490          lt_cv_prog_compiler_static_works_F77=yes
17491        fi
17492      else
17493        lt_cv_prog_compiler_static_works_F77=yes
17494      fi
17495    fi
17496    $RM -r conftest*
17497    LDFLAGS="$save_LDFLAGS"
17498
17499 fi
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
17501 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
17502
17503 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
17504     :
17505 else
17506     lt_prog_compiler_static_F77=
17507 fi
17508
17509
17510
17511
17512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17514 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
17515   $as_echo_n "(cached) " >&6
17516 else
17517   lt_cv_prog_compiler_c_o_F77=no
17518    $RM -r conftest 2>/dev/null
17519    mkdir conftest
17520    cd conftest
17521    mkdir out
17522    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17523
17524    lt_compiler_flag="-o out/conftest2.$ac_objext"
17525    # Insert the option either (1) after the last *FLAGS variable, or
17526    # (2) before a word containing "conftest.", or (3) at the end.
17527    # Note that $ac_compile itself does not contain backslashes and begins
17528    # with a dollar sign (not a hyphen), so the echo should work correctly.
17529    lt_compile=`echo "$ac_compile" | $SED \
17530    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17531    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17532    -e 's:$: $lt_compiler_flag:'`
17533    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17534    (eval "$lt_compile" 2>out/conftest.err)
17535    ac_status=$?
17536    cat out/conftest.err >&5
17537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17539    then
17540      # The compiler can only warn and ignore the option if not recognized
17541      # So say no if there are warnings
17542      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17543      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17544      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17545        lt_cv_prog_compiler_c_o_F77=yes
17546      fi
17547    fi
17548    chmod u+w . 2>&5
17549    $RM conftest*
17550    # SGI C++ compiler will create directory out/ii_files/ for
17551    # template instantiation
17552    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17553    $RM out/* && rmdir out
17554    cd ..
17555    $RM -r conftest
17556    $RM conftest*
17557
17558 fi
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
17560 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17561
17562
17563
17564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17566 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
17567   $as_echo_n "(cached) " >&6
17568 else
17569   lt_cv_prog_compiler_c_o_F77=no
17570    $RM -r conftest 2>/dev/null
17571    mkdir conftest
17572    cd conftest
17573    mkdir out
17574    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17575
17576    lt_compiler_flag="-o out/conftest2.$ac_objext"
17577    # Insert the option either (1) after the last *FLAGS variable, or
17578    # (2) before a word containing "conftest.", or (3) at the end.
17579    # Note that $ac_compile itself does not contain backslashes and begins
17580    # with a dollar sign (not a hyphen), so the echo should work correctly.
17581    lt_compile=`echo "$ac_compile" | $SED \
17582    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17583    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17584    -e 's:$: $lt_compiler_flag:'`
17585    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17586    (eval "$lt_compile" 2>out/conftest.err)
17587    ac_status=$?
17588    cat out/conftest.err >&5
17589    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17591    then
17592      # The compiler can only warn and ignore the option if not recognized
17593      # So say no if there are warnings
17594      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17595      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17596      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17597        lt_cv_prog_compiler_c_o_F77=yes
17598      fi
17599    fi
17600    chmod u+w . 2>&5
17601    $RM conftest*
17602    # SGI C++ compiler will create directory out/ii_files/ for
17603    # template instantiation
17604    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17605    $RM out/* && rmdir out
17606    cd ..
17607    $RM -r conftest
17608    $RM conftest*
17609
17610 fi
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
17612 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17613
17614
17615
17616
17617 hard_links="nottested"
17618 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17619   # do not overwrite the value of need_locks provided by the user
17620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17621 $as_echo_n "checking if we can lock with hard links... " >&6; }
17622   hard_links=yes
17623   $RM conftest*
17624   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17625   touch conftest.a
17626   ln conftest.a conftest.b 2>&5 || hard_links=no
17627   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17629 $as_echo "$hard_links" >&6; }
17630   if test "$hard_links" = no; then
17631     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17632 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17633     need_locks=warn
17634   fi
17635 else
17636   need_locks=no
17637 fi
17638
17639
17640
17641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17642 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17643
17644   runpath_var=
17645   allow_undefined_flag_F77=
17646   always_export_symbols_F77=no
17647   archive_cmds_F77=
17648   archive_expsym_cmds_F77=
17649   compiler_needs_object_F77=no
17650   enable_shared_with_static_runtimes_F77=no
17651   export_dynamic_flag_spec_F77=
17652   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17653   hardcode_automatic_F77=no
17654   hardcode_direct_F77=no
17655   hardcode_direct_absolute_F77=no
17656   hardcode_libdir_flag_spec_F77=
17657   hardcode_libdir_separator_F77=
17658   hardcode_minus_L_F77=no
17659   hardcode_shlibpath_var_F77=unsupported
17660   inherit_rpath_F77=no
17661   link_all_deplibs_F77=unknown
17662   module_cmds_F77=
17663   module_expsym_cmds_F77=
17664   old_archive_from_new_cmds_F77=
17665   old_archive_from_expsyms_cmds_F77=
17666   thread_safe_flag_spec_F77=
17667   whole_archive_flag_spec_F77=
17668   # include_expsyms should be a list of space-separated symbols to be *always*
17669   # included in the symbol list
17670   include_expsyms_F77=
17671   # exclude_expsyms can be an extended regexp of symbols to exclude
17672   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17673   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17674   # as well as any symbol that contains `d'.
17675   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17676   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17677   # platforms (ab)use it in PIC code, but their linkers get confused if
17678   # the symbol is explicitly referenced.  Since portable code cannot
17679   # rely on this symbol name, it's probably fine to never include it in
17680   # preloaded symbol tables.
17681   # Exclude shared library initialization/finalization symbols.
17682   extract_expsyms_cmds=
17683
17684   case $host_os in
17685   cygwin* | mingw* | pw32* | cegcc*)
17686     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17687     # When not using gcc, we currently assume that we are using
17688     # Microsoft Visual C++.
17689     if test "$GCC" != yes; then
17690       with_gnu_ld=no
17691     fi
17692     ;;
17693   interix*)
17694     # we just hope/assume this is gcc and not c89 (= MSVC++)
17695     with_gnu_ld=yes
17696     ;;
17697   openbsd*)
17698     with_gnu_ld=no
17699     ;;
17700   esac
17701
17702   ld_shlibs_F77=yes
17703
17704   # On some targets, GNU ld is compatible enough with the native linker
17705   # that we're better off using the native interface for both.
17706   lt_use_gnu_ld_interface=no
17707   if test "$with_gnu_ld" = yes; then
17708     case $host_os in
17709       aix*)
17710         # The AIX port of GNU ld has always aspired to compatibility
17711         # with the native linker.  However, as the warning in the GNU ld
17712         # block says, versions before 2.19.5* couldn't really create working
17713         # shared libraries, regardless of the interface used.
17714         case `$LD -v 2>&1` in
17715           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17716           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17717           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17718           *)
17719             lt_use_gnu_ld_interface=yes
17720             ;;
17721         esac
17722         ;;
17723       *)
17724         lt_use_gnu_ld_interface=yes
17725         ;;
17726     esac
17727   fi
17728
17729   if test "$lt_use_gnu_ld_interface" = yes; then
17730     # If archive_cmds runs LD, not CC, wlarc should be empty
17731     wlarc='${wl}'
17732
17733     # Set some defaults for GNU ld with shared library support. These
17734     # are reset later if shared libraries are not supported. Putting them
17735     # here allows them to be overridden if necessary.
17736     runpath_var=LD_RUN_PATH
17737     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17738     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17739     # ancient GNU ld didn't support --whole-archive et. al.
17740     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17741       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17742     else
17743       whole_archive_flag_spec_F77=
17744     fi
17745     supports_anon_versioning=no
17746     case `$LD -v 2>&1` in
17747       *GNU\ gold*) supports_anon_versioning=yes ;;
17748       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17749       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17750       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17751       *\ 2.11.*) ;; # other 2.11 versions
17752       *) supports_anon_versioning=yes ;;
17753     esac
17754
17755     # See if GNU ld supports shared libraries.
17756     case $host_os in
17757     aix[3-9]*)
17758       # On AIX/PPC, the GNU linker is very broken
17759       if test "$host_cpu" != ia64; then
17760         ld_shlibs_F77=no
17761         cat <<_LT_EOF 1>&2
17762
17763 *** Warning: the GNU linker, at least up to release 2.19, is reported
17764 *** to be unable to reliably create shared libraries on AIX.
17765 *** Therefore, libtool is disabling shared libraries support.  If you
17766 *** really care for shared libraries, you may want to install binutils
17767 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17768 *** You will then need to restart the configuration process.
17769
17770 _LT_EOF
17771       fi
17772       ;;
17773
17774     amigaos*)
17775       case $host_cpu in
17776       powerpc)
17777             # see comment about AmigaOS4 .so support
17778             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17779             archive_expsym_cmds_F77=''
17780         ;;
17781       m68k)
17782             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)'
17783             hardcode_libdir_flag_spec_F77='-L$libdir'
17784             hardcode_minus_L_F77=yes
17785         ;;
17786       esac
17787       ;;
17788
17789     beos*)
17790       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17791         allow_undefined_flag_F77=unsupported
17792         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17793         # support --undefined.  This deserves some investigation.  FIXME
17794         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17795       else
17796         ld_shlibs_F77=no
17797       fi
17798       ;;
17799
17800     cygwin* | mingw* | pw32* | cegcc*)
17801       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17802       # as there is no search path for DLLs.
17803       hardcode_libdir_flag_spec_F77='-L$libdir'
17804       export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
17805       allow_undefined_flag_F77=unsupported
17806       always_export_symbols_F77=no
17807       enable_shared_with_static_runtimes_F77=yes
17808       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17809       exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17810
17811       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17812         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17813         # If the export-symbols file already is a .def file (1st line
17814         # is EXPORTS), use it as is; otherwise, prepend...
17815         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17816           cp $export_symbols $output_objdir/$soname.def;
17817         else
17818           echo EXPORTS > $output_objdir/$soname.def;
17819           cat $export_symbols >> $output_objdir/$soname.def;
17820         fi~
17821         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17822       else
17823         ld_shlibs_F77=no
17824       fi
17825       ;;
17826
17827     haiku*)
17828       archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17829       link_all_deplibs_F77=yes
17830       ;;
17831
17832     interix[3-9]*)
17833       hardcode_direct_F77=no
17834       hardcode_shlibpath_var_F77=no
17835       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17836       export_dynamic_flag_spec_F77='${wl}-E'
17837       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17838       # Instead, shared libraries are loaded at an image base (0x10000000 by
17839       # default) and relocated if they conflict, which is a slow very memory
17840       # consuming and fragmenting process.  To avoid this, we pick a random,
17841       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17842       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17843       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17844       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17845       ;;
17846
17847     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17848       tmp_diet=no
17849       if test "$host_os" = linux-dietlibc; then
17850         case $cc_basename in
17851           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17852         esac
17853       fi
17854       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17855          && test "$tmp_diet" = no
17856       then
17857         tmp_addflag=' $pic_flag'
17858         tmp_sharedflag='-shared'
17859         case $cc_basename,$host_cpu in
17860         pgcc*)                          # Portland Group C compiler
17861           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17862           tmp_addflag=' $pic_flag'
17863           ;;
17864         pgf77* | pgf90* | pgf95* | pgfortran*)
17865                                         # Portland Group f77 and f90 compilers
17866           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17867           tmp_addflag=' $pic_flag -Mnomain' ;;
17868         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17869           tmp_addflag=' -i_dynamic' ;;
17870         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17871           tmp_addflag=' -i_dynamic -nofor_main' ;;
17872         ifc* | ifort*)                  # Intel Fortran compiler
17873           tmp_addflag=' -nofor_main' ;;
17874         lf95*)                          # Lahey Fortran 8.1
17875           whole_archive_flag_spec_F77=
17876           tmp_sharedflag='--shared' ;;
17877         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17878           tmp_sharedflag='-qmkshrobj'
17879           tmp_addflag= ;;
17880         nvcc*)  # Cuda Compiler Driver 2.2
17881           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17882           compiler_needs_object_F77=yes
17883           ;;
17884         esac
17885         case `$CC -V 2>&1 | sed 5q` in
17886         *Sun\ C*)                       # Sun C 5.9
17887           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17888           compiler_needs_object_F77=yes
17889           tmp_sharedflag='-G' ;;
17890         *Sun\ F*)                       # Sun Fortran 8.3
17891           tmp_sharedflag='-G' ;;
17892         esac
17893         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17894
17895         if test "x$supports_anon_versioning" = xyes; then
17896           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
17897             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17898             echo "local: *; };" >> $output_objdir/$libname.ver~
17899             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17900         fi
17901
17902         case $cc_basename in
17903         xlf* | bgf* | bgxlf* | mpixlf*)
17904           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17905           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
17906           hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17907           archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17908           if test "x$supports_anon_versioning" = xyes; then
17909             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
17910               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17911               echo "local: *; };" >> $output_objdir/$libname.ver~
17912               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17913           fi
17914           ;;
17915         esac
17916       else
17917         ld_shlibs_F77=no
17918       fi
17919       ;;
17920
17921     netbsd*)
17922       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17923         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17924         wlarc=
17925       else
17926         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17927         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17928       fi
17929       ;;
17930
17931     solaris*)
17932       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17933         ld_shlibs_F77=no
17934         cat <<_LT_EOF 1>&2
17935
17936 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17937 *** create shared libraries on Solaris systems.  Therefore, libtool
17938 *** is disabling shared libraries support.  We urge you to upgrade GNU
17939 *** binutils to release 2.9.1 or newer.  Another option is to modify
17940 *** your PATH or compiler configuration so that the native linker is
17941 *** used, and then restart.
17942
17943 _LT_EOF
17944       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17945         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17946         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17947       else
17948         ld_shlibs_F77=no
17949       fi
17950       ;;
17951
17952     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17953       case `$LD -v 2>&1` in
17954         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17955         ld_shlibs_F77=no
17956         cat <<_LT_EOF 1>&2
17957
17958 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17959 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17960 *** is disabling shared libraries support.  We urge you to upgrade GNU
17961 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17962 *** your PATH or compiler configuration so that the native linker is
17963 *** used, and then restart.
17964
17965 _LT_EOF
17966         ;;
17967         *)
17968           # For security reasons, it is highly recommended that you always
17969           # use absolute paths for naming shared libraries, and exclude the
17970           # DT_RUNPATH tag from executables and libraries.  But doing so
17971           # requires that you compile everything twice, which is a pain.
17972           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17973             hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17974             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17975             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17976           else
17977             ld_shlibs_F77=no
17978           fi
17979         ;;
17980       esac
17981       ;;
17982
17983     sunos4*)
17984       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17985       wlarc=
17986       hardcode_direct_F77=yes
17987       hardcode_shlibpath_var_F77=no
17988       ;;
17989
17990     *)
17991       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17992         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17993         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17994       else
17995         ld_shlibs_F77=no
17996       fi
17997       ;;
17998     esac
17999
18000     if test "$ld_shlibs_F77" = no; then
18001       runpath_var=
18002       hardcode_libdir_flag_spec_F77=
18003       export_dynamic_flag_spec_F77=
18004       whole_archive_flag_spec_F77=
18005     fi
18006   else
18007     # PORTME fill in a description of your system's linker (not GNU ld)
18008     case $host_os in
18009     aix3*)
18010       allow_undefined_flag_F77=unsupported
18011       always_export_symbols_F77=yes
18012       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'
18013       # Note: this linker hardcodes the directories in LIBPATH if there
18014       # are no directories specified by -L.
18015       hardcode_minus_L_F77=yes
18016       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18017         # Neither direct hardcoding nor static linking is supported with a
18018         # broken collect2.
18019         hardcode_direct_F77=unsupported
18020       fi
18021       ;;
18022
18023     aix[4-9]*)
18024       if test "$host_cpu" = ia64; then
18025         # On IA64, the linker does run time linking by default, so we don't
18026         # have to do anything special.
18027         aix_use_runtimelinking=no
18028         exp_sym_flag='-Bexport'
18029         no_entry_flag=""
18030       else
18031         # If we're using GNU nm, then we don't want the "-C" option.
18032         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18033         # Also, AIX nm treats weak defined symbols like other global
18034         # defined symbols, whereas GNU nm marks them as "W".
18035         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18036           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18037         else
18038           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'
18039         fi
18040         aix_use_runtimelinking=no
18041
18042         # Test if we are trying to use run time linking or normal
18043         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18044         # need to do runtime linking.
18045         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18046           for ld_flag in $LDFLAGS; do
18047           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18048             aix_use_runtimelinking=yes
18049             break
18050           fi
18051           done
18052           ;;
18053         esac
18054
18055         exp_sym_flag='-bexport'
18056         no_entry_flag='-bnoentry'
18057       fi
18058
18059       # When large executables or shared objects are built, AIX ld can
18060       # have problems creating the table of contents.  If linking a library
18061       # or program results in "error TOC overflow" add -mminimal-toc to
18062       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18063       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18064
18065       archive_cmds_F77=''
18066       hardcode_direct_F77=yes
18067       hardcode_direct_absolute_F77=yes
18068       hardcode_libdir_separator_F77=':'
18069       link_all_deplibs_F77=yes
18070       file_list_spec_F77='${wl}-f,'
18071
18072       if test "$GCC" = yes; then
18073         case $host_os in aix4.[012]|aix4.[012].*)
18074         # We only want to do this on AIX 4.2 and lower, the check
18075         # below for broken collect2 doesn't work under 4.3+
18076           collect2name=`${CC} -print-prog-name=collect2`
18077           if test -f "$collect2name" &&
18078            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18079           then
18080           # We have reworked collect2
18081           :
18082           else
18083           # We have old collect2
18084           hardcode_direct_F77=unsupported
18085           # It fails to find uninstalled libraries when the uninstalled
18086           # path is not listed in the libpath.  Setting hardcode_minus_L
18087           # to unsupported forces relinking
18088           hardcode_minus_L_F77=yes
18089           hardcode_libdir_flag_spec_F77='-L$libdir'
18090           hardcode_libdir_separator_F77=
18091           fi
18092           ;;
18093         esac
18094         shared_flag='-shared'
18095         if test "$aix_use_runtimelinking" = yes; then
18096           shared_flag="$shared_flag "'${wl}-G'
18097         fi
18098       else
18099         # not using gcc
18100         if test "$host_cpu" = ia64; then
18101         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18102         # chokes on -Wl,-G. The following line is correct:
18103           shared_flag='-G'
18104         else
18105           if test "$aix_use_runtimelinking" = yes; then
18106             shared_flag='${wl}-G'
18107           else
18108             shared_flag='${wl}-bM:SRE'
18109           fi
18110         fi
18111       fi
18112
18113       export_dynamic_flag_spec_F77='${wl}-bexpall'
18114       # It seems that -bexpall does not export symbols beginning with
18115       # underscore (_), so it is better to generate a list of symbols to export.
18116       always_export_symbols_F77=yes
18117       if test "$aix_use_runtimelinking" = yes; then
18118         # Warning - without using the other runtime loading flags (-brtl),
18119         # -berok will link without error, but may produce a broken library.
18120         allow_undefined_flag_F77='-berok'
18121         # Determine the default libpath from the value encoded in an
18122         # empty executable.
18123         if test "${lt_cv_aix_libpath+set}" = set; then
18124   aix_libpath=$lt_cv_aix_libpath
18125 else
18126   if ${lt_cv_aix_libpath__F77+:} false; then :
18127   $as_echo_n "(cached) " >&6
18128 else
18129   cat > conftest.$ac_ext <<_ACEOF
18130       program main
18131
18132       end
18133 _ACEOF
18134 if ac_fn_f77_try_link "$LINENO"; then :
18135
18136   lt_aix_libpath_sed='
18137       /Import File Strings/,/^$/ {
18138           /^0/ {
18139               s/^0  *\([^ ]*\) *$/\1/
18140               p
18141           }
18142       }'
18143   lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18144   # Check for a 64-bit object if we didn't find anything.
18145   if test -z "$lt_cv_aix_libpath__F77"; then
18146     lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18147   fi
18148 fi
18149 rm -f core conftest.err conftest.$ac_objext \
18150     conftest$ac_exeext conftest.$ac_ext
18151   if test -z "$lt_cv_aix_libpath__F77"; then
18152     lt_cv_aix_libpath__F77="/usr/lib:/lib"
18153   fi
18154
18155 fi
18156
18157   aix_libpath=$lt_cv_aix_libpath__F77
18158 fi
18159
18160         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18161         archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18162       else
18163         if test "$host_cpu" = ia64; then
18164           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18165           allow_undefined_flag_F77="-z nodefs"
18166           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18167         else
18168          # Determine the default libpath from the value encoded in an
18169          # empty executable.
18170          if test "${lt_cv_aix_libpath+set}" = set; then
18171   aix_libpath=$lt_cv_aix_libpath
18172 else
18173   if ${lt_cv_aix_libpath__F77+:} false; then :
18174   $as_echo_n "(cached) " >&6
18175 else
18176   cat > conftest.$ac_ext <<_ACEOF
18177       program main
18178
18179       end
18180 _ACEOF
18181 if ac_fn_f77_try_link "$LINENO"; then :
18182
18183   lt_aix_libpath_sed='
18184       /Import File Strings/,/^$/ {
18185           /^0/ {
18186               s/^0  *\([^ ]*\) *$/\1/
18187               p
18188           }
18189       }'
18190   lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18191   # Check for a 64-bit object if we didn't find anything.
18192   if test -z "$lt_cv_aix_libpath__F77"; then
18193     lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18194   fi
18195 fi
18196 rm -f core conftest.err conftest.$ac_objext \
18197     conftest$ac_exeext conftest.$ac_ext
18198   if test -z "$lt_cv_aix_libpath__F77"; then
18199     lt_cv_aix_libpath__F77="/usr/lib:/lib"
18200   fi
18201
18202 fi
18203
18204   aix_libpath=$lt_cv_aix_libpath__F77
18205 fi
18206
18207          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18208           # Warning - without using the other run time loading flags,
18209           # -berok will link without error, but may produce a broken library.
18210           no_undefined_flag_F77=' ${wl}-bernotok'
18211           allow_undefined_flag_F77=' ${wl}-berok'
18212           if test "$with_gnu_ld" = yes; then
18213             # We only use this code for GNU lds that support --whole-archive.
18214             whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18215           else
18216             # Exported symbols can be pulled into shared objects from archives
18217             whole_archive_flag_spec_F77='$convenience'
18218           fi
18219           archive_cmds_need_lc_F77=yes
18220           # This is similar to how AIX traditionally builds its shared libraries.
18221           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18222         fi
18223       fi
18224       ;;
18225
18226     amigaos*)
18227       case $host_cpu in
18228       powerpc)
18229             # see comment about AmigaOS4 .so support
18230             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18231             archive_expsym_cmds_F77=''
18232         ;;
18233       m68k)
18234             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)'
18235             hardcode_libdir_flag_spec_F77='-L$libdir'
18236             hardcode_minus_L_F77=yes
18237         ;;
18238       esac
18239       ;;
18240
18241     bsdi[45]*)
18242       export_dynamic_flag_spec_F77=-rdynamic
18243       ;;
18244
18245     cygwin* | mingw* | pw32* | cegcc*)
18246       # When not using gcc, we currently assume that we are using
18247       # Microsoft Visual C++.
18248       # hardcode_libdir_flag_spec is actually meaningless, as there is
18249       # no search path for DLLs.
18250       case $cc_basename in
18251       cl*)
18252         # Native MSVC
18253         hardcode_libdir_flag_spec_F77=' '
18254         allow_undefined_flag_F77=unsupported
18255         always_export_symbols_F77=yes
18256         file_list_spec_F77='@'
18257         # Tell ltmain to make .lib files, not .a files.
18258         libext=lib
18259         # Tell ltmain to make .dll files, not .so files.
18260         shrext_cmds=".dll"
18261         # FIXME: Setting linknames here is a bad hack.
18262         archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18263         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18264             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18265           else
18266             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18267           fi~
18268           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18269           linknames='
18270         # The linker will not automatically build a static lib if we build a DLL.
18271         # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
18272         enable_shared_with_static_runtimes_F77=yes
18273         exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18274         export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18275         # Don't use ranlib
18276         old_postinstall_cmds_F77='chmod 644 $oldlib'
18277         postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
18278           lt_tool_outputfile="@TOOL_OUTPUT@"~
18279           case $lt_outputfile in
18280             *.exe|*.EXE) ;;
18281             *)
18282               lt_outputfile="$lt_outputfile.exe"
18283               lt_tool_outputfile="$lt_tool_outputfile.exe"
18284               ;;
18285           esac~
18286           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18287             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18288             $RM "$lt_outputfile.manifest";
18289           fi'
18290         ;;
18291       *)
18292         # Assume MSVC wrapper
18293         hardcode_libdir_flag_spec_F77=' '
18294         allow_undefined_flag_F77=unsupported
18295         # Tell ltmain to make .lib files, not .a files.
18296         libext=lib
18297         # Tell ltmain to make .dll files, not .so files.
18298         shrext_cmds=".dll"
18299         # FIXME: Setting linknames here is a bad hack.
18300         archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18301         # The linker will automatically build a .lib file if we build a DLL.
18302         old_archive_from_new_cmds_F77='true'
18303         # FIXME: Should let the user specify the lib program.
18304         old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18305         enable_shared_with_static_runtimes_F77=yes
18306         ;;
18307       esac
18308       ;;
18309
18310     darwin* | rhapsody*)
18311
18312
18313   archive_cmds_need_lc_F77=no
18314   hardcode_direct_F77=no
18315   hardcode_automatic_F77=yes
18316   hardcode_shlibpath_var_F77=unsupported
18317   if test "$lt_cv_ld_force_load" = "yes"; then
18318     whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18319     compiler_needs_object_F77=yes
18320   else
18321     whole_archive_flag_spec_F77=''
18322   fi
18323   link_all_deplibs_F77=yes
18324   allow_undefined_flag_F77="$_lt_dar_allow_undefined"
18325   case $cc_basename in
18326      ifort*) _lt_dar_can_shared=yes ;;
18327      *) _lt_dar_can_shared=$GCC ;;
18328   esac
18329   if test "$_lt_dar_can_shared" = "yes"; then
18330     output_verbose_link_cmd=func_echo_all
18331     archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18332     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18333     archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18334     module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18335
18336   else
18337   ld_shlibs_F77=no
18338   fi
18339
18340       ;;
18341
18342     dgux*)
18343       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18344       hardcode_libdir_flag_spec_F77='-L$libdir'
18345       hardcode_shlibpath_var_F77=no
18346       ;;
18347
18348     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18349     # support.  Future versions do this automatically, but an explicit c++rt0.o
18350     # does not break anything, and helps significantly (at the cost of a little
18351     # extra space).
18352     freebsd2.2*)
18353       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18354       hardcode_libdir_flag_spec_F77='-R$libdir'
18355       hardcode_direct_F77=yes
18356       hardcode_shlibpath_var_F77=no
18357       ;;
18358
18359     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18360     freebsd2.*)
18361       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18362       hardcode_direct_F77=yes
18363       hardcode_minus_L_F77=yes
18364       hardcode_shlibpath_var_F77=no
18365       ;;
18366
18367     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18368     freebsd* | dragonfly*)
18369       archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18370       hardcode_libdir_flag_spec_F77='-R$libdir'
18371       hardcode_direct_F77=yes
18372       hardcode_shlibpath_var_F77=no
18373       ;;
18374
18375     hpux9*)
18376       if test "$GCC" = yes; then
18377         archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18378       else
18379         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'
18380       fi
18381       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18382       hardcode_libdir_separator_F77=:
18383       hardcode_direct_F77=yes
18384
18385       # hardcode_minus_L: Not really in the search PATH,
18386       # but as the default location of the library.
18387       hardcode_minus_L_F77=yes
18388       export_dynamic_flag_spec_F77='${wl}-E'
18389       ;;
18390
18391     hpux10*)
18392       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18393         archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18394       else
18395         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18396       fi
18397       if test "$with_gnu_ld" = no; then
18398         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18399         hardcode_libdir_separator_F77=:
18400         hardcode_direct_F77=yes
18401         hardcode_direct_absolute_F77=yes
18402         export_dynamic_flag_spec_F77='${wl}-E'
18403         # hardcode_minus_L: Not really in the search PATH,
18404         # but as the default location of the library.
18405         hardcode_minus_L_F77=yes
18406       fi
18407       ;;
18408
18409     hpux11*)
18410       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18411         case $host_cpu in
18412         hppa*64*)
18413           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18414           ;;
18415         ia64*)
18416           archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18417           ;;
18418         *)
18419           archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18420           ;;
18421         esac
18422       else
18423         case $host_cpu in
18424         hppa*64*)
18425           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18426           ;;
18427         ia64*)
18428           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18429           ;;
18430         *)
18431         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18432           ;;
18433         esac
18434       fi
18435       if test "$with_gnu_ld" = no; then
18436         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18437         hardcode_libdir_separator_F77=:
18438
18439         case $host_cpu in
18440         hppa*64*|ia64*)
18441           hardcode_direct_F77=no
18442           hardcode_shlibpath_var_F77=no
18443           ;;
18444         *)
18445           hardcode_direct_F77=yes
18446           hardcode_direct_absolute_F77=yes
18447           export_dynamic_flag_spec_F77='${wl}-E'
18448
18449           # hardcode_minus_L: Not really in the search PATH,
18450           # but as the default location of the library.
18451           hardcode_minus_L_F77=yes
18452           ;;
18453         esac
18454       fi
18455       ;;
18456
18457     irix5* | irix6* | nonstopux*)
18458       if test "$GCC" = yes; then
18459         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18460         # Try to use the -exported_symbol ld option, if it does not
18461         # work, assume that -exports_file does not work either and
18462         # implicitly export all symbols.
18463         # This should be the same for all languages, so no per-tag cache variable.
18464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18465 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18466 if ${lt_cv_irix_exported_symbol+:} false; then :
18467   $as_echo_n "(cached) " >&6
18468 else
18469   save_LDFLAGS="$LDFLAGS"
18470            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18471            cat > conftest.$ac_ext <<_ACEOF
18472
18473       subroutine foo
18474       end
18475 _ACEOF
18476 if ac_fn_f77_try_link "$LINENO"; then :
18477   lt_cv_irix_exported_symbol=yes
18478 else
18479   lt_cv_irix_exported_symbol=no
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext \
18482     conftest$ac_exeext conftest.$ac_ext
18483            LDFLAGS="$save_LDFLAGS"
18484 fi
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18486 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
18487         if test "$lt_cv_irix_exported_symbol" = yes; then
18488           archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18489         fi
18490       else
18491         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18492         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18493       fi
18494       archive_cmds_need_lc_F77='no'
18495       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18496       hardcode_libdir_separator_F77=:
18497       inherit_rpath_F77=yes
18498       link_all_deplibs_F77=yes
18499       ;;
18500
18501     netbsd*)
18502       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18503         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18504       else
18505         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18506       fi
18507       hardcode_libdir_flag_spec_F77='-R$libdir'
18508       hardcode_direct_F77=yes
18509       hardcode_shlibpath_var_F77=no
18510       ;;
18511
18512     newsos6)
18513       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18514       hardcode_direct_F77=yes
18515       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18516       hardcode_libdir_separator_F77=:
18517       hardcode_shlibpath_var_F77=no
18518       ;;
18519
18520     *nto* | *qnx*)
18521       ;;
18522
18523     openbsd*)
18524       if test -f /usr/libexec/ld.so; then
18525         hardcode_direct_F77=yes
18526         hardcode_shlibpath_var_F77=no
18527         hardcode_direct_absolute_F77=yes
18528         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18529           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18530           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18531           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18532           export_dynamic_flag_spec_F77='${wl}-E'
18533         else
18534           case $host_os in
18535            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18536              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18537              hardcode_libdir_flag_spec_F77='-R$libdir'
18538              ;;
18539            *)
18540              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18541              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18542              ;;
18543           esac
18544         fi
18545       else
18546         ld_shlibs_F77=no
18547       fi
18548       ;;
18549
18550     os2*)
18551       hardcode_libdir_flag_spec_F77='-L$libdir'
18552       hardcode_minus_L_F77=yes
18553       allow_undefined_flag_F77=unsupported
18554       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'
18555       old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18556       ;;
18557
18558     osf3*)
18559       if test "$GCC" = yes; then
18560         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18561         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18562       else
18563         allow_undefined_flag_F77=' -expect_unresolved \*'
18564         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18565       fi
18566       archive_cmds_need_lc_F77='no'
18567       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18568       hardcode_libdir_separator_F77=:
18569       ;;
18570
18571     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18572       if test "$GCC" = yes; then
18573         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18574         archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18575         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18576       else
18577         allow_undefined_flag_F77=' -expect_unresolved \*'
18578         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18579         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
18580         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18581
18582         # Both c and cxx compiler support -rpath directly
18583         hardcode_libdir_flag_spec_F77='-rpath $libdir'
18584       fi
18585       archive_cmds_need_lc_F77='no'
18586       hardcode_libdir_separator_F77=:
18587       ;;
18588
18589     solaris*)
18590       no_undefined_flag_F77=' -z defs'
18591       if test "$GCC" = yes; then
18592         wlarc='${wl}'
18593         archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18594         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18595           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18596       else
18597         case `$CC -V 2>&1` in
18598         *"Compilers 5.0"*)
18599           wlarc=''
18600           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18601           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18602           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18603           ;;
18604         *)
18605           wlarc='${wl}'
18606           archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18607           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18608           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18609           ;;
18610         esac
18611       fi
18612       hardcode_libdir_flag_spec_F77='-R$libdir'
18613       hardcode_shlibpath_var_F77=no
18614       case $host_os in
18615       solaris2.[0-5] | solaris2.[0-5].*) ;;
18616       *)
18617         # The compiler driver will combine and reorder linker options,
18618         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18619         # but is careful enough not to reorder.
18620         # Supported since Solaris 2.6 (maybe 2.5.1?)
18621         if test "$GCC" = yes; then
18622           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18623         else
18624           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18625         fi
18626         ;;
18627       esac
18628       link_all_deplibs_F77=yes
18629       ;;
18630
18631     sunos4*)
18632       if test "x$host_vendor" = xsequent; then
18633         # Use $CC to link under sequent, because it throws in some extra .o
18634         # files that make .init and .fini sections work.
18635         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18636       else
18637         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18638       fi
18639       hardcode_libdir_flag_spec_F77='-L$libdir'
18640       hardcode_direct_F77=yes
18641       hardcode_minus_L_F77=yes
18642       hardcode_shlibpath_var_F77=no
18643       ;;
18644
18645     sysv4)
18646       case $host_vendor in
18647         sni)
18648           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18649           hardcode_direct_F77=yes # is this really true???
18650         ;;
18651         siemens)
18652           ## LD is ld it makes a PLAMLIB
18653           ## CC just makes a GrossModule.
18654           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18655           reload_cmds_F77='$CC -r -o $output$reload_objs'
18656           hardcode_direct_F77=no
18657         ;;
18658         motorola)
18659           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18660           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18661         ;;
18662       esac
18663       runpath_var='LD_RUN_PATH'
18664       hardcode_shlibpath_var_F77=no
18665       ;;
18666
18667     sysv4.3*)
18668       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18669       hardcode_shlibpath_var_F77=no
18670       export_dynamic_flag_spec_F77='-Bexport'
18671       ;;
18672
18673     sysv4*MP*)
18674       if test -d /usr/nec; then
18675         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18676         hardcode_shlibpath_var_F77=no
18677         runpath_var=LD_RUN_PATH
18678         hardcode_runpath_var=yes
18679         ld_shlibs_F77=yes
18680       fi
18681       ;;
18682
18683     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18684       no_undefined_flag_F77='${wl}-z,text'
18685       archive_cmds_need_lc_F77=no
18686       hardcode_shlibpath_var_F77=no
18687       runpath_var='LD_RUN_PATH'
18688
18689       if test "$GCC" = yes; then
18690         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18691         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18692       else
18693         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18694         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18695       fi
18696       ;;
18697
18698     sysv5* | sco3.2v5* | sco5v6*)
18699       # Note: We can NOT use -z defs as we might desire, because we do not
18700       # link with -lc, and that would cause any symbols used from libc to
18701       # always be unresolved, which means just about no library would
18702       # ever link correctly.  If we're not using GNU ld we use -z text
18703       # though, which does catch some bad symbols but isn't as heavy-handed
18704       # as -z defs.
18705       no_undefined_flag_F77='${wl}-z,text'
18706       allow_undefined_flag_F77='${wl}-z,nodefs'
18707       archive_cmds_need_lc_F77=no
18708       hardcode_shlibpath_var_F77=no
18709       hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
18710       hardcode_libdir_separator_F77=':'
18711       link_all_deplibs_F77=yes
18712       export_dynamic_flag_spec_F77='${wl}-Bexport'
18713       runpath_var='LD_RUN_PATH'
18714
18715       if test "$GCC" = yes; then
18716         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18717         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18718       else
18719         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18720         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18721       fi
18722       ;;
18723
18724     uts4*)
18725       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18726       hardcode_libdir_flag_spec_F77='-L$libdir'
18727       hardcode_shlibpath_var_F77=no
18728       ;;
18729
18730     *)
18731       ld_shlibs_F77=no
18732       ;;
18733     esac
18734
18735     if test x$host_vendor = xsni; then
18736       case $host in
18737       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18738         export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
18739         ;;
18740       esac
18741     fi
18742   fi
18743
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
18745 $as_echo "$ld_shlibs_F77" >&6; }
18746 test "$ld_shlibs_F77" = no && can_build_shared=no
18747
18748 with_gnu_ld_F77=$with_gnu_ld
18749
18750
18751
18752
18753
18754
18755 #
18756 # Do we need to explicitly link libc?
18757 #
18758 case "x$archive_cmds_need_lc_F77" in
18759 x|xyes)
18760   # Assume -lc should be added
18761   archive_cmds_need_lc_F77=yes
18762
18763   if test "$enable_shared" = yes && test "$GCC" = yes; then
18764     case $archive_cmds_F77 in
18765     *'~'*)
18766       # FIXME: we may have to deal with multi-command sequences.
18767       ;;
18768     '$CC '*)
18769       # Test whether the compiler implicitly links with -lc since on some
18770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18771       # to ld, don't add -lc before -lgcc.
18772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18774 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
18775   $as_echo_n "(cached) " >&6
18776 else
18777   $RM conftest*
18778         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18779
18780         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18781   (eval $ac_compile) 2>&5
18782   ac_status=$?
18783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18784   test $ac_status = 0; } 2>conftest.err; then
18785           soname=conftest
18786           lib=conftest
18787           libobjs=conftest.$ac_objext
18788           deplibs=
18789           wl=$lt_prog_compiler_wl_F77
18790           pic_flag=$lt_prog_compiler_pic_F77
18791           compiler_flags=-v
18792           linker_flags=-v
18793           verstring=
18794           output_objdir=.
18795           libname=conftest
18796           lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18797           allow_undefined_flag_F77=
18798           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18799   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18800   ac_status=$?
18801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802   test $ac_status = 0; }
18803           then
18804             lt_cv_archive_cmds_need_lc_F77=no
18805           else
18806             lt_cv_archive_cmds_need_lc_F77=yes
18807           fi
18808           allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18809         else
18810           cat conftest.err 1>&5
18811         fi
18812         $RM conftest*
18813
18814 fi
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
18816 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
18817       archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
18818       ;;
18819     esac
18820   fi
18821   ;;
18822 esac
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18886 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18887
18888 library_names_spec=
18889 libname_spec='lib$name'
18890 soname_spec=
18891 shrext_cmds=".so"
18892 postinstall_cmds=
18893 postuninstall_cmds=
18894 finish_cmds=
18895 finish_eval=
18896 shlibpath_var=
18897 shlibpath_overrides_runpath=unknown
18898 version_type=none
18899 dynamic_linker="$host_os ld.so"
18900 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18901 need_lib_prefix=unknown
18902 hardcode_into_libs=no
18903
18904 # when you set need_version to no, make sure it does not cause -set_version
18905 # flags to be left without arguments
18906 need_version=unknown
18907
18908 case $host_os in
18909 aix3*)
18910   version_type=linux # correct to gnu/linux during the next big refactor
18911   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18912   shlibpath_var=LIBPATH
18913
18914   # AIX 3 has no versioning support, so we append a major version to the name.
18915   soname_spec='${libname}${release}${shared_ext}$major'
18916   ;;
18917
18918 aix[4-9]*)
18919   version_type=linux # correct to gnu/linux during the next big refactor
18920   need_lib_prefix=no
18921   need_version=no
18922   hardcode_into_libs=yes
18923   if test "$host_cpu" = ia64; then
18924     # AIX 5 supports IA64
18925     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18926     shlibpath_var=LD_LIBRARY_PATH
18927   else
18928     # With GCC up to 2.95.x, collect2 would create an import file
18929     # for dependence libraries.  The import file would start with
18930     # the line `#! .'.  This would cause the generated library to
18931     # depend on `.', always an invalid library.  This was fixed in
18932     # development snapshots of GCC prior to 3.0.
18933     case $host_os in
18934       aix4 | aix4.[01] | aix4.[01].*)
18935       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18936            echo ' yes '
18937            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18938         :
18939       else
18940         can_build_shared=no
18941       fi
18942       ;;
18943     esac
18944     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18945     # soname into executable. Probably we can add versioning support to
18946     # collect2, so additional links can be useful in future.
18947     if test "$aix_use_runtimelinking" = yes; then
18948       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18949       # instead of lib<name>.a to let people know that these are not
18950       # typical AIX shared libraries.
18951       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18952     else
18953       # We preserve .a as extension for shared libraries through AIX4.2
18954       # and later when we are not doing run time linking.
18955       library_names_spec='${libname}${release}.a $libname.a'
18956       soname_spec='${libname}${release}${shared_ext}$major'
18957     fi
18958     shlibpath_var=LIBPATH
18959   fi
18960   ;;
18961
18962 amigaos*)
18963   case $host_cpu in
18964   powerpc)
18965     # Since July 2007 AmigaOS4 officially supports .so libraries.
18966     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968     ;;
18969   m68k)
18970     library_names_spec='$libname.ixlibrary $libname.a'
18971     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18972     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
18973     ;;
18974   esac
18975   ;;
18976
18977 beos*)
18978   library_names_spec='${libname}${shared_ext}'
18979   dynamic_linker="$host_os ld.so"
18980   shlibpath_var=LIBRARY_PATH
18981   ;;
18982
18983 bsdi[45]*)
18984   version_type=linux # correct to gnu/linux during the next big refactor
18985   need_version=no
18986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18987   soname_spec='${libname}${release}${shared_ext}$major'
18988   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18989   shlibpath_var=LD_LIBRARY_PATH
18990   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18991   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18992   # the default ld.so.conf also contains /usr/contrib/lib and
18993   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18994   # libtool to hard-code these into programs
18995   ;;
18996
18997 cygwin* | mingw* | pw32* | cegcc*)
18998   version_type=windows
18999   shrext_cmds=".dll"
19000   need_version=no
19001   need_lib_prefix=no
19002
19003   case $GCC,$cc_basename in
19004   yes,*)
19005     # gcc
19006     library_names_spec='$libname.dll.a'
19007     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19008     postinstall_cmds='base_file=`basename \${file}`~
19009       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19010       dldir=$destdir/`dirname \$dlpath`~
19011       test -d \$dldir || mkdir -p \$dldir~
19012       $install_prog $dir/$dlname \$dldir/$dlname~
19013       chmod a+x \$dldir/$dlname~
19014       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19015         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19016       fi'
19017     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19018       dlpath=$dir/\$dldll~
19019        $RM \$dlpath'
19020     shlibpath_overrides_runpath=yes
19021
19022     case $host_os in
19023     cygwin*)
19024       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19025       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19026
19027       ;;
19028     mingw* | cegcc*)
19029       # MinGW DLLs use traditional 'lib' prefix
19030       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19031       ;;
19032     pw32*)
19033       # pw32 DLLs use 'pw' prefix rather than 'lib'
19034       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19035       ;;
19036     esac
19037     dynamic_linker='Win32 ld.exe'
19038     ;;
19039
19040   *,cl*)
19041     # Native MSVC
19042     libname_spec='$name'
19043     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19044     library_names_spec='${libname}.dll.lib'
19045
19046     case $build_os in
19047     mingw*)
19048       sys_lib_search_path_spec=
19049       lt_save_ifs=$IFS
19050       IFS=';'
19051       for lt_path in $LIB
19052       do
19053         IFS=$lt_save_ifs
19054         # Let DOS variable expansion print the short 8.3 style file name.
19055         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19056         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19057       done
19058       IFS=$lt_save_ifs
19059       # Convert to MSYS style.
19060       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19061       ;;
19062     cygwin*)
19063       # Convert to unix form, then to dos form, then back to unix form
19064       # but this time dos style (no spaces!) so that the unix form looks
19065       # like /cygdrive/c/PROGRA~1:/cygdr...
19066       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19067       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19068       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19069       ;;
19070     *)
19071       sys_lib_search_path_spec="$LIB"
19072       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19073         # It is most probably a Windows format PATH.
19074         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19075       else
19076         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19077       fi
19078       # FIXME: find the short name or the path components, as spaces are
19079       # common. (e.g. "Program Files" -> "PROGRA~1")
19080       ;;
19081     esac
19082
19083     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19084     postinstall_cmds='base_file=`basename \${file}`~
19085       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19086       dldir=$destdir/`dirname \$dlpath`~
19087       test -d \$dldir || mkdir -p \$dldir~
19088       $install_prog $dir/$dlname \$dldir/$dlname'
19089     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19090       dlpath=$dir/\$dldll~
19091        $RM \$dlpath'
19092     shlibpath_overrides_runpath=yes
19093     dynamic_linker='Win32 link.exe'
19094     ;;
19095
19096   *)
19097     # Assume MSVC wrapper
19098     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19099     dynamic_linker='Win32 ld.exe'
19100     ;;
19101   esac
19102   # FIXME: first we should search . and the directory the executable is in
19103   shlibpath_var=PATH
19104   ;;
19105
19106 darwin* | rhapsody*)
19107   dynamic_linker="$host_os dyld"
19108   version_type=darwin
19109   need_lib_prefix=no
19110   need_version=no
19111   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19112   soname_spec='${libname}${release}${major}$shared_ext'
19113   shlibpath_overrides_runpath=yes
19114   shlibpath_var=DYLD_LIBRARY_PATH
19115   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19116
19117   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19118   ;;
19119
19120 dgux*)
19121   version_type=linux # correct to gnu/linux during the next big refactor
19122   need_lib_prefix=no
19123   need_version=no
19124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19125   soname_spec='${libname}${release}${shared_ext}$major'
19126   shlibpath_var=LD_LIBRARY_PATH
19127   ;;
19128
19129 freebsd* | dragonfly*)
19130   # DragonFly does not have aout.  When/if they implement a new
19131   # versioning mechanism, adjust this.
19132   if test -x /usr/bin/objformat; then
19133     objformat=`/usr/bin/objformat`
19134   else
19135     case $host_os in
19136     freebsd[23].*) objformat=aout ;;
19137     *) objformat=elf ;;
19138     esac
19139   fi
19140   version_type=freebsd-$objformat
19141   case $version_type in
19142     freebsd-elf*)
19143       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19144       need_version=no
19145       need_lib_prefix=no
19146       ;;
19147     freebsd-*)
19148       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19149       need_version=yes
19150       ;;
19151   esac
19152   shlibpath_var=LD_LIBRARY_PATH
19153   case $host_os in
19154   freebsd2.*)
19155     shlibpath_overrides_runpath=yes
19156     ;;
19157   freebsd3.[01]* | freebsdelf3.[01]*)
19158     shlibpath_overrides_runpath=yes
19159     hardcode_into_libs=yes
19160     ;;
19161   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19162   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19163     shlibpath_overrides_runpath=no
19164     hardcode_into_libs=yes
19165     ;;
19166   *) # from 4.6 on, and DragonFly
19167     shlibpath_overrides_runpath=yes
19168     hardcode_into_libs=yes
19169     ;;
19170   esac
19171   ;;
19172
19173 gnu*)
19174   version_type=linux # correct to gnu/linux during the next big refactor
19175   need_lib_prefix=no
19176   need_version=no
19177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19178   soname_spec='${libname}${release}${shared_ext}$major'
19179   shlibpath_var=LD_LIBRARY_PATH
19180   shlibpath_overrides_runpath=no
19181   hardcode_into_libs=yes
19182   ;;
19183
19184 haiku*)
19185   version_type=linux # correct to gnu/linux during the next big refactor
19186   need_lib_prefix=no
19187   need_version=no
19188   dynamic_linker="$host_os runtime_loader"
19189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19190   soname_spec='${libname}${release}${shared_ext}$major'
19191   shlibpath_var=LIBRARY_PATH
19192   shlibpath_overrides_runpath=yes
19193   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19194   hardcode_into_libs=yes
19195   ;;
19196
19197 hpux9* | hpux10* | hpux11*)
19198   # Give a soname corresponding to the major version so that dld.sl refuses to
19199   # link against other versions.
19200   version_type=sunos
19201   need_lib_prefix=no
19202   need_version=no
19203   case $host_cpu in
19204   ia64*)
19205     shrext_cmds='.so'
19206     hardcode_into_libs=yes
19207     dynamic_linker="$host_os dld.so"
19208     shlibpath_var=LD_LIBRARY_PATH
19209     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19211     soname_spec='${libname}${release}${shared_ext}$major'
19212     if test "X$HPUX_IA64_MODE" = X32; then
19213       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19214     else
19215       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19216     fi
19217     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19218     ;;
19219   hppa*64*)
19220     shrext_cmds='.sl'
19221     hardcode_into_libs=yes
19222     dynamic_linker="$host_os dld.sl"
19223     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19224     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19226     soname_spec='${libname}${release}${shared_ext}$major'
19227     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19228     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19229     ;;
19230   *)
19231     shrext_cmds='.sl'
19232     dynamic_linker="$host_os dld.sl"
19233     shlibpath_var=SHLIB_PATH
19234     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19236     soname_spec='${libname}${release}${shared_ext}$major'
19237     ;;
19238   esac
19239   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19240   postinstall_cmds='chmod 555 $lib'
19241   # or fails outright, so override atomically:
19242   install_override_mode=555
19243   ;;
19244
19245 interix[3-9]*)
19246   version_type=linux # correct to gnu/linux during the next big refactor
19247   need_lib_prefix=no
19248   need_version=no
19249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19250   soname_spec='${libname}${release}${shared_ext}$major'
19251   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19252   shlibpath_var=LD_LIBRARY_PATH
19253   shlibpath_overrides_runpath=no
19254   hardcode_into_libs=yes
19255   ;;
19256
19257 irix5* | irix6* | nonstopux*)
19258   case $host_os in
19259     nonstopux*) version_type=nonstopux ;;
19260     *)
19261         if test "$lt_cv_prog_gnu_ld" = yes; then
19262                 version_type=linux # correct to gnu/linux during the next big refactor
19263         else
19264                 version_type=irix
19265         fi ;;
19266   esac
19267   need_lib_prefix=no
19268   need_version=no
19269   soname_spec='${libname}${release}${shared_ext}$major'
19270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19271   case $host_os in
19272   irix5* | nonstopux*)
19273     libsuff= shlibsuff=
19274     ;;
19275   *)
19276     case $LD in # libtool.m4 will add one of these switches to LD
19277     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19278       libsuff= shlibsuff= libmagic=32-bit;;
19279     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19280       libsuff=32 shlibsuff=N32 libmagic=N32;;
19281     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19282       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19283     *) libsuff= shlibsuff= libmagic=never-match;;
19284     esac
19285     ;;
19286   esac
19287   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19288   shlibpath_overrides_runpath=no
19289   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19290   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19291   hardcode_into_libs=yes
19292   ;;
19293
19294 # No shared lib support for Linux oldld, aout, or coff.
19295 linux*oldld* | linux*aout* | linux*coff*)
19296   dynamic_linker=no
19297   ;;
19298
19299 # This must be glibc/ELF.
19300 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19301   version_type=linux # correct to gnu/linux during the next big refactor
19302   need_lib_prefix=no
19303   need_version=no
19304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19305   soname_spec='${libname}${release}${shared_ext}$major'
19306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19307   shlibpath_var=LD_LIBRARY_PATH
19308   shlibpath_overrides_runpath=no
19309
19310   # Some binutils ld are patched to set DT_RUNPATH
19311   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19312   $as_echo_n "(cached) " >&6
19313 else
19314   lt_cv_shlibpath_overrides_runpath=no
19315     save_LDFLAGS=$LDFLAGS
19316     save_libdir=$libdir
19317     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
19318          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
19319     cat > conftest.$ac_ext <<_ACEOF
19320       program main
19321
19322       end
19323 _ACEOF
19324 if ac_fn_f77_try_link "$LINENO"; then :
19325   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19326   lt_cv_shlibpath_overrides_runpath=yes
19327 fi
19328 fi
19329 rm -f core conftest.err conftest.$ac_objext \
19330     conftest$ac_exeext conftest.$ac_ext
19331     LDFLAGS=$save_LDFLAGS
19332     libdir=$save_libdir
19333
19334 fi
19335
19336   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19337
19338   # This implies no fast_install, which is unacceptable.
19339   # Some rework will be needed to allow for fast_install
19340   # before this can be enabled.
19341   hardcode_into_libs=yes
19342
19343   # Append ld.so.conf contents to the search path
19344   if test -f /etc/ld.so.conf; then
19345     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
19346     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19347   fi
19348
19349   # We used to test for /lib/ld.so.1 and disable shared libraries on
19350   # powerpc, because MkLinux only supported shared libraries with the
19351   # GNU dynamic linker.  Since this was broken with cross compilers,
19352   # most powerpc-linux boxes support dynamic linking these days and
19353   # people can always --disable-shared, the test was removed, and we
19354   # assume the GNU/Linux dynamic linker is in use.
19355   dynamic_linker='GNU/Linux ld.so'
19356   ;;
19357
19358 netbsd*)
19359   version_type=sunos
19360   need_lib_prefix=no
19361   need_version=no
19362   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19364     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19365     dynamic_linker='NetBSD (a.out) ld.so'
19366   else
19367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19368     soname_spec='${libname}${release}${shared_ext}$major'
19369     dynamic_linker='NetBSD ld.elf_so'
19370   fi
19371   shlibpath_var=LD_LIBRARY_PATH
19372   shlibpath_overrides_runpath=yes
19373   hardcode_into_libs=yes
19374   ;;
19375
19376 newsos6)
19377   version_type=linux # correct to gnu/linux during the next big refactor
19378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19379   shlibpath_var=LD_LIBRARY_PATH
19380   shlibpath_overrides_runpath=yes
19381   ;;
19382
19383 *nto* | *qnx*)
19384   version_type=qnx
19385   need_lib_prefix=no
19386   need_version=no
19387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19388   soname_spec='${libname}${release}${shared_ext}$major'
19389   shlibpath_var=LD_LIBRARY_PATH
19390   shlibpath_overrides_runpath=no
19391   hardcode_into_libs=yes
19392   dynamic_linker='ldqnx.so'
19393   ;;
19394
19395 openbsd*)
19396   version_type=sunos
19397   sys_lib_dlsearch_path_spec="/usr/lib"
19398   need_lib_prefix=no
19399   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19400   case $host_os in
19401     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19402     *)                          need_version=no  ;;
19403   esac
19404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19405   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19406   shlibpath_var=LD_LIBRARY_PATH
19407   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19408     case $host_os in
19409       openbsd2.[89] | openbsd2.[89].*)
19410         shlibpath_overrides_runpath=no
19411         ;;
19412       *)
19413         shlibpath_overrides_runpath=yes
19414         ;;
19415       esac
19416   else
19417     shlibpath_overrides_runpath=yes
19418   fi
19419   ;;
19420
19421 os2*)
19422   libname_spec='$name'
19423   shrext_cmds=".dll"
19424   need_lib_prefix=no
19425   library_names_spec='$libname${shared_ext} $libname.a'
19426   dynamic_linker='OS/2 ld.exe'
19427   shlibpath_var=LIBPATH
19428   ;;
19429
19430 osf3* | osf4* | osf5*)
19431   version_type=osf
19432   need_lib_prefix=no
19433   need_version=no
19434   soname_spec='${libname}${release}${shared_ext}$major'
19435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19436   shlibpath_var=LD_LIBRARY_PATH
19437   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19438   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19439   ;;
19440
19441 rdos*)
19442   dynamic_linker=no
19443   ;;
19444
19445 solaris*)
19446   version_type=linux # correct to gnu/linux during the next big refactor
19447   need_lib_prefix=no
19448   need_version=no
19449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19450   soname_spec='${libname}${release}${shared_ext}$major'
19451   shlibpath_var=LD_LIBRARY_PATH
19452   shlibpath_overrides_runpath=yes
19453   hardcode_into_libs=yes
19454   # ldd complains unless libraries are executable
19455   postinstall_cmds='chmod +x $lib'
19456   ;;
19457
19458 sunos4*)
19459   version_type=sunos
19460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19461   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19462   shlibpath_var=LD_LIBRARY_PATH
19463   shlibpath_overrides_runpath=yes
19464   if test "$with_gnu_ld" = yes; then
19465     need_lib_prefix=no
19466   fi
19467   need_version=yes
19468   ;;
19469
19470 sysv4 | sysv4.3*)
19471   version_type=linux # correct to gnu/linux during the next big refactor
19472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19473   soname_spec='${libname}${release}${shared_ext}$major'
19474   shlibpath_var=LD_LIBRARY_PATH
19475   case $host_vendor in
19476     sni)
19477       shlibpath_overrides_runpath=no
19478       need_lib_prefix=no
19479       runpath_var=LD_RUN_PATH
19480       ;;
19481     siemens)
19482       need_lib_prefix=no
19483       ;;
19484     motorola)
19485       need_lib_prefix=no
19486       need_version=no
19487       shlibpath_overrides_runpath=no
19488       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19489       ;;
19490   esac
19491   ;;
19492
19493 sysv4*MP*)
19494   if test -d /usr/nec ;then
19495     version_type=linux # correct to gnu/linux during the next big refactor
19496     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19497     soname_spec='$libname${shared_ext}.$major'
19498     shlibpath_var=LD_LIBRARY_PATH
19499   fi
19500   ;;
19501
19502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19503   version_type=freebsd-elf
19504   need_lib_prefix=no
19505   need_version=no
19506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19507   soname_spec='${libname}${release}${shared_ext}$major'
19508   shlibpath_var=LD_LIBRARY_PATH
19509   shlibpath_overrides_runpath=yes
19510   hardcode_into_libs=yes
19511   if test "$with_gnu_ld" = yes; then
19512     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19513   else
19514     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19515     case $host_os in
19516       sco3.2v5*)
19517         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19518         ;;
19519     esac
19520   fi
19521   sys_lib_dlsearch_path_spec='/usr/lib'
19522   ;;
19523
19524 tpf*)
19525   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19526   version_type=linux # correct to gnu/linux during the next big refactor
19527   need_lib_prefix=no
19528   need_version=no
19529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19530   shlibpath_var=LD_LIBRARY_PATH
19531   shlibpath_overrides_runpath=no
19532   hardcode_into_libs=yes
19533   ;;
19534
19535 uts4*)
19536   version_type=linux # correct to gnu/linux during the next big refactor
19537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19538   soname_spec='${libname}${release}${shared_ext}$major'
19539   shlibpath_var=LD_LIBRARY_PATH
19540   ;;
19541
19542 *)
19543   dynamic_linker=no
19544   ;;
19545 esac
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19547 $as_echo "$dynamic_linker" >&6; }
19548 test "$dynamic_linker" = no && can_build_shared=no
19549
19550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19551 if test "$GCC" = yes; then
19552   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19553 fi
19554
19555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19556   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19557 fi
19558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19559   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19560 fi
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19600 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19601 hardcode_action_F77=
19602 if test -n "$hardcode_libdir_flag_spec_F77" ||
19603    test -n "$runpath_var_F77" ||
19604    test "X$hardcode_automatic_F77" = "Xyes" ; then
19605
19606   # We can hardcode non-existent directories.
19607   if test "$hardcode_direct_F77" != no &&
19608      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19609      # have to relink, otherwise we might link with an installed library
19610      # when we should be linking with a yet-to-be-installed one
19611      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19612      test "$hardcode_minus_L_F77" != no; then
19613     # Linking always hardcodes the temporary library directory.
19614     hardcode_action_F77=relink
19615   else
19616     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19617     hardcode_action_F77=immediate
19618   fi
19619 else
19620   # We cannot hardcode anything, or else we can only hardcode existing
19621   # directories.
19622   hardcode_action_F77=unsupported
19623 fi
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
19625 $as_echo "$hardcode_action_F77" >&6; }
19626
19627 if test "$hardcode_action_F77" = relink ||
19628    test "$inherit_rpath_F77" = yes; then
19629   # Fast installation is not supported
19630   enable_fast_install=no
19631 elif test "$shlibpath_overrides_runpath" = yes ||
19632      test "$enable_shared" = no; then
19633   # Fast installation is not necessary
19634   enable_fast_install=needless
19635 fi
19636
19637
19638
19639
19640
19641
19642
19643   fi # test -n "$compiler"
19644
19645   GCC=$lt_save_GCC
19646   CC="$lt_save_CC"
19647   CFLAGS="$lt_save_CFLAGS"
19648 fi # test "$_lt_disable_F77" != yes
19649
19650 ac_ext=c
19651 ac_cpp='$CPP $CPPFLAGS'
19652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19655
19656
19657 ac_ext=${ac_fc_srcext-f}
19658 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19659 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19660 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19661 if test -n "$ac_tool_prefix"; then
19662   for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
19663   do
19664     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19667 $as_echo_n "checking for $ac_word... " >&6; }
19668 if ${ac_cv_prog_FC+:} false; then :
19669   $as_echo_n "(cached) " >&6
19670 else
19671   if test -n "$FC"; then
19672   ac_cv_prog_FC="$FC" # Let the user override the test.
19673 else
19674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19675 for as_dir in $PATH
19676 do
19677   IFS=$as_save_IFS
19678   test -z "$as_dir" && as_dir=.
19679     for ac_exec_ext in '' $ac_executable_extensions; do
19680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19681     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
19682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19683     break 2
19684   fi
19685 done
19686   done
19687 IFS=$as_save_IFS
19688
19689 fi
19690 fi
19691 FC=$ac_cv_prog_FC
19692 if test -n "$FC"; then
19693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
19694 $as_echo "$FC" >&6; }
19695 else
19696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19697 $as_echo "no" >&6; }
19698 fi
19699
19700
19701     test -n "$FC" && break
19702   done
19703 fi
19704 if test -z "$FC"; then
19705   ac_ct_FC=$FC
19706   for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
19707 do
19708   # Extract the first word of "$ac_prog", so it can be a program name with args.
19709 set dummy $ac_prog; ac_word=$2
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19711 $as_echo_n "checking for $ac_word... " >&6; }
19712 if ${ac_cv_prog_ac_ct_FC+:} false; then :
19713   $as_echo_n "(cached) " >&6
19714 else
19715   if test -n "$ac_ct_FC"; then
19716   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
19717 else
19718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19719 for as_dir in $PATH
19720 do
19721   IFS=$as_save_IFS
19722   test -z "$as_dir" && as_dir=.
19723     for ac_exec_ext in '' $ac_executable_extensions; do
19724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19725     ac_cv_prog_ac_ct_FC="$ac_prog"
19726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19727     break 2
19728   fi
19729 done
19730   done
19731 IFS=$as_save_IFS
19732
19733 fi
19734 fi
19735 ac_ct_FC=$ac_cv_prog_ac_ct_FC
19736 if test -n "$ac_ct_FC"; then
19737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
19738 $as_echo "$ac_ct_FC" >&6; }
19739 else
19740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19741 $as_echo "no" >&6; }
19742 fi
19743
19744
19745   test -n "$ac_ct_FC" && break
19746 done
19747
19748   if test "x$ac_ct_FC" = x; then
19749     FC=""
19750   else
19751     case $cross_compiling:$ac_tool_warned in
19752 yes:)
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19755 ac_tool_warned=yes ;;
19756 esac
19757     FC=$ac_ct_FC
19758   fi
19759 fi
19760
19761
19762 # Provide some information about the compiler.
19763 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
19764 set X $ac_compile
19765 ac_compiler=$2
19766 for ac_option in --version -v -V -qversion; do
19767   { { ac_try="$ac_compiler $ac_option >&5"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19773 $as_echo "$ac_try_echo"; } >&5
19774   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19775   ac_status=$?
19776   if test -s conftest.err; then
19777     sed '10a\
19778 ... rest of stderr output deleted ...
19779          10q' conftest.err >conftest.er1
19780     cat conftest.er1 >&5
19781   fi
19782   rm -f conftest.er1 conftest.err
19783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19784   test $ac_status = 0; }
19785 done
19786 rm -f a.out
19787
19788 # If we don't use `.F' as extension, the preprocessor is not run on the
19789 # input file.  (Note that this only needs to work for GNU compilers.)
19790 ac_save_ext=$ac_ext
19791 ac_ext=F
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
19793 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
19794 if ${ac_cv_fc_compiler_gnu+:} false; then :
19795   $as_echo_n "(cached) " >&6
19796 else
19797   cat > conftest.$ac_ext <<_ACEOF
19798       program main
19799 #ifndef __GNUC__
19800        choke me
19801 #endif
19802
19803       end
19804 _ACEOF
19805 if ac_fn_fc_try_compile "$LINENO"; then :
19806   ac_compiler_gnu=yes
19807 else
19808   ac_compiler_gnu=no
19809 fi
19810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
19812
19813 fi
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
19815 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
19816 ac_ext=$ac_save_ext
19817 ac_test_FCFLAGS=${FCFLAGS+set}
19818 ac_save_FCFLAGS=$FCFLAGS
19819 FCFLAGS=
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
19821 $as_echo_n "checking whether $FC accepts -g... " >&6; }
19822 if ${ac_cv_prog_fc_g+:} false; then :
19823   $as_echo_n "(cached) " >&6
19824 else
19825   FCFLAGS=-g
19826 cat > conftest.$ac_ext <<_ACEOF
19827       program main
19828
19829       end
19830 _ACEOF
19831 if ac_fn_fc_try_compile "$LINENO"; then :
19832   ac_cv_prog_fc_g=yes
19833 else
19834   ac_cv_prog_fc_g=no
19835 fi
19836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837
19838 fi
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
19840 $as_echo "$ac_cv_prog_fc_g" >&6; }
19841 if test "$ac_test_FCFLAGS" = set; then
19842   FCFLAGS=$ac_save_FCFLAGS
19843 elif test $ac_cv_prog_fc_g = yes; then
19844   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
19845     FCFLAGS="-g -O2"
19846   else
19847     FCFLAGS="-g"
19848   fi
19849 else
19850   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
19851     FCFLAGS="-O2"
19852   else
19853     FCFLAGS=
19854   fi
19855 fi
19856
19857 ac_ext=${ac_fc_srcext-f}
19858 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19859 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19860 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19861
19862
19863       ac_ext=${ac_fc_srcext-f}
19864 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19865 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19866 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19867
19868
19869 if test -z "$FC" || test "X$FC" = "Xno"; then
19870   _lt_disable_FC=yes
19871 fi
19872
19873 archive_cmds_need_lc_FC=no
19874 allow_undefined_flag_FC=
19875 always_export_symbols_FC=no
19876 archive_expsym_cmds_FC=
19877 export_dynamic_flag_spec_FC=
19878 hardcode_direct_FC=no
19879 hardcode_direct_absolute_FC=no
19880 hardcode_libdir_flag_spec_FC=
19881 hardcode_libdir_separator_FC=
19882 hardcode_minus_L_FC=no
19883 hardcode_automatic_FC=no
19884 inherit_rpath_FC=no
19885 module_cmds_FC=
19886 module_expsym_cmds_FC=
19887 link_all_deplibs_FC=unknown
19888 old_archive_cmds_FC=$old_archive_cmds
19889 reload_flag_FC=$reload_flag
19890 reload_cmds_FC=$reload_cmds
19891 no_undefined_flag_FC=
19892 whole_archive_flag_spec_FC=
19893 enable_shared_with_static_runtimes_FC=no
19894
19895 # Source file extension for fc test sources.
19896 ac_ext=${ac_fc_srcext-f}
19897
19898 # Object file extension for compiled fc test sources.
19899 objext=o
19900 objext_FC=$objext
19901
19902 # No sense in running all these tests if we already determined that
19903 # the FC compiler isn't working.  Some variables (like enable_shared)
19904 # are currently assumed to apply to all compilers on this platform,
19905 # and will be corrupted by setting them based on a non-working compiler.
19906 if test "$_lt_disable_FC" != yes; then
19907   # Code to be used in simple compile tests
19908   lt_simple_compile_test_code="\
19909       subroutine t
19910       return
19911       end
19912 "
19913
19914   # Code to be used in simple link tests
19915   lt_simple_link_test_code="\
19916       program t
19917       end
19918 "
19919
19920   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19921
19922
19923
19924
19925
19926
19927 # If no C compiler was specified, use CC.
19928 LTCC=${LTCC-"$CC"}
19929
19930 # If no C compiler flags were specified, use CFLAGS.
19931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19932
19933 # Allow CC to be a program name with arguments.
19934 compiler=$CC
19935
19936
19937   # save warnings/boilerplate of simple test code
19938   ac_outfile=conftest.$ac_objext
19939 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19940 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19941 _lt_compiler_boilerplate=`cat conftest.err`
19942 $RM conftest*
19943
19944   ac_outfile=conftest.$ac_objext
19945 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19946 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19947 _lt_linker_boilerplate=`cat conftest.err`
19948 $RM -r conftest*
19949
19950
19951   # Allow CC to be a program name with arguments.
19952   lt_save_CC="$CC"
19953   lt_save_GCC=$GCC
19954   lt_save_CFLAGS=$CFLAGS
19955   CC=${FC-"f95"}
19956   CFLAGS=$FCFLAGS
19957   compiler=$CC
19958   GCC=$ac_cv_fc_compiler_gnu
19959
19960   compiler_FC=$CC
19961   for cc_temp in $compiler""; do
19962   case $cc_temp in
19963     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19964     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19965     \-*) ;;
19966     *) break;;
19967   esac
19968 done
19969 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19970
19971
19972   if test -n "$compiler"; then
19973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19974 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19976 $as_echo "$can_build_shared" >&6; }
19977
19978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19979 $as_echo_n "checking whether to build shared libraries... " >&6; }
19980     test "$can_build_shared" = "no" && enable_shared=no
19981
19982     # On AIX, shared libraries and static libraries use the same namespace, and
19983     # are all built from PIC.
19984     case $host_os in
19985       aix3*)
19986         test "$enable_shared" = yes && enable_static=no
19987         if test -n "$RANLIB"; then
19988           archive_cmds="$archive_cmds~\$RANLIB \$lib"
19989           postinstall_cmds='$RANLIB $lib'
19990         fi
19991         ;;
19992       aix[4-9]*)
19993         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19994           test "$enable_shared" = yes && enable_static=no
19995         fi
19996         ;;
19997     esac
19998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19999 $as_echo "$enable_shared" >&6; }
20000
20001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20002 $as_echo_n "checking whether to build static libraries... " >&6; }
20003     # Make sure either enable_shared or enable_static is yes.
20004     test "$enable_shared" = yes || enable_static=yes
20005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20006 $as_echo "$enable_static" >&6; }
20007
20008     GCC_FC="$ac_cv_fc_compiler_gnu"
20009     LD_FC="$LD"
20010
20011     ## CAVEAT EMPTOR:
20012     ## There is no encapsulation within the following macros, do not change
20013     ## the running order or otherwise move them around unless you know exactly
20014     ## what you are doing...
20015     # Dependencies to place before and after the object being linked:
20016 predep_objects_FC=
20017 postdep_objects_FC=
20018 predeps_FC=
20019 postdeps_FC=
20020 compiler_lib_search_path_FC=
20021
20022 cat > conftest.$ac_ext <<_LT_EOF
20023       subroutine foo
20024       implicit none
20025       integer a
20026       a=0
20027       return
20028       end
20029 _LT_EOF
20030
20031
20032 _lt_libdeps_save_CFLAGS=$CFLAGS
20033 case "$CC $CFLAGS " in #(
20034 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20035 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20036 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20037 esac
20038
20039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20040   (eval $ac_compile) 2>&5
20041   ac_status=$?
20042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20043   test $ac_status = 0; }; then
20044   # Parse the compiler output and extract the necessary
20045   # objects, libraries and library flags.
20046
20047   # Sentinel used to keep track of whether or not we are before
20048   # the conftest object file.
20049   pre_test_object_deps_done=no
20050
20051   for p in `eval "$output_verbose_link_cmd"`; do
20052     case ${prev}${p} in
20053
20054     -L* | -R* | -l*)
20055        # Some compilers place space between "-{L,R}" and the path.
20056        # Remove the space.
20057        if test $p = "-L" ||
20058           test $p = "-R"; then
20059          prev=$p
20060          continue
20061        fi
20062
20063        # Expand the sysroot to ease extracting the directories later.
20064        if test -z "$prev"; then
20065          case $p in
20066          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20067          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20068          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20069          esac
20070        fi
20071        case $p in
20072        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20073        esac
20074        if test "$pre_test_object_deps_done" = no; then
20075          case ${prev} in
20076          -L | -R)
20077            # Internal compiler library paths should come after those
20078            # provided the user.  The postdeps already come after the
20079            # user supplied libs so there is no need to process them.
20080            if test -z "$compiler_lib_search_path_FC"; then
20081              compiler_lib_search_path_FC="${prev}${p}"
20082            else
20083              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
20084            fi
20085            ;;
20086          # The "-l" case would never come before the object being
20087          # linked, so don't bother handling this case.
20088          esac
20089        else
20090          if test -z "$postdeps_FC"; then
20091            postdeps_FC="${prev}${p}"
20092          else
20093            postdeps_FC="${postdeps_FC} ${prev}${p}"
20094          fi
20095        fi
20096        prev=
20097        ;;
20098
20099     *.lto.$objext) ;; # Ignore GCC LTO objects
20100     *.$objext)
20101        # This assumes that the test object file only shows up
20102        # once in the compiler output.
20103        if test "$p" = "conftest.$objext"; then
20104          pre_test_object_deps_done=yes
20105          continue
20106        fi
20107
20108        if test "$pre_test_object_deps_done" = no; then
20109          if test -z "$predep_objects_FC"; then
20110            predep_objects_FC="$p"
20111          else
20112            predep_objects_FC="$predep_objects_FC $p"
20113          fi
20114        else
20115          if test -z "$postdep_objects_FC"; then
20116            postdep_objects_FC="$p"
20117          else
20118            postdep_objects_FC="$postdep_objects_FC $p"
20119          fi
20120        fi
20121        ;;
20122
20123     *) ;; # Ignore the rest.
20124
20125     esac
20126   done
20127
20128   # Clean up.
20129   rm -f a.out a.exe
20130 else
20131   echo "libtool.m4: error: problem compiling FC test program"
20132 fi
20133
20134 $RM -f confest.$objext
20135 CFLAGS=$_lt_libdeps_save_CFLAGS
20136
20137 # PORTME: override above test on systems where it is broken
20138
20139
20140 case " $postdeps_FC " in
20141 *" -lc "*) archive_cmds_need_lc_FC=no ;;
20142 esac
20143  compiler_lib_search_dirs_FC=
20144 if test -n "${compiler_lib_search_path_FC}"; then
20145  compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20146 fi
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160     lt_prog_compiler_wl_FC=
20161 lt_prog_compiler_pic_FC=
20162 lt_prog_compiler_static_FC=
20163
20164
20165   if test "$GCC" = yes; then
20166     lt_prog_compiler_wl_FC='-Wl,'
20167     lt_prog_compiler_static_FC='-static'
20168
20169     case $host_os in
20170       aix*)
20171       # All AIX code is PIC.
20172       if test "$host_cpu" = ia64; then
20173         # AIX 5 now supports IA64 processor
20174         lt_prog_compiler_static_FC='-Bstatic'
20175       fi
20176       ;;
20177
20178     amigaos*)
20179       case $host_cpu in
20180       powerpc)
20181             # see comment about AmigaOS4 .so support
20182             lt_prog_compiler_pic_FC='-fPIC'
20183         ;;
20184       m68k)
20185             # FIXME: we need at least 68020 code to build shared libraries, but
20186             # adding the `-m68020' flag to GCC prevents building anything better,
20187             # like `-m68040'.
20188             lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
20189         ;;
20190       esac
20191       ;;
20192
20193     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20194       # PIC is the default for these OSes.
20195       ;;
20196
20197     mingw* | cygwin* | pw32* | os2* | cegcc*)
20198       # This hack is so that the source file can tell whether it is being
20199       # built for inclusion in a dll (and should export symbols for example).
20200       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20201       # (--disable-auto-import) libraries
20202       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
20203       ;;
20204
20205     darwin* | rhapsody*)
20206       # PIC is the default on this platform
20207       # Common symbols not allowed in MH_DYLIB files
20208       lt_prog_compiler_pic_FC='-fno-common'
20209       ;;
20210
20211     haiku*)
20212       # PIC is the default for Haiku.
20213       # The "-static" flag exists, but is broken.
20214       lt_prog_compiler_static_FC=
20215       ;;
20216
20217     hpux*)
20218       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20219       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20220       # sets the default TLS model and affects inlining.
20221       case $host_cpu in
20222       hppa*64*)
20223         # +Z the default
20224         ;;
20225       *)
20226         lt_prog_compiler_pic_FC='-fPIC'
20227         ;;
20228       esac
20229       ;;
20230
20231     interix[3-9]*)
20232       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20233       # Instead, we relocate shared libraries at runtime.
20234       ;;
20235
20236     msdosdjgpp*)
20237       # Just because we use GCC doesn't mean we suddenly get shared libraries
20238       # on systems that don't support them.
20239       lt_prog_compiler_can_build_shared_FC=no
20240       enable_shared=no
20241       ;;
20242
20243     *nto* | *qnx*)
20244       # QNX uses GNU C++, but need to define -shared option too, otherwise
20245       # it will coredump.
20246       lt_prog_compiler_pic_FC='-fPIC -shared'
20247       ;;
20248
20249     sysv4*MP*)
20250       if test -d /usr/nec; then
20251         lt_prog_compiler_pic_FC=-Kconform_pic
20252       fi
20253       ;;
20254
20255     *)
20256       lt_prog_compiler_pic_FC='-fPIC'
20257       ;;
20258     esac
20259
20260     case $cc_basename in
20261     nvcc*) # Cuda Compiler Driver 2.2
20262       lt_prog_compiler_wl_FC='-Xlinker '
20263       if test -n "$lt_prog_compiler_pic_FC"; then
20264         lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
20265       fi
20266       ;;
20267     esac
20268   else
20269     # PORTME Check for flag to pass linker flags through the system compiler.
20270     case $host_os in
20271     aix*)
20272       lt_prog_compiler_wl_FC='-Wl,'
20273       if test "$host_cpu" = ia64; then
20274         # AIX 5 now supports IA64 processor
20275         lt_prog_compiler_static_FC='-Bstatic'
20276       else
20277         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
20278       fi
20279       ;;
20280
20281     mingw* | cygwin* | pw32* | os2* | cegcc*)
20282       # This hack is so that the source file can tell whether it is being
20283       # built for inclusion in a dll (and should export symbols for example).
20284       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
20285       ;;
20286
20287     hpux9* | hpux10* | hpux11*)
20288       lt_prog_compiler_wl_FC='-Wl,'
20289       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20290       # not for PA HP-UX.
20291       case $host_cpu in
20292       hppa*64*|ia64*)
20293         # +Z the default
20294         ;;
20295       *)
20296         lt_prog_compiler_pic_FC='+Z'
20297         ;;
20298       esac
20299       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20300       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
20301       ;;
20302
20303     irix5* | irix6* | nonstopux*)
20304       lt_prog_compiler_wl_FC='-Wl,'
20305       # PIC (with -KPIC) is the default.
20306       lt_prog_compiler_static_FC='-non_shared'
20307       ;;
20308
20309     linux* | k*bsd*-gnu | kopensolaris*-gnu)
20310       case $cc_basename in
20311       # old Intel for x86_64 which still supported -KPIC.
20312       ecc*)
20313         lt_prog_compiler_wl_FC='-Wl,'
20314         lt_prog_compiler_pic_FC='-KPIC'
20315         lt_prog_compiler_static_FC='-static'
20316         ;;
20317       # icc used to be incompatible with GCC.
20318       # ICC 10 doesn't accept -KPIC any more.
20319       icc* | ifort*)
20320         lt_prog_compiler_wl_FC='-Wl,'
20321         lt_prog_compiler_pic_FC='-fPIC'
20322         lt_prog_compiler_static_FC='-static'
20323         ;;
20324       # Lahey Fortran 8.1.
20325       lf95*)
20326         lt_prog_compiler_wl_FC='-Wl,'
20327         lt_prog_compiler_pic_FC='--shared'
20328         lt_prog_compiler_static_FC='--static'
20329         ;;
20330       nagfor*)
20331         # NAG Fortran compiler
20332         lt_prog_compiler_wl_FC='-Wl,-Wl,,'
20333         lt_prog_compiler_pic_FC='-PIC'
20334         lt_prog_compiler_static_FC='-Bstatic'
20335         ;;
20336       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
20337         # Portland Group compilers (*not* the Pentium gcc compiler,
20338         # which looks to be a dead project)
20339         lt_prog_compiler_wl_FC='-Wl,'
20340         lt_prog_compiler_pic_FC='-fpic'
20341         lt_prog_compiler_static_FC='-Bstatic'
20342         ;;
20343       ccc*)
20344         lt_prog_compiler_wl_FC='-Wl,'
20345         # All Alpha code is PIC.
20346         lt_prog_compiler_static_FC='-non_shared'
20347         ;;
20348       xl* | bgxl* | bgf* | mpixl*)
20349         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
20350         lt_prog_compiler_wl_FC='-Wl,'
20351         lt_prog_compiler_pic_FC='-qpic'
20352         lt_prog_compiler_static_FC='-qstaticlink'
20353         ;;
20354       *)
20355         case `$CC -V 2>&1 | sed 5q` in
20356         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
20357           # Sun Fortran 8.3 passes all unrecognized flags to the linker
20358           lt_prog_compiler_pic_FC='-KPIC'
20359           lt_prog_compiler_static_FC='-Bstatic'
20360           lt_prog_compiler_wl_FC=''
20361           ;;
20362         *Sun\ F* | *Sun*Fortran*)
20363           lt_prog_compiler_pic_FC='-KPIC'
20364           lt_prog_compiler_static_FC='-Bstatic'
20365           lt_prog_compiler_wl_FC='-Qoption ld '
20366           ;;
20367         *Sun\ C*)
20368           # Sun C 5.9
20369           lt_prog_compiler_pic_FC='-KPIC'
20370           lt_prog_compiler_static_FC='-Bstatic'
20371           lt_prog_compiler_wl_FC='-Wl,'
20372           ;;
20373         *Intel*\ [CF]*Compiler*)
20374           lt_prog_compiler_wl_FC='-Wl,'
20375           lt_prog_compiler_pic_FC='-fPIC'
20376           lt_prog_compiler_static_FC='-static'
20377           ;;
20378         *Portland\ Group*)
20379           lt_prog_compiler_wl_FC='-Wl,'
20380           lt_prog_compiler_pic_FC='-fpic'
20381           lt_prog_compiler_static_FC='-Bstatic'
20382           ;;
20383         esac
20384         ;;
20385       esac
20386       ;;
20387
20388     newsos6)
20389       lt_prog_compiler_pic_FC='-KPIC'
20390       lt_prog_compiler_static_FC='-Bstatic'
20391       ;;
20392
20393     *nto* | *qnx*)
20394       # QNX uses GNU C++, but need to define -shared option too, otherwise
20395       # it will coredump.
20396       lt_prog_compiler_pic_FC='-fPIC -shared'
20397       ;;
20398
20399     osf3* | osf4* | osf5*)
20400       lt_prog_compiler_wl_FC='-Wl,'
20401       # All OSF/1 code is PIC.
20402       lt_prog_compiler_static_FC='-non_shared'
20403       ;;
20404
20405     rdos*)
20406       lt_prog_compiler_static_FC='-non_shared'
20407       ;;
20408
20409     solaris*)
20410       lt_prog_compiler_pic_FC='-KPIC'
20411       lt_prog_compiler_static_FC='-Bstatic'
20412       case $cc_basename in
20413       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20414         lt_prog_compiler_wl_FC='-Qoption ld ';;
20415       *)
20416         lt_prog_compiler_wl_FC='-Wl,';;
20417       esac
20418       ;;
20419
20420     sunos4*)
20421       lt_prog_compiler_wl_FC='-Qoption ld '
20422       lt_prog_compiler_pic_FC='-PIC'
20423       lt_prog_compiler_static_FC='-Bstatic'
20424       ;;
20425
20426     sysv4 | sysv4.2uw2* | sysv4.3*)
20427       lt_prog_compiler_wl_FC='-Wl,'
20428       lt_prog_compiler_pic_FC='-KPIC'
20429       lt_prog_compiler_static_FC='-Bstatic'
20430       ;;
20431
20432     sysv4*MP*)
20433       if test -d /usr/nec ;then
20434         lt_prog_compiler_pic_FC='-Kconform_pic'
20435         lt_prog_compiler_static_FC='-Bstatic'
20436       fi
20437       ;;
20438
20439     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20440       lt_prog_compiler_wl_FC='-Wl,'
20441       lt_prog_compiler_pic_FC='-KPIC'
20442       lt_prog_compiler_static_FC='-Bstatic'
20443       ;;
20444
20445     unicos*)
20446       lt_prog_compiler_wl_FC='-Wl,'
20447       lt_prog_compiler_can_build_shared_FC=no
20448       ;;
20449
20450     uts4*)
20451       lt_prog_compiler_pic_FC='-pic'
20452       lt_prog_compiler_static_FC='-Bstatic'
20453       ;;
20454
20455     *)
20456       lt_prog_compiler_can_build_shared_FC=no
20457       ;;
20458     esac
20459   fi
20460
20461 case $host_os in
20462   # For platforms which do not support PIC, -DPIC is meaningless:
20463   *djgpp*)
20464     lt_prog_compiler_pic_FC=
20465     ;;
20466   *)
20467     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
20468     ;;
20469 esac
20470
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20472 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20473 if ${lt_cv_prog_compiler_pic_FC+:} false; then :
20474   $as_echo_n "(cached) " >&6
20475 else
20476   lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
20477 fi
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
20479 $as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
20480 lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
20481
20482 #
20483 # Check to make sure the PIC flag actually works.
20484 #
20485 if test -n "$lt_prog_compiler_pic_FC"; then
20486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
20487 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
20488 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
20489   $as_echo_n "(cached) " >&6
20490 else
20491   lt_cv_prog_compiler_pic_works_FC=no
20492    ac_outfile=conftest.$ac_objext
20493    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20494    lt_compiler_flag="$lt_prog_compiler_pic_FC"
20495    # Insert the option either (1) after the last *FLAGS variable, or
20496    # (2) before a word containing "conftest.", or (3) at the end.
20497    # Note that $ac_compile itself does not contain backslashes and begins
20498    # with a dollar sign (not a hyphen), so the echo should work correctly.
20499    # The option is referenced via a variable to avoid confusing sed.
20500    lt_compile=`echo "$ac_compile" | $SED \
20501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20503    -e 's:$: $lt_compiler_flag:'`
20504    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20505    (eval "$lt_compile" 2>conftest.err)
20506    ac_status=$?
20507    cat conftest.err >&5
20508    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509    if (exit $ac_status) && test -s "$ac_outfile"; then
20510      # The compiler can only warn and ignore the option if not recognized
20511      # So say no if there are warnings other than the usual output.
20512      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20513      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20514      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20515        lt_cv_prog_compiler_pic_works_FC=yes
20516      fi
20517    fi
20518    $RM conftest*
20519
20520 fi
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
20522 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
20523
20524 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
20525     case $lt_prog_compiler_pic_FC in
20526      "" | " "*) ;;
20527      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
20528      esac
20529 else
20530     lt_prog_compiler_pic_FC=
20531      lt_prog_compiler_can_build_shared_FC=no
20532 fi
20533
20534 fi
20535
20536
20537
20538
20539
20540 #
20541 # Check to make sure the static flag actually works.
20542 #
20543 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20545 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20546 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
20547   $as_echo_n "(cached) " >&6
20548 else
20549   lt_cv_prog_compiler_static_works_FC=no
20550    save_LDFLAGS="$LDFLAGS"
20551    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20552    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20553    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20554      # The linker can only warn and ignore the option if not recognized
20555      # So say no if there are warnings
20556      if test -s conftest.err; then
20557        # Append any errors to the config.log.
20558        cat conftest.err 1>&5
20559        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20560        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20561        if diff conftest.exp conftest.er2 >/dev/null; then
20562          lt_cv_prog_compiler_static_works_FC=yes
20563        fi
20564      else
20565        lt_cv_prog_compiler_static_works_FC=yes
20566      fi
20567    fi
20568    $RM -r conftest*
20569    LDFLAGS="$save_LDFLAGS"
20570
20571 fi
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
20573 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
20574
20575 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
20576     :
20577 else
20578     lt_prog_compiler_static_FC=
20579 fi
20580
20581
20582
20583
20584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20585 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20586 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
20587   $as_echo_n "(cached) " >&6
20588 else
20589   lt_cv_prog_compiler_c_o_FC=no
20590    $RM -r conftest 2>/dev/null
20591    mkdir conftest
20592    cd conftest
20593    mkdir out
20594    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20595
20596    lt_compiler_flag="-o out/conftest2.$ac_objext"
20597    # Insert the option either (1) after the last *FLAGS variable, or
20598    # (2) before a word containing "conftest.", or (3) at the end.
20599    # Note that $ac_compile itself does not contain backslashes and begins
20600    # with a dollar sign (not a hyphen), so the echo should work correctly.
20601    lt_compile=`echo "$ac_compile" | $SED \
20602    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20603    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20604    -e 's:$: $lt_compiler_flag:'`
20605    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20606    (eval "$lt_compile" 2>out/conftest.err)
20607    ac_status=$?
20608    cat out/conftest.err >&5
20609    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20611    then
20612      # The compiler can only warn and ignore the option if not recognized
20613      # So say no if there are warnings
20614      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20615      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20616      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20617        lt_cv_prog_compiler_c_o_FC=yes
20618      fi
20619    fi
20620    chmod u+w . 2>&5
20621    $RM conftest*
20622    # SGI C++ compiler will create directory out/ii_files/ for
20623    # template instantiation
20624    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20625    $RM out/* && rmdir out
20626    cd ..
20627    $RM -r conftest
20628    $RM conftest*
20629
20630 fi
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
20632 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
20633
20634
20635
20636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20637 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20638 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
20639   $as_echo_n "(cached) " >&6
20640 else
20641   lt_cv_prog_compiler_c_o_FC=no
20642    $RM -r conftest 2>/dev/null
20643    mkdir conftest
20644    cd conftest
20645    mkdir out
20646    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20647
20648    lt_compiler_flag="-o out/conftest2.$ac_objext"
20649    # Insert the option either (1) after the last *FLAGS variable, or
20650    # (2) before a word containing "conftest.", or (3) at the end.
20651    # Note that $ac_compile itself does not contain backslashes and begins
20652    # with a dollar sign (not a hyphen), so the echo should work correctly.
20653    lt_compile=`echo "$ac_compile" | $SED \
20654    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20655    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20656    -e 's:$: $lt_compiler_flag:'`
20657    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20658    (eval "$lt_compile" 2>out/conftest.err)
20659    ac_status=$?
20660    cat out/conftest.err >&5
20661    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20663    then
20664      # The compiler can only warn and ignore the option if not recognized
20665      # So say no if there are warnings
20666      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20667      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20668      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20669        lt_cv_prog_compiler_c_o_FC=yes
20670      fi
20671    fi
20672    chmod u+w . 2>&5
20673    $RM conftest*
20674    # SGI C++ compiler will create directory out/ii_files/ for
20675    # template instantiation
20676    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20677    $RM out/* && rmdir out
20678    cd ..
20679    $RM -r conftest
20680    $RM conftest*
20681
20682 fi
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
20684 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
20685
20686
20687
20688
20689 hard_links="nottested"
20690 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
20691   # do not overwrite the value of need_locks provided by the user
20692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20693 $as_echo_n "checking if we can lock with hard links... " >&6; }
20694   hard_links=yes
20695   $RM conftest*
20696   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20697   touch conftest.a
20698   ln conftest.a conftest.b 2>&5 || hard_links=no
20699   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20701 $as_echo "$hard_links" >&6; }
20702   if test "$hard_links" = no; then
20703     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20704 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20705     need_locks=warn
20706   fi
20707 else
20708   need_locks=no
20709 fi
20710
20711
20712
20713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20715
20716   runpath_var=
20717   allow_undefined_flag_FC=
20718   always_export_symbols_FC=no
20719   archive_cmds_FC=
20720   archive_expsym_cmds_FC=
20721   compiler_needs_object_FC=no
20722   enable_shared_with_static_runtimes_FC=no
20723   export_dynamic_flag_spec_FC=
20724   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20725   hardcode_automatic_FC=no
20726   hardcode_direct_FC=no
20727   hardcode_direct_absolute_FC=no
20728   hardcode_libdir_flag_spec_FC=
20729   hardcode_libdir_separator_FC=
20730   hardcode_minus_L_FC=no
20731   hardcode_shlibpath_var_FC=unsupported
20732   inherit_rpath_FC=no
20733   link_all_deplibs_FC=unknown
20734   module_cmds_FC=
20735   module_expsym_cmds_FC=
20736   old_archive_from_new_cmds_FC=
20737   old_archive_from_expsyms_cmds_FC=
20738   thread_safe_flag_spec_FC=
20739   whole_archive_flag_spec_FC=
20740   # include_expsyms should be a list of space-separated symbols to be *always*
20741   # included in the symbol list
20742   include_expsyms_FC=
20743   # exclude_expsyms can be an extended regexp of symbols to exclude
20744   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20745   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20746   # as well as any symbol that contains `d'.
20747   exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20748   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20749   # platforms (ab)use it in PIC code, but their linkers get confused if
20750   # the symbol is explicitly referenced.  Since portable code cannot
20751   # rely on this symbol name, it's probably fine to never include it in
20752   # preloaded symbol tables.
20753   # Exclude shared library initialization/finalization symbols.
20754   extract_expsyms_cmds=
20755
20756   case $host_os in
20757   cygwin* | mingw* | pw32* | cegcc*)
20758     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20759     # When not using gcc, we currently assume that we are using
20760     # Microsoft Visual C++.
20761     if test "$GCC" != yes; then
20762       with_gnu_ld=no
20763     fi
20764     ;;
20765   interix*)
20766     # we just hope/assume this is gcc and not c89 (= MSVC++)
20767     with_gnu_ld=yes
20768     ;;
20769   openbsd*)
20770     with_gnu_ld=no
20771     ;;
20772   esac
20773
20774   ld_shlibs_FC=yes
20775
20776   # On some targets, GNU ld is compatible enough with the native linker
20777   # that we're better off using the native interface for both.
20778   lt_use_gnu_ld_interface=no
20779   if test "$with_gnu_ld" = yes; then
20780     case $host_os in
20781       aix*)
20782         # The AIX port of GNU ld has always aspired to compatibility
20783         # with the native linker.  However, as the warning in the GNU ld
20784         # block says, versions before 2.19.5* couldn't really create working
20785         # shared libraries, regardless of the interface used.
20786         case `$LD -v 2>&1` in
20787           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
20788           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
20789           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
20790           *)
20791             lt_use_gnu_ld_interface=yes
20792             ;;
20793         esac
20794         ;;
20795       *)
20796         lt_use_gnu_ld_interface=yes
20797         ;;
20798     esac
20799   fi
20800
20801   if test "$lt_use_gnu_ld_interface" = yes; then
20802     # If archive_cmds runs LD, not CC, wlarc should be empty
20803     wlarc='${wl}'
20804
20805     # Set some defaults for GNU ld with shared library support. These
20806     # are reset later if shared libraries are not supported. Putting them
20807     # here allows them to be overridden if necessary.
20808     runpath_var=LD_RUN_PATH
20809     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
20810     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
20811     # ancient GNU ld didn't support --whole-archive et. al.
20812     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20813       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20814     else
20815       whole_archive_flag_spec_FC=
20816     fi
20817     supports_anon_versioning=no
20818     case `$LD -v 2>&1` in
20819       *GNU\ gold*) supports_anon_versioning=yes ;;
20820       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20821       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20822       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20823       *\ 2.11.*) ;; # other 2.11 versions
20824       *) supports_anon_versioning=yes ;;
20825     esac
20826
20827     # See if GNU ld supports shared libraries.
20828     case $host_os in
20829     aix[3-9]*)
20830       # On AIX/PPC, the GNU linker is very broken
20831       if test "$host_cpu" != ia64; then
20832         ld_shlibs_FC=no
20833         cat <<_LT_EOF 1>&2
20834
20835 *** Warning: the GNU linker, at least up to release 2.19, is reported
20836 *** to be unable to reliably create shared libraries on AIX.
20837 *** Therefore, libtool is disabling shared libraries support.  If you
20838 *** really care for shared libraries, you may want to install binutils
20839 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
20840 *** You will then need to restart the configuration process.
20841
20842 _LT_EOF
20843       fi
20844       ;;
20845
20846     amigaos*)
20847       case $host_cpu in
20848       powerpc)
20849             # see comment about AmigaOS4 .so support
20850             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20851             archive_expsym_cmds_FC=''
20852         ;;
20853       m68k)
20854             archive_cmds_FC='$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)'
20855             hardcode_libdir_flag_spec_FC='-L$libdir'
20856             hardcode_minus_L_FC=yes
20857         ;;
20858       esac
20859       ;;
20860
20861     beos*)
20862       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20863         allow_undefined_flag_FC=unsupported
20864         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20865         # support --undefined.  This deserves some investigation.  FIXME
20866         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20867       else
20868         ld_shlibs_FC=no
20869       fi
20870       ;;
20871
20872     cygwin* | mingw* | pw32* | cegcc*)
20873       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
20874       # as there is no search path for DLLs.
20875       hardcode_libdir_flag_spec_FC='-L$libdir'
20876       export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
20877       allow_undefined_flag_FC=unsupported
20878       always_export_symbols_FC=no
20879       enable_shared_with_static_runtimes_FC=yes
20880       export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20881       exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20882
20883       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20884         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20885         # If the export-symbols file already is a .def file (1st line
20886         # is EXPORTS), use it as is; otherwise, prepend...
20887         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20888           cp $export_symbols $output_objdir/$soname.def;
20889         else
20890           echo EXPORTS > $output_objdir/$soname.def;
20891           cat $export_symbols >> $output_objdir/$soname.def;
20892         fi~
20893         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20894       else
20895         ld_shlibs_FC=no
20896       fi
20897       ;;
20898
20899     haiku*)
20900       archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20901       link_all_deplibs_FC=yes
20902       ;;
20903
20904     interix[3-9]*)
20905       hardcode_direct_FC=no
20906       hardcode_shlibpath_var_FC=no
20907       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
20908       export_dynamic_flag_spec_FC='${wl}-E'
20909       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20910       # Instead, shared libraries are loaded at an image base (0x10000000 by
20911       # default) and relocated if they conflict, which is a slow very memory
20912       # consuming and fragmenting process.  To avoid this, we pick a random,
20913       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20914       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20915       archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20916       archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20917       ;;
20918
20919     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
20920       tmp_diet=no
20921       if test "$host_os" = linux-dietlibc; then
20922         case $cc_basename in
20923           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
20924         esac
20925       fi
20926       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20927          && test "$tmp_diet" = no
20928       then
20929         tmp_addflag=' $pic_flag'
20930         tmp_sharedflag='-shared'
20931         case $cc_basename,$host_cpu in
20932         pgcc*)                          # Portland Group C compiler
20933           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
20934           tmp_addflag=' $pic_flag'
20935           ;;
20936         pgf77* | pgf90* | pgf95* | pgfortran*)
20937                                         # Portland Group f77 and f90 compilers
20938           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
20939           tmp_addflag=' $pic_flag -Mnomain' ;;
20940         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
20941           tmp_addflag=' -i_dynamic' ;;
20942         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20943           tmp_addflag=' -i_dynamic -nofor_main' ;;
20944         ifc* | ifort*)                  # Intel Fortran compiler
20945           tmp_addflag=' -nofor_main' ;;
20946         lf95*)                          # Lahey Fortran 8.1
20947           whole_archive_flag_spec_FC=
20948           tmp_sharedflag='--shared' ;;
20949         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20950           tmp_sharedflag='-qmkshrobj'
20951           tmp_addflag= ;;
20952         nvcc*)  # Cuda Compiler Driver 2.2
20953           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
20954           compiler_needs_object_FC=yes
20955           ;;
20956         esac
20957         case `$CC -V 2>&1 | sed 5q` in
20958         *Sun\ C*)                       # Sun C 5.9
20959           whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
20960           compiler_needs_object_FC=yes
20961           tmp_sharedflag='-G' ;;
20962         *Sun\ F*)                       # Sun Fortran 8.3
20963           tmp_sharedflag='-G' ;;
20964         esac
20965         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20966
20967         if test "x$supports_anon_versioning" = xyes; then
20968           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
20969             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20970             echo "local: *; };" >> $output_objdir/$libname.ver~
20971             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20972         fi
20973
20974         case $cc_basename in
20975         xlf* | bgf* | bgxlf* | mpixlf*)
20976           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20977           whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
20978           hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
20979           archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20980           if test "x$supports_anon_versioning" = xyes; then
20981             archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
20982               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20983               echo "local: *; };" >> $output_objdir/$libname.ver~
20984               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20985           fi
20986           ;;
20987         esac
20988       else
20989         ld_shlibs_FC=no
20990       fi
20991       ;;
20992
20993     netbsd*)
20994       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20995         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20996         wlarc=
20997       else
20998         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20999         archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21000       fi
21001       ;;
21002
21003     solaris*)
21004       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
21005         ld_shlibs_FC=no
21006         cat <<_LT_EOF 1>&2
21007
21008 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21009 *** create shared libraries on Solaris systems.  Therefore, libtool
21010 *** is disabling shared libraries support.  We urge you to upgrade GNU
21011 *** binutils to release 2.9.1 or newer.  Another option is to modify
21012 *** your PATH or compiler configuration so that the native linker is
21013 *** used, and then restart.
21014
21015 _LT_EOF
21016       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21017         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21018         archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21019       else
21020         ld_shlibs_FC=no
21021       fi
21022       ;;
21023
21024     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21025       case `$LD -v 2>&1` in
21026         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21027         ld_shlibs_FC=no
21028         cat <<_LT_EOF 1>&2
21029
21030 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21031 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21032 *** is disabling shared libraries support.  We urge you to upgrade GNU
21033 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21034 *** your PATH or compiler configuration so that the native linker is
21035 *** used, and then restart.
21036
21037 _LT_EOF
21038         ;;
21039         *)
21040           # For security reasons, it is highly recommended that you always
21041           # use absolute paths for naming shared libraries, and exclude the
21042           # DT_RUNPATH tag from executables and libraries.  But doing so
21043           # requires that you compile everything twice, which is a pain.
21044           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21045             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
21046             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21047             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21048           else
21049             ld_shlibs_FC=no
21050           fi
21051         ;;
21052       esac
21053       ;;
21054
21055     sunos4*)
21056       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21057       wlarc=
21058       hardcode_direct_FC=yes
21059       hardcode_shlibpath_var_FC=no
21060       ;;
21061
21062     *)
21063       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21064         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21065         archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21066       else
21067         ld_shlibs_FC=no
21068       fi
21069       ;;
21070     esac
21071
21072     if test "$ld_shlibs_FC" = no; then
21073       runpath_var=
21074       hardcode_libdir_flag_spec_FC=
21075       export_dynamic_flag_spec_FC=
21076       whole_archive_flag_spec_FC=
21077     fi
21078   else
21079     # PORTME fill in a description of your system's linker (not GNU ld)
21080     case $host_os in
21081     aix3*)
21082       allow_undefined_flag_FC=unsupported
21083       always_export_symbols_FC=yes
21084       archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
21085       # Note: this linker hardcodes the directories in LIBPATH if there
21086       # are no directories specified by -L.
21087       hardcode_minus_L_FC=yes
21088       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21089         # Neither direct hardcoding nor static linking is supported with a
21090         # broken collect2.
21091         hardcode_direct_FC=unsupported
21092       fi
21093       ;;
21094
21095     aix[4-9]*)
21096       if test "$host_cpu" = ia64; then
21097         # On IA64, the linker does run time linking by default, so we don't
21098         # have to do anything special.
21099         aix_use_runtimelinking=no
21100         exp_sym_flag='-Bexport'
21101         no_entry_flag=""
21102       else
21103         # If we're using GNU nm, then we don't want the "-C" option.
21104         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21105         # Also, AIX nm treats weak defined symbols like other global
21106         # defined symbols, whereas GNU nm marks them as "W".
21107         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21108           export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21109         else
21110           export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21111         fi
21112         aix_use_runtimelinking=no
21113
21114         # Test if we are trying to use run time linking or normal
21115         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21116         # need to do runtime linking.
21117         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21118           for ld_flag in $LDFLAGS; do
21119           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21120             aix_use_runtimelinking=yes
21121             break
21122           fi
21123           done
21124           ;;
21125         esac
21126
21127         exp_sym_flag='-bexport'
21128         no_entry_flag='-bnoentry'
21129       fi
21130
21131       # When large executables or shared objects are built, AIX ld can
21132       # have problems creating the table of contents.  If linking a library
21133       # or program results in "error TOC overflow" add -mminimal-toc to
21134       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21135       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21136
21137       archive_cmds_FC=''
21138       hardcode_direct_FC=yes
21139       hardcode_direct_absolute_FC=yes
21140       hardcode_libdir_separator_FC=':'
21141       link_all_deplibs_FC=yes
21142       file_list_spec_FC='${wl}-f,'
21143
21144       if test "$GCC" = yes; then
21145         case $host_os in aix4.[012]|aix4.[012].*)
21146         # We only want to do this on AIX 4.2 and lower, the check
21147         # below for broken collect2 doesn't work under 4.3+
21148           collect2name=`${CC} -print-prog-name=collect2`
21149           if test -f "$collect2name" &&
21150            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21151           then
21152           # We have reworked collect2
21153           :
21154           else
21155           # We have old collect2
21156           hardcode_direct_FC=unsupported
21157           # It fails to find uninstalled libraries when the uninstalled
21158           # path is not listed in the libpath.  Setting hardcode_minus_L
21159           # to unsupported forces relinking
21160           hardcode_minus_L_FC=yes
21161           hardcode_libdir_flag_spec_FC='-L$libdir'
21162           hardcode_libdir_separator_FC=
21163           fi
21164           ;;
21165         esac
21166         shared_flag='-shared'
21167         if test "$aix_use_runtimelinking" = yes; then
21168           shared_flag="$shared_flag "'${wl}-G'
21169         fi
21170       else
21171         # not using gcc
21172         if test "$host_cpu" = ia64; then
21173         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21174         # chokes on -Wl,-G. The following line is correct:
21175           shared_flag='-G'
21176         else
21177           if test "$aix_use_runtimelinking" = yes; then
21178             shared_flag='${wl}-G'
21179           else
21180             shared_flag='${wl}-bM:SRE'
21181           fi
21182         fi
21183       fi
21184
21185       export_dynamic_flag_spec_FC='${wl}-bexpall'
21186       # It seems that -bexpall does not export symbols beginning with
21187       # underscore (_), so it is better to generate a list of symbols to export.
21188       always_export_symbols_FC=yes
21189       if test "$aix_use_runtimelinking" = yes; then
21190         # Warning - without using the other runtime loading flags (-brtl),
21191         # -berok will link without error, but may produce a broken library.
21192         allow_undefined_flag_FC='-berok'
21193         # Determine the default libpath from the value encoded in an
21194         # empty executable.
21195         if test "${lt_cv_aix_libpath+set}" = set; then
21196   aix_libpath=$lt_cv_aix_libpath
21197 else
21198   if ${lt_cv_aix_libpath__FC+:} false; then :
21199   $as_echo_n "(cached) " >&6
21200 else
21201   cat > conftest.$ac_ext <<_ACEOF
21202       program main
21203
21204       end
21205 _ACEOF
21206 if ac_fn_fc_try_link "$LINENO"; then :
21207
21208   lt_aix_libpath_sed='
21209       /Import File Strings/,/^$/ {
21210           /^0/ {
21211               s/^0  *\([^ ]*\) *$/\1/
21212               p
21213           }
21214       }'
21215   lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21216   # Check for a 64-bit object if we didn't find anything.
21217   if test -z "$lt_cv_aix_libpath__FC"; then
21218     lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21219   fi
21220 fi
21221 rm -f core conftest.err conftest.$ac_objext \
21222     conftest$ac_exeext conftest.$ac_ext
21223   if test -z "$lt_cv_aix_libpath__FC"; then
21224     lt_cv_aix_libpath__FC="/usr/lib:/lib"
21225   fi
21226
21227 fi
21228
21229   aix_libpath=$lt_cv_aix_libpath__FC
21230 fi
21231
21232         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
21233         archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21234       else
21235         if test "$host_cpu" = ia64; then
21236           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
21237           allow_undefined_flag_FC="-z nodefs"
21238           archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
21239         else
21240          # Determine the default libpath from the value encoded in an
21241          # empty executable.
21242          if test "${lt_cv_aix_libpath+set}" = set; then
21243   aix_libpath=$lt_cv_aix_libpath
21244 else
21245   if ${lt_cv_aix_libpath__FC+:} false; then :
21246   $as_echo_n "(cached) " >&6
21247 else
21248   cat > conftest.$ac_ext <<_ACEOF
21249       program main
21250
21251       end
21252 _ACEOF
21253 if ac_fn_fc_try_link "$LINENO"; then :
21254
21255   lt_aix_libpath_sed='
21256       /Import File Strings/,/^$/ {
21257           /^0/ {
21258               s/^0  *\([^ ]*\) *$/\1/
21259               p
21260           }
21261       }'
21262   lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21263   # Check for a 64-bit object if we didn't find anything.
21264   if test -z "$lt_cv_aix_libpath__FC"; then
21265     lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21266   fi
21267 fi
21268 rm -f core conftest.err conftest.$ac_objext \
21269     conftest$ac_exeext conftest.$ac_ext
21270   if test -z "$lt_cv_aix_libpath__FC"; then
21271     lt_cv_aix_libpath__FC="/usr/lib:/lib"
21272   fi
21273
21274 fi
21275
21276   aix_libpath=$lt_cv_aix_libpath__FC
21277 fi
21278
21279          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
21280           # Warning - without using the other run time loading flags,
21281           # -berok will link without error, but may produce a broken library.
21282           no_undefined_flag_FC=' ${wl}-bernotok'
21283           allow_undefined_flag_FC=' ${wl}-berok'
21284           if test "$with_gnu_ld" = yes; then
21285             # We only use this code for GNU lds that support --whole-archive.
21286             whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21287           else
21288             # Exported symbols can be pulled into shared objects from archives
21289             whole_archive_flag_spec_FC='$convenience'
21290           fi
21291           archive_cmds_need_lc_FC=yes
21292           # This is similar to how AIX traditionally builds its shared libraries.
21293           archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
21294         fi
21295       fi
21296       ;;
21297
21298     amigaos*)
21299       case $host_cpu in
21300       powerpc)
21301             # see comment about AmigaOS4 .so support
21302             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21303             archive_expsym_cmds_FC=''
21304         ;;
21305       m68k)
21306             archive_cmds_FC='$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)'
21307             hardcode_libdir_flag_spec_FC='-L$libdir'
21308             hardcode_minus_L_FC=yes
21309         ;;
21310       esac
21311       ;;
21312
21313     bsdi[45]*)
21314       export_dynamic_flag_spec_FC=-rdynamic
21315       ;;
21316
21317     cygwin* | mingw* | pw32* | cegcc*)
21318       # When not using gcc, we currently assume that we are using
21319       # Microsoft Visual C++.
21320       # hardcode_libdir_flag_spec is actually meaningless, as there is
21321       # no search path for DLLs.
21322       case $cc_basename in
21323       cl*)
21324         # Native MSVC
21325         hardcode_libdir_flag_spec_FC=' '
21326         allow_undefined_flag_FC=unsupported
21327         always_export_symbols_FC=yes
21328         file_list_spec_FC='@'
21329         # Tell ltmain to make .lib files, not .a files.
21330         libext=lib
21331         # Tell ltmain to make .dll files, not .so files.
21332         shrext_cmds=".dll"
21333         # FIXME: Setting linknames here is a bad hack.
21334         archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
21335         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21336             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
21337           else
21338             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
21339           fi~
21340           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21341           linknames='
21342         # The linker will not automatically build a static lib if we build a DLL.
21343         # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
21344         enable_shared_with_static_runtimes_FC=yes
21345         exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21346         export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21347         # Don't use ranlib
21348         old_postinstall_cmds_FC='chmod 644 $oldlib'
21349         postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
21350           lt_tool_outputfile="@TOOL_OUTPUT@"~
21351           case $lt_outputfile in
21352             *.exe|*.EXE) ;;
21353             *)
21354               lt_outputfile="$lt_outputfile.exe"
21355               lt_tool_outputfile="$lt_tool_outputfile.exe"
21356               ;;
21357           esac~
21358           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
21359             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21360             $RM "$lt_outputfile.manifest";
21361           fi'
21362         ;;
21363       *)
21364         # Assume MSVC wrapper
21365         hardcode_libdir_flag_spec_FC=' '
21366         allow_undefined_flag_FC=unsupported
21367         # Tell ltmain to make .lib files, not .a files.
21368         libext=lib
21369         # Tell ltmain to make .dll files, not .so files.
21370         shrext_cmds=".dll"
21371         # FIXME: Setting linknames here is a bad hack.
21372         archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
21373         # The linker will automatically build a .lib file if we build a DLL.
21374         old_archive_from_new_cmds_FC='true'
21375         # FIXME: Should let the user specify the lib program.
21376         old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
21377         enable_shared_with_static_runtimes_FC=yes
21378         ;;
21379       esac
21380       ;;
21381
21382     darwin* | rhapsody*)
21383
21384
21385   archive_cmds_need_lc_FC=no
21386   hardcode_direct_FC=no
21387   hardcode_automatic_FC=yes
21388   hardcode_shlibpath_var_FC=unsupported
21389   if test "$lt_cv_ld_force_load" = "yes"; then
21390     whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
21391     compiler_needs_object_FC=yes
21392   else
21393     whole_archive_flag_spec_FC=''
21394   fi
21395   link_all_deplibs_FC=yes
21396   allow_undefined_flag_FC="$_lt_dar_allow_undefined"
21397   case $cc_basename in
21398      ifort*) _lt_dar_can_shared=yes ;;
21399      *) _lt_dar_can_shared=$GCC ;;
21400   esac
21401   if test "$_lt_dar_can_shared" = "yes"; then
21402     output_verbose_link_cmd=func_echo_all
21403     archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
21404     module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21405     archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
21406     module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
21407
21408   else
21409   ld_shlibs_FC=no
21410   fi
21411
21412       ;;
21413
21414     dgux*)
21415       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21416       hardcode_libdir_flag_spec_FC='-L$libdir'
21417       hardcode_shlibpath_var_FC=no
21418       ;;
21419
21420     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21421     # support.  Future versions do this automatically, but an explicit c++rt0.o
21422     # does not break anything, and helps significantly (at the cost of a little
21423     # extra space).
21424     freebsd2.2*)
21425       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21426       hardcode_libdir_flag_spec_FC='-R$libdir'
21427       hardcode_direct_FC=yes
21428       hardcode_shlibpath_var_FC=no
21429       ;;
21430
21431     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21432     freebsd2.*)
21433       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21434       hardcode_direct_FC=yes
21435       hardcode_minus_L_FC=yes
21436       hardcode_shlibpath_var_FC=no
21437       ;;
21438
21439     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21440     freebsd* | dragonfly*)
21441       archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21442       hardcode_libdir_flag_spec_FC='-R$libdir'
21443       hardcode_direct_FC=yes
21444       hardcode_shlibpath_var_FC=no
21445       ;;
21446
21447     hpux9*)
21448       if test "$GCC" = yes; then
21449         archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21450       else
21451         archive_cmds_FC='$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'
21452       fi
21453       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
21454       hardcode_libdir_separator_FC=:
21455       hardcode_direct_FC=yes
21456
21457       # hardcode_minus_L: Not really in the search PATH,
21458       # but as the default location of the library.
21459       hardcode_minus_L_FC=yes
21460       export_dynamic_flag_spec_FC='${wl}-E'
21461       ;;
21462
21463     hpux10*)
21464       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21465         archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21466       else
21467         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21468       fi
21469       if test "$with_gnu_ld" = no; then
21470         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
21471         hardcode_libdir_separator_FC=:
21472         hardcode_direct_FC=yes
21473         hardcode_direct_absolute_FC=yes
21474         export_dynamic_flag_spec_FC='${wl}-E'
21475         # hardcode_minus_L: Not really in the search PATH,
21476         # but as the default location of the library.
21477         hardcode_minus_L_FC=yes
21478       fi
21479       ;;
21480
21481     hpux11*)
21482       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
21483         case $host_cpu in
21484         hppa*64*)
21485           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21486           ;;
21487         ia64*)
21488           archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21489           ;;
21490         *)
21491           archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21492           ;;
21493         esac
21494       else
21495         case $host_cpu in
21496         hppa*64*)
21497           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21498           ;;
21499         ia64*)
21500           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21501           ;;
21502         *)
21503         archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21504           ;;
21505         esac
21506       fi
21507       if test "$with_gnu_ld" = no; then
21508         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
21509         hardcode_libdir_separator_FC=:
21510
21511         case $host_cpu in
21512         hppa*64*|ia64*)
21513           hardcode_direct_FC=no
21514           hardcode_shlibpath_var_FC=no
21515           ;;
21516         *)
21517           hardcode_direct_FC=yes
21518           hardcode_direct_absolute_FC=yes
21519           export_dynamic_flag_spec_FC='${wl}-E'
21520
21521           # hardcode_minus_L: Not really in the search PATH,
21522           # but as the default location of the library.
21523           hardcode_minus_L_FC=yes
21524           ;;
21525         esac
21526       fi
21527       ;;
21528
21529     irix5* | irix6* | nonstopux*)
21530       if test "$GCC" = yes; then
21531         archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21532         # Try to use the -exported_symbol ld option, if it does not
21533         # work, assume that -exports_file does not work either and
21534         # implicitly export all symbols.
21535         # This should be the same for all languages, so no per-tag cache variable.
21536         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
21537 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
21538 if ${lt_cv_irix_exported_symbol+:} false; then :
21539   $as_echo_n "(cached) " >&6
21540 else
21541   save_LDFLAGS="$LDFLAGS"
21542            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
21543            cat > conftest.$ac_ext <<_ACEOF
21544
21545       subroutine foo
21546       end
21547 _ACEOF
21548 if ac_fn_fc_try_link "$LINENO"; then :
21549   lt_cv_irix_exported_symbol=yes
21550 else
21551   lt_cv_irix_exported_symbol=no
21552 fi
21553 rm -f core conftest.err conftest.$ac_objext \
21554     conftest$ac_exeext conftest.$ac_ext
21555            LDFLAGS="$save_LDFLAGS"
21556 fi
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
21558 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
21559         if test "$lt_cv_irix_exported_symbol" = yes; then
21560           archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
21561         fi
21562       else
21563         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
21564         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
21565       fi
21566       archive_cmds_need_lc_FC='no'
21567       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
21568       hardcode_libdir_separator_FC=:
21569       inherit_rpath_FC=yes
21570       link_all_deplibs_FC=yes
21571       ;;
21572
21573     netbsd*)
21574       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21575         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21576       else
21577         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21578       fi
21579       hardcode_libdir_flag_spec_FC='-R$libdir'
21580       hardcode_direct_FC=yes
21581       hardcode_shlibpath_var_FC=no
21582       ;;
21583
21584     newsos6)
21585       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21586       hardcode_direct_FC=yes
21587       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
21588       hardcode_libdir_separator_FC=:
21589       hardcode_shlibpath_var_FC=no
21590       ;;
21591
21592     *nto* | *qnx*)
21593       ;;
21594
21595     openbsd*)
21596       if test -f /usr/libexec/ld.so; then
21597         hardcode_direct_FC=yes
21598         hardcode_shlibpath_var_FC=no
21599         hardcode_direct_absolute_FC=yes
21600         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21601           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21602           archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21603           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
21604           export_dynamic_flag_spec_FC='${wl}-E'
21605         else
21606           case $host_os in
21607            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21608              archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21609              hardcode_libdir_flag_spec_FC='-R$libdir'
21610              ;;
21611            *)
21612              archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21613              hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
21614              ;;
21615           esac
21616         fi
21617       else
21618         ld_shlibs_FC=no
21619       fi
21620       ;;
21621
21622     os2*)
21623       hardcode_libdir_flag_spec_FC='-L$libdir'
21624       hardcode_minus_L_FC=yes
21625       allow_undefined_flag_FC=unsupported
21626       archive_cmds_FC='$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'
21627       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21628       ;;
21629
21630     osf3*)
21631       if test "$GCC" = yes; then
21632         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
21633         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21634       else
21635         allow_undefined_flag_FC=' -expect_unresolved \*'
21636         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
21637       fi
21638       archive_cmds_need_lc_FC='no'
21639       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
21640       hardcode_libdir_separator_FC=:
21641       ;;
21642
21643     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21644       if test "$GCC" = yes; then
21645         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
21646         archive_cmds_FC='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21647         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
21648       else
21649         allow_undefined_flag_FC=' -expect_unresolved \*'
21650         archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
21651         archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
21652         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
21653
21654         # Both c and cxx compiler support -rpath directly
21655         hardcode_libdir_flag_spec_FC='-rpath $libdir'
21656       fi
21657       archive_cmds_need_lc_FC='no'
21658       hardcode_libdir_separator_FC=:
21659       ;;
21660
21661     solaris*)
21662       no_undefined_flag_FC=' -z defs'
21663       if test "$GCC" = yes; then
21664         wlarc='${wl}'
21665         archive_cmds_FC='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21666         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21667           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21668       else
21669         case `$CC -V 2>&1` in
21670         *"Compilers 5.0"*)
21671           wlarc=''
21672           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21673           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21674           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21675           ;;
21676         *)
21677           wlarc='${wl}'
21678           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21679           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21680           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21681           ;;
21682         esac
21683       fi
21684       hardcode_libdir_flag_spec_FC='-R$libdir'
21685       hardcode_shlibpath_var_FC=no
21686       case $host_os in
21687       solaris2.[0-5] | solaris2.[0-5].*) ;;
21688       *)
21689         # The compiler driver will combine and reorder linker options,
21690         # but understands `-z linker_flag'.  GCC discards it without `$wl',
21691         # but is careful enough not to reorder.
21692         # Supported since Solaris 2.6 (maybe 2.5.1?)
21693         if test "$GCC" = yes; then
21694           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21695         else
21696           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
21697         fi
21698         ;;
21699       esac
21700       link_all_deplibs_FC=yes
21701       ;;
21702
21703     sunos4*)
21704       if test "x$host_vendor" = xsequent; then
21705         # Use $CC to link under sequent, because it throws in some extra .o
21706         # files that make .init and .fini sections work.
21707         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21708       else
21709         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21710       fi
21711       hardcode_libdir_flag_spec_FC='-L$libdir'
21712       hardcode_direct_FC=yes
21713       hardcode_minus_L_FC=yes
21714       hardcode_shlibpath_var_FC=no
21715       ;;
21716
21717     sysv4)
21718       case $host_vendor in
21719         sni)
21720           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21721           hardcode_direct_FC=yes # is this really true???
21722         ;;
21723         siemens)
21724           ## LD is ld it makes a PLAMLIB
21725           ## CC just makes a GrossModule.
21726           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21727           reload_cmds_FC='$CC -r -o $output$reload_objs'
21728           hardcode_direct_FC=no
21729         ;;
21730         motorola)
21731           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21732           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
21733         ;;
21734       esac
21735       runpath_var='LD_RUN_PATH'
21736       hardcode_shlibpath_var_FC=no
21737       ;;
21738
21739     sysv4.3*)
21740       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21741       hardcode_shlibpath_var_FC=no
21742       export_dynamic_flag_spec_FC='-Bexport'
21743       ;;
21744
21745     sysv4*MP*)
21746       if test -d /usr/nec; then
21747         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21748         hardcode_shlibpath_var_FC=no
21749         runpath_var=LD_RUN_PATH
21750         hardcode_runpath_var=yes
21751         ld_shlibs_FC=yes
21752       fi
21753       ;;
21754
21755     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21756       no_undefined_flag_FC='${wl}-z,text'
21757       archive_cmds_need_lc_FC=no
21758       hardcode_shlibpath_var_FC=no
21759       runpath_var='LD_RUN_PATH'
21760
21761       if test "$GCC" = yes; then
21762         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21763         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21764       else
21765         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21766         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21767       fi
21768       ;;
21769
21770     sysv5* | sco3.2v5* | sco5v6*)
21771       # Note: We can NOT use -z defs as we might desire, because we do not
21772       # link with -lc, and that would cause any symbols used from libc to
21773       # always be unresolved, which means just about no library would
21774       # ever link correctly.  If we're not using GNU ld we use -z text
21775       # though, which does catch some bad symbols but isn't as heavy-handed
21776       # as -z defs.
21777       no_undefined_flag_FC='${wl}-z,text'
21778       allow_undefined_flag_FC='${wl}-z,nodefs'
21779       archive_cmds_need_lc_FC=no
21780       hardcode_shlibpath_var_FC=no
21781       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
21782       hardcode_libdir_separator_FC=':'
21783       link_all_deplibs_FC=yes
21784       export_dynamic_flag_spec_FC='${wl}-Bexport'
21785       runpath_var='LD_RUN_PATH'
21786
21787       if test "$GCC" = yes; then
21788         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21789         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21790       else
21791         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21792         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21793       fi
21794       ;;
21795
21796     uts4*)
21797       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21798       hardcode_libdir_flag_spec_FC='-L$libdir'
21799       hardcode_shlibpath_var_FC=no
21800       ;;
21801
21802     *)
21803       ld_shlibs_FC=no
21804       ;;
21805     esac
21806
21807     if test x$host_vendor = xsni; then
21808       case $host in
21809       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21810         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
21811         ;;
21812       esac
21813     fi
21814   fi
21815
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
21817 $as_echo "$ld_shlibs_FC" >&6; }
21818 test "$ld_shlibs_FC" = no && can_build_shared=no
21819
21820 with_gnu_ld_FC=$with_gnu_ld
21821
21822
21823
21824
21825
21826
21827 #
21828 # Do we need to explicitly link libc?
21829 #
21830 case "x$archive_cmds_need_lc_FC" in
21831 x|xyes)
21832   # Assume -lc should be added
21833   archive_cmds_need_lc_FC=yes
21834
21835   if test "$enable_shared" = yes && test "$GCC" = yes; then
21836     case $archive_cmds_FC in
21837     *'~'*)
21838       # FIXME: we may have to deal with multi-command sequences.
21839       ;;
21840     '$CC '*)
21841       # Test whether the compiler implicitly links with -lc since on some
21842       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21843       # to ld, don't add -lc before -lgcc.
21844       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21845 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21846 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
21847   $as_echo_n "(cached) " >&6
21848 else
21849   $RM conftest*
21850         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21851
21852         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21853   (eval $ac_compile) 2>&5
21854   ac_status=$?
21855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21856   test $ac_status = 0; } 2>conftest.err; then
21857           soname=conftest
21858           lib=conftest
21859           libobjs=conftest.$ac_objext
21860           deplibs=
21861           wl=$lt_prog_compiler_wl_FC
21862           pic_flag=$lt_prog_compiler_pic_FC
21863           compiler_flags=-v
21864           linker_flags=-v
21865           verstring=
21866           output_objdir=.
21867           libname=conftest
21868           lt_save_allow_undefined_flag=$allow_undefined_flag_FC
21869           allow_undefined_flag_FC=
21870           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21871   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21872   ac_status=$?
21873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21874   test $ac_status = 0; }
21875           then
21876             lt_cv_archive_cmds_need_lc_FC=no
21877           else
21878             lt_cv_archive_cmds_need_lc_FC=yes
21879           fi
21880           allow_undefined_flag_FC=$lt_save_allow_undefined_flag
21881         else
21882           cat conftest.err 1>&5
21883         fi
21884         $RM conftest*
21885
21886 fi
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
21888 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
21889       archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
21890       ;;
21891     esac
21892   fi
21893   ;;
21894 esac
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21959
21960 library_names_spec=
21961 libname_spec='lib$name'
21962 soname_spec=
21963 shrext_cmds=".so"
21964 postinstall_cmds=
21965 postuninstall_cmds=
21966 finish_cmds=
21967 finish_eval=
21968 shlibpath_var=
21969 shlibpath_overrides_runpath=unknown
21970 version_type=none
21971 dynamic_linker="$host_os ld.so"
21972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21973 need_lib_prefix=unknown
21974 hardcode_into_libs=no
21975
21976 # when you set need_version to no, make sure it does not cause -set_version
21977 # flags to be left without arguments
21978 need_version=unknown
21979
21980 case $host_os in
21981 aix3*)
21982   version_type=linux # correct to gnu/linux during the next big refactor
21983   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21984   shlibpath_var=LIBPATH
21985
21986   # AIX 3 has no versioning support, so we append a major version to the name.
21987   soname_spec='${libname}${release}${shared_ext}$major'
21988   ;;
21989
21990 aix[4-9]*)
21991   version_type=linux # correct to gnu/linux during the next big refactor
21992   need_lib_prefix=no
21993   need_version=no
21994   hardcode_into_libs=yes
21995   if test "$host_cpu" = ia64; then
21996     # AIX 5 supports IA64
21997     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21998     shlibpath_var=LD_LIBRARY_PATH
21999   else
22000     # With GCC up to 2.95.x, collect2 would create an import file
22001     # for dependence libraries.  The import file would start with
22002     # the line `#! .'.  This would cause the generated library to
22003     # depend on `.', always an invalid library.  This was fixed in
22004     # development snapshots of GCC prior to 3.0.
22005     case $host_os in
22006       aix4 | aix4.[01] | aix4.[01].*)
22007       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22008            echo ' yes '
22009            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22010         :
22011       else
22012         can_build_shared=no
22013       fi
22014       ;;
22015     esac
22016     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22017     # soname into executable. Probably we can add versioning support to
22018     # collect2, so additional links can be useful in future.
22019     if test "$aix_use_runtimelinking" = yes; then
22020       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22021       # instead of lib<name>.a to let people know that these are not
22022       # typical AIX shared libraries.
22023       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22024     else
22025       # We preserve .a as extension for shared libraries through AIX4.2
22026       # and later when we are not doing run time linking.
22027       library_names_spec='${libname}${release}.a $libname.a'
22028       soname_spec='${libname}${release}${shared_ext}$major'
22029     fi
22030     shlibpath_var=LIBPATH
22031   fi
22032   ;;
22033
22034 amigaos*)
22035   case $host_cpu in
22036   powerpc)
22037     # Since July 2007 AmigaOS4 officially supports .so libraries.
22038     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22040     ;;
22041   m68k)
22042     library_names_spec='$libname.ixlibrary $libname.a'
22043     # Create ${libname}_ixlibrary.a entries in /sys/libs.
22044     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
22045     ;;
22046   esac
22047   ;;
22048
22049 beos*)
22050   library_names_spec='${libname}${shared_ext}'
22051   dynamic_linker="$host_os ld.so"
22052   shlibpath_var=LIBRARY_PATH
22053   ;;
22054
22055 bsdi[45]*)
22056   version_type=linux # correct to gnu/linux during the next big refactor
22057   need_version=no
22058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22059   soname_spec='${libname}${release}${shared_ext}$major'
22060   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22061   shlibpath_var=LD_LIBRARY_PATH
22062   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22063   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22064   # the default ld.so.conf also contains /usr/contrib/lib and
22065   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22066   # libtool to hard-code these into programs
22067   ;;
22068
22069 cygwin* | mingw* | pw32* | cegcc*)
22070   version_type=windows
22071   shrext_cmds=".dll"
22072   need_version=no
22073   need_lib_prefix=no
22074
22075   case $GCC,$cc_basename in
22076   yes,*)
22077     # gcc
22078     library_names_spec='$libname.dll.a'
22079     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22080     postinstall_cmds='base_file=`basename \${file}`~
22081       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22082       dldir=$destdir/`dirname \$dlpath`~
22083       test -d \$dldir || mkdir -p \$dldir~
22084       $install_prog $dir/$dlname \$dldir/$dlname~
22085       chmod a+x \$dldir/$dlname~
22086       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22087         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22088       fi'
22089     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22090       dlpath=$dir/\$dldll~
22091        $RM \$dlpath'
22092     shlibpath_overrides_runpath=yes
22093
22094     case $host_os in
22095     cygwin*)
22096       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22097       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22098
22099       ;;
22100     mingw* | cegcc*)
22101       # MinGW DLLs use traditional 'lib' prefix
22102       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22103       ;;
22104     pw32*)
22105       # pw32 DLLs use 'pw' prefix rather than 'lib'
22106       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22107       ;;
22108     esac
22109     dynamic_linker='Win32 ld.exe'
22110     ;;
22111
22112   *,cl*)
22113     # Native MSVC
22114     libname_spec='$name'
22115     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22116     library_names_spec='${libname}.dll.lib'
22117
22118     case $build_os in
22119     mingw*)
22120       sys_lib_search_path_spec=
22121       lt_save_ifs=$IFS
22122       IFS=';'
22123       for lt_path in $LIB
22124       do
22125         IFS=$lt_save_ifs
22126         # Let DOS variable expansion print the short 8.3 style file name.
22127         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22128         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22129       done
22130       IFS=$lt_save_ifs
22131       # Convert to MSYS style.
22132       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22133       ;;
22134     cygwin*)
22135       # Convert to unix form, then to dos form, then back to unix form
22136       # but this time dos style (no spaces!) so that the unix form looks
22137       # like /cygdrive/c/PROGRA~1:/cygdr...
22138       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22139       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22140       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22141       ;;
22142     *)
22143       sys_lib_search_path_spec="$LIB"
22144       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22145         # It is most probably a Windows format PATH.
22146         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22147       else
22148         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22149       fi
22150       # FIXME: find the short name or the path components, as spaces are
22151       # common. (e.g. "Program Files" -> "PROGRA~1")
22152       ;;
22153     esac
22154
22155     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22156     postinstall_cmds='base_file=`basename \${file}`~
22157       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22158       dldir=$destdir/`dirname \$dlpath`~
22159       test -d \$dldir || mkdir -p \$dldir~
22160       $install_prog $dir/$dlname \$dldir/$dlname'
22161     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22162       dlpath=$dir/\$dldll~
22163        $RM \$dlpath'
22164     shlibpath_overrides_runpath=yes
22165     dynamic_linker='Win32 link.exe'
22166     ;;
22167
22168   *)
22169     # Assume MSVC wrapper
22170     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22171     dynamic_linker='Win32 ld.exe'
22172     ;;
22173   esac
22174   # FIXME: first we should search . and the directory the executable is in
22175   shlibpath_var=PATH
22176   ;;
22177
22178 darwin* | rhapsody*)
22179   dynamic_linker="$host_os dyld"
22180   version_type=darwin
22181   need_lib_prefix=no
22182   need_version=no
22183   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22184   soname_spec='${libname}${release}${major}$shared_ext'
22185   shlibpath_overrides_runpath=yes
22186   shlibpath_var=DYLD_LIBRARY_PATH
22187   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22188
22189   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22190   ;;
22191
22192 dgux*)
22193   version_type=linux # correct to gnu/linux during the next big refactor
22194   need_lib_prefix=no
22195   need_version=no
22196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22197   soname_spec='${libname}${release}${shared_ext}$major'
22198   shlibpath_var=LD_LIBRARY_PATH
22199   ;;
22200
22201 freebsd* | dragonfly*)
22202   # DragonFly does not have aout.  When/if they implement a new
22203   # versioning mechanism, adjust this.
22204   if test -x /usr/bin/objformat; then
22205     objformat=`/usr/bin/objformat`
22206   else
22207     case $host_os in
22208     freebsd[23].*) objformat=aout ;;
22209     *) objformat=elf ;;
22210     esac
22211   fi
22212   version_type=freebsd-$objformat
22213   case $version_type in
22214     freebsd-elf*)
22215       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22216       need_version=no
22217       need_lib_prefix=no
22218       ;;
22219     freebsd-*)
22220       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22221       need_version=yes
22222       ;;
22223   esac
22224   shlibpath_var=LD_LIBRARY_PATH
22225   case $host_os in
22226   freebsd2.*)
22227     shlibpath_overrides_runpath=yes
22228     ;;
22229   freebsd3.[01]* | freebsdelf3.[01]*)
22230     shlibpath_overrides_runpath=yes
22231     hardcode_into_libs=yes
22232     ;;
22233   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22234   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22235     shlibpath_overrides_runpath=no
22236     hardcode_into_libs=yes
22237     ;;
22238   *) # from 4.6 on, and DragonFly
22239     shlibpath_overrides_runpath=yes
22240     hardcode_into_libs=yes
22241     ;;
22242   esac
22243   ;;
22244
22245 gnu*)
22246   version_type=linux # correct to gnu/linux during the next big refactor
22247   need_lib_prefix=no
22248   need_version=no
22249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22250   soname_spec='${libname}${release}${shared_ext}$major'
22251   shlibpath_var=LD_LIBRARY_PATH
22252   shlibpath_overrides_runpath=no
22253   hardcode_into_libs=yes
22254   ;;
22255
22256 haiku*)
22257   version_type=linux # correct to gnu/linux during the next big refactor
22258   need_lib_prefix=no
22259   need_version=no
22260   dynamic_linker="$host_os runtime_loader"
22261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22262   soname_spec='${libname}${release}${shared_ext}$major'
22263   shlibpath_var=LIBRARY_PATH
22264   shlibpath_overrides_runpath=yes
22265   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22266   hardcode_into_libs=yes
22267   ;;
22268
22269 hpux9* | hpux10* | hpux11*)
22270   # Give a soname corresponding to the major version so that dld.sl refuses to
22271   # link against other versions.
22272   version_type=sunos
22273   need_lib_prefix=no
22274   need_version=no
22275   case $host_cpu in
22276   ia64*)
22277     shrext_cmds='.so'
22278     hardcode_into_libs=yes
22279     dynamic_linker="$host_os dld.so"
22280     shlibpath_var=LD_LIBRARY_PATH
22281     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22283     soname_spec='${libname}${release}${shared_ext}$major'
22284     if test "X$HPUX_IA64_MODE" = X32; then
22285       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22286     else
22287       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22288     fi
22289     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22290     ;;
22291   hppa*64*)
22292     shrext_cmds='.sl'
22293     hardcode_into_libs=yes
22294     dynamic_linker="$host_os dld.sl"
22295     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22296     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22298     soname_spec='${libname}${release}${shared_ext}$major'
22299     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22300     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22301     ;;
22302   *)
22303     shrext_cmds='.sl'
22304     dynamic_linker="$host_os dld.sl"
22305     shlibpath_var=SHLIB_PATH
22306     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22308     soname_spec='${libname}${release}${shared_ext}$major'
22309     ;;
22310   esac
22311   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22312   postinstall_cmds='chmod 555 $lib'
22313   # or fails outright, so override atomically:
22314   install_override_mode=555
22315   ;;
22316
22317 interix[3-9]*)
22318   version_type=linux # correct to gnu/linux during the next big refactor
22319   need_lib_prefix=no
22320   need_version=no
22321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22322   soname_spec='${libname}${release}${shared_ext}$major'
22323   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22324   shlibpath_var=LD_LIBRARY_PATH
22325   shlibpath_overrides_runpath=no
22326   hardcode_into_libs=yes
22327   ;;
22328
22329 irix5* | irix6* | nonstopux*)
22330   case $host_os in
22331     nonstopux*) version_type=nonstopux ;;
22332     *)
22333         if test "$lt_cv_prog_gnu_ld" = yes; then
22334                 version_type=linux # correct to gnu/linux during the next big refactor
22335         else
22336                 version_type=irix
22337         fi ;;
22338   esac
22339   need_lib_prefix=no
22340   need_version=no
22341   soname_spec='${libname}${release}${shared_ext}$major'
22342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22343   case $host_os in
22344   irix5* | nonstopux*)
22345     libsuff= shlibsuff=
22346     ;;
22347   *)
22348     case $LD in # libtool.m4 will add one of these switches to LD
22349     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22350       libsuff= shlibsuff= libmagic=32-bit;;
22351     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22352       libsuff=32 shlibsuff=N32 libmagic=N32;;
22353     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22354       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22355     *) libsuff= shlibsuff= libmagic=never-match;;
22356     esac
22357     ;;
22358   esac
22359   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22360   shlibpath_overrides_runpath=no
22361   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22362   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22363   hardcode_into_libs=yes
22364   ;;
22365
22366 # No shared lib support for Linux oldld, aout, or coff.
22367 linux*oldld* | linux*aout* | linux*coff*)
22368   dynamic_linker=no
22369   ;;
22370
22371 # This must be glibc/ELF.
22372 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22373   version_type=linux # correct to gnu/linux during the next big refactor
22374   need_lib_prefix=no
22375   need_version=no
22376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22377   soname_spec='${libname}${release}${shared_ext}$major'
22378   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22379   shlibpath_var=LD_LIBRARY_PATH
22380   shlibpath_overrides_runpath=no
22381
22382   # Some binutils ld are patched to set DT_RUNPATH
22383   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22384   $as_echo_n "(cached) " >&6
22385 else
22386   lt_cv_shlibpath_overrides_runpath=no
22387     save_LDFLAGS=$LDFLAGS
22388     save_libdir=$libdir
22389     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
22390          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
22391     cat > conftest.$ac_ext <<_ACEOF
22392       program main
22393
22394       end
22395 _ACEOF
22396 if ac_fn_fc_try_link "$LINENO"; then :
22397   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22398   lt_cv_shlibpath_overrides_runpath=yes
22399 fi
22400 fi
22401 rm -f core conftest.err conftest.$ac_objext \
22402     conftest$ac_exeext conftest.$ac_ext
22403     LDFLAGS=$save_LDFLAGS
22404     libdir=$save_libdir
22405
22406 fi
22407
22408   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22409
22410   # This implies no fast_install, which is unacceptable.
22411   # Some rework will be needed to allow for fast_install
22412   # before this can be enabled.
22413   hardcode_into_libs=yes
22414
22415   # Append ld.so.conf contents to the search path
22416   if test -f /etc/ld.so.conf; then
22417     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
22418     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22419   fi
22420
22421   # We used to test for /lib/ld.so.1 and disable shared libraries on
22422   # powerpc, because MkLinux only supported shared libraries with the
22423   # GNU dynamic linker.  Since this was broken with cross compilers,
22424   # most powerpc-linux boxes support dynamic linking these days and
22425   # people can always --disable-shared, the test was removed, and we
22426   # assume the GNU/Linux dynamic linker is in use.
22427   dynamic_linker='GNU/Linux ld.so'
22428   ;;
22429
22430 netbsd*)
22431   version_type=sunos
22432   need_lib_prefix=no
22433   need_version=no
22434   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22436     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22437     dynamic_linker='NetBSD (a.out) ld.so'
22438   else
22439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22440     soname_spec='${libname}${release}${shared_ext}$major'
22441     dynamic_linker='NetBSD ld.elf_so'
22442   fi
22443   shlibpath_var=LD_LIBRARY_PATH
22444   shlibpath_overrides_runpath=yes
22445   hardcode_into_libs=yes
22446   ;;
22447
22448 newsos6)
22449   version_type=linux # correct to gnu/linux during the next big refactor
22450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22451   shlibpath_var=LD_LIBRARY_PATH
22452   shlibpath_overrides_runpath=yes
22453   ;;
22454
22455 *nto* | *qnx*)
22456   version_type=qnx
22457   need_lib_prefix=no
22458   need_version=no
22459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22460   soname_spec='${libname}${release}${shared_ext}$major'
22461   shlibpath_var=LD_LIBRARY_PATH
22462   shlibpath_overrides_runpath=no
22463   hardcode_into_libs=yes
22464   dynamic_linker='ldqnx.so'
22465   ;;
22466
22467 openbsd*)
22468   version_type=sunos
22469   sys_lib_dlsearch_path_spec="/usr/lib"
22470   need_lib_prefix=no
22471   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22472   case $host_os in
22473     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
22474     *)                          need_version=no  ;;
22475   esac
22476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22477   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22478   shlibpath_var=LD_LIBRARY_PATH
22479   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22480     case $host_os in
22481       openbsd2.[89] | openbsd2.[89].*)
22482         shlibpath_overrides_runpath=no
22483         ;;
22484       *)
22485         shlibpath_overrides_runpath=yes
22486         ;;
22487       esac
22488   else
22489     shlibpath_overrides_runpath=yes
22490   fi
22491   ;;
22492
22493 os2*)
22494   libname_spec='$name'
22495   shrext_cmds=".dll"
22496   need_lib_prefix=no
22497   library_names_spec='$libname${shared_ext} $libname.a'
22498   dynamic_linker='OS/2 ld.exe'
22499   shlibpath_var=LIBPATH
22500   ;;
22501
22502 osf3* | osf4* | osf5*)
22503   version_type=osf
22504   need_lib_prefix=no
22505   need_version=no
22506   soname_spec='${libname}${release}${shared_ext}$major'
22507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22508   shlibpath_var=LD_LIBRARY_PATH
22509   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22510   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22511   ;;
22512
22513 rdos*)
22514   dynamic_linker=no
22515   ;;
22516
22517 solaris*)
22518   version_type=linux # correct to gnu/linux during the next big refactor
22519   need_lib_prefix=no
22520   need_version=no
22521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22522   soname_spec='${libname}${release}${shared_ext}$major'
22523   shlibpath_var=LD_LIBRARY_PATH
22524   shlibpath_overrides_runpath=yes
22525   hardcode_into_libs=yes
22526   # ldd complains unless libraries are executable
22527   postinstall_cmds='chmod +x $lib'
22528   ;;
22529
22530 sunos4*)
22531   version_type=sunos
22532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22533   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22534   shlibpath_var=LD_LIBRARY_PATH
22535   shlibpath_overrides_runpath=yes
22536   if test "$with_gnu_ld" = yes; then
22537     need_lib_prefix=no
22538   fi
22539   need_version=yes
22540   ;;
22541
22542 sysv4 | sysv4.3*)
22543   version_type=linux # correct to gnu/linux during the next big refactor
22544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22545   soname_spec='${libname}${release}${shared_ext}$major'
22546   shlibpath_var=LD_LIBRARY_PATH
22547   case $host_vendor in
22548     sni)
22549       shlibpath_overrides_runpath=no
22550       need_lib_prefix=no
22551       runpath_var=LD_RUN_PATH
22552       ;;
22553     siemens)
22554       need_lib_prefix=no
22555       ;;
22556     motorola)
22557       need_lib_prefix=no
22558       need_version=no
22559       shlibpath_overrides_runpath=no
22560       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22561       ;;
22562   esac
22563   ;;
22564
22565 sysv4*MP*)
22566   if test -d /usr/nec ;then
22567     version_type=linux # correct to gnu/linux during the next big refactor
22568     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22569     soname_spec='$libname${shared_ext}.$major'
22570     shlibpath_var=LD_LIBRARY_PATH
22571   fi
22572   ;;
22573
22574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22575   version_type=freebsd-elf
22576   need_lib_prefix=no
22577   need_version=no
22578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22579   soname_spec='${libname}${release}${shared_ext}$major'
22580   shlibpath_var=LD_LIBRARY_PATH
22581   shlibpath_overrides_runpath=yes
22582   hardcode_into_libs=yes
22583   if test "$with_gnu_ld" = yes; then
22584     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22585   else
22586     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22587     case $host_os in
22588       sco3.2v5*)
22589         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22590         ;;
22591     esac
22592   fi
22593   sys_lib_dlsearch_path_spec='/usr/lib'
22594   ;;
22595
22596 tpf*)
22597   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22598   version_type=linux # correct to gnu/linux during the next big refactor
22599   need_lib_prefix=no
22600   need_version=no
22601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22602   shlibpath_var=LD_LIBRARY_PATH
22603   shlibpath_overrides_runpath=no
22604   hardcode_into_libs=yes
22605   ;;
22606
22607 uts4*)
22608   version_type=linux # correct to gnu/linux during the next big refactor
22609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22610   soname_spec='${libname}${release}${shared_ext}$major'
22611   shlibpath_var=LD_LIBRARY_PATH
22612   ;;
22613
22614 *)
22615   dynamic_linker=no
22616   ;;
22617 esac
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22619 $as_echo "$dynamic_linker" >&6; }
22620 test "$dynamic_linker" = no && can_build_shared=no
22621
22622 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22623 if test "$GCC" = yes; then
22624   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22625 fi
22626
22627 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22628   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22629 fi
22630 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22631   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22632 fi
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22672 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22673 hardcode_action_FC=
22674 if test -n "$hardcode_libdir_flag_spec_FC" ||
22675    test -n "$runpath_var_FC" ||
22676    test "X$hardcode_automatic_FC" = "Xyes" ; then
22677
22678   # We can hardcode non-existent directories.
22679   if test "$hardcode_direct_FC" != no &&
22680      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22681      # have to relink, otherwise we might link with an installed library
22682      # when we should be linking with a yet-to-be-installed one
22683      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
22684      test "$hardcode_minus_L_FC" != no; then
22685     # Linking always hardcodes the temporary library directory.
22686     hardcode_action_FC=relink
22687   else
22688     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22689     hardcode_action_FC=immediate
22690   fi
22691 else
22692   # We cannot hardcode anything, or else we can only hardcode existing
22693   # directories.
22694   hardcode_action_FC=unsupported
22695 fi
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
22697 $as_echo "$hardcode_action_FC" >&6; }
22698
22699 if test "$hardcode_action_FC" = relink ||
22700    test "$inherit_rpath_FC" = yes; then
22701   # Fast installation is not supported
22702   enable_fast_install=no
22703 elif test "$shlibpath_overrides_runpath" = yes ||
22704      test "$enable_shared" = no; then
22705   # Fast installation is not necessary
22706   enable_fast_install=needless
22707 fi
22708
22709
22710
22711
22712
22713
22714
22715   fi # test -n "$compiler"
22716
22717   GCC=$lt_save_GCC
22718   CC=$lt_save_CC
22719   CFLAGS=$lt_save_CFLAGS
22720 fi # test "$_lt_disable_FC" != yes
22721
22722 ac_ext=c
22723 ac_cpp='$CPP $CPPFLAGS'
22724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22727
22728
22729 if test -n "$ac_tool_prefix"; then
22730   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
22731 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22733 $as_echo_n "checking for $ac_word... " >&6; }
22734 if ${ac_cv_prog_GOC+:} false; then :
22735   $as_echo_n "(cached) " >&6
22736 else
22737   if test -n "$GOC"; then
22738   ac_cv_prog_GOC="$GOC" # Let the user override the test.
22739 else
22740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741 for as_dir in $PATH
22742 do
22743   IFS=$as_save_IFS
22744   test -z "$as_dir" && as_dir=.
22745     for ac_exec_ext in '' $ac_executable_extensions; do
22746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22747     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
22748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22749     break 2
22750   fi
22751 done
22752   done
22753 IFS=$as_save_IFS
22754
22755 fi
22756 fi
22757 GOC=$ac_cv_prog_GOC
22758 if test -n "$GOC"; then
22759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
22760 $as_echo "$GOC" >&6; }
22761 else
22762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22763 $as_echo "no" >&6; }
22764 fi
22765
22766
22767 fi
22768 if test -z "$ac_cv_prog_GOC"; then
22769   ac_ct_GOC=$GOC
22770   # Extract the first word of "gccgo", so it can be a program name with args.
22771 set dummy gccgo; ac_word=$2
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22773 $as_echo_n "checking for $ac_word... " >&6; }
22774 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
22775   $as_echo_n "(cached) " >&6
22776 else
22777   if test -n "$ac_ct_GOC"; then
22778   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
22779 else
22780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22781 for as_dir in $PATH
22782 do
22783   IFS=$as_save_IFS
22784   test -z "$as_dir" && as_dir=.
22785     for ac_exec_ext in '' $ac_executable_extensions; do
22786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22787     ac_cv_prog_ac_ct_GOC="gccgo"
22788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22789     break 2
22790   fi
22791 done
22792   done
22793 IFS=$as_save_IFS
22794
22795 fi
22796 fi
22797 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
22798 if test -n "$ac_ct_GOC"; then
22799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
22800 $as_echo "$ac_ct_GOC" >&6; }
22801 else
22802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22803 $as_echo "no" >&6; }
22804 fi
22805
22806   if test "x$ac_ct_GOC" = x; then
22807     GOC=""
22808   else
22809     case $cross_compiling:$ac_tool_warned in
22810 yes:)
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22813 ac_tool_warned=yes ;;
22814 esac
22815     GOC=$ac_ct_GOC
22816   fi
22817 else
22818   GOC="$ac_cv_prog_GOC"
22819 fi
22820
22821
22822
22823
22824 # Source file extension for Go test sources.
22825 ac_ext=go
22826
22827 # Object file extension for compiled Go test sources.
22828 objext=o
22829 objext_GO=$objext
22830
22831 # Code to be used in simple compile tests
22832 lt_simple_compile_test_code="package main; func main() { }"
22833
22834 # Code to be used in simple link tests
22835 lt_simple_link_test_code='package main; func main() { }'
22836
22837 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22838
22839
22840
22841
22842
22843
22844 # If no C compiler was specified, use CC.
22845 LTCC=${LTCC-"$CC"}
22846
22847 # If no C compiler flags were specified, use CFLAGS.
22848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22849
22850 # Allow CC to be a program name with arguments.
22851 compiler=$CC
22852
22853
22854 # save warnings/boilerplate of simple test code
22855 ac_outfile=conftest.$ac_objext
22856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22858 _lt_compiler_boilerplate=`cat conftest.err`
22859 $RM conftest*
22860
22861 ac_outfile=conftest.$ac_objext
22862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22864 _lt_linker_boilerplate=`cat conftest.err`
22865 $RM -r conftest*
22866
22867
22868 # Allow CC to be a program name with arguments.
22869 lt_save_CC=$CC
22870 lt_save_CFLAGS=$CFLAGS
22871 lt_save_GCC=$GCC
22872 GCC=yes
22873 CC=${GOC-"gccgo"}
22874 CFLAGS=$GOFLAGS
22875 compiler=$CC
22876 compiler_GO=$CC
22877 LD_GO="$LD"
22878 for cc_temp in $compiler""; do
22879   case $cc_temp in
22880     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22881     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22882     \-*) ;;
22883     *) break;;
22884   esac
22885 done
22886 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22887
22888
22889 # Go did not exist at the time GCC didn't implicitly link libc in.
22890 archive_cmds_need_lc_GO=no
22891
22892 old_archive_cmds_GO=$old_archive_cmds
22893 reload_flag_GO=$reload_flag
22894 reload_cmds_GO=$reload_cmds
22895
22896 ## CAVEAT EMPTOR:
22897 ## There is no encapsulation within the following macros, do not change
22898 ## the running order or otherwise move them around unless you know exactly
22899 ## what you are doing...
22900 if test -n "$compiler"; then
22901
22902 lt_prog_compiler_no_builtin_flag_GO=
22903
22904 if test "$GCC" = yes; then
22905   case $cc_basename in
22906   nvcc*)
22907     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
22908   *)
22909     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
22910   esac
22911
22912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22913 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22914 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
22915   $as_echo_n "(cached) " >&6
22916 else
22917   lt_cv_prog_compiler_rtti_exceptions=no
22918    ac_outfile=conftest.$ac_objext
22919    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22920    lt_compiler_flag="-fno-rtti -fno-exceptions"
22921    # Insert the option either (1) after the last *FLAGS variable, or
22922    # (2) before a word containing "conftest.", or (3) at the end.
22923    # Note that $ac_compile itself does not contain backslashes and begins
22924    # with a dollar sign (not a hyphen), so the echo should work correctly.
22925    # The option is referenced via a variable to avoid confusing sed.
22926    lt_compile=`echo "$ac_compile" | $SED \
22927    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22929    -e 's:$: $lt_compiler_flag:'`
22930    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22931    (eval "$lt_compile" 2>conftest.err)
22932    ac_status=$?
22933    cat conftest.err >&5
22934    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935    if (exit $ac_status) && test -s "$ac_outfile"; then
22936      # The compiler can only warn and ignore the option if not recognized
22937      # So say no if there are warnings other than the usual output.
22938      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22939      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22940      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22941        lt_cv_prog_compiler_rtti_exceptions=yes
22942      fi
22943    fi
22944    $RM conftest*
22945
22946 fi
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22948 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22949
22950 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22951     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
22952 else
22953     :
22954 fi
22955
22956 fi
22957
22958
22959
22960   lt_prog_compiler_wl_GO=
22961 lt_prog_compiler_pic_GO=
22962 lt_prog_compiler_static_GO=
22963
22964
22965   if test "$GCC" = yes; then
22966     lt_prog_compiler_wl_GO='-Wl,'
22967     lt_prog_compiler_static_GO='-static'
22968
22969     case $host_os in
22970       aix*)
22971       # All AIX code is PIC.
22972       if test "$host_cpu" = ia64; then
22973         # AIX 5 now supports IA64 processor
22974         lt_prog_compiler_static_GO='-Bstatic'
22975       fi
22976       ;;
22977
22978     amigaos*)
22979       case $host_cpu in
22980       powerpc)
22981             # see comment about AmigaOS4 .so support
22982             lt_prog_compiler_pic_GO='-fPIC'
22983         ;;
22984       m68k)
22985             # FIXME: we need at least 68020 code to build shared libraries, but
22986             # adding the `-m68020' flag to GCC prevents building anything better,
22987             # like `-m68040'.
22988             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
22989         ;;
22990       esac
22991       ;;
22992
22993     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22994       # PIC is the default for these OSes.
22995       ;;
22996
22997     mingw* | cygwin* | pw32* | os2* | cegcc*)
22998       # This hack is so that the source file can tell whether it is being
22999       # built for inclusion in a dll (and should export symbols for example).
23000       # Although the cygwin gcc ignores -fPIC, still need this for old-style
23001       # (--disable-auto-import) libraries
23002       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
23003       ;;
23004
23005     darwin* | rhapsody*)
23006       # PIC is the default on this platform
23007       # Common symbols not allowed in MH_DYLIB files
23008       lt_prog_compiler_pic_GO='-fno-common'
23009       ;;
23010
23011     haiku*)
23012       # PIC is the default for Haiku.
23013       # The "-static" flag exists, but is broken.
23014       lt_prog_compiler_static_GO=
23015       ;;
23016
23017     hpux*)
23018       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23019       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
23020       # sets the default TLS model and affects inlining.
23021       case $host_cpu in
23022       hppa*64*)
23023         # +Z the default
23024         ;;
23025       *)
23026         lt_prog_compiler_pic_GO='-fPIC'
23027         ;;
23028       esac
23029       ;;
23030
23031     interix[3-9]*)
23032       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23033       # Instead, we relocate shared libraries at runtime.
23034       ;;
23035
23036     msdosdjgpp*)
23037       # Just because we use GCC doesn't mean we suddenly get shared libraries
23038       # on systems that don't support them.
23039       lt_prog_compiler_can_build_shared_GO=no
23040       enable_shared=no
23041       ;;
23042
23043     *nto* | *qnx*)
23044       # QNX uses GNU C++, but need to define -shared option too, otherwise
23045       # it will coredump.
23046       lt_prog_compiler_pic_GO='-fPIC -shared'
23047       ;;
23048
23049     sysv4*MP*)
23050       if test -d /usr/nec; then
23051         lt_prog_compiler_pic_GO=-Kconform_pic
23052       fi
23053       ;;
23054
23055     *)
23056       lt_prog_compiler_pic_GO='-fPIC'
23057       ;;
23058     esac
23059
23060     case $cc_basename in
23061     nvcc*) # Cuda Compiler Driver 2.2
23062       lt_prog_compiler_wl_GO='-Xlinker '
23063       if test -n "$lt_prog_compiler_pic_GO"; then
23064         lt_prog_compiler_pic_GO="-Xcompiler $lt_prog_compiler_pic_GO"
23065       fi
23066       ;;
23067     esac
23068   else
23069     # PORTME Check for flag to pass linker flags through the system compiler.
23070     case $host_os in
23071     aix*)
23072       lt_prog_compiler_wl_GO='-Wl,'
23073       if test "$host_cpu" = ia64; then
23074         # AIX 5 now supports IA64 processor
23075         lt_prog_compiler_static_GO='-Bstatic'
23076       else
23077         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
23078       fi
23079       ;;
23080
23081     mingw* | cygwin* | pw32* | os2* | cegcc*)
23082       # This hack is so that the source file can tell whether it is being
23083       # built for inclusion in a dll (and should export symbols for example).
23084       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
23085       ;;
23086
23087     hpux9* | hpux10* | hpux11*)
23088       lt_prog_compiler_wl_GO='-Wl,'
23089       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23090       # not for PA HP-UX.
23091       case $host_cpu in
23092       hppa*64*|ia64*)
23093         # +Z the default
23094         ;;
23095       *)
23096         lt_prog_compiler_pic_GO='+Z'
23097         ;;
23098       esac
23099       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23100       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
23101       ;;
23102
23103     irix5* | irix6* | nonstopux*)
23104       lt_prog_compiler_wl_GO='-Wl,'
23105       # PIC (with -KPIC) is the default.
23106       lt_prog_compiler_static_GO='-non_shared'
23107       ;;
23108
23109     linux* | k*bsd*-gnu | kopensolaris*-gnu)
23110       case $cc_basename in
23111       # old Intel for x86_64 which still supported -KPIC.
23112       ecc*)
23113         lt_prog_compiler_wl_GO='-Wl,'
23114         lt_prog_compiler_pic_GO='-KPIC'
23115         lt_prog_compiler_static_GO='-static'
23116         ;;
23117       # icc used to be incompatible with GCC.
23118       # ICC 10 doesn't accept -KPIC any more.
23119       icc* | ifort*)
23120         lt_prog_compiler_wl_GO='-Wl,'
23121         lt_prog_compiler_pic_GO='-fPIC'
23122         lt_prog_compiler_static_GO='-static'
23123         ;;
23124       # Lahey Fortran 8.1.
23125       lf95*)
23126         lt_prog_compiler_wl_GO='-Wl,'
23127         lt_prog_compiler_pic_GO='--shared'
23128         lt_prog_compiler_static_GO='--static'
23129         ;;
23130       nagfor*)
23131         # NAG Fortran compiler
23132         lt_prog_compiler_wl_GO='-Wl,-Wl,,'
23133         lt_prog_compiler_pic_GO='-PIC'
23134         lt_prog_compiler_static_GO='-Bstatic'
23135         ;;
23136       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
23137         # Portland Group compilers (*not* the Pentium gcc compiler,
23138         # which looks to be a dead project)
23139         lt_prog_compiler_wl_GO='-Wl,'
23140         lt_prog_compiler_pic_GO='-fpic'
23141         lt_prog_compiler_static_GO='-Bstatic'
23142         ;;
23143       ccc*)
23144         lt_prog_compiler_wl_GO='-Wl,'
23145         # All Alpha code is PIC.
23146         lt_prog_compiler_static_GO='-non_shared'
23147         ;;
23148       xl* | bgxl* | bgf* | mpixl*)
23149         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
23150         lt_prog_compiler_wl_GO='-Wl,'
23151         lt_prog_compiler_pic_GO='-qpic'
23152         lt_prog_compiler_static_GO='-qstaticlink'
23153         ;;
23154       *)
23155         case `$CC -V 2>&1 | sed 5q` in
23156         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
23157           # Sun Fortran 8.3 passes all unrecognized flags to the linker
23158           lt_prog_compiler_pic_GO='-KPIC'
23159           lt_prog_compiler_static_GO='-Bstatic'
23160           lt_prog_compiler_wl_GO=''
23161           ;;
23162         *Sun\ F* | *Sun*Fortran*)
23163           lt_prog_compiler_pic_GO='-KPIC'
23164           lt_prog_compiler_static_GO='-Bstatic'
23165           lt_prog_compiler_wl_GO='-Qoption ld '
23166           ;;
23167         *Sun\ C*)
23168           # Sun C 5.9
23169           lt_prog_compiler_pic_GO='-KPIC'
23170           lt_prog_compiler_static_GO='-Bstatic'
23171           lt_prog_compiler_wl_GO='-Wl,'
23172           ;;
23173         *Intel*\ [CF]*Compiler*)
23174           lt_prog_compiler_wl_GO='-Wl,'
23175           lt_prog_compiler_pic_GO='-fPIC'
23176           lt_prog_compiler_static_GO='-static'
23177           ;;
23178         *Portland\ Group*)
23179           lt_prog_compiler_wl_GO='-Wl,'
23180           lt_prog_compiler_pic_GO='-fpic'
23181           lt_prog_compiler_static_GO='-Bstatic'
23182           ;;
23183         esac
23184         ;;
23185       esac
23186       ;;
23187
23188     newsos6)
23189       lt_prog_compiler_pic_GO='-KPIC'
23190       lt_prog_compiler_static_GO='-Bstatic'
23191       ;;
23192
23193     *nto* | *qnx*)
23194       # QNX uses GNU C++, but need to define -shared option too, otherwise
23195       # it will coredump.
23196       lt_prog_compiler_pic_GO='-fPIC -shared'
23197       ;;
23198
23199     osf3* | osf4* | osf5*)
23200       lt_prog_compiler_wl_GO='-Wl,'
23201       # All OSF/1 code is PIC.
23202       lt_prog_compiler_static_GO='-non_shared'
23203       ;;
23204
23205     rdos*)
23206       lt_prog_compiler_static_GO='-non_shared'
23207       ;;
23208
23209     solaris*)
23210       lt_prog_compiler_pic_GO='-KPIC'
23211       lt_prog_compiler_static_GO='-Bstatic'
23212       case $cc_basename in
23213       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
23214         lt_prog_compiler_wl_GO='-Qoption ld ';;
23215       *)
23216         lt_prog_compiler_wl_GO='-Wl,';;
23217       esac
23218       ;;
23219
23220     sunos4*)
23221       lt_prog_compiler_wl_GO='-Qoption ld '
23222       lt_prog_compiler_pic_GO='-PIC'
23223       lt_prog_compiler_static_GO='-Bstatic'
23224       ;;
23225
23226     sysv4 | sysv4.2uw2* | sysv4.3*)
23227       lt_prog_compiler_wl_GO='-Wl,'
23228       lt_prog_compiler_pic_GO='-KPIC'
23229       lt_prog_compiler_static_GO='-Bstatic'
23230       ;;
23231
23232     sysv4*MP*)
23233       if test -d /usr/nec ;then
23234         lt_prog_compiler_pic_GO='-Kconform_pic'
23235         lt_prog_compiler_static_GO='-Bstatic'
23236       fi
23237       ;;
23238
23239     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23240       lt_prog_compiler_wl_GO='-Wl,'
23241       lt_prog_compiler_pic_GO='-KPIC'
23242       lt_prog_compiler_static_GO='-Bstatic'
23243       ;;
23244
23245     unicos*)
23246       lt_prog_compiler_wl_GO='-Wl,'
23247       lt_prog_compiler_can_build_shared_GO=no
23248       ;;
23249
23250     uts4*)
23251       lt_prog_compiler_pic_GO='-pic'
23252       lt_prog_compiler_static_GO='-Bstatic'
23253       ;;
23254
23255     *)
23256       lt_prog_compiler_can_build_shared_GO=no
23257       ;;
23258     esac
23259   fi
23260
23261 case $host_os in
23262   # For platforms which do not support PIC, -DPIC is meaningless:
23263   *djgpp*)
23264     lt_prog_compiler_pic_GO=
23265     ;;
23266   *)
23267     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
23268     ;;
23269 esac
23270
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23272 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23273 if ${lt_cv_prog_compiler_pic_GO+:} false; then :
23274   $as_echo_n "(cached) " >&6
23275 else
23276   lt_cv_prog_compiler_pic_GO=$lt_prog_compiler_pic_GO
23277 fi
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_GO" >&5
23279 $as_echo "$lt_cv_prog_compiler_pic_GO" >&6; }
23280 lt_prog_compiler_pic_GO=$lt_cv_prog_compiler_pic_GO
23281
23282 #
23283 # Check to make sure the PIC flag actually works.
23284 #
23285 if test -n "$lt_prog_compiler_pic_GO"; then
23286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
23287 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
23288 if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
23289   $as_echo_n "(cached) " >&6
23290 else
23291   lt_cv_prog_compiler_pic_works_GO=no
23292    ac_outfile=conftest.$ac_objext
23293    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23294    lt_compiler_flag="$lt_prog_compiler_pic_GO"
23295    # Insert the option either (1) after the last *FLAGS variable, or
23296    # (2) before a word containing "conftest.", or (3) at the end.
23297    # Note that $ac_compile itself does not contain backslashes and begins
23298    # with a dollar sign (not a hyphen), so the echo should work correctly.
23299    # The option is referenced via a variable to avoid confusing sed.
23300    lt_compile=`echo "$ac_compile" | $SED \
23301    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23302    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23303    -e 's:$: $lt_compiler_flag:'`
23304    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23305    (eval "$lt_compile" 2>conftest.err)
23306    ac_status=$?
23307    cat conftest.err >&5
23308    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309    if (exit $ac_status) && test -s "$ac_outfile"; then
23310      # The compiler can only warn and ignore the option if not recognized
23311      # So say no if there are warnings other than the usual output.
23312      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23313      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23314      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23315        lt_cv_prog_compiler_pic_works_GO=yes
23316      fi
23317    fi
23318    $RM conftest*
23319
23320 fi
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
23322 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
23323
23324 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
23325     case $lt_prog_compiler_pic_GO in
23326      "" | " "*) ;;
23327      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
23328      esac
23329 else
23330     lt_prog_compiler_pic_GO=
23331      lt_prog_compiler_can_build_shared_GO=no
23332 fi
23333
23334 fi
23335
23336
23337
23338
23339
23340 #
23341 # Check to make sure the static flag actually works.
23342 #
23343 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23345 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23346 if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
23347   $as_echo_n "(cached) " >&6
23348 else
23349   lt_cv_prog_compiler_static_works_GO=no
23350    save_LDFLAGS="$LDFLAGS"
23351    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23352    echo "$lt_simple_link_test_code" > conftest.$ac_ext
23353    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23354      # The linker can only warn and ignore the option if not recognized
23355      # So say no if there are warnings
23356      if test -s conftest.err; then
23357        # Append any errors to the config.log.
23358        cat conftest.err 1>&5
23359        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23360        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23361        if diff conftest.exp conftest.er2 >/dev/null; then
23362          lt_cv_prog_compiler_static_works_GO=yes
23363        fi
23364      else
23365        lt_cv_prog_compiler_static_works_GO=yes
23366      fi
23367    fi
23368    $RM -r conftest*
23369    LDFLAGS="$save_LDFLAGS"
23370
23371 fi
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
23373 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
23374
23375 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
23376     :
23377 else
23378     lt_prog_compiler_static_GO=
23379 fi
23380
23381
23382
23383
23384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23386 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
23387   $as_echo_n "(cached) " >&6
23388 else
23389   lt_cv_prog_compiler_c_o_GO=no
23390    $RM -r conftest 2>/dev/null
23391    mkdir conftest
23392    cd conftest
23393    mkdir out
23394    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23395
23396    lt_compiler_flag="-o out/conftest2.$ac_objext"
23397    # Insert the option either (1) after the last *FLAGS variable, or
23398    # (2) before a word containing "conftest.", or (3) at the end.
23399    # Note that $ac_compile itself does not contain backslashes and begins
23400    # with a dollar sign (not a hyphen), so the echo should work correctly.
23401    lt_compile=`echo "$ac_compile" | $SED \
23402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23404    -e 's:$: $lt_compiler_flag:'`
23405    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23406    (eval "$lt_compile" 2>out/conftest.err)
23407    ac_status=$?
23408    cat out/conftest.err >&5
23409    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23411    then
23412      # The compiler can only warn and ignore the option if not recognized
23413      # So say no if there are warnings
23414      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23415      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23416      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23417        lt_cv_prog_compiler_c_o_GO=yes
23418      fi
23419    fi
23420    chmod u+w . 2>&5
23421    $RM conftest*
23422    # SGI C++ compiler will create directory out/ii_files/ for
23423    # template instantiation
23424    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23425    $RM out/* && rmdir out
23426    cd ..
23427    $RM -r conftest
23428    $RM conftest*
23429
23430 fi
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
23432 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
23433
23434
23435
23436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23437 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23438 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
23439   $as_echo_n "(cached) " >&6
23440 else
23441   lt_cv_prog_compiler_c_o_GO=no
23442    $RM -r conftest 2>/dev/null
23443    mkdir conftest
23444    cd conftest
23445    mkdir out
23446    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23447
23448    lt_compiler_flag="-o out/conftest2.$ac_objext"
23449    # Insert the option either (1) after the last *FLAGS variable, or
23450    # (2) before a word containing "conftest.", or (3) at the end.
23451    # Note that $ac_compile itself does not contain backslashes and begins
23452    # with a dollar sign (not a hyphen), so the echo should work correctly.
23453    lt_compile=`echo "$ac_compile" | $SED \
23454    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23456    -e 's:$: $lt_compiler_flag:'`
23457    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23458    (eval "$lt_compile" 2>out/conftest.err)
23459    ac_status=$?
23460    cat out/conftest.err >&5
23461    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23463    then
23464      # The compiler can only warn and ignore the option if not recognized
23465      # So say no if there are warnings
23466      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23467      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23468      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23469        lt_cv_prog_compiler_c_o_GO=yes
23470      fi
23471    fi
23472    chmod u+w . 2>&5
23473    $RM conftest*
23474    # SGI C++ compiler will create directory out/ii_files/ for
23475    # template instantiation
23476    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23477    $RM out/* && rmdir out
23478    cd ..
23479    $RM -r conftest
23480    $RM conftest*
23481
23482 fi
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
23484 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
23485
23486
23487
23488
23489 hard_links="nottested"
23490 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
23491   # do not overwrite the value of need_locks provided by the user
23492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23493 $as_echo_n "checking if we can lock with hard links... " >&6; }
23494   hard_links=yes
23495   $RM conftest*
23496   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23497   touch conftest.a
23498   ln conftest.a conftest.b 2>&5 || hard_links=no
23499   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23501 $as_echo "$hard_links" >&6; }
23502   if test "$hard_links" = no; then
23503     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23504 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23505     need_locks=warn
23506   fi
23507 else
23508   need_locks=no
23509 fi
23510
23511
23512
23513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23514 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23515
23516   runpath_var=
23517   allow_undefined_flag_GO=
23518   always_export_symbols_GO=no
23519   archive_cmds_GO=
23520   archive_expsym_cmds_GO=
23521   compiler_needs_object_GO=no
23522   enable_shared_with_static_runtimes_GO=no
23523   export_dynamic_flag_spec_GO=
23524   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23525   hardcode_automatic_GO=no
23526   hardcode_direct_GO=no
23527   hardcode_direct_absolute_GO=no
23528   hardcode_libdir_flag_spec_GO=
23529   hardcode_libdir_separator_GO=
23530   hardcode_minus_L_GO=no
23531   hardcode_shlibpath_var_GO=unsupported
23532   inherit_rpath_GO=no
23533   link_all_deplibs_GO=unknown
23534   module_cmds_GO=
23535   module_expsym_cmds_GO=
23536   old_archive_from_new_cmds_GO=
23537   old_archive_from_expsyms_cmds_GO=
23538   thread_safe_flag_spec_GO=
23539   whole_archive_flag_spec_GO=
23540   # include_expsyms should be a list of space-separated symbols to be *always*
23541   # included in the symbol list
23542   include_expsyms_GO=
23543   # exclude_expsyms can be an extended regexp of symbols to exclude
23544   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23545   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23546   # as well as any symbol that contains `d'.
23547   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23548   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23549   # platforms (ab)use it in PIC code, but their linkers get confused if
23550   # the symbol is explicitly referenced.  Since portable code cannot
23551   # rely on this symbol name, it's probably fine to never include it in
23552   # preloaded symbol tables.
23553   # Exclude shared library initialization/finalization symbols.
23554   extract_expsyms_cmds=
23555
23556   case $host_os in
23557   cygwin* | mingw* | pw32* | cegcc*)
23558     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23559     # When not using gcc, we currently assume that we are using
23560     # Microsoft Visual C++.
23561     if test "$GCC" != yes; then
23562       with_gnu_ld=no
23563     fi
23564     ;;
23565   interix*)
23566     # we just hope/assume this is gcc and not c89 (= MSVC++)
23567     with_gnu_ld=yes
23568     ;;
23569   openbsd*)
23570     with_gnu_ld=no
23571     ;;
23572   esac
23573
23574   ld_shlibs_GO=yes
23575
23576   # On some targets, GNU ld is compatible enough with the native linker
23577   # that we're better off using the native interface for both.
23578   lt_use_gnu_ld_interface=no
23579   if test "$with_gnu_ld" = yes; then
23580     case $host_os in
23581       aix*)
23582         # The AIX port of GNU ld has always aspired to compatibility
23583         # with the native linker.  However, as the warning in the GNU ld
23584         # block says, versions before 2.19.5* couldn't really create working
23585         # shared libraries, regardless of the interface used.
23586         case `$LD -v 2>&1` in
23587           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
23588           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
23589           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
23590           *)
23591             lt_use_gnu_ld_interface=yes
23592             ;;
23593         esac
23594         ;;
23595       *)
23596         lt_use_gnu_ld_interface=yes
23597         ;;
23598     esac
23599   fi
23600
23601   if test "$lt_use_gnu_ld_interface" = yes; then
23602     # If archive_cmds runs LD, not CC, wlarc should be empty
23603     wlarc='${wl}'
23604
23605     # Set some defaults for GNU ld with shared library support. These
23606     # are reset later if shared libraries are not supported. Putting them
23607     # here allows them to be overridden if necessary.
23608     runpath_var=LD_RUN_PATH
23609     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
23610     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
23611     # ancient GNU ld didn't support --whole-archive et. al.
23612     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
23613       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23614     else
23615       whole_archive_flag_spec_GO=
23616     fi
23617     supports_anon_versioning=no
23618     case `$LD -v 2>&1` in
23619       *GNU\ gold*) supports_anon_versioning=yes ;;
23620       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23621       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23622       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23623       *\ 2.11.*) ;; # other 2.11 versions
23624       *) supports_anon_versioning=yes ;;
23625     esac
23626
23627     # See if GNU ld supports shared libraries.
23628     case $host_os in
23629     aix[3-9]*)
23630       # On AIX/PPC, the GNU linker is very broken
23631       if test "$host_cpu" != ia64; then
23632         ld_shlibs_GO=no
23633         cat <<_LT_EOF 1>&2
23634
23635 *** Warning: the GNU linker, at least up to release 2.19, is reported
23636 *** to be unable to reliably create shared libraries on AIX.
23637 *** Therefore, libtool is disabling shared libraries support.  If you
23638 *** really care for shared libraries, you may want to install binutils
23639 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
23640 *** You will then need to restart the configuration process.
23641
23642 _LT_EOF
23643       fi
23644       ;;
23645
23646     amigaos*)
23647       case $host_cpu in
23648       powerpc)
23649             # see comment about AmigaOS4 .so support
23650             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23651             archive_expsym_cmds_GO=''
23652         ;;
23653       m68k)
23654             archive_cmds_GO='$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)'
23655             hardcode_libdir_flag_spec_GO='-L$libdir'
23656             hardcode_minus_L_GO=yes
23657         ;;
23658       esac
23659       ;;
23660
23661     beos*)
23662       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23663         allow_undefined_flag_GO=unsupported
23664         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23665         # support --undefined.  This deserves some investigation.  FIXME
23666         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23667       else
23668         ld_shlibs_GO=no
23669       fi
23670       ;;
23671
23672     cygwin* | mingw* | pw32* | cegcc*)
23673       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
23674       # as there is no search path for DLLs.
23675       hardcode_libdir_flag_spec_GO='-L$libdir'
23676       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
23677       allow_undefined_flag_GO=unsupported
23678       always_export_symbols_GO=no
23679       enable_shared_with_static_runtimes_GO=yes
23680       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
23681       exclude_expsyms_GO='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
23682
23683       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
23684         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23685         # If the export-symbols file already is a .def file (1st line
23686         # is EXPORTS), use it as is; otherwise, prepend...
23687         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23688           cp $export_symbols $output_objdir/$soname.def;
23689         else
23690           echo EXPORTS > $output_objdir/$soname.def;
23691           cat $export_symbols >> $output_objdir/$soname.def;
23692         fi~
23693         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23694       else
23695         ld_shlibs_GO=no
23696       fi
23697       ;;
23698
23699     haiku*)
23700       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23701       link_all_deplibs_GO=yes
23702       ;;
23703
23704     interix[3-9]*)
23705       hardcode_direct_GO=no
23706       hardcode_shlibpath_var_GO=no
23707       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
23708       export_dynamic_flag_spec_GO='${wl}-E'
23709       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23710       # Instead, shared libraries are loaded at an image base (0x10000000 by
23711       # default) and relocated if they conflict, which is a slow very memory
23712       # consuming and fragmenting process.  To avoid this, we pick a random,
23713       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23714       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23715       archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
23716       archive_expsym_cmds_GO='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
23717       ;;
23718
23719     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
23720       tmp_diet=no
23721       if test "$host_os" = linux-dietlibc; then
23722         case $cc_basename in
23723           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
23724         esac
23725       fi
23726       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
23727          && test "$tmp_diet" = no
23728       then
23729         tmp_addflag=' $pic_flag'
23730         tmp_sharedflag='-shared'
23731         case $cc_basename,$host_cpu in
23732         pgcc*)                          # Portland Group C compiler
23733           whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
23734           tmp_addflag=' $pic_flag'
23735           ;;
23736         pgf77* | pgf90* | pgf95* | pgfortran*)
23737                                         # Portland Group f77 and f90 compilers
23738           whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
23739           tmp_addflag=' $pic_flag -Mnomain' ;;
23740         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
23741           tmp_addflag=' -i_dynamic' ;;
23742         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23743           tmp_addflag=' -i_dynamic -nofor_main' ;;
23744         ifc* | ifort*)                  # Intel Fortran compiler
23745           tmp_addflag=' -nofor_main' ;;
23746         lf95*)                          # Lahey Fortran 8.1
23747           whole_archive_flag_spec_GO=
23748           tmp_sharedflag='--shared' ;;
23749         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
23750           tmp_sharedflag='-qmkshrobj'
23751           tmp_addflag= ;;
23752         nvcc*)  # Cuda Compiler Driver 2.2
23753           whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
23754           compiler_needs_object_GO=yes
23755           ;;
23756         esac
23757         case `$CC -V 2>&1 | sed 5q` in
23758         *Sun\ C*)                       # Sun C 5.9
23759           whole_archive_flag_spec_GO='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
23760           compiler_needs_object_GO=yes
23761           tmp_sharedflag='-G' ;;
23762         *Sun\ F*)                       # Sun Fortran 8.3
23763           tmp_sharedflag='-G' ;;
23764         esac
23765         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23766
23767         if test "x$supports_anon_versioning" = xyes; then
23768           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
23769             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23770             echo "local: *; };" >> $output_objdir/$libname.ver~
23771             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23772         fi
23773
23774         case $cc_basename in
23775         xlf* | bgf* | bgxlf* | mpixlf*)
23776           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
23777           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
23778           hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
23779           archive_cmds_GO='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
23780           if test "x$supports_anon_versioning" = xyes; then
23781             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
23782               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23783               echo "local: *; };" >> $output_objdir/$libname.ver~
23784               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
23785           fi
23786           ;;
23787         esac
23788       else
23789         ld_shlibs_GO=no
23790       fi
23791       ;;
23792
23793     netbsd*)
23794       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23795         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23796         wlarc=
23797       else
23798         archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23799         archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23800       fi
23801       ;;
23802
23803     solaris*)
23804       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
23805         ld_shlibs_GO=no
23806         cat <<_LT_EOF 1>&2
23807
23808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23809 *** create shared libraries on Solaris systems.  Therefore, libtool
23810 *** is disabling shared libraries support.  We urge you to upgrade GNU
23811 *** binutils to release 2.9.1 or newer.  Another option is to modify
23812 *** your PATH or compiler configuration so that the native linker is
23813 *** used, and then restart.
23814
23815 _LT_EOF
23816       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23817         archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23818         archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23819       else
23820         ld_shlibs_GO=no
23821       fi
23822       ;;
23823
23824     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23825       case `$LD -v 2>&1` in
23826         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23827         ld_shlibs_GO=no
23828         cat <<_LT_EOF 1>&2
23829
23830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23831 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23832 *** is disabling shared libraries support.  We urge you to upgrade GNU
23833 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23834 *** your PATH or compiler configuration so that the native linker is
23835 *** used, and then restart.
23836
23837 _LT_EOF
23838         ;;
23839         *)
23840           # For security reasons, it is highly recommended that you always
23841           # use absolute paths for naming shared libraries, and exclude the
23842           # DT_RUNPATH tag from executables and libraries.  But doing so
23843           # requires that you compile everything twice, which is a pain.
23844           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23845             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
23846             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23847             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23848           else
23849             ld_shlibs_GO=no
23850           fi
23851         ;;
23852       esac
23853       ;;
23854
23855     sunos4*)
23856       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23857       wlarc=
23858       hardcode_direct_GO=yes
23859       hardcode_shlibpath_var_GO=no
23860       ;;
23861
23862     *)
23863       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
23864         archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23865         archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23866       else
23867         ld_shlibs_GO=no
23868       fi
23869       ;;
23870     esac
23871
23872     if test "$ld_shlibs_GO" = no; then
23873       runpath_var=
23874       hardcode_libdir_flag_spec_GO=
23875       export_dynamic_flag_spec_GO=
23876       whole_archive_flag_spec_GO=
23877     fi
23878   else
23879     # PORTME fill in a description of your system's linker (not GNU ld)
23880     case $host_os in
23881     aix3*)
23882       allow_undefined_flag_GO=unsupported
23883       always_export_symbols_GO=yes
23884       archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
23885       # Note: this linker hardcodes the directories in LIBPATH if there
23886       # are no directories specified by -L.
23887       hardcode_minus_L_GO=yes
23888       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23889         # Neither direct hardcoding nor static linking is supported with a
23890         # broken collect2.
23891         hardcode_direct_GO=unsupported
23892       fi
23893       ;;
23894
23895     aix[4-9]*)
23896       if test "$host_cpu" = ia64; then
23897         # On IA64, the linker does run time linking by default, so we don't
23898         # have to do anything special.
23899         aix_use_runtimelinking=no
23900         exp_sym_flag='-Bexport'
23901         no_entry_flag=""
23902       else
23903         # If we're using GNU nm, then we don't want the "-C" option.
23904         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23905         # Also, AIX nm treats weak defined symbols like other global
23906         # defined symbols, whereas GNU nm marks them as "W".
23907         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23908           export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23909         else
23910           export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23911         fi
23912         aix_use_runtimelinking=no
23913
23914         # Test if we are trying to use run time linking or normal
23915         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23916         # need to do runtime linking.
23917         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
23918           for ld_flag in $LDFLAGS; do
23919           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23920             aix_use_runtimelinking=yes
23921             break
23922           fi
23923           done
23924           ;;
23925         esac
23926
23927         exp_sym_flag='-bexport'
23928         no_entry_flag='-bnoentry'
23929       fi
23930
23931       # When large executables or shared objects are built, AIX ld can
23932       # have problems creating the table of contents.  If linking a library
23933       # or program results in "error TOC overflow" add -mminimal-toc to
23934       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23935       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23936
23937       archive_cmds_GO=''
23938       hardcode_direct_GO=yes
23939       hardcode_direct_absolute_GO=yes
23940       hardcode_libdir_separator_GO=':'
23941       link_all_deplibs_GO=yes
23942       file_list_spec_GO='${wl}-f,'
23943
23944       if test "$GCC" = yes; then
23945         case $host_os in aix4.[012]|aix4.[012].*)
23946         # We only want to do this on AIX 4.2 and lower, the check
23947         # below for broken collect2 doesn't work under 4.3+
23948           collect2name=`${CC} -print-prog-name=collect2`
23949           if test -f "$collect2name" &&
23950            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
23951           then
23952           # We have reworked collect2
23953           :
23954           else
23955           # We have old collect2
23956           hardcode_direct_GO=unsupported
23957           # It fails to find uninstalled libraries when the uninstalled
23958           # path is not listed in the libpath.  Setting hardcode_minus_L
23959           # to unsupported forces relinking
23960           hardcode_minus_L_GO=yes
23961           hardcode_libdir_flag_spec_GO='-L$libdir'
23962           hardcode_libdir_separator_GO=
23963           fi
23964           ;;
23965         esac
23966         shared_flag='-shared'
23967         if test "$aix_use_runtimelinking" = yes; then
23968           shared_flag="$shared_flag "'${wl}-G'
23969         fi
23970       else
23971         # not using gcc
23972         if test "$host_cpu" = ia64; then
23973         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23974         # chokes on -Wl,-G. The following line is correct:
23975           shared_flag='-G'
23976         else
23977           if test "$aix_use_runtimelinking" = yes; then
23978             shared_flag='${wl}-G'
23979           else
23980             shared_flag='${wl}-bM:SRE'
23981           fi
23982         fi
23983       fi
23984
23985       export_dynamic_flag_spec_GO='${wl}-bexpall'
23986       # It seems that -bexpall does not export symbols beginning with
23987       # underscore (_), so it is better to generate a list of symbols to export.
23988       always_export_symbols_GO=yes
23989       if test "$aix_use_runtimelinking" = yes; then
23990         # Warning - without using the other runtime loading flags (-brtl),
23991         # -berok will link without error, but may produce a broken library.
23992         allow_undefined_flag_GO='-berok'
23993         # Determine the default libpath from the value encoded in an
23994         # empty executable.
23995         if test "${lt_cv_aix_libpath+set}" = set; then
23996   aix_libpath=$lt_cv_aix_libpath
23997 else
23998   if ${lt_cv_aix_libpath__GO+:} false; then :
23999   $as_echo_n "(cached) " >&6
24000 else
24001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h.  */
24003
24004 int
24005 main ()
24006 {
24007
24008   ;
24009   return 0;
24010 }
24011 _ACEOF
24012 if ac_fn_c_try_link "$LINENO"; then :
24013
24014   lt_aix_libpath_sed='
24015       /Import File Strings/,/^$/ {
24016           /^0/ {
24017               s/^0  *\([^ ]*\) *$/\1/
24018               p
24019           }
24020       }'
24021   lt_cv_aix_libpath__GO=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24022   # Check for a 64-bit object if we didn't find anything.
24023   if test -z "$lt_cv_aix_libpath__GO"; then
24024     lt_cv_aix_libpath__GO=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24025   fi
24026 fi
24027 rm -f core conftest.err conftest.$ac_objext \
24028     conftest$ac_exeext conftest.$ac_ext
24029   if test -z "$lt_cv_aix_libpath__GO"; then
24030     lt_cv_aix_libpath__GO="/usr/lib:/lib"
24031   fi
24032
24033 fi
24034
24035   aix_libpath=$lt_cv_aix_libpath__GO
24036 fi
24037
24038         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
24039         archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24040       else
24041         if test "$host_cpu" = ia64; then
24042           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
24043           allow_undefined_flag_GO="-z nodefs"
24044           archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
24045         else
24046          # Determine the default libpath from the value encoded in an
24047          # empty executable.
24048          if test "${lt_cv_aix_libpath+set}" = set; then
24049   aix_libpath=$lt_cv_aix_libpath
24050 else
24051   if ${lt_cv_aix_libpath__GO+:} false; then :
24052   $as_echo_n "(cached) " >&6
24053 else
24054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24055 /* end confdefs.h.  */
24056
24057 int
24058 main ()
24059 {
24060
24061   ;
24062   return 0;
24063 }
24064 _ACEOF
24065 if ac_fn_c_try_link "$LINENO"; then :
24066
24067   lt_aix_libpath_sed='
24068       /Import File Strings/,/^$/ {
24069           /^0/ {
24070               s/^0  *\([^ ]*\) *$/\1/
24071               p
24072           }
24073       }'
24074   lt_cv_aix_libpath__GO=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24075   # Check for a 64-bit object if we didn't find anything.
24076   if test -z "$lt_cv_aix_libpath__GO"; then
24077     lt_cv_aix_libpath__GO=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24078   fi
24079 fi
24080 rm -f core conftest.err conftest.$ac_objext \
24081     conftest$ac_exeext conftest.$ac_ext
24082   if test -z "$lt_cv_aix_libpath__GO"; then
24083     lt_cv_aix_libpath__GO="/usr/lib:/lib"
24084   fi
24085
24086 fi
24087
24088   aix_libpath=$lt_cv_aix_libpath__GO
24089 fi
24090
24091          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
24092           # Warning - without using the other run time loading flags,
24093           # -berok will link without error, but may produce a broken library.
24094           no_undefined_flag_GO=' ${wl}-bernotok'
24095           allow_undefined_flag_GO=' ${wl}-berok'
24096           if test "$with_gnu_ld" = yes; then
24097             # We only use this code for GNU lds that support --whole-archive.
24098             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
24099           else
24100             # Exported symbols can be pulled into shared objects from archives
24101             whole_archive_flag_spec_GO='$convenience'
24102           fi
24103           archive_cmds_need_lc_GO=yes
24104           # This is similar to how AIX traditionally builds its shared libraries.
24105           archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24106         fi
24107       fi
24108       ;;
24109
24110     amigaos*)
24111       case $host_cpu in
24112       powerpc)
24113             # see comment about AmigaOS4 .so support
24114             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24115             archive_expsym_cmds_GO=''
24116         ;;
24117       m68k)
24118             archive_cmds_GO='$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)'
24119             hardcode_libdir_flag_spec_GO='-L$libdir'
24120             hardcode_minus_L_GO=yes
24121         ;;
24122       esac
24123       ;;
24124
24125     bsdi[45]*)
24126       export_dynamic_flag_spec_GO=-rdynamic
24127       ;;
24128
24129     cygwin* | mingw* | pw32* | cegcc*)
24130       # When not using gcc, we currently assume that we are using
24131       # Microsoft Visual C++.
24132       # hardcode_libdir_flag_spec is actually meaningless, as there is
24133       # no search path for DLLs.
24134       case $cc_basename in
24135       cl*)
24136         # Native MSVC
24137         hardcode_libdir_flag_spec_GO=' '
24138         allow_undefined_flag_GO=unsupported
24139         always_export_symbols_GO=yes
24140         file_list_spec_GO='@'
24141         # Tell ltmain to make .lib files, not .a files.
24142         libext=lib
24143         # Tell ltmain to make .dll files, not .so files.
24144         shrext_cmds=".dll"
24145         # FIXME: Setting linknames here is a bad hack.
24146         archive_cmds_GO='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
24147         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24148             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
24149           else
24150             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
24151           fi~
24152           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
24153           linknames='
24154         # The linker will not automatically build a static lib if we build a DLL.
24155         # _LT_TAGVAR(old_archive_from_new_cmds, GO)='true'
24156         enable_shared_with_static_runtimes_GO=yes
24157         exclude_expsyms_GO='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
24158         export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
24159         # Don't use ranlib
24160         old_postinstall_cmds_GO='chmod 644 $oldlib'
24161         postlink_cmds_GO='lt_outputfile="@OUTPUT@"~
24162           lt_tool_outputfile="@TOOL_OUTPUT@"~
24163           case $lt_outputfile in
24164             *.exe|*.EXE) ;;
24165             *)
24166               lt_outputfile="$lt_outputfile.exe"
24167               lt_tool_outputfile="$lt_tool_outputfile.exe"
24168               ;;
24169           esac~
24170           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
24171             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
24172             $RM "$lt_outputfile.manifest";
24173           fi'
24174         ;;
24175       *)
24176         # Assume MSVC wrapper
24177         hardcode_libdir_flag_spec_GO=' '
24178         allow_undefined_flag_GO=unsupported
24179         # Tell ltmain to make .lib files, not .a files.
24180         libext=lib
24181         # Tell ltmain to make .dll files, not .so files.
24182         shrext_cmds=".dll"
24183         # FIXME: Setting linknames here is a bad hack.
24184         archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
24185         # The linker will automatically build a .lib file if we build a DLL.
24186         old_archive_from_new_cmds_GO='true'
24187         # FIXME: Should let the user specify the lib program.
24188         old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
24189         enable_shared_with_static_runtimes_GO=yes
24190         ;;
24191       esac
24192       ;;
24193
24194     darwin* | rhapsody*)
24195
24196
24197   archive_cmds_need_lc_GO=no
24198   hardcode_direct_GO=no
24199   hardcode_automatic_GO=yes
24200   hardcode_shlibpath_var_GO=unsupported
24201   if test "$lt_cv_ld_force_load" = "yes"; then
24202     whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
24203
24204   else
24205     whole_archive_flag_spec_GO=''
24206   fi
24207   link_all_deplibs_GO=yes
24208   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
24209   case $cc_basename in
24210      ifort*) _lt_dar_can_shared=yes ;;
24211      *) _lt_dar_can_shared=$GCC ;;
24212   esac
24213   if test "$_lt_dar_can_shared" = "yes"; then
24214     output_verbose_link_cmd=func_echo_all
24215     archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
24216     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24217     archive_expsym_cmds_GO="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
24218     module_expsym_cmds_GO="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
24219
24220   else
24221   ld_shlibs_GO=no
24222   fi
24223
24224       ;;
24225
24226     dgux*)
24227       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24228       hardcode_libdir_flag_spec_GO='-L$libdir'
24229       hardcode_shlibpath_var_GO=no
24230       ;;
24231
24232     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24233     # support.  Future versions do this automatically, but an explicit c++rt0.o
24234     # does not break anything, and helps significantly (at the cost of a little
24235     # extra space).
24236     freebsd2.2*)
24237       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24238       hardcode_libdir_flag_spec_GO='-R$libdir'
24239       hardcode_direct_GO=yes
24240       hardcode_shlibpath_var_GO=no
24241       ;;
24242
24243     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24244     freebsd2.*)
24245       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24246       hardcode_direct_GO=yes
24247       hardcode_minus_L_GO=yes
24248       hardcode_shlibpath_var_GO=no
24249       ;;
24250
24251     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24252     freebsd* | dragonfly*)
24253       archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24254       hardcode_libdir_flag_spec_GO='-R$libdir'
24255       hardcode_direct_GO=yes
24256       hardcode_shlibpath_var_GO=no
24257       ;;
24258
24259     hpux9*)
24260       if test "$GCC" = yes; then
24261         archive_cmds_GO='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24262       else
24263         archive_cmds_GO='$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'
24264       fi
24265       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
24266       hardcode_libdir_separator_GO=:
24267       hardcode_direct_GO=yes
24268
24269       # hardcode_minus_L: Not really in the search PATH,
24270       # but as the default location of the library.
24271       hardcode_minus_L_GO=yes
24272       export_dynamic_flag_spec_GO='${wl}-E'
24273       ;;
24274
24275     hpux10*)
24276       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
24277         archive_cmds_GO='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24278       else
24279         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24280       fi
24281       if test "$with_gnu_ld" = no; then
24282         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
24283         hardcode_libdir_separator_GO=:
24284         hardcode_direct_GO=yes
24285         hardcode_direct_absolute_GO=yes
24286         export_dynamic_flag_spec_GO='${wl}-E'
24287         # hardcode_minus_L: Not really in the search PATH,
24288         # but as the default location of the library.
24289         hardcode_minus_L_GO=yes
24290       fi
24291       ;;
24292
24293     hpux11*)
24294       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
24295         case $host_cpu in
24296         hppa*64*)
24297           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24298           ;;
24299         ia64*)
24300           archive_cmds_GO='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24301           ;;
24302         *)
24303           archive_cmds_GO='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24304           ;;
24305         esac
24306       else
24307         case $host_cpu in
24308         hppa*64*)
24309           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24310           ;;
24311         ia64*)
24312           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24313           ;;
24314         *)
24315         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24316           ;;
24317         esac
24318       fi
24319       if test "$with_gnu_ld" = no; then
24320         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
24321         hardcode_libdir_separator_GO=:
24322
24323         case $host_cpu in
24324         hppa*64*|ia64*)
24325           hardcode_direct_GO=no
24326           hardcode_shlibpath_var_GO=no
24327           ;;
24328         *)
24329           hardcode_direct_GO=yes
24330           hardcode_direct_absolute_GO=yes
24331           export_dynamic_flag_spec_GO='${wl}-E'
24332
24333           # hardcode_minus_L: Not really in the search PATH,
24334           # but as the default location of the library.
24335           hardcode_minus_L_GO=yes
24336           ;;
24337         esac
24338       fi
24339       ;;
24340
24341     irix5* | irix6* | nonstopux*)
24342       if test "$GCC" = yes; then
24343         archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24344         # Try to use the -exported_symbol ld option, if it does not
24345         # work, assume that -exports_file does not work either and
24346         # implicitly export all symbols.
24347         # This should be the same for all languages, so no per-tag cache variable.
24348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
24349 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
24350 if ${lt_cv_irix_exported_symbol+:} false; then :
24351   $as_echo_n "(cached) " >&6
24352 else
24353   save_LDFLAGS="$LDFLAGS"
24354            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
24355            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24356 /* end confdefs.h.  */
24357 int foo (void) { return 0; }
24358 _ACEOF
24359 if ac_fn_c_try_link "$LINENO"; then :
24360   lt_cv_irix_exported_symbol=yes
24361 else
24362   lt_cv_irix_exported_symbol=no
24363 fi
24364 rm -f core conftest.err conftest.$ac_objext \
24365     conftest$ac_exeext conftest.$ac_ext
24366            LDFLAGS="$save_LDFLAGS"
24367 fi
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
24369 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
24370         if test "$lt_cv_irix_exported_symbol" = yes; then
24371           archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
24372         fi
24373       else
24374         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
24375         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
24376       fi
24377       archive_cmds_need_lc_GO='no'
24378       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
24379       hardcode_libdir_separator_GO=:
24380       inherit_rpath_GO=yes
24381       link_all_deplibs_GO=yes
24382       ;;
24383
24384     netbsd*)
24385       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24386         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24387       else
24388         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24389       fi
24390       hardcode_libdir_flag_spec_GO='-R$libdir'
24391       hardcode_direct_GO=yes
24392       hardcode_shlibpath_var_GO=no
24393       ;;
24394
24395     newsos6)
24396       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24397       hardcode_direct_GO=yes
24398       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
24399       hardcode_libdir_separator_GO=:
24400       hardcode_shlibpath_var_GO=no
24401       ;;
24402
24403     *nto* | *qnx*)
24404       ;;
24405
24406     openbsd*)
24407       if test -f /usr/libexec/ld.so; then
24408         hardcode_direct_GO=yes
24409         hardcode_shlibpath_var_GO=no
24410         hardcode_direct_absolute_GO=yes
24411         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24412           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24413           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24414           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
24415           export_dynamic_flag_spec_GO='${wl}-E'
24416         else
24417           case $host_os in
24418            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24419              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24420              hardcode_libdir_flag_spec_GO='-R$libdir'
24421              ;;
24422            *)
24423              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24424              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
24425              ;;
24426           esac
24427         fi
24428       else
24429         ld_shlibs_GO=no
24430       fi
24431       ;;
24432
24433     os2*)
24434       hardcode_libdir_flag_spec_GO='-L$libdir'
24435       hardcode_minus_L_GO=yes
24436       allow_undefined_flag_GO=unsupported
24437       archive_cmds_GO='$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'
24438       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24439       ;;
24440
24441     osf3*)
24442       if test "$GCC" = yes; then
24443         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
24444         archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24445       else
24446         allow_undefined_flag_GO=' -expect_unresolved \*'
24447         archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
24448       fi
24449       archive_cmds_need_lc_GO='no'
24450       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
24451       hardcode_libdir_separator_GO=:
24452       ;;
24453
24454     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24455       if test "$GCC" = yes; then
24456         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
24457         archive_cmds_GO='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24458         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
24459       else
24460         allow_undefined_flag_GO=' -expect_unresolved \*'
24461         archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
24462         archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
24463         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
24464
24465         # Both c and cxx compiler support -rpath directly
24466         hardcode_libdir_flag_spec_GO='-rpath $libdir'
24467       fi
24468       archive_cmds_need_lc_GO='no'
24469       hardcode_libdir_separator_GO=:
24470       ;;
24471
24472     solaris*)
24473       no_undefined_flag_GO=' -z defs'
24474       if test "$GCC" = yes; then
24475         wlarc='${wl}'
24476         archive_cmds_GO='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24477         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
24478           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
24479       else
24480         case `$CC -V 2>&1` in
24481         *"Compilers 5.0"*)
24482           wlarc=''
24483           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24484           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
24485           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
24486           ;;
24487         *)
24488           wlarc='${wl}'
24489           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
24490           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
24491           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
24492           ;;
24493         esac
24494       fi
24495       hardcode_libdir_flag_spec_GO='-R$libdir'
24496       hardcode_shlibpath_var_GO=no
24497       case $host_os in
24498       solaris2.[0-5] | solaris2.[0-5].*) ;;
24499       *)
24500         # The compiler driver will combine and reorder linker options,
24501         # but understands `-z linker_flag'.  GCC discards it without `$wl',
24502         # but is careful enough not to reorder.
24503         # Supported since Solaris 2.6 (maybe 2.5.1?)
24504         if test "$GCC" = yes; then
24505           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24506         else
24507           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
24508         fi
24509         ;;
24510       esac
24511       link_all_deplibs_GO=yes
24512       ;;
24513
24514     sunos4*)
24515       if test "x$host_vendor" = xsequent; then
24516         # Use $CC to link under sequent, because it throws in some extra .o
24517         # files that make .init and .fini sections work.
24518         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24519       else
24520         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24521       fi
24522       hardcode_libdir_flag_spec_GO='-L$libdir'
24523       hardcode_direct_GO=yes
24524       hardcode_minus_L_GO=yes
24525       hardcode_shlibpath_var_GO=no
24526       ;;
24527
24528     sysv4)
24529       case $host_vendor in
24530         sni)
24531           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24532           hardcode_direct_GO=yes # is this really true???
24533         ;;
24534         siemens)
24535           ## LD is ld it makes a PLAMLIB
24536           ## CC just makes a GrossModule.
24537           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24538           reload_cmds_GO='$CC -r -o $output$reload_objs'
24539           hardcode_direct_GO=no
24540         ;;
24541         motorola)
24542           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24543           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
24544         ;;
24545       esac
24546       runpath_var='LD_RUN_PATH'
24547       hardcode_shlibpath_var_GO=no
24548       ;;
24549
24550     sysv4.3*)
24551       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24552       hardcode_shlibpath_var_GO=no
24553       export_dynamic_flag_spec_GO='-Bexport'
24554       ;;
24555
24556     sysv4*MP*)
24557       if test -d /usr/nec; then
24558         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24559         hardcode_shlibpath_var_GO=no
24560         runpath_var=LD_RUN_PATH
24561         hardcode_runpath_var=yes
24562         ld_shlibs_GO=yes
24563       fi
24564       ;;
24565
24566     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
24567       no_undefined_flag_GO='${wl}-z,text'
24568       archive_cmds_need_lc_GO=no
24569       hardcode_shlibpath_var_GO=no
24570       runpath_var='LD_RUN_PATH'
24571
24572       if test "$GCC" = yes; then
24573         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24574         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24575       else
24576         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24577         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24578       fi
24579       ;;
24580
24581     sysv5* | sco3.2v5* | sco5v6*)
24582       # Note: We can NOT use -z defs as we might desire, because we do not
24583       # link with -lc, and that would cause any symbols used from libc to
24584       # always be unresolved, which means just about no library would
24585       # ever link correctly.  If we're not using GNU ld we use -z text
24586       # though, which does catch some bad symbols but isn't as heavy-handed
24587       # as -z defs.
24588       no_undefined_flag_GO='${wl}-z,text'
24589       allow_undefined_flag_GO='${wl}-z,nodefs'
24590       archive_cmds_need_lc_GO=no
24591       hardcode_shlibpath_var_GO=no
24592       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
24593       hardcode_libdir_separator_GO=':'
24594       link_all_deplibs_GO=yes
24595       export_dynamic_flag_spec_GO='${wl}-Bexport'
24596       runpath_var='LD_RUN_PATH'
24597
24598       if test "$GCC" = yes; then
24599         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24600         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24601       else
24602         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24603         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24604       fi
24605       ;;
24606
24607     uts4*)
24608       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24609       hardcode_libdir_flag_spec_GO='-L$libdir'
24610       hardcode_shlibpath_var_GO=no
24611       ;;
24612
24613     *)
24614       ld_shlibs_GO=no
24615       ;;
24616     esac
24617
24618     if test x$host_vendor = xsni; then
24619       case $host in
24620       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24621         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
24622         ;;
24623       esac
24624     fi
24625   fi
24626
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
24628 $as_echo "$ld_shlibs_GO" >&6; }
24629 test "$ld_shlibs_GO" = no && can_build_shared=no
24630
24631 with_gnu_ld_GO=$with_gnu_ld
24632
24633
24634
24635
24636
24637
24638 #
24639 # Do we need to explicitly link libc?
24640 #
24641 case "x$archive_cmds_need_lc_GO" in
24642 x|xyes)
24643   # Assume -lc should be added
24644   archive_cmds_need_lc_GO=yes
24645
24646   if test "$enable_shared" = yes && test "$GCC" = yes; then
24647     case $archive_cmds_GO in
24648     *'~'*)
24649       # FIXME: we may have to deal with multi-command sequences.
24650       ;;
24651     '$CC '*)
24652       # Test whether the compiler implicitly links with -lc since on some
24653       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24654       # to ld, don't add -lc before -lgcc.
24655       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24656 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24657 if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
24658   $as_echo_n "(cached) " >&6
24659 else
24660   $RM conftest*
24661         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24662
24663         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24664   (eval $ac_compile) 2>&5
24665   ac_status=$?
24666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667   test $ac_status = 0; } 2>conftest.err; then
24668           soname=conftest
24669           lib=conftest
24670           libobjs=conftest.$ac_objext
24671           deplibs=
24672           wl=$lt_prog_compiler_wl_GO
24673           pic_flag=$lt_prog_compiler_pic_GO
24674           compiler_flags=-v
24675           linker_flags=-v
24676           verstring=
24677           output_objdir=.
24678           libname=conftest
24679           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
24680           allow_undefined_flag_GO=
24681           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24682   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24683   ac_status=$?
24684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24685   test $ac_status = 0; }
24686           then
24687             lt_cv_archive_cmds_need_lc_GO=no
24688           else
24689             lt_cv_archive_cmds_need_lc_GO=yes
24690           fi
24691           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
24692         else
24693           cat conftest.err 1>&5
24694         fi
24695         $RM conftest*
24696
24697 fi
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
24699 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
24700       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
24701       ;;
24702     esac
24703   fi
24704   ;;
24705 esac
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24769 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24770 hardcode_action_GO=
24771 if test -n "$hardcode_libdir_flag_spec_GO" ||
24772    test -n "$runpath_var_GO" ||
24773    test "X$hardcode_automatic_GO" = "Xyes" ; then
24774
24775   # We can hardcode non-existent directories.
24776   if test "$hardcode_direct_GO" != no &&
24777      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24778      # have to relink, otherwise we might link with an installed library
24779      # when we should be linking with a yet-to-be-installed one
24780      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
24781      test "$hardcode_minus_L_GO" != no; then
24782     # Linking always hardcodes the temporary library directory.
24783     hardcode_action_GO=relink
24784   else
24785     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24786     hardcode_action_GO=immediate
24787   fi
24788 else
24789   # We cannot hardcode anything, or else we can only hardcode existing
24790   # directories.
24791   hardcode_action_GO=unsupported
24792 fi
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
24794 $as_echo "$hardcode_action_GO" >&6; }
24795
24796 if test "$hardcode_action_GO" = relink ||
24797    test "$inherit_rpath_GO" = yes; then
24798   # Fast installation is not supported
24799   enable_fast_install=no
24800 elif test "$shlibpath_overrides_runpath" = yes ||
24801      test "$enable_shared" = no; then
24802   # Fast installation is not necessary
24803   enable_fast_install=needless
24804 fi
24805
24806
24807
24808
24809
24810
24811
24812 fi
24813
24814 ac_ext=c
24815 ac_cpp='$CPP $CPPFLAGS'
24816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24819
24820
24821 GCC=$lt_save_GCC
24822 CC=$lt_save_CC
24823 CFLAGS=$lt_save_CFLAGS
24824
24825 if test -n "$ac_tool_prefix"; then
24826   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
24827 set dummy ${ac_tool_prefix}gcj; ac_word=$2
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24829 $as_echo_n "checking for $ac_word... " >&6; }
24830 if ${ac_cv_prog_GCJ+:} false; then :
24831   $as_echo_n "(cached) " >&6
24832 else
24833   if test -n "$GCJ"; then
24834   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
24835 else
24836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24837 for as_dir in $PATH
24838 do
24839   IFS=$as_save_IFS
24840   test -z "$as_dir" && as_dir=.
24841     for ac_exec_ext in '' $ac_executable_extensions; do
24842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24843     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
24844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24845     break 2
24846   fi
24847 done
24848   done
24849 IFS=$as_save_IFS
24850
24851 fi
24852 fi
24853 GCJ=$ac_cv_prog_GCJ
24854 if test -n "$GCJ"; then
24855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
24856 $as_echo "$GCJ" >&6; }
24857 else
24858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24859 $as_echo "no" >&6; }
24860 fi
24861
24862
24863 fi
24864 if test -z "$ac_cv_prog_GCJ"; then
24865   ac_ct_GCJ=$GCJ
24866   # Extract the first word of "gcj", so it can be a program name with args.
24867 set dummy gcj; ac_word=$2
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24869 $as_echo_n "checking for $ac_word... " >&6; }
24870 if ${ac_cv_prog_ac_ct_GCJ+:} false; then :
24871   $as_echo_n "(cached) " >&6
24872 else
24873   if test -n "$ac_ct_GCJ"; then
24874   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
24875 else
24876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24877 for as_dir in $PATH
24878 do
24879   IFS=$as_save_IFS
24880   test -z "$as_dir" && as_dir=.
24881     for ac_exec_ext in '' $ac_executable_extensions; do
24882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24883     ac_cv_prog_ac_ct_GCJ="gcj"
24884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24885     break 2
24886   fi
24887 done
24888   done
24889 IFS=$as_save_IFS
24890
24891 fi
24892 fi
24893 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
24894 if test -n "$ac_ct_GCJ"; then
24895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
24896 $as_echo "$ac_ct_GCJ" >&6; }
24897 else
24898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24899 $as_echo "no" >&6; }
24900 fi
24901
24902   if test "x$ac_ct_GCJ" = x; then
24903     GCJ=""
24904   else
24905     case $cross_compiling:$ac_tool_warned in
24906 yes:)
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24909 ac_tool_warned=yes ;;
24910 esac
24911     GCJ=$ac_ct_GCJ
24912   fi
24913 else
24914   GCJ="$ac_cv_prog_GCJ"
24915 fi
24916
24917       test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
24918
24919
24920
24921 # Source file extension for Java test sources.
24922 ac_ext=java
24923
24924 # Object file extension for compiled Java test sources.
24925 objext=o
24926 objext_GCJ=$objext
24927
24928 # Code to be used in simple compile tests
24929 lt_simple_compile_test_code="class foo {}"
24930
24931 # Code to be used in simple link tests
24932 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
24933
24934 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24935
24936
24937
24938
24939
24940
24941 # If no C compiler was specified, use CC.
24942 LTCC=${LTCC-"$CC"}
24943
24944 # If no C compiler flags were specified, use CFLAGS.
24945 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24946
24947 # Allow CC to be a program name with arguments.
24948 compiler=$CC
24949
24950
24951 # save warnings/boilerplate of simple test code
24952 ac_outfile=conftest.$ac_objext
24953 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24955 _lt_compiler_boilerplate=`cat conftest.err`
24956 $RM conftest*
24957
24958 ac_outfile=conftest.$ac_objext
24959 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24961 _lt_linker_boilerplate=`cat conftest.err`
24962 $RM -r conftest*
24963
24964
24965 # Allow CC to be a program name with arguments.
24966 lt_save_CC=$CC
24967 lt_save_CFLAGS=$CFLAGS
24968 lt_save_GCC=$GCC
24969 GCC=yes
24970 CC=${GCJ-"gcj"}
24971 CFLAGS=$GCJFLAGS
24972 compiler=$CC
24973 compiler_GCJ=$CC
24974 LD_GCJ="$LD"
24975 for cc_temp in $compiler""; do
24976   case $cc_temp in
24977     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24978     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24979     \-*) ;;
24980     *) break;;
24981   esac
24982 done
24983 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24984
24985
24986 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24987 archive_cmds_need_lc_GCJ=no
24988
24989 old_archive_cmds_GCJ=$old_archive_cmds
24990 reload_flag_GCJ=$reload_flag
24991 reload_cmds_GCJ=$reload_cmds
24992
24993 ## CAVEAT EMPTOR:
24994 ## There is no encapsulation within the following macros, do not change
24995 ## the running order or otherwise move them around unless you know exactly
24996 ## what you are doing...
24997 if test -n "$compiler"; then
24998
24999 lt_prog_compiler_no_builtin_flag_GCJ=
25000
25001 if test "$GCC" = yes; then
25002   case $cc_basename in
25003   nvcc*)
25004     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
25005   *)
25006     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
25007   esac
25008
25009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25010 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
25011 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
25012   $as_echo_n "(cached) " >&6
25013 else
25014   lt_cv_prog_compiler_rtti_exceptions=no
25015    ac_outfile=conftest.$ac_objext
25016    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25017    lt_compiler_flag="-fno-rtti -fno-exceptions"
25018    # Insert the option either (1) after the last *FLAGS variable, or
25019    # (2) before a word containing "conftest.", or (3) at the end.
25020    # Note that $ac_compile itself does not contain backslashes and begins
25021    # with a dollar sign (not a hyphen), so the echo should work correctly.
25022    # The option is referenced via a variable to avoid confusing sed.
25023    lt_compile=`echo "$ac_compile" | $SED \
25024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25026    -e 's:$: $lt_compiler_flag:'`
25027    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25028    (eval "$lt_compile" 2>conftest.err)
25029    ac_status=$?
25030    cat conftest.err >&5
25031    echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032    if (exit $ac_status) && test -s "$ac_outfile"; then
25033      # The compiler can only warn and ignore the option if not recognized
25034      # So say no if there are warnings other than the usual output.
25035      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
25036      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25037      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25038        lt_cv_prog_compiler_rtti_exceptions=yes
25039      fi
25040    fi
25041    $RM conftest*
25042
25043 fi
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25045 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
25046
25047 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25048     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
25049 else
25050     :
25051 fi
25052
25053 fi
25054
25055
25056
25057   lt_prog_compiler_wl_GCJ=
25058 lt_prog_compiler_pic_GCJ=
25059 lt_prog_compiler_static_GCJ=
25060
25061
25062   if test "$GCC" = yes; then
25063     lt_prog_compiler_wl_GCJ='-Wl,'
25064     lt_prog_compiler_static_GCJ='-static'
25065
25066     case $host_os in
25067       aix*)
25068       # All AIX code is PIC.
25069       if test "$host_cpu" = ia64; then
25070         # AIX 5 now supports IA64 processor
25071         lt_prog_compiler_static_GCJ='-Bstatic'
25072       fi
25073       ;;
25074
25075     amigaos*)
25076       case $host_cpu in
25077       powerpc)
25078             # see comment about AmigaOS4 .so support
25079             lt_prog_compiler_pic_GCJ='-fPIC'
25080         ;;
25081       m68k)
25082             # FIXME: we need at least 68020 code to build shared libraries, but
25083             # adding the `-m68020' flag to GCC prevents building anything better,
25084             # like `-m68040'.
25085             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
25086         ;;
25087       esac
25088       ;;
25089
25090     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25091       # PIC is the default for these OSes.
25092       ;;
25093
25094     mingw* | cygwin* | pw32* | os2* | cegcc*)
25095       # This hack is so that the source file can tell whether it is being
25096       # built for inclusion in a dll (and should export symbols for example).
25097       # Although the cygwin gcc ignores -fPIC, still need this for old-style
25098       # (--disable-auto-import) libraries
25099
25100       ;;
25101
25102     darwin* | rhapsody*)
25103       # PIC is the default on this platform
25104       # Common symbols not allowed in MH_DYLIB files
25105       lt_prog_compiler_pic_GCJ='-fno-common'
25106       ;;
25107
25108     haiku*)
25109       # PIC is the default for Haiku.
25110       # The "-static" flag exists, but is broken.
25111       lt_prog_compiler_static_GCJ=
25112       ;;
25113
25114     hpux*)
25115       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
25116       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
25117       # sets the default TLS model and affects inlining.
25118       case $host_cpu in
25119       hppa*64*)
25120         # +Z the default
25121         ;;
25122       *)
25123         lt_prog_compiler_pic_GCJ='-fPIC'
25124         ;;
25125       esac
25126       ;;
25127
25128     interix[3-9]*)
25129       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
25130       # Instead, we relocate shared libraries at runtime.
25131       ;;
25132
25133     msdosdjgpp*)
25134       # Just because we use GCC doesn't mean we suddenly get shared libraries
25135       # on systems that don't support them.
25136       lt_prog_compiler_can_build_shared_GCJ=no
25137       enable_shared=no
25138       ;;
25139
25140     *nto* | *qnx*)
25141       # QNX uses GNU C++, but need to define -shared option too, otherwise
25142       # it will coredump.
25143       lt_prog_compiler_pic_GCJ='-fPIC -shared'
25144       ;;
25145
25146     sysv4*MP*)
25147       if test -d /usr/nec; then
25148         lt_prog_compiler_pic_GCJ=-Kconform_pic
25149       fi
25150       ;;
25151
25152     *)
25153       lt_prog_compiler_pic_GCJ='-fPIC'
25154       ;;
25155     esac
25156
25157     case $cc_basename in
25158     nvcc*) # Cuda Compiler Driver 2.2
25159       lt_prog_compiler_wl_GCJ='-Xlinker '
25160       if test -n "$lt_prog_compiler_pic_GCJ"; then
25161         lt_prog_compiler_pic_GCJ="-Xcompiler $lt_prog_compiler_pic_GCJ"
25162       fi
25163       ;;
25164     esac
25165   else
25166     # PORTME Check for flag to pass linker flags through the system compiler.
25167     case $host_os in
25168     aix*)
25169       lt_prog_compiler_wl_GCJ='-Wl,'
25170       if test "$host_cpu" = ia64; then
25171         # AIX 5 now supports IA64 processor
25172         lt_prog_compiler_static_GCJ='-Bstatic'
25173       else
25174         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
25175       fi
25176       ;;
25177
25178     mingw* | cygwin* | pw32* | os2* | cegcc*)
25179       # This hack is so that the source file can tell whether it is being
25180       # built for inclusion in a dll (and should export symbols for example).
25181
25182       ;;
25183
25184     hpux9* | hpux10* | hpux11*)
25185       lt_prog_compiler_wl_GCJ='-Wl,'
25186       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25187       # not for PA HP-UX.
25188       case $host_cpu in
25189       hppa*64*|ia64*)
25190         # +Z the default
25191         ;;
25192       *)
25193         lt_prog_compiler_pic_GCJ='+Z'
25194         ;;
25195       esac
25196       # Is there a better lt_prog_compiler_static that works with the bundled CC?
25197       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
25198       ;;
25199
25200     irix5* | irix6* | nonstopux*)
25201       lt_prog_compiler_wl_GCJ='-Wl,'
25202       # PIC (with -KPIC) is the default.
25203       lt_prog_compiler_static_GCJ='-non_shared'
25204       ;;
25205
25206     linux* | k*bsd*-gnu | kopensolaris*-gnu)
25207       case $cc_basename in
25208       # old Intel for x86_64 which still supported -KPIC.
25209       ecc*)
25210         lt_prog_compiler_wl_GCJ='-Wl,'
25211         lt_prog_compiler_pic_GCJ='-KPIC'
25212         lt_prog_compiler_static_GCJ='-static'
25213         ;;
25214       # icc used to be incompatible with GCC.
25215       # ICC 10 doesn't accept -KPIC any more.
25216       icc* | ifort*)
25217         lt_prog_compiler_wl_GCJ='-Wl,'
25218         lt_prog_compiler_pic_GCJ='-fPIC'
25219         lt_prog_compiler_static_GCJ='-static'
25220         ;;
25221       # Lahey Fortran 8.1.
25222       lf95*)
25223         lt_prog_compiler_wl_GCJ='-Wl,'
25224         lt_prog_compiler_pic_GCJ='--shared'
25225         lt_prog_compiler_static_GCJ='--static'
25226         ;;
25227       nagfor*)
25228         # NAG Fortran compiler
25229         lt_prog_compiler_wl_GCJ='-Wl,-Wl,,'
25230         lt_prog_compiler_pic_GCJ='-PIC'
25231         lt_prog_compiler_static_GCJ='-Bstatic'
25232         ;;
25233       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
25234         # Portland Group compilers (*not* the Pentium gcc compiler,
25235         # which looks to be a dead project)
25236         lt_prog_compiler_wl_GCJ='-Wl,'
25237         lt_prog_compiler_pic_GCJ='-fpic'
25238         lt_prog_compiler_static_GCJ='-Bstatic'
25239         ;;
25240       ccc*)
25241         lt_prog_compiler_wl_GCJ='-Wl,'
25242         # All Alpha code is PIC.
25243         lt_prog_compiler_static_GCJ='-non_shared'
25244         ;;
25245       xl* | bgxl* | bgf* | mpixl*)
25246         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
25247         lt_prog_compiler_wl_GCJ='-Wl,'
25248         lt_prog_compiler_pic_GCJ='-qpic'
25249         lt_prog_compiler_static_GCJ='-qstaticlink'
25250         ;;
25251       *)
25252         case `$CC -V 2>&1 | sed 5q` in
25253         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
25254           # Sun Fortran 8.3 passes all unrecognized flags to the linker
25255           lt_prog_compiler_pic_GCJ='-KPIC'
25256           lt_prog_compiler_static_GCJ='-Bstatic'
25257           lt_prog_compiler_wl_GCJ=''
25258           ;;
25259         *Sun\ F* | *Sun*Fortran*)
25260           lt_prog_compiler_pic_GCJ='-KPIC'
25261           lt_prog_compiler_static_GCJ='-Bstatic'
25262           lt_prog_compiler_wl_GCJ='-Qoption ld '
25263           ;;
25264         *Sun\ C*)
25265           # Sun C 5.9
25266           lt_prog_compiler_pic_GCJ='-KPIC'
25267           lt_prog_compiler_static_GCJ='-Bstatic'
25268           lt_prog_compiler_wl_GCJ='-Wl,'
25269           ;;
25270         *Intel*\ [CF]*Compiler*)
25271           lt_prog_compiler_wl_GCJ='-Wl,'
25272           lt_prog_compiler_pic_GCJ='-fPIC'
25273           lt_prog_compiler_static_GCJ='-static'
25274           ;;
25275         *Portland\ Group*)
25276           lt_prog_compiler_wl_GCJ='-Wl,'
25277           lt_prog_compiler_pic_GCJ='-fpic'
25278           lt_prog_compiler_static_GCJ='-Bstatic'
25279           ;;
25280         esac
25281         ;;
25282       esac
25283       ;;
25284
25285     newsos6)
25286       lt_prog_compiler_pic_GCJ='-KPIC'
25287       lt_prog_compiler_static_GCJ='-Bstatic'
25288       ;;
25289
25290     *nto* | *qnx*)
25291       # QNX uses GNU C++, but need to define -shared option too, otherwise
25292       # it will coredump.
25293       lt_prog_compiler_pic_GCJ='-fPIC -shared'
25294       ;;
25295
25296     osf3* | osf4* | osf5*)
25297       lt_prog_compiler_wl_GCJ='-Wl,'
25298       # All OSF/1 code is PIC.
25299       lt_prog_compiler_static_GCJ='-non_shared'
25300       ;;
25301
25302     rdos*)
25303       lt_prog_compiler_static_GCJ='-non_shared'
25304       ;;
25305
25306     solaris*)
25307       lt_prog_compiler_pic_GCJ='-KPIC'
25308       lt_prog_compiler_static_GCJ='-Bstatic'
25309       case $cc_basename in
25310       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
25311         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
25312       *)
25313         lt_prog_compiler_wl_GCJ='-Wl,';;
25314       esac
25315       ;;
25316
25317     sunos4*)
25318       lt_prog_compiler_wl_GCJ='-Qoption ld '
25319       lt_prog_compiler_pic_GCJ='-PIC'
25320       lt_prog_compiler_static_GCJ='-Bstatic'
25321       ;;
25322
25323     sysv4 | sysv4.2uw2* | sysv4.3*)
25324       lt_prog_compiler_wl_GCJ='-Wl,'
25325       lt_prog_compiler_pic_GCJ='-KPIC'
25326       lt_prog_compiler_static_GCJ='-Bstatic'
25327       ;;
25328
25329     sysv4*MP*)
25330       if test -d /usr/nec ;then
25331         lt_prog_compiler_pic_GCJ='-Kconform_pic'
25332         lt_prog_compiler_static_GCJ='-Bstatic'
25333       fi
25334       ;;
25335
25336     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
25337       lt_prog_compiler_wl_GCJ='-Wl,'
25338       lt_prog_compiler_pic_GCJ='-KPIC'
25339       lt_prog_compiler_static_GCJ='-Bstatic'
25340       ;;
25341
25342     unicos*)
25343       lt_prog_compiler_wl_GCJ='-Wl,'
25344       lt_prog_compiler_can_build_shared_GCJ=no
25345       ;;
25346
25347     uts4*)
25348       lt_prog_compiler_pic_GCJ='-pic'
25349       lt_prog_compiler_static_GCJ='-Bstatic'
25350       ;;
25351
25352     *)
25353       lt_prog_compiler_can_build_shared_GCJ=no
25354       ;;
25355     esac
25356   fi
25357
25358 case $host_os in
25359   # For platforms which do not support PIC, -DPIC is meaningless:
25360   *djgpp*)
25361     lt_prog_compiler_pic_GCJ=
25362     ;;
25363   *)
25364     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
25365     ;;
25366 esac
25367
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
25369 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25370 if ${lt_cv_prog_compiler_pic_GCJ+:} false; then :
25371   $as_echo_n "(cached) " >&6
25372 else
25373   lt_cv_prog_compiler_pic_GCJ=$lt_prog_compiler_pic_GCJ
25374 fi
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_GCJ" >&5
25376 $as_echo "$lt_cv_prog_compiler_pic_GCJ" >&6; }
25377 lt_prog_compiler_pic_GCJ=$lt_cv_prog_compiler_pic_GCJ
25378
25379 #
25380 # Check to make sure the PIC flag actually works.
25381 #
25382 if test -n "$lt_prog_compiler_pic_GCJ"; then
25383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
25384 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
25385 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
25386   $as_echo_n "(cached) " >&6
25387 else
25388   lt_cv_prog_compiler_pic_works_GCJ=no
25389    ac_outfile=conftest.$ac_objext
25390    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25391    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
25392    # Insert the option either (1) after the last *FLAGS variable, or
25393    # (2) before a word containing "conftest.", or (3) at the end.
25394    # Note that $ac_compile itself does not contain backslashes and begins
25395    # with a dollar sign (not a hyphen), so the echo should work correctly.
25396    # The option is referenced via a variable to avoid confusing sed.
25397    lt_compile=`echo "$ac_compile" | $SED \
25398    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25399    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25400    -e 's:$: $lt_compiler_flag:'`
25401    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25402    (eval "$lt_compile" 2>conftest.err)
25403    ac_status=$?
25404    cat conftest.err >&5
25405    echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406    if (exit $ac_status) && test -s "$ac_outfile"; then
25407      # The compiler can only warn and ignore the option if not recognized
25408      # So say no if there are warnings other than the usual output.
25409      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
25410      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25411      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25412        lt_cv_prog_compiler_pic_works_GCJ=yes
25413      fi
25414    fi
25415    $RM conftest*
25416
25417 fi
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
25419 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
25420
25421 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
25422     case $lt_prog_compiler_pic_GCJ in
25423      "" | " "*) ;;
25424      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
25425      esac
25426 else
25427     lt_prog_compiler_pic_GCJ=
25428      lt_prog_compiler_can_build_shared_GCJ=no
25429 fi
25430
25431 fi
25432
25433
25434
25435
25436
25437 #
25438 # Check to make sure the static flag actually works.
25439 #
25440 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25442 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25443 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
25444   $as_echo_n "(cached) " >&6
25445 else
25446   lt_cv_prog_compiler_static_works_GCJ=no
25447    save_LDFLAGS="$LDFLAGS"
25448    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
25449    echo "$lt_simple_link_test_code" > conftest.$ac_ext
25450    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25451      # The linker can only warn and ignore the option if not recognized
25452      # So say no if there are warnings
25453      if test -s conftest.err; then
25454        # Append any errors to the config.log.
25455        cat conftest.err 1>&5
25456        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
25457        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25458        if diff conftest.exp conftest.er2 >/dev/null; then
25459          lt_cv_prog_compiler_static_works_GCJ=yes
25460        fi
25461      else
25462        lt_cv_prog_compiler_static_works_GCJ=yes
25463      fi
25464    fi
25465    $RM -r conftest*
25466    LDFLAGS="$save_LDFLAGS"
25467
25468 fi
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
25470 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
25471
25472 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
25473     :
25474 else
25475     lt_prog_compiler_static_GCJ=
25476 fi
25477
25478
25479
25480
25481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25482 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25483 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
25484   $as_echo_n "(cached) " >&6
25485 else
25486   lt_cv_prog_compiler_c_o_GCJ=no
25487    $RM -r conftest 2>/dev/null
25488    mkdir conftest
25489    cd conftest
25490    mkdir out
25491    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25492
25493    lt_compiler_flag="-o out/conftest2.$ac_objext"
25494    # Insert the option either (1) after the last *FLAGS variable, or
25495    # (2) before a word containing "conftest.", or (3) at the end.
25496    # Note that $ac_compile itself does not contain backslashes and begins
25497    # with a dollar sign (not a hyphen), so the echo should work correctly.
25498    lt_compile=`echo "$ac_compile" | $SED \
25499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25501    -e 's:$: $lt_compiler_flag:'`
25502    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25503    (eval "$lt_compile" 2>out/conftest.err)
25504    ac_status=$?
25505    cat out/conftest.err >&5
25506    echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507    if (exit $ac_status) && test -s out/conftest2.$ac_objext
25508    then
25509      # The compiler can only warn and ignore the option if not recognized
25510      # So say no if there are warnings
25511      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25512      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25513      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25514        lt_cv_prog_compiler_c_o_GCJ=yes
25515      fi
25516    fi
25517    chmod u+w . 2>&5
25518    $RM conftest*
25519    # SGI C++ compiler will create directory out/ii_files/ for
25520    # template instantiation
25521    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25522    $RM out/* && rmdir out
25523    cd ..
25524    $RM -r conftest
25525    $RM conftest*
25526
25527 fi
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25529 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
25530
25531
25532
25533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25535 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
25536   $as_echo_n "(cached) " >&6
25537 else
25538   lt_cv_prog_compiler_c_o_GCJ=no
25539    $RM -r conftest 2>/dev/null
25540    mkdir conftest
25541    cd conftest
25542    mkdir out
25543    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25544
25545    lt_compiler_flag="-o out/conftest2.$ac_objext"
25546    # Insert the option either (1) after the last *FLAGS variable, or
25547    # (2) before a word containing "conftest.", or (3) at the end.
25548    # Note that $ac_compile itself does not contain backslashes and begins
25549    # with a dollar sign (not a hyphen), so the echo should work correctly.
25550    lt_compile=`echo "$ac_compile" | $SED \
25551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25553    -e 's:$: $lt_compiler_flag:'`
25554    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25555    (eval "$lt_compile" 2>out/conftest.err)
25556    ac_status=$?
25557    cat out/conftest.err >&5
25558    echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559    if (exit $ac_status) && test -s out/conftest2.$ac_objext
25560    then
25561      # The compiler can only warn and ignore the option if not recognized
25562      # So say no if there are warnings
25563      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25564      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25565      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25566        lt_cv_prog_compiler_c_o_GCJ=yes
25567      fi
25568    fi
25569    chmod u+w . 2>&5
25570    $RM conftest*
25571    # SGI C++ compiler will create directory out/ii_files/ for
25572    # template instantiation
25573    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25574    $RM out/* && rmdir out
25575    cd ..
25576    $RM -r conftest
25577    $RM conftest*
25578
25579 fi
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25581 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
25582
25583
25584
25585
25586 hard_links="nottested"
25587 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25588   # do not overwrite the value of need_locks provided by the user
25589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
25590 $as_echo_n "checking if we can lock with hard links... " >&6; }
25591   hard_links=yes
25592   $RM conftest*
25593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
25594   touch conftest.a
25595   ln conftest.a conftest.b 2>&5 || hard_links=no
25596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
25597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
25598 $as_echo "$hard_links" >&6; }
25599   if test "$hard_links" = no; then
25600     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25601 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25602     need_locks=warn
25603   fi
25604 else
25605   need_locks=no
25606 fi
25607
25608
25609
25610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25612
25613   runpath_var=
25614   allow_undefined_flag_GCJ=
25615   always_export_symbols_GCJ=no
25616   archive_cmds_GCJ=
25617   archive_expsym_cmds_GCJ=
25618   compiler_needs_object_GCJ=no
25619   enable_shared_with_static_runtimes_GCJ=no
25620   export_dynamic_flag_spec_GCJ=
25621   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25622   hardcode_automatic_GCJ=no
25623   hardcode_direct_GCJ=no
25624   hardcode_direct_absolute_GCJ=no
25625   hardcode_libdir_flag_spec_GCJ=
25626   hardcode_libdir_separator_GCJ=
25627   hardcode_minus_L_GCJ=no
25628   hardcode_shlibpath_var_GCJ=unsupported
25629   inherit_rpath_GCJ=no
25630   link_all_deplibs_GCJ=unknown
25631   module_cmds_GCJ=
25632   module_expsym_cmds_GCJ=
25633   old_archive_from_new_cmds_GCJ=
25634   old_archive_from_expsyms_cmds_GCJ=
25635   thread_safe_flag_spec_GCJ=
25636   whole_archive_flag_spec_GCJ=
25637   # include_expsyms should be a list of space-separated symbols to be *always*
25638   # included in the symbol list
25639   include_expsyms_GCJ=
25640   # exclude_expsyms can be an extended regexp of symbols to exclude
25641   # it will be wrapped by ` (' and `)$', so one must not match beginning or
25642   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25643   # as well as any symbol that contains `d'.
25644   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25645   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25646   # platforms (ab)use it in PIC code, but their linkers get confused if
25647   # the symbol is explicitly referenced.  Since portable code cannot
25648   # rely on this symbol name, it's probably fine to never include it in
25649   # preloaded symbol tables.
25650   # Exclude shared library initialization/finalization symbols.
25651   extract_expsyms_cmds=
25652
25653   case $host_os in
25654   cygwin* | mingw* | pw32* | cegcc*)
25655     # FIXME: the MSVC++ port hasn't been tested in a loooong time
25656     # When not using gcc, we currently assume that we are using
25657     # Microsoft Visual C++.
25658     if test "$GCC" != yes; then
25659       with_gnu_ld=no
25660     fi
25661     ;;
25662   interix*)
25663     # we just hope/assume this is gcc and not c89 (= MSVC++)
25664     with_gnu_ld=yes
25665     ;;
25666   openbsd*)
25667     with_gnu_ld=no
25668     ;;
25669   esac
25670
25671   ld_shlibs_GCJ=yes
25672
25673   # On some targets, GNU ld is compatible enough with the native linker
25674   # that we're better off using the native interface for both.
25675   lt_use_gnu_ld_interface=no
25676   if test "$with_gnu_ld" = yes; then
25677     case $host_os in
25678       aix*)
25679         # The AIX port of GNU ld has always aspired to compatibility
25680         # with the native linker.  However, as the warning in the GNU ld
25681         # block says, versions before 2.19.5* couldn't really create working
25682         # shared libraries, regardless of the interface used.
25683         case `$LD -v 2>&1` in
25684           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
25685           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
25686           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
25687           *)
25688             lt_use_gnu_ld_interface=yes
25689             ;;
25690         esac
25691         ;;
25692       *)
25693         lt_use_gnu_ld_interface=yes
25694         ;;
25695     esac
25696   fi
25697
25698   if test "$lt_use_gnu_ld_interface" = yes; then
25699     # If archive_cmds runs LD, not CC, wlarc should be empty
25700     wlarc='${wl}'
25701
25702     # Set some defaults for GNU ld with shared library support. These
25703     # are reset later if shared libraries are not supported. Putting them
25704     # here allows them to be overridden if necessary.
25705     runpath_var=LD_RUN_PATH
25706     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25707     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25708     # ancient GNU ld didn't support --whole-archive et. al.
25709     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
25710       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25711     else
25712       whole_archive_flag_spec_GCJ=
25713     fi
25714     supports_anon_versioning=no
25715     case `$LD -v 2>&1` in
25716       *GNU\ gold*) supports_anon_versioning=yes ;;
25717       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25718       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25719       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25720       *\ 2.11.*) ;; # other 2.11 versions
25721       *) supports_anon_versioning=yes ;;
25722     esac
25723
25724     # See if GNU ld supports shared libraries.
25725     case $host_os in
25726     aix[3-9]*)
25727       # On AIX/PPC, the GNU linker is very broken
25728       if test "$host_cpu" != ia64; then
25729         ld_shlibs_GCJ=no
25730         cat <<_LT_EOF 1>&2
25731
25732 *** Warning: the GNU linker, at least up to release 2.19, is reported
25733 *** to be unable to reliably create shared libraries on AIX.
25734 *** Therefore, libtool is disabling shared libraries support.  If you
25735 *** really care for shared libraries, you may want to install binutils
25736 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
25737 *** You will then need to restart the configuration process.
25738
25739 _LT_EOF
25740       fi
25741       ;;
25742
25743     amigaos*)
25744       case $host_cpu in
25745       powerpc)
25746             # see comment about AmigaOS4 .so support
25747             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25748             archive_expsym_cmds_GCJ=''
25749         ;;
25750       m68k)
25751             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)'
25752             hardcode_libdir_flag_spec_GCJ='-L$libdir'
25753             hardcode_minus_L_GCJ=yes
25754         ;;
25755       esac
25756       ;;
25757
25758     beos*)
25759       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25760         allow_undefined_flag_GCJ=unsupported
25761         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25762         # support --undefined.  This deserves some investigation.  FIXME
25763         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25764       else
25765         ld_shlibs_GCJ=no
25766       fi
25767       ;;
25768
25769     cygwin* | mingw* | pw32* | cegcc*)
25770       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25771       # as there is no search path for DLLs.
25772       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25773       export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
25774       allow_undefined_flag_GCJ=unsupported
25775       always_export_symbols_GCJ=no
25776       enable_shared_with_static_runtimes_GCJ=yes
25777       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
25778       exclude_expsyms_GCJ='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
25779
25780       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
25781         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25782         # If the export-symbols file already is a .def file (1st line
25783         # is EXPORTS), use it as is; otherwise, prepend...
25784         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25785           cp $export_symbols $output_objdir/$soname.def;
25786         else
25787           echo EXPORTS > $output_objdir/$soname.def;
25788           cat $export_symbols >> $output_objdir/$soname.def;
25789         fi~
25790         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25791       else
25792         ld_shlibs_GCJ=no
25793       fi
25794       ;;
25795
25796     haiku*)
25797       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25798       link_all_deplibs_GCJ=yes
25799       ;;
25800
25801     interix[3-9]*)
25802       hardcode_direct_GCJ=no
25803       hardcode_shlibpath_var_GCJ=no
25804       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25805       export_dynamic_flag_spec_GCJ='${wl}-E'
25806       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25807       # Instead, shared libraries are loaded at an image base (0x10000000 by
25808       # default) and relocated if they conflict, which is a slow very memory
25809       # consuming and fragmenting process.  To avoid this, we pick a random,
25810       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25811       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25812       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25813       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25814       ;;
25815
25816     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
25817       tmp_diet=no
25818       if test "$host_os" = linux-dietlibc; then
25819         case $cc_basename in
25820           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
25821         esac
25822       fi
25823       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
25824          && test "$tmp_diet" = no
25825       then
25826         tmp_addflag=' $pic_flag'
25827         tmp_sharedflag='-shared'
25828         case $cc_basename,$host_cpu in
25829         pgcc*)                          # Portland Group C compiler
25830           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
25831           tmp_addflag=' $pic_flag'
25832           ;;
25833         pgf77* | pgf90* | pgf95* | pgfortran*)
25834                                         # Portland Group f77 and f90 compilers
25835           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
25836           tmp_addflag=' $pic_flag -Mnomain' ;;
25837         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
25838           tmp_addflag=' -i_dynamic' ;;
25839         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25840           tmp_addflag=' -i_dynamic -nofor_main' ;;
25841         ifc* | ifort*)                  # Intel Fortran compiler
25842           tmp_addflag=' -nofor_main' ;;
25843         lf95*)                          # Lahey Fortran 8.1
25844           whole_archive_flag_spec_GCJ=
25845           tmp_sharedflag='--shared' ;;
25846         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
25847           tmp_sharedflag='-qmkshrobj'
25848           tmp_addflag= ;;
25849         nvcc*)  # Cuda Compiler Driver 2.2
25850           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
25851           compiler_needs_object_GCJ=yes
25852           ;;
25853         esac
25854         case `$CC -V 2>&1 | sed 5q` in
25855         *Sun\ C*)                       # Sun C 5.9
25856           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
25857           compiler_needs_object_GCJ=yes
25858           tmp_sharedflag='-G' ;;
25859         *Sun\ F*)                       # Sun Fortran 8.3
25860           tmp_sharedflag='-G' ;;
25861         esac
25862         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25863
25864         if test "x$supports_anon_versioning" = xyes; then
25865           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
25866             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25867             echo "local: *; };" >> $output_objdir/$libname.ver~
25868             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25869         fi
25870
25871         case $cc_basename in
25872         xlf* | bgf* | bgxlf* | mpixlf*)
25873           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
25874           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
25875           hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25876           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
25877           if test "x$supports_anon_versioning" = xyes; then
25878             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
25879               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25880               echo "local: *; };" >> $output_objdir/$libname.ver~
25881               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
25882           fi
25883           ;;
25884         esac
25885       else
25886         ld_shlibs_GCJ=no
25887       fi
25888       ;;
25889
25890     netbsd*)
25891       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
25892         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25893         wlarc=
25894       else
25895         archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25896         archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25897       fi
25898       ;;
25899
25900     solaris*)
25901       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
25902         ld_shlibs_GCJ=no
25903         cat <<_LT_EOF 1>&2
25904
25905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25906 *** create shared libraries on Solaris systems.  Therefore, libtool
25907 *** is disabling shared libraries support.  We urge you to upgrade GNU
25908 *** binutils to release 2.9.1 or newer.  Another option is to modify
25909 *** your PATH or compiler configuration so that the native linker is
25910 *** used, and then restart.
25911
25912 _LT_EOF
25913       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25914         archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25915         archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25916       else
25917         ld_shlibs_GCJ=no
25918       fi
25919       ;;
25920
25921     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25922       case `$LD -v 2>&1` in
25923         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25924         ld_shlibs_GCJ=no
25925         cat <<_LT_EOF 1>&2
25926
25927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25928 *** reliably create shared libraries on SCO systems.  Therefore, libtool
25929 *** is disabling shared libraries support.  We urge you to upgrade GNU
25930 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
25931 *** your PATH or compiler configuration so that the native linker is
25932 *** used, and then restart.
25933
25934 _LT_EOF
25935         ;;
25936         *)
25937           # For security reasons, it is highly recommended that you always
25938           # use absolute paths for naming shared libraries, and exclude the
25939           # DT_RUNPATH tag from executables and libraries.  But doing so
25940           # requires that you compile everything twice, which is a pain.
25941           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25942             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25943             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25944             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25945           else
25946             ld_shlibs_GCJ=no
25947           fi
25948         ;;
25949       esac
25950       ;;
25951
25952     sunos4*)
25953       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25954       wlarc=
25955       hardcode_direct_GCJ=yes
25956       hardcode_shlibpath_var_GCJ=no
25957       ;;
25958
25959     *)
25960       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25961         archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25962         archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25963       else
25964         ld_shlibs_GCJ=no
25965       fi
25966       ;;
25967     esac
25968
25969     if test "$ld_shlibs_GCJ" = no; then
25970       runpath_var=
25971       hardcode_libdir_flag_spec_GCJ=
25972       export_dynamic_flag_spec_GCJ=
25973       whole_archive_flag_spec_GCJ=
25974     fi
25975   else
25976     # PORTME fill in a description of your system's linker (not GNU ld)
25977     case $host_os in
25978     aix3*)
25979       allow_undefined_flag_GCJ=unsupported
25980       always_export_symbols_GCJ=yes
25981       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'
25982       # Note: this linker hardcodes the directories in LIBPATH if there
25983       # are no directories specified by -L.
25984       hardcode_minus_L_GCJ=yes
25985       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25986         # Neither direct hardcoding nor static linking is supported with a
25987         # broken collect2.
25988         hardcode_direct_GCJ=unsupported
25989       fi
25990       ;;
25991
25992     aix[4-9]*)
25993       if test "$host_cpu" = ia64; then
25994         # On IA64, the linker does run time linking by default, so we don't
25995         # have to do anything special.
25996         aix_use_runtimelinking=no
25997         exp_sym_flag='-Bexport'
25998         no_entry_flag=""
25999       else
26000         # If we're using GNU nm, then we don't want the "-C" option.
26001         # -C means demangle to AIX nm, but means don't demangle with GNU nm
26002         # Also, AIX nm treats weak defined symbols like other global
26003         # defined symbols, whereas GNU nm marks them as "W".
26004         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
26005           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
26006         else
26007           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'
26008         fi
26009         aix_use_runtimelinking=no
26010
26011         # Test if we are trying to use run time linking or normal
26012         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
26013         # need to do runtime linking.
26014         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
26015           for ld_flag in $LDFLAGS; do
26016           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26017             aix_use_runtimelinking=yes
26018             break
26019           fi
26020           done
26021           ;;
26022         esac
26023
26024         exp_sym_flag='-bexport'
26025         no_entry_flag='-bnoentry'
26026       fi
26027
26028       # When large executables or shared objects are built, AIX ld can
26029       # have problems creating the table of contents.  If linking a library
26030       # or program results in "error TOC overflow" add -mminimal-toc to
26031       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
26032       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
26033
26034       archive_cmds_GCJ=''
26035       hardcode_direct_GCJ=yes
26036       hardcode_direct_absolute_GCJ=yes
26037       hardcode_libdir_separator_GCJ=':'
26038       link_all_deplibs_GCJ=yes
26039       file_list_spec_GCJ='${wl}-f,'
26040
26041       if test "$GCC" = yes; then
26042         case $host_os in aix4.[012]|aix4.[012].*)
26043         # We only want to do this on AIX 4.2 and lower, the check
26044         # below for broken collect2 doesn't work under 4.3+
26045           collect2name=`${CC} -print-prog-name=collect2`
26046           if test -f "$collect2name" &&
26047            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
26048           then
26049           # We have reworked collect2
26050           :
26051           else
26052           # We have old collect2
26053           hardcode_direct_GCJ=unsupported
26054           # It fails to find uninstalled libraries when the uninstalled
26055           # path is not listed in the libpath.  Setting hardcode_minus_L
26056           # to unsupported forces relinking
26057           hardcode_minus_L_GCJ=yes
26058           hardcode_libdir_flag_spec_GCJ='-L$libdir'
26059           hardcode_libdir_separator_GCJ=
26060           fi
26061           ;;
26062         esac
26063         shared_flag='-shared'
26064         if test "$aix_use_runtimelinking" = yes; then
26065           shared_flag="$shared_flag "'${wl}-G'
26066         fi
26067       else
26068         # not using gcc
26069         if test "$host_cpu" = ia64; then
26070         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26071         # chokes on -Wl,-G. The following line is correct:
26072           shared_flag='-G'
26073         else
26074           if test "$aix_use_runtimelinking" = yes; then
26075             shared_flag='${wl}-G'
26076           else
26077             shared_flag='${wl}-bM:SRE'
26078           fi
26079         fi
26080       fi
26081
26082       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
26083       # It seems that -bexpall does not export symbols beginning with
26084       # underscore (_), so it is better to generate a list of symbols to export.
26085       always_export_symbols_GCJ=yes
26086       if test "$aix_use_runtimelinking" = yes; then
26087         # Warning - without using the other runtime loading flags (-brtl),
26088         # -berok will link without error, but may produce a broken library.
26089         allow_undefined_flag_GCJ='-berok'
26090         # Determine the default libpath from the value encoded in an
26091         # empty executable.
26092         if test "${lt_cv_aix_libpath+set}" = set; then
26093   aix_libpath=$lt_cv_aix_libpath
26094 else
26095   if ${lt_cv_aix_libpath__GCJ+:} false; then :
26096   $as_echo_n "(cached) " >&6
26097 else
26098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26099 /* end confdefs.h.  */
26100
26101 int
26102 main ()
26103 {
26104
26105   ;
26106   return 0;
26107 }
26108 _ACEOF
26109 if ac_fn_c_try_link "$LINENO"; then :
26110
26111   lt_aix_libpath_sed='
26112       /Import File Strings/,/^$/ {
26113           /^0/ {
26114               s/^0  *\([^ ]*\) *$/\1/
26115               p
26116           }
26117       }'
26118   lt_cv_aix_libpath__GCJ=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26119   # Check for a 64-bit object if we didn't find anything.
26120   if test -z "$lt_cv_aix_libpath__GCJ"; then
26121     lt_cv_aix_libpath__GCJ=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26122   fi
26123 fi
26124 rm -f core conftest.err conftest.$ac_objext \
26125     conftest$ac_exeext conftest.$ac_ext
26126   if test -z "$lt_cv_aix_libpath__GCJ"; then
26127     lt_cv_aix_libpath__GCJ="/usr/lib:/lib"
26128   fi
26129
26130 fi
26131
26132   aix_libpath=$lt_cv_aix_libpath__GCJ
26133 fi
26134
26135         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
26136         archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
26137       else
26138         if test "$host_cpu" = ia64; then
26139           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
26140           allow_undefined_flag_GCJ="-z nodefs"
26141           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
26142         else
26143          # Determine the default libpath from the value encoded in an
26144          # empty executable.
26145          if test "${lt_cv_aix_libpath+set}" = set; then
26146   aix_libpath=$lt_cv_aix_libpath
26147 else
26148   if ${lt_cv_aix_libpath__GCJ+:} false; then :
26149   $as_echo_n "(cached) " >&6
26150 else
26151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152 /* end confdefs.h.  */
26153
26154 int
26155 main ()
26156 {
26157
26158   ;
26159   return 0;
26160 }
26161 _ACEOF
26162 if ac_fn_c_try_link "$LINENO"; then :
26163
26164   lt_aix_libpath_sed='
26165       /Import File Strings/,/^$/ {
26166           /^0/ {
26167               s/^0  *\([^ ]*\) *$/\1/
26168               p
26169           }
26170       }'
26171   lt_cv_aix_libpath__GCJ=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26172   # Check for a 64-bit object if we didn't find anything.
26173   if test -z "$lt_cv_aix_libpath__GCJ"; then
26174     lt_cv_aix_libpath__GCJ=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26175   fi
26176 fi
26177 rm -f core conftest.err conftest.$ac_objext \
26178     conftest$ac_exeext conftest.$ac_ext
26179   if test -z "$lt_cv_aix_libpath__GCJ"; then
26180     lt_cv_aix_libpath__GCJ="/usr/lib:/lib"
26181   fi
26182
26183 fi
26184
26185   aix_libpath=$lt_cv_aix_libpath__GCJ
26186 fi
26187
26188          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
26189           # Warning - without using the other run time loading flags,
26190           # -berok will link without error, but may produce a broken library.
26191           no_undefined_flag_GCJ=' ${wl}-bernotok'
26192           allow_undefined_flag_GCJ=' ${wl}-berok'
26193           if test "$with_gnu_ld" = yes; then
26194             # We only use this code for GNU lds that support --whole-archive.
26195             whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
26196           else
26197             # Exported symbols can be pulled into shared objects from archives
26198             whole_archive_flag_spec_GCJ='$convenience'
26199           fi
26200           archive_cmds_need_lc_GCJ=yes
26201           # This is similar to how AIX traditionally builds its shared libraries.
26202           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26203         fi
26204       fi
26205       ;;
26206
26207     amigaos*)
26208       case $host_cpu in
26209       powerpc)
26210             # see comment about AmigaOS4 .so support
26211             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26212             archive_expsym_cmds_GCJ=''
26213         ;;
26214       m68k)
26215             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)'
26216             hardcode_libdir_flag_spec_GCJ='-L$libdir'
26217             hardcode_minus_L_GCJ=yes
26218         ;;
26219       esac
26220       ;;
26221
26222     bsdi[45]*)
26223       export_dynamic_flag_spec_GCJ=-rdynamic
26224       ;;
26225
26226     cygwin* | mingw* | pw32* | cegcc*)
26227       # When not using gcc, we currently assume that we are using
26228       # Microsoft Visual C++.
26229       # hardcode_libdir_flag_spec is actually meaningless, as there is
26230       # no search path for DLLs.
26231       case $cc_basename in
26232       cl*)
26233         # Native MSVC
26234         hardcode_libdir_flag_spec_GCJ=' '
26235         allow_undefined_flag_GCJ=unsupported
26236         always_export_symbols_GCJ=yes
26237         file_list_spec_GCJ='@'
26238         # Tell ltmain to make .lib files, not .a files.
26239         libext=lib
26240         # Tell ltmain to make .dll files, not .so files.
26241         shrext_cmds=".dll"
26242         # FIXME: Setting linknames here is a bad hack.
26243         archive_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
26244         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
26245             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
26246           else
26247             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
26248           fi~
26249           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
26250           linknames='
26251         # The linker will not automatically build a static lib if we build a DLL.
26252         # _LT_TAGVAR(old_archive_from_new_cmds, GCJ)='true'
26253         enable_shared_with_static_runtimes_GCJ=yes
26254         exclude_expsyms_GCJ='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
26255         export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
26256         # Don't use ranlib
26257         old_postinstall_cmds_GCJ='chmod 644 $oldlib'
26258         postlink_cmds_GCJ='lt_outputfile="@OUTPUT@"~
26259           lt_tool_outputfile="@TOOL_OUTPUT@"~
26260           case $lt_outputfile in
26261             *.exe|*.EXE) ;;
26262             *)
26263               lt_outputfile="$lt_outputfile.exe"
26264               lt_tool_outputfile="$lt_tool_outputfile.exe"
26265               ;;
26266           esac~
26267           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
26268             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
26269             $RM "$lt_outputfile.manifest";
26270           fi'
26271         ;;
26272       *)
26273         # Assume MSVC wrapper
26274         hardcode_libdir_flag_spec_GCJ=' '
26275         allow_undefined_flag_GCJ=unsupported
26276         # Tell ltmain to make .lib files, not .a files.
26277         libext=lib
26278         # Tell ltmain to make .dll files, not .so files.
26279         shrext_cmds=".dll"
26280         # FIXME: Setting linknames here is a bad hack.
26281         archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
26282         # The linker will automatically build a .lib file if we build a DLL.
26283         old_archive_from_new_cmds_GCJ='true'
26284         # FIXME: Should let the user specify the lib program.
26285         old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
26286         enable_shared_with_static_runtimes_GCJ=yes
26287         ;;
26288       esac
26289       ;;
26290
26291     darwin* | rhapsody*)
26292
26293
26294   archive_cmds_need_lc_GCJ=no
26295   hardcode_direct_GCJ=no
26296   hardcode_automatic_GCJ=yes
26297   hardcode_shlibpath_var_GCJ=unsupported
26298   if test "$lt_cv_ld_force_load" = "yes"; then
26299     whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
26300
26301   else
26302     whole_archive_flag_spec_GCJ=''
26303   fi
26304   link_all_deplibs_GCJ=yes
26305   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
26306   case $cc_basename in
26307      ifort*) _lt_dar_can_shared=yes ;;
26308      *) _lt_dar_can_shared=$GCC ;;
26309   esac
26310   if test "$_lt_dar_can_shared" = "yes"; then
26311     output_verbose_link_cmd=func_echo_all
26312     archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
26313     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
26314     archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
26315     module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
26316
26317   else
26318   ld_shlibs_GCJ=no
26319   fi
26320
26321       ;;
26322
26323     dgux*)
26324       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26325       hardcode_libdir_flag_spec_GCJ='-L$libdir'
26326       hardcode_shlibpath_var_GCJ=no
26327       ;;
26328
26329     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26330     # support.  Future versions do this automatically, but an explicit c++rt0.o
26331     # does not break anything, and helps significantly (at the cost of a little
26332     # extra space).
26333     freebsd2.2*)
26334       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26335       hardcode_libdir_flag_spec_GCJ='-R$libdir'
26336       hardcode_direct_GCJ=yes
26337       hardcode_shlibpath_var_GCJ=no
26338       ;;
26339
26340     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26341     freebsd2.*)
26342       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26343       hardcode_direct_GCJ=yes
26344       hardcode_minus_L_GCJ=yes
26345       hardcode_shlibpath_var_GCJ=no
26346       ;;
26347
26348     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26349     freebsd* | dragonfly*)
26350       archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26351       hardcode_libdir_flag_spec_GCJ='-R$libdir'
26352       hardcode_direct_GCJ=yes
26353       hardcode_shlibpath_var_GCJ=no
26354       ;;
26355
26356     hpux9*)
26357       if test "$GCC" = yes; then
26358         archive_cmds_GCJ='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26359       else
26360         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'
26361       fi
26362       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26363       hardcode_libdir_separator_GCJ=:
26364       hardcode_direct_GCJ=yes
26365
26366       # hardcode_minus_L: Not really in the search PATH,
26367       # but as the default location of the library.
26368       hardcode_minus_L_GCJ=yes
26369       export_dynamic_flag_spec_GCJ='${wl}-E'
26370       ;;
26371
26372     hpux10*)
26373       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
26374         archive_cmds_GCJ='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26375       else
26376         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26377       fi
26378       if test "$with_gnu_ld" = no; then
26379         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26380         hardcode_libdir_separator_GCJ=:
26381         hardcode_direct_GCJ=yes
26382         hardcode_direct_absolute_GCJ=yes
26383         export_dynamic_flag_spec_GCJ='${wl}-E'
26384         # hardcode_minus_L: Not really in the search PATH,
26385         # but as the default location of the library.
26386         hardcode_minus_L_GCJ=yes
26387       fi
26388       ;;
26389
26390     hpux11*)
26391       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
26392         case $host_cpu in
26393         hppa*64*)
26394           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26395           ;;
26396         ia64*)
26397           archive_cmds_GCJ='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26398           ;;
26399         *)
26400           archive_cmds_GCJ='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26401           ;;
26402         esac
26403       else
26404         case $host_cpu in
26405         hppa*64*)
26406           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26407           ;;
26408         ia64*)
26409           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26410           ;;
26411         *)
26412         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26413           ;;
26414         esac
26415       fi
26416       if test "$with_gnu_ld" = no; then
26417         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26418         hardcode_libdir_separator_GCJ=:
26419
26420         case $host_cpu in
26421         hppa*64*|ia64*)
26422           hardcode_direct_GCJ=no
26423           hardcode_shlibpath_var_GCJ=no
26424           ;;
26425         *)
26426           hardcode_direct_GCJ=yes
26427           hardcode_direct_absolute_GCJ=yes
26428           export_dynamic_flag_spec_GCJ='${wl}-E'
26429
26430           # hardcode_minus_L: Not really in the search PATH,
26431           # but as the default location of the library.
26432           hardcode_minus_L_GCJ=yes
26433           ;;
26434         esac
26435       fi
26436       ;;
26437
26438     irix5* | irix6* | nonstopux*)
26439       if test "$GCC" = yes; then
26440         archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26441         # Try to use the -exported_symbol ld option, if it does not
26442         # work, assume that -exports_file does not work either and
26443         # implicitly export all symbols.
26444         # This should be the same for all languages, so no per-tag cache variable.
26445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
26446 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
26447 if ${lt_cv_irix_exported_symbol+:} false; then :
26448   $as_echo_n "(cached) " >&6
26449 else
26450   save_LDFLAGS="$LDFLAGS"
26451            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
26452            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26453 /* end confdefs.h.  */
26454 int foo (void) { return 0; }
26455 _ACEOF
26456 if ac_fn_c_try_link "$LINENO"; then :
26457   lt_cv_irix_exported_symbol=yes
26458 else
26459   lt_cv_irix_exported_symbol=no
26460 fi
26461 rm -f core conftest.err conftest.$ac_objext \
26462     conftest$ac_exeext conftest.$ac_ext
26463            LDFLAGS="$save_LDFLAGS"
26464 fi
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
26466 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
26467         if test "$lt_cv_irix_exported_symbol" = yes; then
26468           archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
26469         fi
26470       else
26471         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26472         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
26473       fi
26474       archive_cmds_need_lc_GCJ='no'
26475       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26476       hardcode_libdir_separator_GCJ=:
26477       inherit_rpath_GCJ=yes
26478       link_all_deplibs_GCJ=yes
26479       ;;
26480
26481     netbsd*)
26482       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26483         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
26484       else
26485         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
26486       fi
26487       hardcode_libdir_flag_spec_GCJ='-R$libdir'
26488       hardcode_direct_GCJ=yes
26489       hardcode_shlibpath_var_GCJ=no
26490       ;;
26491
26492     newsos6)
26493       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26494       hardcode_direct_GCJ=yes
26495       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26496       hardcode_libdir_separator_GCJ=:
26497       hardcode_shlibpath_var_GCJ=no
26498       ;;
26499
26500     *nto* | *qnx*)
26501       ;;
26502
26503     openbsd*)
26504       if test -f /usr/libexec/ld.so; then
26505         hardcode_direct_GCJ=yes
26506         hardcode_shlibpath_var_GCJ=no
26507         hardcode_direct_absolute_GCJ=yes
26508         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26509           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26510           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26511           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26512           export_dynamic_flag_spec_GCJ='${wl}-E'
26513         else
26514           case $host_os in
26515            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26516              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26517              hardcode_libdir_flag_spec_GCJ='-R$libdir'
26518              ;;
26519            *)
26520              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26521              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26522              ;;
26523           esac
26524         fi
26525       else
26526         ld_shlibs_GCJ=no
26527       fi
26528       ;;
26529
26530     os2*)
26531       hardcode_libdir_flag_spec_GCJ='-L$libdir'
26532       hardcode_minus_L_GCJ=yes
26533       allow_undefined_flag_GCJ=unsupported
26534       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'
26535       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26536       ;;
26537
26538     osf3*)
26539       if test "$GCC" = yes; then
26540         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
26541         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26542       else
26543         allow_undefined_flag_GCJ=' -expect_unresolved \*'
26544         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26545       fi
26546       archive_cmds_need_lc_GCJ='no'
26547       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26548       hardcode_libdir_separator_GCJ=:
26549       ;;
26550
26551     osf4* | osf5*)      # as osf3* with the addition of -msym flag
26552       if test "$GCC" = yes; then
26553         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
26554         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26555         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26556       else
26557         allow_undefined_flag_GCJ=' -expect_unresolved \*'
26558         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26559         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
26560         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
26561
26562         # Both c and cxx compiler support -rpath directly
26563         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
26564       fi
26565       archive_cmds_need_lc_GCJ='no'
26566       hardcode_libdir_separator_GCJ=:
26567       ;;
26568
26569     solaris*)
26570       no_undefined_flag_GCJ=' -z defs'
26571       if test "$GCC" = yes; then
26572         wlarc='${wl}'
26573         archive_cmds_GCJ='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26574         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26575           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26576       else
26577         case `$CC -V 2>&1` in
26578         *"Compilers 5.0"*)
26579           wlarc=''
26580           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26581           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26582           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
26583           ;;
26584         *)
26585           wlarc='${wl}'
26586           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
26587           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26588           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26589           ;;
26590         esac
26591       fi
26592       hardcode_libdir_flag_spec_GCJ='-R$libdir'
26593       hardcode_shlibpath_var_GCJ=no
26594       case $host_os in
26595       solaris2.[0-5] | solaris2.[0-5].*) ;;
26596       *)
26597         # The compiler driver will combine and reorder linker options,
26598         # but understands `-z linker_flag'.  GCC discards it without `$wl',
26599         # but is careful enough not to reorder.
26600         # Supported since Solaris 2.6 (maybe 2.5.1?)
26601         if test "$GCC" = yes; then
26602           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
26603         else
26604           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
26605         fi
26606         ;;
26607       esac
26608       link_all_deplibs_GCJ=yes
26609       ;;
26610
26611     sunos4*)
26612       if test "x$host_vendor" = xsequent; then
26613         # Use $CC to link under sequent, because it throws in some extra .o
26614         # files that make .init and .fini sections work.
26615         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26616       else
26617         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26618       fi
26619       hardcode_libdir_flag_spec_GCJ='-L$libdir'
26620       hardcode_direct_GCJ=yes
26621       hardcode_minus_L_GCJ=yes
26622       hardcode_shlibpath_var_GCJ=no
26623       ;;
26624
26625     sysv4)
26626       case $host_vendor in
26627         sni)
26628           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26629           hardcode_direct_GCJ=yes # is this really true???
26630         ;;
26631         siemens)
26632           ## LD is ld it makes a PLAMLIB
26633           ## CC just makes a GrossModule.
26634           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26635           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
26636           hardcode_direct_GCJ=no
26637         ;;
26638         motorola)
26639           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26640           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
26641         ;;
26642       esac
26643       runpath_var='LD_RUN_PATH'
26644       hardcode_shlibpath_var_GCJ=no
26645       ;;
26646
26647     sysv4.3*)
26648       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26649       hardcode_shlibpath_var_GCJ=no
26650       export_dynamic_flag_spec_GCJ='-Bexport'
26651       ;;
26652
26653     sysv4*MP*)
26654       if test -d /usr/nec; then
26655         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26656         hardcode_shlibpath_var_GCJ=no
26657         runpath_var=LD_RUN_PATH
26658         hardcode_runpath_var=yes
26659         ld_shlibs_GCJ=yes
26660       fi
26661       ;;
26662
26663     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26664       no_undefined_flag_GCJ='${wl}-z,text'
26665       archive_cmds_need_lc_GCJ=no
26666       hardcode_shlibpath_var_GCJ=no
26667       runpath_var='LD_RUN_PATH'
26668
26669       if test "$GCC" = yes; then
26670         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26671         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26672       else
26673         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26674         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26675       fi
26676       ;;
26677
26678     sysv5* | sco3.2v5* | sco5v6*)
26679       # Note: We can NOT use -z defs as we might desire, because we do not
26680       # link with -lc, and that would cause any symbols used from libc to
26681       # always be unresolved, which means just about no library would
26682       # ever link correctly.  If we're not using GNU ld we use -z text
26683       # though, which does catch some bad symbols but isn't as heavy-handed
26684       # as -z defs.
26685       no_undefined_flag_GCJ='${wl}-z,text'
26686       allow_undefined_flag_GCJ='${wl}-z,nodefs'
26687       archive_cmds_need_lc_GCJ=no
26688       hardcode_shlibpath_var_GCJ=no
26689       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
26690       hardcode_libdir_separator_GCJ=':'
26691       link_all_deplibs_GCJ=yes
26692       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26693       runpath_var='LD_RUN_PATH'
26694
26695       if test "$GCC" = yes; then
26696         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26697         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26698       else
26699         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26700         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26701       fi
26702       ;;
26703
26704     uts4*)
26705       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26706       hardcode_libdir_flag_spec_GCJ='-L$libdir'
26707       hardcode_shlibpath_var_GCJ=no
26708       ;;
26709
26710     *)
26711       ld_shlibs_GCJ=no
26712       ;;
26713     esac
26714
26715     if test x$host_vendor = xsni; then
26716       case $host in
26717       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26718         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
26719         ;;
26720       esac
26721     fi
26722   fi
26723
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
26725 $as_echo "$ld_shlibs_GCJ" >&6; }
26726 test "$ld_shlibs_GCJ" = no && can_build_shared=no
26727
26728 with_gnu_ld_GCJ=$with_gnu_ld
26729
26730
26731
26732
26733
26734
26735 #
26736 # Do we need to explicitly link libc?
26737 #
26738 case "x$archive_cmds_need_lc_GCJ" in
26739 x|xyes)
26740   # Assume -lc should be added
26741   archive_cmds_need_lc_GCJ=yes
26742
26743   if test "$enable_shared" = yes && test "$GCC" = yes; then
26744     case $archive_cmds_GCJ in
26745     *'~'*)
26746       # FIXME: we may have to deal with multi-command sequences.
26747       ;;
26748     '$CC '*)
26749       # Test whether the compiler implicitly links with -lc since on some
26750       # systems, -lgcc has to come before -lc. If gcc already passes -lc
26751       # to ld, don't add -lc before -lgcc.
26752       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
26753 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26754 if ${lt_cv_archive_cmds_need_lc_GCJ+:} false; then :
26755   $as_echo_n "(cached) " >&6
26756 else
26757   $RM conftest*
26758         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26759
26760         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26761   (eval $ac_compile) 2>&5
26762   ac_status=$?
26763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26764   test $ac_status = 0; } 2>conftest.err; then
26765           soname=conftest
26766           lib=conftest
26767           libobjs=conftest.$ac_objext
26768           deplibs=
26769           wl=$lt_prog_compiler_wl_GCJ
26770           pic_flag=$lt_prog_compiler_pic_GCJ
26771           compiler_flags=-v
26772           linker_flags=-v
26773           verstring=
26774           output_objdir=.
26775           libname=conftest
26776           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
26777           allow_undefined_flag_GCJ=
26778           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
26779   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
26780   ac_status=$?
26781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26782   test $ac_status = 0; }
26783           then
26784             lt_cv_archive_cmds_need_lc_GCJ=no
26785           else
26786             lt_cv_archive_cmds_need_lc_GCJ=yes
26787           fi
26788           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
26789         else
26790           cat conftest.err 1>&5
26791         fi
26792         $RM conftest*
26793
26794 fi
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
26796 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
26797       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
26798       ;;
26799     esac
26800   fi
26801   ;;
26802 esac
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
26866 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
26867 hardcode_action_GCJ=
26868 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
26869    test -n "$runpath_var_GCJ" ||
26870    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26871
26872   # We can hardcode non-existent directories.
26873   if test "$hardcode_direct_GCJ" != no &&
26874      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26875      # have to relink, otherwise we might link with an installed library
26876      # when we should be linking with a yet-to-be-installed one
26877      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26878      test "$hardcode_minus_L_GCJ" != no; then
26879     # Linking always hardcodes the temporary library directory.
26880     hardcode_action_GCJ=relink
26881   else
26882     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26883     hardcode_action_GCJ=immediate
26884   fi
26885 else
26886   # We cannot hardcode anything, or else we can only hardcode existing
26887   # directories.
26888   hardcode_action_GCJ=unsupported
26889 fi
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
26891 $as_echo "$hardcode_action_GCJ" >&6; }
26892
26893 if test "$hardcode_action_GCJ" = relink ||
26894    test "$inherit_rpath_GCJ" = yes; then
26895   # Fast installation is not supported
26896   enable_fast_install=no
26897 elif test "$shlibpath_overrides_runpath" = yes ||
26898      test "$enable_shared" = no; then
26899   # Fast installation is not necessary
26900   enable_fast_install=needless
26901 fi
26902
26903
26904
26905
26906
26907
26908
26909 fi
26910
26911 ac_ext=c
26912 ac_cpp='$CPP $CPPFLAGS'
26913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26916
26917
26918 GCC=$lt_save_GCC
26919 CC=$lt_save_CC
26920 CFLAGS=$lt_save_CFLAGS
26921
26922 if test -n "$ac_tool_prefix"; then
26923   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
26924 set dummy ${ac_tool_prefix}windres; ac_word=$2
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26926 $as_echo_n "checking for $ac_word... " >&6; }
26927 if ${ac_cv_prog_RC+:} false; then :
26928   $as_echo_n "(cached) " >&6
26929 else
26930   if test -n "$RC"; then
26931   ac_cv_prog_RC="$RC" # Let the user override the test.
26932 else
26933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26934 for as_dir in $PATH
26935 do
26936   IFS=$as_save_IFS
26937   test -z "$as_dir" && as_dir=.
26938     for ac_exec_ext in '' $ac_executable_extensions; do
26939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26940     ac_cv_prog_RC="${ac_tool_prefix}windres"
26941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26942     break 2
26943   fi
26944 done
26945   done
26946 IFS=$as_save_IFS
26947
26948 fi
26949 fi
26950 RC=$ac_cv_prog_RC
26951 if test -n "$RC"; then
26952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
26953 $as_echo "$RC" >&6; }
26954 else
26955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26956 $as_echo "no" >&6; }
26957 fi
26958
26959
26960 fi
26961 if test -z "$ac_cv_prog_RC"; then
26962   ac_ct_RC=$RC
26963   # Extract the first word of "windres", so it can be a program name with args.
26964 set dummy windres; ac_word=$2
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26966 $as_echo_n "checking for $ac_word... " >&6; }
26967 if ${ac_cv_prog_ac_ct_RC+:} false; then :
26968   $as_echo_n "(cached) " >&6
26969 else
26970   if test -n "$ac_ct_RC"; then
26971   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
26972 else
26973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26974 for as_dir in $PATH
26975 do
26976   IFS=$as_save_IFS
26977   test -z "$as_dir" && as_dir=.
26978     for ac_exec_ext in '' $ac_executable_extensions; do
26979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26980     ac_cv_prog_ac_ct_RC="windres"
26981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26982     break 2
26983   fi
26984 done
26985   done
26986 IFS=$as_save_IFS
26987
26988 fi
26989 fi
26990 ac_ct_RC=$ac_cv_prog_ac_ct_RC
26991 if test -n "$ac_ct_RC"; then
26992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
26993 $as_echo "$ac_ct_RC" >&6; }
26994 else
26995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26996 $as_echo "no" >&6; }
26997 fi
26998
26999   if test "x$ac_ct_RC" = x; then
27000     RC=""
27001   else
27002     case $cross_compiling:$ac_tool_warned in
27003 yes:)
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27006 ac_tool_warned=yes ;;
27007 esac
27008     RC=$ac_ct_RC
27009   fi
27010 else
27011   RC="$ac_cv_prog_RC"
27012 fi
27013
27014
27015
27016
27017 # Source file extension for RC test sources.
27018 ac_ext=rc
27019
27020 # Object file extension for compiled RC test sources.
27021 objext=o
27022 objext_RC=$objext
27023
27024 # Code to be used in simple compile tests
27025 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
27026
27027 # Code to be used in simple link tests
27028 lt_simple_link_test_code="$lt_simple_compile_test_code"
27029
27030 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27031
27032
27033
27034
27035
27036
27037 # If no C compiler was specified, use CC.
27038 LTCC=${LTCC-"$CC"}
27039
27040 # If no C compiler flags were specified, use CFLAGS.
27041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27042
27043 # Allow CC to be a program name with arguments.
27044 compiler=$CC
27045
27046
27047 # save warnings/boilerplate of simple test code
27048 ac_outfile=conftest.$ac_objext
27049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27051 _lt_compiler_boilerplate=`cat conftest.err`
27052 $RM conftest*
27053
27054 ac_outfile=conftest.$ac_objext
27055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27057 _lt_linker_boilerplate=`cat conftest.err`
27058 $RM -r conftest*
27059
27060
27061 # Allow CC to be a program name with arguments.
27062 lt_save_CC="$CC"
27063 lt_save_CFLAGS=$CFLAGS
27064 lt_save_GCC=$GCC
27065 GCC=
27066 CC=${RC-"windres"}
27067 CFLAGS=
27068 compiler=$CC
27069 compiler_RC=$CC
27070 for cc_temp in $compiler""; do
27071   case $cc_temp in
27072     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27073     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27074     \-*) ;;
27075     *) break;;
27076   esac
27077 done
27078 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27079
27080 lt_cv_prog_compiler_c_o_RC=yes
27081
27082 if test -n "$compiler"; then
27083   :
27084
27085
27086
27087 fi
27088
27089 GCC=$lt_save_GCC
27090 ac_ext=c
27091 ac_cpp='$CPP $CPPFLAGS'
27092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27095
27096 CC=$lt_save_CC
27097 CFLAGS=$lt_save_CFLAGS
27098
27099
27100 # Ensure the correct file name (and path) conversion function
27101 # is available to the test suite.
27102
27103 ## --------------------------- ##
27104 ## Work out which tests to run ##
27105 ## --------------------------- ##
27106  if test -n "$compiler_CXX"; then
27107   HAVE_CXX_TRUE=
27108   HAVE_CXX_FALSE='#'
27109 else
27110   HAVE_CXX_TRUE='#'
27111   HAVE_CXX_FALSE=
27112 fi
27113
27114  if test -n "$compiler_F77"; then
27115   HAVE_F77_TRUE=
27116   HAVE_F77_FALSE='#'
27117 else
27118   HAVE_F77_TRUE='#'
27119   HAVE_F77_FALSE=
27120 fi
27121
27122  if test -n "$compiler_FC"; then
27123   HAVE_FC_TRUE=
27124   HAVE_FC_FALSE='#'
27125 else
27126   HAVE_FC_TRUE='#'
27127   HAVE_FC_FALSE=
27128 fi
27129
27130  if test -n "$compiler_GCJ"; then
27131   HAVE_GCJ_TRUE=
27132   HAVE_GCJ_FALSE='#'
27133 else
27134   HAVE_GCJ_TRUE='#'
27135   HAVE_GCJ_FALSE=
27136 fi
27137
27138  if test -n "$compiler_RC"; then
27139   HAVE_RC_TRUE=
27140   HAVE_RC_FALSE='#'
27141 else
27142   HAVE_RC_TRUE='#'
27143   HAVE_RC_FALSE=
27144 fi
27145
27146
27147 ## Whether `make' supports order-only prerequisites.
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports order-only prerequisites" >&5
27149 $as_echo_n "checking whether ${MAKE-make} supports order-only prerequisites... " >&6; }
27150 if ${lt_cv_make_order_only+:} false; then :
27151   $as_echo_n "(cached) " >&6
27152 else
27153   mkdir conftest.dir
27154    cd conftest.dir
27155    touch b
27156    touch a
27157 cat >confmk << 'END'
27158 a: b | c
27159 a b c:
27160         touch $@
27161 END
27162    touch c
27163    if ${MAKE-make} -s -q -f confmk >/dev/null 2>&1; then
27164      lt_cv_make_order_only=yes
27165    else
27166      lt_cv_make_order_only=no
27167    fi
27168    cd ..
27169    rm -rf conftest.dir
27170
27171 fi
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_make_order_only" >&5
27173 $as_echo "$lt_cv_make_order_only" >&6; }
27174 if test $lt_cv_make_order_only = yes; then
27175   ORDER='|'
27176 else
27177   ORDER=''
27178 fi
27179
27180
27181 ## ------------- ##
27182 ## Documentation ##
27183 ## ------------- ##
27184
27185 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
27186
27187
27188 ## -------- ##
27189 ## Outputs. ##
27190 ## -------- ##
27191 ac_config_files="$ac_config_files Makefile"
27192
27193 cat >confcache <<\_ACEOF
27194 # This file is a shell script that caches the results of configure
27195 # tests run on this system so they can be shared between configure
27196 # scripts and configure runs, see configure's option --config-cache.
27197 # It is not useful on other systems.  If it contains results you don't
27198 # want to keep, you may remove or edit it.
27199 #
27200 # config.status only pays attention to the cache file if you give it
27201 # the --recheck option to rerun configure.
27202 #
27203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27205 # following values.
27206
27207 _ACEOF
27208
27209 # The following way of writing the cache mishandles newlines in values,
27210 # but we know of no workaround that is simple, portable, and efficient.
27211 # So, we kill variables containing newlines.
27212 # Ultrix sh set writes to stderr and can't be redirected directly,
27213 # and sets the high bit in the cache file unless we assign to the vars.
27214 (
27215   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27216     eval ac_val=\$$ac_var
27217     case $ac_val in #(
27218     *${as_nl}*)
27219       case $ac_var in #(
27220       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27222       esac
27223       case $ac_var in #(
27224       _ | IFS | as_nl) ;; #(
27225       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27226       *) { eval $ac_var=; unset $ac_var;} ;;
27227       esac ;;
27228     esac
27229   done
27230
27231   (set) 2>&1 |
27232     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27233     *${as_nl}ac_space=\ *)
27234       # `set' does not quote correctly, so add quotes: double-quote
27235       # substitution turns \\\\ into \\, and sed turns \\ into \.
27236       sed -n \
27237         "s/'/'\\\\''/g;
27238           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27239       ;; #(
27240     *)
27241       # `set' quotes correctly as required by POSIX, so do not add quotes.
27242       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27243       ;;
27244     esac |
27245     sort
27246 ) |
27247   sed '
27248      /^ac_cv_env_/b end
27249      t clear
27250      :clear
27251      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27252      t end
27253      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27254      :end' >>confcache
27255 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27256   if test -w "$cache_file"; then
27257     if test "x$cache_file" != "x/dev/null"; then
27258       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27259 $as_echo "$as_me: updating cache $cache_file" >&6;}
27260       if test ! -f "$cache_file" || test -h "$cache_file"; then
27261         cat confcache >"$cache_file"
27262       else
27263         case $cache_file in #(
27264         */* | ?:*)
27265           mv -f confcache "$cache_file"$$ &&
27266           mv -f "$cache_file"$$ "$cache_file" ;; #(
27267         *)
27268           mv -f confcache "$cache_file" ;;
27269         esac
27270       fi
27271     fi
27272   else
27273     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27274 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27275   fi
27276 fi
27277 rm -f confcache
27278
27279 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27280 # Let make expand exec_prefix.
27281 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27282
27283 DEFS=-DHAVE_CONFIG_H
27284
27285 ac_libobjs=
27286 ac_ltlibobjs=
27287 U=
27288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27289   # 1. Remove the extension, and $U if already installed.
27290   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27291   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27292   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27293   #    will be set to the directory where LIBOBJS objects are built.
27294   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27295   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27296 done
27297 LIBOBJS=$ac_libobjs
27298
27299 LTLIBOBJS=$ac_ltlibobjs
27300
27301
27302  if test -n "$EXEEXT"; then
27303   am__EXEEXT_TRUE=
27304   am__EXEEXT_FALSE='#'
27305 else
27306   am__EXEEXT_TRUE='#'
27307   am__EXEEXT_FALSE=
27308 fi
27309
27310 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27311   as_fn_error $? "conditional \"AMDEP\" was never defined.
27312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27313 fi
27314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27315   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27317 fi
27318 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
27319   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
27320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27321 fi
27322 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
27323   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
27324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27325 fi
27326 LT_CONFIG_H=config.h
27327 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27328   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
27329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27330 fi
27331 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
27332   as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
27333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27334 fi
27335 if test -z "${HAVE_F77_TRUE}" && test -z "${HAVE_F77_FALSE}"; then
27336   as_fn_error $? "conditional \"HAVE_F77\" was never defined.
27337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27338 fi
27339 if test -z "${HAVE_FC_TRUE}" && test -z "${HAVE_FC_FALSE}"; then
27340   as_fn_error $? "conditional \"HAVE_FC\" was never defined.
27341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27342 fi
27343 if test -z "${HAVE_GCJ_TRUE}" && test -z "${HAVE_GCJ_FALSE}"; then
27344   as_fn_error $? "conditional \"HAVE_GCJ\" was never defined.
27345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27346 fi
27347 if test -z "${HAVE_RC_TRUE}" && test -z "${HAVE_RC_FALSE}"; then
27348   as_fn_error $? "conditional \"HAVE_RC\" was never defined.
27349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27350 fi
27351
27352 : "${CONFIG_STATUS=./config.status}"
27353 ac_write_fail=0
27354 ac_clean_files_save=$ac_clean_files
27355 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27358 as_write_fail=0
27359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27360 #! $SHELL
27361 # Generated by $as_me.
27362 # Run this file to recreate the current configuration.
27363 # Compiler output produced by configure, useful for debugging
27364 # configure, is in config.log if it exists.
27365
27366 debug=false
27367 ac_cs_recheck=false
27368 ac_cs_silent=false
27369
27370 SHELL=\${CONFIG_SHELL-$SHELL}
27371 export SHELL
27372 _ASEOF
27373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27374 ## -------------------- ##
27375 ## M4sh Initialization. ##
27376 ## -------------------- ##
27377
27378 # Be more Bourne compatible
27379 DUALCASE=1; export DUALCASE # for MKS sh
27380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27381   emulate sh
27382   NULLCMD=:
27383   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27384   # is contrary to our usage.  Disable this feature.
27385   alias -g '${1+"$@"}'='"$@"'
27386   setopt NO_GLOB_SUBST
27387 else
27388   case `(set -o) 2>/dev/null` in #(
27389   *posix*) :
27390     set -o posix ;; #(
27391   *) :
27392      ;;
27393 esac
27394 fi
27395
27396
27397 as_nl='
27398 '
27399 export as_nl
27400 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27401 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27404 # Prefer a ksh shell builtin over an external printf program on Solaris,
27405 # but without wasting forks for bash or zsh.
27406 if test -z "$BASH_VERSION$ZSH_VERSION" \
27407     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27408   as_echo='print -r --'
27409   as_echo_n='print -rn --'
27410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27411   as_echo='printf %s\n'
27412   as_echo_n='printf %s'
27413 else
27414   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27415     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27416     as_echo_n='/usr/ucb/echo -n'
27417   else
27418     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27419     as_echo_n_body='eval
27420       arg=$1;
27421       case $arg in #(
27422       *"$as_nl"*)
27423         expr "X$arg" : "X\\(.*\\)$as_nl";
27424         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27425       esac;
27426       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27427     '
27428     export as_echo_n_body
27429     as_echo_n='sh -c $as_echo_n_body as_echo'
27430   fi
27431   export as_echo_body
27432   as_echo='sh -c $as_echo_body as_echo'
27433 fi
27434
27435 # The user is always right.
27436 if test "${PATH_SEPARATOR+set}" != set; then
27437   PATH_SEPARATOR=:
27438   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27439     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27440       PATH_SEPARATOR=';'
27441   }
27442 fi
27443
27444
27445 # IFS
27446 # We need space, tab and new line, in precisely that order.  Quoting is
27447 # there to prevent editors from complaining about space-tab.
27448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27449 # splitting by setting IFS to empty value.)
27450 IFS=" ""        $as_nl"
27451
27452 # Find who we are.  Look in the path if we contain no directory separator.
27453 as_myself=
27454 case $0 in #((
27455   *[\\/]* ) as_myself=$0 ;;
27456   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27457 for as_dir in $PATH
27458 do
27459   IFS=$as_save_IFS
27460   test -z "$as_dir" && as_dir=.
27461     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27462   done
27463 IFS=$as_save_IFS
27464
27465      ;;
27466 esac
27467 # We did not find ourselves, most probably we were run as `sh COMMAND'
27468 # in which case we are not to be found in the path.
27469 if test "x$as_myself" = x; then
27470   as_myself=$0
27471 fi
27472 if test ! -f "$as_myself"; then
27473   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27474   exit 1
27475 fi
27476
27477 # Unset variables that we do not need and which cause bugs (e.g. in
27478 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27479 # suppresses any "Segmentation fault" message there.  '((' could
27480 # trigger a bug in pdksh 5.2.14.
27481 for as_var in BASH_ENV ENV MAIL MAILPATH
27482 do eval test x\${$as_var+set} = xset \
27483   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27484 done
27485 PS1='$ '
27486 PS2='> '
27487 PS4='+ '
27488
27489 # NLS nuisances.
27490 LC_ALL=C
27491 export LC_ALL
27492 LANGUAGE=C
27493 export LANGUAGE
27494
27495 # CDPATH.
27496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27497
27498
27499 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27500 # ----------------------------------------
27501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27503 # script with STATUS, using 1 if that was 0.
27504 as_fn_error ()
27505 {
27506   as_status=$1; test $as_status -eq 0 && as_status=1
27507   if test "$4"; then
27508     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27509     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27510   fi
27511   $as_echo "$as_me: error: $2" >&2
27512   as_fn_exit $as_status
27513 } # as_fn_error
27514
27515
27516 # as_fn_set_status STATUS
27517 # -----------------------
27518 # Set $? to STATUS, without forking.
27519 as_fn_set_status ()
27520 {
27521   return $1
27522 } # as_fn_set_status
27523
27524 # as_fn_exit STATUS
27525 # -----------------
27526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27527 as_fn_exit ()
27528 {
27529   set +e
27530   as_fn_set_status $1
27531   exit $1
27532 } # as_fn_exit
27533
27534 # as_fn_unset VAR
27535 # ---------------
27536 # Portably unset VAR.
27537 as_fn_unset ()
27538 {
27539   { eval $1=; unset $1;}
27540 }
27541 as_unset=as_fn_unset
27542 # as_fn_append VAR VALUE
27543 # ----------------------
27544 # Append the text in VALUE to the end of the definition contained in VAR. Take
27545 # advantage of any shell optimizations that allow amortized linear growth over
27546 # repeated appends, instead of the typical quadratic growth present in naive
27547 # implementations.
27548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27549   eval 'as_fn_append ()
27550   {
27551     eval $1+=\$2
27552   }'
27553 else
27554   as_fn_append ()
27555   {
27556     eval $1=\$$1\$2
27557   }
27558 fi # as_fn_append
27559
27560 # as_fn_arith ARG...
27561 # ------------------
27562 # Perform arithmetic evaluation on the ARGs, and store the result in the
27563 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27564 # must be portable across $(()) and expr.
27565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27566   eval 'as_fn_arith ()
27567   {
27568     as_val=$(( $* ))
27569   }'
27570 else
27571   as_fn_arith ()
27572   {
27573     as_val=`expr "$@" || test $? -eq 1`
27574   }
27575 fi # as_fn_arith
27576
27577
27578 if expr a : '\(a\)' >/dev/null 2>&1 &&
27579    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27580   as_expr=expr
27581 else
27582   as_expr=false
27583 fi
27584
27585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27586   as_basename=basename
27587 else
27588   as_basename=false
27589 fi
27590
27591 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27592   as_dirname=dirname
27593 else
27594   as_dirname=false
27595 fi
27596
27597 as_me=`$as_basename -- "$0" ||
27598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27599          X"$0" : 'X\(//\)$' \| \
27600          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27601 $as_echo X/"$0" |
27602     sed '/^.*\/\([^/][^/]*\)\/*$/{
27603             s//\1/
27604             q
27605           }
27606           /^X\/\(\/\/\)$/{
27607             s//\1/
27608             q
27609           }
27610           /^X\/\(\/\).*/{
27611             s//\1/
27612             q
27613           }
27614           s/.*/./; q'`
27615
27616 # Avoid depending upon Character Ranges.
27617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27620 as_cr_digits='0123456789'
27621 as_cr_alnum=$as_cr_Letters$as_cr_digits
27622
27623 ECHO_C= ECHO_N= ECHO_T=
27624 case `echo -n x` in #(((((
27625 -n*)
27626   case `echo 'xy\c'` in
27627   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27628   xy)  ECHO_C='\c';;
27629   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27630        ECHO_T=' ';;
27631   esac;;
27632 *)
27633   ECHO_N='-n';;
27634 esac
27635
27636 rm -f conf$$ conf$$.exe conf$$.file
27637 if test -d conf$$.dir; then
27638   rm -f conf$$.dir/conf$$.file
27639 else
27640   rm -f conf$$.dir
27641   mkdir conf$$.dir 2>/dev/null
27642 fi
27643 if (echo >conf$$.file) 2>/dev/null; then
27644   if ln -s conf$$.file conf$$ 2>/dev/null; then
27645     as_ln_s='ln -s'
27646     # ... but there are two gotchas:
27647     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27648     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27649     # In both cases, we have to default to `cp -p'.
27650     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27651       as_ln_s='cp -p'
27652   elif ln conf$$.file conf$$ 2>/dev/null; then
27653     as_ln_s=ln
27654   else
27655     as_ln_s='cp -p'
27656   fi
27657 else
27658   as_ln_s='cp -p'
27659 fi
27660 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27661 rmdir conf$$.dir 2>/dev/null
27662
27663
27664 # as_fn_mkdir_p
27665 # -------------
27666 # Create "$as_dir" as a directory, including parents if necessary.
27667 as_fn_mkdir_p ()
27668 {
27669
27670   case $as_dir in #(
27671   -*) as_dir=./$as_dir;;
27672   esac
27673   test -d "$as_dir" || eval $as_mkdir_p || {
27674     as_dirs=
27675     while :; do
27676       case $as_dir in #(
27677       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27678       *) as_qdir=$as_dir;;
27679       esac
27680       as_dirs="'$as_qdir' $as_dirs"
27681       as_dir=`$as_dirname -- "$as_dir" ||
27682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27683          X"$as_dir" : 'X\(//\)[^/]' \| \
27684          X"$as_dir" : 'X\(//\)$' \| \
27685          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27686 $as_echo X"$as_dir" |
27687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27688             s//\1/
27689             q
27690           }
27691           /^X\(\/\/\)[^/].*/{
27692             s//\1/
27693             q
27694           }
27695           /^X\(\/\/\)$/{
27696             s//\1/
27697             q
27698           }
27699           /^X\(\/\).*/{
27700             s//\1/
27701             q
27702           }
27703           s/.*/./; q'`
27704       test -d "$as_dir" && break
27705     done
27706     test -z "$as_dirs" || eval "mkdir $as_dirs"
27707   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27708
27709
27710 } # as_fn_mkdir_p
27711 if mkdir -p . 2>/dev/null; then
27712   as_mkdir_p='mkdir -p "$as_dir"'
27713 else
27714   test -d ./-p && rmdir ./-p
27715   as_mkdir_p=false
27716 fi
27717
27718 if test -x / >/dev/null 2>&1; then
27719   as_test_x='test -x'
27720 else
27721   if ls -dL / >/dev/null 2>&1; then
27722     as_ls_L_option=L
27723   else
27724     as_ls_L_option=
27725   fi
27726   as_test_x='
27727     eval sh -c '\''
27728       if test -d "$1"; then
27729         test -d "$1/.";
27730       else
27731         case $1 in #(
27732         -*)set "./$1";;
27733         esac;
27734         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27735         ???[sx]*):;;*)false;;esac;fi
27736     '\'' sh
27737   '
27738 fi
27739 as_executable_p=$as_test_x
27740
27741 # Sed expression to map a string onto a valid CPP name.
27742 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27743
27744 # Sed expression to map a string onto a valid variable name.
27745 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27746
27747
27748 exec 6>&1
27749 ## ----------------------------------- ##
27750 ## Main body of $CONFIG_STATUS script. ##
27751 ## ----------------------------------- ##
27752 _ASEOF
27753 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27754
27755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27756 # Save the log message, to keep $0 and so on meaningful, and to
27757 # report actual input values of CONFIG_FILES etc. instead of their
27758 # values after options handling.
27759 ac_log="
27760 This file was extended by GNU Libtool $as_me 2.4.2, which was
27761 generated by GNU Autoconf 2.68.  Invocation command line was
27762
27763   CONFIG_FILES    = $CONFIG_FILES
27764   CONFIG_HEADERS  = $CONFIG_HEADERS
27765   CONFIG_LINKS    = $CONFIG_LINKS
27766   CONFIG_COMMANDS = $CONFIG_COMMANDS
27767   $ $0 $@
27768
27769 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27770 "
27771
27772 _ACEOF
27773
27774 case $ac_config_files in *"
27775 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27776 esac
27777
27778 case $ac_config_headers in *"
27779 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27780 esac
27781
27782
27783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27784 # Files that config.status was made for.
27785 config_files="$ac_config_files"
27786 config_headers="$ac_config_headers"
27787 config_commands="$ac_config_commands"
27788
27789 _ACEOF
27790
27791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27792 ac_cs_usage="\
27793 \`$as_me' instantiates files and other configuration actions
27794 from templates according to the current configuration.  Unless the files
27795 and actions are specified as TAGs, all are instantiated by default.
27796
27797 Usage: $0 [OPTION]... [TAG]...
27798
27799   -h, --help       print this help, then exit
27800   -V, --version    print version number and configuration settings, then exit
27801       --config     print configuration, then exit
27802   -q, --quiet, --silent
27803                    do not print progress messages
27804   -d, --debug      don't remove temporary files
27805       --recheck    update $as_me by reconfiguring in the same conditions
27806       --file=FILE[:TEMPLATE]
27807                    instantiate the configuration file FILE
27808       --header=FILE[:TEMPLATE]
27809                    instantiate the configuration header FILE
27810
27811 Configuration files:
27812 $config_files
27813
27814 Configuration headers:
27815 $config_headers
27816
27817 Configuration commands:
27818 $config_commands
27819
27820 Report bugs to <bug-libtool@gnu.org>.
27821 GNU Libtool home page: <http://www.gnu.org/software/libtool/>.
27822 General help using GNU software: <http://www.gnu.org/gethelp/>."
27823
27824 _ACEOF
27825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27826 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27827 ac_cs_version="\\
27828 GNU Libtool config.status 2.4.2
27829 configured by $0, generated by GNU Autoconf 2.68,
27830   with options \\"\$ac_cs_config\\"
27831
27832 Copyright (C) 2010 Free Software Foundation, Inc.
27833 This config.status script is free software; the Free Software Foundation
27834 gives unlimited permission to copy, distribute and modify it."
27835
27836 ac_pwd='$ac_pwd'
27837 srcdir='$srcdir'
27838 INSTALL='$INSTALL'
27839 MKDIR_P='$MKDIR_P'
27840 AWK='$AWK'
27841 test -n "\$AWK" || AWK=awk
27842 _ACEOF
27843
27844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27845 # The default lists apply if the user does not specify any file.
27846 ac_need_defaults=:
27847 while test $# != 0
27848 do
27849   case $1 in
27850   --*=?*)
27851     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27852     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27853     ac_shift=:
27854     ;;
27855   --*=)
27856     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27857     ac_optarg=
27858     ac_shift=:
27859     ;;
27860   *)
27861     ac_option=$1
27862     ac_optarg=$2
27863     ac_shift=shift
27864     ;;
27865   esac
27866
27867   case $ac_option in
27868   # Handling of the options.
27869   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27870     ac_cs_recheck=: ;;
27871   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27872     $as_echo "$ac_cs_version"; exit ;;
27873   --config | --confi | --conf | --con | --co | --c )
27874     $as_echo "$ac_cs_config"; exit ;;
27875   --debug | --debu | --deb | --de | --d | -d )
27876     debug=: ;;
27877   --file | --fil | --fi | --f )
27878     $ac_shift
27879     case $ac_optarg in
27880     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27881     '') as_fn_error $? "missing file argument" ;;
27882     esac
27883     as_fn_append CONFIG_FILES " '$ac_optarg'"
27884     ac_need_defaults=false;;
27885   --header | --heade | --head | --hea )
27886     $ac_shift
27887     case $ac_optarg in
27888     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27889     esac
27890     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27891     ac_need_defaults=false;;
27892   --he | --h)
27893     # Conflict between --help and --header
27894     as_fn_error $? "ambiguous option: \`$1'
27895 Try \`$0 --help' for more information.";;
27896   --help | --hel | -h )
27897     $as_echo "$ac_cs_usage"; exit ;;
27898   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27899   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27900     ac_cs_silent=: ;;
27901
27902   # This is an error.
27903   -*) as_fn_error $? "unrecognized option: \`$1'
27904 Try \`$0 --help' for more information." ;;
27905
27906   *) as_fn_append ac_config_targets " $1"
27907      ac_need_defaults=false ;;
27908
27909   esac
27910   shift
27911 done
27912
27913 ac_configure_extra_args=
27914
27915 if $ac_cs_silent; then
27916   exec 6>/dev/null
27917   ac_configure_extra_args="$ac_configure_extra_args --silent"
27918 fi
27919
27920 _ACEOF
27921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27922 if \$ac_cs_recheck; then
27923   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27924   shift
27925   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27926   CONFIG_SHELL='$SHELL'
27927   export CONFIG_SHELL
27928   exec "\$@"
27929 fi
27930
27931 _ACEOF
27932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27933 exec 5>>config.log
27934 {
27935   echo
27936   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27937 ## Running $as_me. ##
27938 _ASBOX
27939   $as_echo "$ac_log"
27940 } >&5
27941
27942 _ACEOF
27943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27944 #
27945 # INIT-COMMANDS
27946 #
27947
27948 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27949
27950
27951 # The HP-UX ksh and POSIX shell print the target directory to stdout
27952 # if CDPATH is set.
27953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27954
27955 sed_quote_subst='$sed_quote_subst'
27956 double_quote_subst='$double_quote_subst'
27957 delay_variable_subst='$delay_variable_subst'
27958 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27959 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27960 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27961 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27962 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27963 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27964 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27965 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27966 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27967 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27968 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27969 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27970 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27971 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27972 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27973 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27974 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27975 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27976 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27977 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27978 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27979 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27980 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27981 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27982 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27983 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27984 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27985 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27986 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27987 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27988 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27989 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27990 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27991 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27992 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27993 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27994 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27995 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27996 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27997 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27998 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27999 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28000 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28001 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28002 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28003 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28004 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28005 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28006 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28007 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28008 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28009 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28010 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28011 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28012 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28013 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28014 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28015 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
28016 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28017 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28018 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28019 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28020 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28021 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28022 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28023 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28024 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28025 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28026 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28027 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28028 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28029 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28030 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28031 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28032 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28033 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28034 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28035 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28036 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28037 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28038 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28039 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28040 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28041 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28042 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28043 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28044 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28045 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28046 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28047 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28048 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28049 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28050 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28051 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28052 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28053 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28054 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28055 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28056 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28057 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28058 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28059 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28060 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28061 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28062 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28063 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28064 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28065 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28066 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28067 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28068 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28069 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28070 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28071 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28072 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28073 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28074 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28075 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28076 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28077 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28078 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28079 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28080 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28081 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28082 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28083 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28084 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28085 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28086 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28087 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28088 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28089 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28090 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28091 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28092 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28093 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28094 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28095 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28096 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
28097 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
28098 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
28099 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
28100 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
28101 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28102 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
28103 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
28104 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
28105 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
28106 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
28107 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28108 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
28109 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
28110 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
28111 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28112 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
28113 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28114 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
28115 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28116 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
28117 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28118 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
28119 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28120 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
28121 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
28122 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
28123 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
28124 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
28125 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28126 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
28127 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
28128 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
28129 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
28130 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
28131 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28132 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
28133 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
28134 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
28135 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
28136 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
28137 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28138 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
28139 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
28140 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
28141 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
28142 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
28143 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28144 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
28145 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
28146 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
28147 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
28148 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
28149 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28150 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
28151 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
28152 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
28153 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
28154 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
28155 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28156 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
28157 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
28158 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
28159 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
28160 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
28161 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28162 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
28163 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
28164 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
28165 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
28166 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
28167 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28168 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
28169 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
28170 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
28171 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
28172 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
28173 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28174 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28175 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28176 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
28177 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
28178 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
28179 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28180 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28181 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28182 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
28183 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
28184 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
28185 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28186 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
28187 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
28188 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
28189 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
28190 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
28191 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28192 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
28193 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
28194 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
28195 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28196 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
28197 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28198 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
28199 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
28200 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
28201 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28202 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
28203 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28204 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
28205 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28206 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
28207 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28208 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
28209 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28210 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
28211 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28212 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
28213 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28214 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
28215 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28216 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
28217 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
28218 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
28219 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28220 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
28221 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28222 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
28223 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28224 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
28225 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28226 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
28227 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28228 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
28229 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
28230 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
28231 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
28232 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
28233 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28234 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
28235 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28236 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
28237 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
28238 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
28239 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28240 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
28241 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28242 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
28243 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
28244 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
28245 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28246 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28247 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28248 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
28249 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
28250 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
28251 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28252 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
28253 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
28254 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
28255 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
28256 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
28257 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28258 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
28259 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
28260 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
28261 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
28262 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
28263 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28264 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
28265 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
28266 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
28267 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
28268 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
28269 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28270 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
28271 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
28272 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
28273 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
28274 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
28275 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28276 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
28277 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
28278 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
28279 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
28280 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
28281 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28282 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
28283 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
28284 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
28285 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
28286 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
28287 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28288 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
28289 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
28290 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
28291 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
28292 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
28293 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28294 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
28295 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
28296 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
28297 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
28298 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
28299 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28300 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
28301 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
28302 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
28303 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
28304 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
28305 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28306 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
28307 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
28308 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
28309 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28310 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
28311 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28312 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
28313 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28314 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
28315 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
28316 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
28317 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28318 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
28319 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28320 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
28321 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
28322 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
28323 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28324 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
28325 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
28326 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
28327 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28328 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
28329 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28330 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
28331 postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
28332 postlink_cmds_GO='`$ECHO "$postlink_cmds_GO" | $SED "$delay_single_quote_subst"`'
28333 postlink_cmds_GCJ='`$ECHO "$postlink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
28334 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
28335 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28336 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
28337 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
28338 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
28339 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
28340 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
28341 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28342 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
28343 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
28344 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
28345 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
28346 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
28347 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28348 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
28349 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
28350 compiler_lib_search_dirs_GO='`$ECHO "$compiler_lib_search_dirs_GO" | $SED "$delay_single_quote_subst"`'
28351 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
28352 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
28353 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28354 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
28355 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
28356 predep_objects_GO='`$ECHO "$predep_objects_GO" | $SED "$delay_single_quote_subst"`'
28357 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
28358 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
28359 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28360 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
28361 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
28362 postdep_objects_GO='`$ECHO "$postdep_objects_GO" | $SED "$delay_single_quote_subst"`'
28363 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
28364 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
28365 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28366 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
28367 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
28368 predeps_GO='`$ECHO "$predeps_GO" | $SED "$delay_single_quote_subst"`'
28369 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
28370 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
28371 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28372 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
28373 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
28374 postdeps_GO='`$ECHO "$postdeps_GO" | $SED "$delay_single_quote_subst"`'
28375 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
28376 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
28377 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28378 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
28379 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
28380 compiler_lib_search_path_GO='`$ECHO "$compiler_lib_search_path_GO" | $SED "$delay_single_quote_subst"`'
28381 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
28382 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
28383
28384 LTCC='$LTCC'
28385 LTCFLAGS='$LTCFLAGS'
28386 compiler='$compiler_DEFAULT'
28387
28388 # A function that is used when there is no print builtin or printf.
28389 func_fallback_echo ()
28390 {
28391   eval 'cat <<_LTECHO_EOF
28392 \$1
28393 _LTECHO_EOF'
28394 }
28395
28396 # Quote evaled strings.
28397 for var in AS \
28398 DLLTOOL \
28399 OBJDUMP \
28400 SHELL \
28401 ECHO \
28402 PATH_SEPARATOR \
28403 SED \
28404 GREP \
28405 EGREP \
28406 FGREP \
28407 LD \
28408 NM \
28409 LN_S \
28410 lt_SP2NL \
28411 lt_NL2SP \
28412 reload_flag \
28413 deplibs_check_method \
28414 file_magic_cmd \
28415 file_magic_glob \
28416 want_nocaseglob \
28417 sharedlib_from_linklib_cmd \
28418 AR \
28419 AR_FLAGS \
28420 archiver_list_spec \
28421 STRIP \
28422 RANLIB \
28423 CC \
28424 CFLAGS \
28425 compiler \
28426 lt_cv_sys_global_symbol_pipe \
28427 lt_cv_sys_global_symbol_to_cdecl \
28428 lt_cv_sys_global_symbol_to_c_name_address \
28429 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28430 nm_file_list_spec \
28431 lt_prog_compiler_no_builtin_flag \
28432 lt_prog_compiler_pic \
28433 lt_prog_compiler_wl \
28434 lt_prog_compiler_static \
28435 lt_cv_prog_compiler_c_o \
28436 need_locks \
28437 MANIFEST_TOOL \
28438 DSYMUTIL \
28439 NMEDIT \
28440 LIPO \
28441 OTOOL \
28442 OTOOL64 \
28443 shrext_cmds \
28444 export_dynamic_flag_spec \
28445 whole_archive_flag_spec \
28446 compiler_needs_object \
28447 with_gnu_ld \
28448 allow_undefined_flag \
28449 no_undefined_flag \
28450 hardcode_libdir_flag_spec \
28451 hardcode_libdir_separator \
28452 exclude_expsyms \
28453 include_expsyms \
28454 file_list_spec \
28455 variables_saved_for_relink \
28456 libname_spec \
28457 library_names_spec \
28458 soname_spec \
28459 install_override_mode \
28460 finish_eval \
28461 old_striplib \
28462 striplib \
28463 compiler_lib_search_dirs \
28464 predep_objects \
28465 postdep_objects \
28466 predeps \
28467 postdeps \
28468 compiler_lib_search_path \
28469 LD_CXX \
28470 LD_F77 \
28471 LD_FC \
28472 LD_GO \
28473 LD_GCJ \
28474 LD_RC \
28475 reload_flag_CXX \
28476 reload_flag_F77 \
28477 reload_flag_FC \
28478 reload_flag_GO \
28479 reload_flag_GCJ \
28480 reload_flag_RC \
28481 compiler_CXX \
28482 compiler_F77 \
28483 compiler_FC \
28484 compiler_GO \
28485 compiler_GCJ \
28486 compiler_RC \
28487 lt_prog_compiler_no_builtin_flag_CXX \
28488 lt_prog_compiler_no_builtin_flag_F77 \
28489 lt_prog_compiler_no_builtin_flag_FC \
28490 lt_prog_compiler_no_builtin_flag_GO \
28491 lt_prog_compiler_no_builtin_flag_GCJ \
28492 lt_prog_compiler_no_builtin_flag_RC \
28493 lt_prog_compiler_pic_CXX \
28494 lt_prog_compiler_pic_F77 \
28495 lt_prog_compiler_pic_FC \
28496 lt_prog_compiler_pic_GO \
28497 lt_prog_compiler_pic_GCJ \
28498 lt_prog_compiler_pic_RC \
28499 lt_prog_compiler_wl_CXX \
28500 lt_prog_compiler_wl_F77 \
28501 lt_prog_compiler_wl_FC \
28502 lt_prog_compiler_wl_GO \
28503 lt_prog_compiler_wl_GCJ \
28504 lt_prog_compiler_wl_RC \
28505 lt_prog_compiler_static_CXX \
28506 lt_prog_compiler_static_F77 \
28507 lt_prog_compiler_static_FC \
28508 lt_prog_compiler_static_GO \
28509 lt_prog_compiler_static_GCJ \
28510 lt_prog_compiler_static_RC \
28511 lt_cv_prog_compiler_c_o_CXX \
28512 lt_cv_prog_compiler_c_o_F77 \
28513 lt_cv_prog_compiler_c_o_FC \
28514 lt_cv_prog_compiler_c_o_GO \
28515 lt_cv_prog_compiler_c_o_GCJ \
28516 lt_cv_prog_compiler_c_o_RC \
28517 export_dynamic_flag_spec_CXX \
28518 export_dynamic_flag_spec_F77 \
28519 export_dynamic_flag_spec_FC \
28520 export_dynamic_flag_spec_GO \
28521 export_dynamic_flag_spec_GCJ \
28522 export_dynamic_flag_spec_RC \
28523 whole_archive_flag_spec_CXX \
28524 whole_archive_flag_spec_F77 \
28525 whole_archive_flag_spec_FC \
28526 whole_archive_flag_spec_GO \
28527 whole_archive_flag_spec_GCJ \
28528 whole_archive_flag_spec_RC \
28529 compiler_needs_object_CXX \
28530 compiler_needs_object_F77 \
28531 compiler_needs_object_FC \
28532 compiler_needs_object_GO \
28533 compiler_needs_object_GCJ \
28534 compiler_needs_object_RC \
28535 with_gnu_ld_CXX \
28536 with_gnu_ld_F77 \
28537 with_gnu_ld_FC \
28538 with_gnu_ld_GO \
28539 with_gnu_ld_GCJ \
28540 with_gnu_ld_RC \
28541 allow_undefined_flag_CXX \
28542 allow_undefined_flag_F77 \
28543 allow_undefined_flag_FC \
28544 allow_undefined_flag_GO \
28545 allow_undefined_flag_GCJ \
28546 allow_undefined_flag_RC \
28547 no_undefined_flag_CXX \
28548 no_undefined_flag_F77 \
28549 no_undefined_flag_FC \
28550 no_undefined_flag_GO \
28551 no_undefined_flag_GCJ \
28552 no_undefined_flag_RC \
28553 hardcode_libdir_flag_spec_CXX \
28554 hardcode_libdir_flag_spec_F77 \
28555 hardcode_libdir_flag_spec_FC \
28556 hardcode_libdir_flag_spec_GO \
28557 hardcode_libdir_flag_spec_GCJ \
28558 hardcode_libdir_flag_spec_RC \
28559 hardcode_libdir_separator_CXX \
28560 hardcode_libdir_separator_F77 \
28561 hardcode_libdir_separator_FC \
28562 hardcode_libdir_separator_GO \
28563 hardcode_libdir_separator_GCJ \
28564 hardcode_libdir_separator_RC \
28565 exclude_expsyms_CXX \
28566 exclude_expsyms_F77 \
28567 exclude_expsyms_FC \
28568 exclude_expsyms_GO \
28569 exclude_expsyms_GCJ \
28570 exclude_expsyms_RC \
28571 include_expsyms_CXX \
28572 include_expsyms_F77 \
28573 include_expsyms_FC \
28574 include_expsyms_GO \
28575 include_expsyms_GCJ \
28576 include_expsyms_RC \
28577 file_list_spec_CXX \
28578 file_list_spec_F77 \
28579 file_list_spec_FC \
28580 file_list_spec_GO \
28581 file_list_spec_GCJ \
28582 file_list_spec_RC \
28583 compiler_lib_search_dirs_CXX \
28584 compiler_lib_search_dirs_F77 \
28585 compiler_lib_search_dirs_FC \
28586 compiler_lib_search_dirs_GO \
28587 compiler_lib_search_dirs_GCJ \
28588 compiler_lib_search_dirs_RC \
28589 predep_objects_CXX \
28590 predep_objects_F77 \
28591 predep_objects_FC \
28592 predep_objects_GO \
28593 predep_objects_GCJ \
28594 predep_objects_RC \
28595 postdep_objects_CXX \
28596 postdep_objects_F77 \
28597 postdep_objects_FC \
28598 postdep_objects_GO \
28599 postdep_objects_GCJ \
28600 postdep_objects_RC \
28601 predeps_CXX \
28602 predeps_F77 \
28603 predeps_FC \
28604 predeps_GO \
28605 predeps_GCJ \
28606 predeps_RC \
28607 postdeps_CXX \
28608 postdeps_F77 \
28609 postdeps_FC \
28610 postdeps_GO \
28611 postdeps_GCJ \
28612 postdeps_RC \
28613 compiler_lib_search_path_CXX \
28614 compiler_lib_search_path_F77 \
28615 compiler_lib_search_path_FC \
28616 compiler_lib_search_path_GO \
28617 compiler_lib_search_path_GCJ \
28618 compiler_lib_search_path_RC; do
28619     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28620     *[\\\\\\\`\\"\\\$]*)
28621       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28622       ;;
28623     *)
28624       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28625       ;;
28626     esac
28627 done
28628
28629 # Double-quote double-evaled strings.
28630 for var in reload_cmds \
28631 old_postinstall_cmds \
28632 old_postuninstall_cmds \
28633 old_archive_cmds \
28634 extract_expsyms_cmds \
28635 old_archive_from_new_cmds \
28636 old_archive_from_expsyms_cmds \
28637 archive_cmds \
28638 archive_expsym_cmds \
28639 module_cmds \
28640 module_expsym_cmds \
28641 export_symbols_cmds \
28642 prelink_cmds \
28643 postlink_cmds \
28644 postinstall_cmds \
28645 postuninstall_cmds \
28646 finish_cmds \
28647 sys_lib_search_path_spec \
28648 sys_lib_dlsearch_path_spec \
28649 reload_cmds_CXX \
28650 reload_cmds_F77 \
28651 reload_cmds_FC \
28652 reload_cmds_GO \
28653 reload_cmds_GCJ \
28654 reload_cmds_RC \
28655 old_archive_cmds_CXX \
28656 old_archive_cmds_F77 \
28657 old_archive_cmds_FC \
28658 old_archive_cmds_GO \
28659 old_archive_cmds_GCJ \
28660 old_archive_cmds_RC \
28661 old_archive_from_new_cmds_CXX \
28662 old_archive_from_new_cmds_F77 \
28663 old_archive_from_new_cmds_FC \
28664 old_archive_from_new_cmds_GO \
28665 old_archive_from_new_cmds_GCJ \
28666 old_archive_from_new_cmds_RC \
28667 old_archive_from_expsyms_cmds_CXX \
28668 old_archive_from_expsyms_cmds_F77 \
28669 old_archive_from_expsyms_cmds_FC \
28670 old_archive_from_expsyms_cmds_GO \
28671 old_archive_from_expsyms_cmds_GCJ \
28672 old_archive_from_expsyms_cmds_RC \
28673 archive_cmds_CXX \
28674 archive_cmds_F77 \
28675 archive_cmds_FC \
28676 archive_cmds_GO \
28677 archive_cmds_GCJ \
28678 archive_cmds_RC \
28679 archive_expsym_cmds_CXX \
28680 archive_expsym_cmds_F77 \
28681 archive_expsym_cmds_FC \
28682 archive_expsym_cmds_GO \
28683 archive_expsym_cmds_GCJ \
28684 archive_expsym_cmds_RC \
28685 module_cmds_CXX \
28686 module_cmds_F77 \
28687 module_cmds_FC \
28688 module_cmds_GO \
28689 module_cmds_GCJ \
28690 module_cmds_RC \
28691 module_expsym_cmds_CXX \
28692 module_expsym_cmds_F77 \
28693 module_expsym_cmds_FC \
28694 module_expsym_cmds_GO \
28695 module_expsym_cmds_GCJ \
28696 module_expsym_cmds_RC \
28697 export_symbols_cmds_CXX \
28698 export_symbols_cmds_F77 \
28699 export_symbols_cmds_FC \
28700 export_symbols_cmds_GO \
28701 export_symbols_cmds_GCJ \
28702 export_symbols_cmds_RC \
28703 prelink_cmds_CXX \
28704 prelink_cmds_F77 \
28705 prelink_cmds_FC \
28706 prelink_cmds_GO \
28707 prelink_cmds_GCJ \
28708 prelink_cmds_RC \
28709 postlink_cmds_CXX \
28710 postlink_cmds_F77 \
28711 postlink_cmds_FC \
28712 postlink_cmds_GO \
28713 postlink_cmds_GCJ \
28714 postlink_cmds_RC; do
28715     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28716     *[\\\\\\\`\\"\\\$]*)
28717       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28718       ;;
28719     *)
28720       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28721       ;;
28722     esac
28723 done
28724
28725 ac_aux_dir='$ac_aux_dir'
28726 xsi_shell='$xsi_shell'
28727 lt_shell_append='$lt_shell_append'
28728
28729 # See if we are running on zsh, and set the options which allow our
28730 # commands through without removal of \ escapes INIT.
28731 if test -n "\${ZSH_VERSION+set}" ; then
28732    setopt NO_GLOB_SUBST
28733 fi
28734
28735
28736     PACKAGE='$PACKAGE'
28737     VERSION='$VERSION'
28738     TIMESTAMP='$TIMESTAMP'
28739     RM='$RM'
28740     ofile='$ofile'
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757 _ACEOF
28758
28759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28760
28761 # Handling of arguments.
28762 for ac_config_target in $ac_config_targets
28763 do
28764   case $ac_config_target in
28765     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
28766     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
28767     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28768     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28769     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28770
28771   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28772   esac
28773 done
28774
28775
28776 # If the user did not use the arguments to specify the items to instantiate,
28777 # then the envvar interface is used.  Set only those that are not.
28778 # We use the long form for the default assignment because of an extremely
28779 # bizarre bug on SunOS 4.1.3.
28780 if $ac_need_defaults; then
28781   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28782   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28783   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28784 fi
28785
28786 # Have a temporary directory for convenience.  Make it in the build tree
28787 # simply because there is no reason against having it here, and in addition,
28788 # creating and moving files from /tmp can sometimes cause problems.
28789 # Hook for its removal unless debugging.
28790 # Note that there is a small window in which the directory will not be cleaned:
28791 # after its creation but before its name has been assigned to `$tmp'.
28792 $debug ||
28793 {
28794   tmp= ac_tmp=
28795   trap 'exit_status=$?
28796   : "${ac_tmp:=$tmp}"
28797   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28798 ' 0
28799   trap 'as_fn_exit 1' 1 2 13 15
28800 }
28801 # Create a (secure) tmp directory for tmp files.
28802
28803 {
28804   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28805   test -d "$tmp"
28806 }  ||
28807 {
28808   tmp=./conf$$-$RANDOM
28809   (umask 077 && mkdir "$tmp")
28810 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28811 ac_tmp=$tmp
28812
28813 # Set up the scripts for CONFIG_FILES section.
28814 # No need to generate them if there are no CONFIG_FILES.
28815 # This happens for instance with `./config.status config.h'.
28816 if test -n "$CONFIG_FILES"; then
28817
28818
28819 ac_cr=`echo X | tr X '\015'`
28820 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28821 # But we know of no other shell where ac_cr would be empty at this
28822 # point, so we can use a bashism as a fallback.
28823 if test "x$ac_cr" = x; then
28824   eval ac_cr=\$\'\\r\'
28825 fi
28826 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28827 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28828   ac_cs_awk_cr='\\r'
28829 else
28830   ac_cs_awk_cr=$ac_cr
28831 fi
28832
28833 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28834 _ACEOF
28835
28836
28837 {
28838   echo "cat >conf$$subs.awk <<_ACEOF" &&
28839   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28840   echo "_ACEOF"
28841 } >conf$$subs.sh ||
28842   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28843 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28844 ac_delim='%!_!# '
28845 for ac_last_try in false false false false false :; do
28846   . ./conf$$subs.sh ||
28847     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28848
28849   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28850   if test $ac_delim_n = $ac_delim_num; then
28851     break
28852   elif $ac_last_try; then
28853     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28854   else
28855     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28856   fi
28857 done
28858 rm -f conf$$subs.sh
28859
28860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28861 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28862 _ACEOF
28863 sed -n '
28864 h
28865 s/^/S["/; s/!.*/"]=/
28866 p
28867 g
28868 s/^[^!]*!//
28869 :repl
28870 t repl
28871 s/'"$ac_delim"'$//
28872 t delim
28873 :nl
28874 h
28875 s/\(.\{148\}\)..*/\1/
28876 t more1
28877 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28878 p
28879 n
28880 b repl
28881 :more1
28882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28883 p
28884 g
28885 s/.\{148\}//
28886 t nl
28887 :delim
28888 h
28889 s/\(.\{148\}\)..*/\1/
28890 t more2
28891 s/["\\]/\\&/g; s/^/"/; s/$/"/
28892 p
28893 b
28894 :more2
28895 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28896 p
28897 g
28898 s/.\{148\}//
28899 t delim
28900 ' <conf$$subs.awk | sed '
28901 /^[^""]/{
28902   N
28903   s/\n//
28904 }
28905 ' >>$CONFIG_STATUS || ac_write_fail=1
28906 rm -f conf$$subs.awk
28907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28908 _ACAWK
28909 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28910   for (key in S) S_is_set[key] = 1
28911   FS = "\a"
28912
28913 }
28914 {
28915   line = $ 0
28916   nfields = split(line, field, "@")
28917   substed = 0
28918   len = length(field[1])
28919   for (i = 2; i < nfields; i++) {
28920     key = field[i]
28921     keylen = length(key)
28922     if (S_is_set[key]) {
28923       value = S[key]
28924       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28925       len += length(value) + length(field[++i])
28926       substed = 1
28927     } else
28928       len += 1 + keylen
28929   }
28930
28931   print line
28932 }
28933
28934 _ACAWK
28935 _ACEOF
28936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28937 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28938   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28939 else
28940   cat
28941 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28942   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28943 _ACEOF
28944
28945 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28946 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28947 # trailing colons and then remove the whole line if VPATH becomes empty
28948 # (actually we leave an empty line to preserve line numbers).
28949 if test "x$srcdir" = x.; then
28950   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
28951 h
28952 s///
28953 s/^/:/
28954 s/[      ]*$/:/
28955 s/:\$(srcdir):/:/g
28956 s/:\${srcdir}:/:/g
28957 s/:@srcdir@:/:/g
28958 s/^:*//
28959 s/:*$//
28960 x
28961 s/\(=[   ]*\).*/\1/
28962 G
28963 s/\n//
28964 s/^[^=]*=[       ]*$//
28965 }'
28966 fi
28967
28968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28969 fi # test -n "$CONFIG_FILES"
28970
28971 # Set up the scripts for CONFIG_HEADERS section.
28972 # No need to generate them if there are no CONFIG_HEADERS.
28973 # This happens for instance with `./config.status Makefile'.
28974 if test -n "$CONFIG_HEADERS"; then
28975 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28976 BEGIN {
28977 _ACEOF
28978
28979 # Transform confdefs.h into an awk script `defines.awk', embedded as
28980 # here-document in config.status, that substitutes the proper values into
28981 # config.h.in to produce config.h.
28982
28983 # Create a delimiter string that does not exist in confdefs.h, to ease
28984 # handling of long lines.
28985 ac_delim='%!_!# '
28986 for ac_last_try in false false :; do
28987   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28988   if test -z "$ac_tt"; then
28989     break
28990   elif $ac_last_try; then
28991     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28992   else
28993     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28994   fi
28995 done
28996
28997 # For the awk script, D is an array of macro values keyed by name,
28998 # likewise P contains macro parameters if any.  Preserve backslash
28999 # newline sequences.
29000
29001 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29002 sed -n '
29003 s/.\{148\}/&'"$ac_delim"'/g
29004 t rset
29005 :rset
29006 s/^[     ]*#[    ]*define[       ][      ]*/ /
29007 t def
29008 d
29009 :def
29010 s/\\$//
29011 t bsnl
29012 s/["\\]/\\&/g
29013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29014 D["\1"]=" \3"/p
29015 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29016 d
29017 :bsnl
29018 s/["\\]/\\&/g
29019 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29020 D["\1"]=" \3\\\\\\n"\\/p
29021 t cont
29022 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29023 t cont
29024 d
29025 :cont
29026 n
29027 s/.\{148\}/&'"$ac_delim"'/g
29028 t clear
29029 :clear
29030 s/\\$//
29031 t bsnlc
29032 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29033 d
29034 :bsnlc
29035 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29036 b cont
29037 ' <confdefs.h | sed '
29038 s/'"$ac_delim"'/"\\\
29039 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29040
29041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29042   for (key in D) D_is_set[key] = 1
29043   FS = "\a"
29044 }
29045 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29046   line = \$ 0
29047   split(line, arg, " ")
29048   if (arg[1] == "#") {
29049     defundef = arg[2]
29050     mac1 = arg[3]
29051   } else {
29052     defundef = substr(arg[1], 2)
29053     mac1 = arg[2]
29054   }
29055   split(mac1, mac2, "(") #)
29056   macro = mac2[1]
29057   prefix = substr(line, 1, index(line, defundef) - 1)
29058   if (D_is_set[macro]) {
29059     # Preserve the white space surrounding the "#".
29060     print prefix "define", macro P[macro] D[macro]
29061     next
29062   } else {
29063     # Replace #undef with comments.  This is necessary, for example,
29064     # in the case of _POSIX_SOURCE, which is predefined and required
29065     # on some systems where configure will not decide to define it.
29066     if (defundef == "undef") {
29067       print "/*", prefix defundef, macro, "*/"
29068       next
29069     }
29070   }
29071 }
29072 { print }
29073 _ACAWK
29074 _ACEOF
29075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29076   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29077 fi # test -n "$CONFIG_HEADERS"
29078
29079
29080 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29081 shift
29082 for ac_tag
29083 do
29084   case $ac_tag in
29085   :[FHLC]) ac_mode=$ac_tag; continue;;
29086   esac
29087   case $ac_mode$ac_tag in
29088   :[FHL]*:*);;
29089   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29090   :[FH]-) ac_tag=-:-;;
29091   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29092   esac
29093   ac_save_IFS=$IFS
29094   IFS=:
29095   set x $ac_tag
29096   IFS=$ac_save_IFS
29097   shift
29098   ac_file=$1
29099   shift
29100
29101   case $ac_mode in
29102   :L) ac_source=$1;;
29103   :[FH])
29104     ac_file_inputs=
29105     for ac_f
29106     do
29107       case $ac_f in
29108       -) ac_f="$ac_tmp/stdin";;
29109       *) # Look for the file first in the build tree, then in the source tree
29110          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29111          # because $ac_f cannot contain `:'.
29112          test -f "$ac_f" ||
29113            case $ac_f in
29114            [\\/$]*) false;;
29115            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29116            esac ||
29117            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29118       esac
29119       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29120       as_fn_append ac_file_inputs " '$ac_f'"
29121     done
29122
29123     # Let's still pretend it is `configure' which instantiates (i.e., don't
29124     # use $as_me), people would be surprised to read:
29125     #    /* config.h.  Generated by config.status.  */
29126     configure_input='Generated from '`
29127           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29128         `' by configure.'
29129     if test x"$ac_file" != x-; then
29130       configure_input="$ac_file.  $configure_input"
29131       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29132 $as_echo "$as_me: creating $ac_file" >&6;}
29133     fi
29134     # Neutralize special characters interpreted by sed in replacement strings.
29135     case $configure_input in #(
29136     *\&* | *\|* | *\\* )
29137        ac_sed_conf_input=`$as_echo "$configure_input" |
29138        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29139     *) ac_sed_conf_input=$configure_input;;
29140     esac
29141
29142     case $ac_tag in
29143     *:-:* | *:-) cat >"$ac_tmp/stdin" \
29144       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29145     esac
29146     ;;
29147   esac
29148
29149   ac_dir=`$as_dirname -- "$ac_file" ||
29150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29151          X"$ac_file" : 'X\(//\)[^/]' \| \
29152          X"$ac_file" : 'X\(//\)$' \| \
29153          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29154 $as_echo X"$ac_file" |
29155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29156             s//\1/
29157             q
29158           }
29159           /^X\(\/\/\)[^/].*/{
29160             s//\1/
29161             q
29162           }
29163           /^X\(\/\/\)$/{
29164             s//\1/
29165             q
29166           }
29167           /^X\(\/\).*/{
29168             s//\1/
29169             q
29170           }
29171           s/.*/./; q'`
29172   as_dir="$ac_dir"; as_fn_mkdir_p
29173   ac_builddir=.
29174
29175 case "$ac_dir" in
29176 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29177 *)
29178   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29179   # A ".." for each directory in $ac_dir_suffix.
29180   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29181   case $ac_top_builddir_sub in
29182   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29183   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29184   esac ;;
29185 esac
29186 ac_abs_top_builddir=$ac_pwd
29187 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29188 # for backward compatibility:
29189 ac_top_builddir=$ac_top_build_prefix
29190
29191 case $srcdir in
29192   .)  # We are building in place.
29193     ac_srcdir=.
29194     ac_top_srcdir=$ac_top_builddir_sub
29195     ac_abs_top_srcdir=$ac_pwd ;;
29196   [\\/]* | ?:[\\/]* )  # Absolute name.
29197     ac_srcdir=$srcdir$ac_dir_suffix;
29198     ac_top_srcdir=$srcdir
29199     ac_abs_top_srcdir=$srcdir ;;
29200   *) # Relative name.
29201     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29202     ac_top_srcdir=$ac_top_build_prefix$srcdir
29203     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29204 esac
29205 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29206
29207
29208   case $ac_mode in
29209   :F)
29210   #
29211   # CONFIG_FILE
29212   #
29213
29214   case $INSTALL in
29215   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29216   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29217   esac
29218   ac_MKDIR_P=$MKDIR_P
29219   case $MKDIR_P in
29220   [\\/$]* | ?:[\\/]* ) ;;
29221   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29222   esac
29223 _ACEOF
29224
29225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29226 # If the template does not know about datarootdir, expand it.
29227 # FIXME: This hack should be removed a few years after 2.60.
29228 ac_datarootdir_hack=; ac_datarootdir_seen=
29229 ac_sed_dataroot='
29230 /datarootdir/ {
29231   p
29232   q
29233 }
29234 /@datadir@/p
29235 /@docdir@/p
29236 /@infodir@/p
29237 /@localedir@/p
29238 /@mandir@/p'
29239 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29240 *datarootdir*) ac_datarootdir_seen=yes;;
29241 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29242   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29243 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29244 _ACEOF
29245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29246   ac_datarootdir_hack='
29247   s&@datadir@&$datadir&g
29248   s&@docdir@&$docdir&g
29249   s&@infodir@&$infodir&g
29250   s&@localedir@&$localedir&g
29251   s&@mandir@&$mandir&g
29252   s&\\\${datarootdir}&$datarootdir&g' ;;
29253 esac
29254 _ACEOF
29255
29256 # Neutralize VPATH when `$srcdir' = `.'.
29257 # Shell code in configure.ac might set extrasub.
29258 # FIXME: do we really want to maintain this feature?
29259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29260 ac_sed_extra="$ac_vpsub
29261 $extrasub
29262 _ACEOF
29263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29264 :t
29265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29266 s|@configure_input@|$ac_sed_conf_input|;t t
29267 s&@top_builddir@&$ac_top_builddir_sub&;t t
29268 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29269 s&@srcdir@&$ac_srcdir&;t t
29270 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29271 s&@top_srcdir@&$ac_top_srcdir&;t t
29272 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29273 s&@builddir@&$ac_builddir&;t t
29274 s&@abs_builddir@&$ac_abs_builddir&;t t
29275 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29276 s&@INSTALL@&$ac_INSTALL&;t t
29277 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29278 $ac_datarootdir_hack
29279 "
29280 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29281   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29282
29283 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29284   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29285   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
29286       "$ac_tmp/out"`; test -z "$ac_out"; } &&
29287   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29288 which seems to be undefined.  Please make sure it is defined" >&5
29289 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29290 which seems to be undefined.  Please make sure it is defined" >&2;}
29291
29292   rm -f "$ac_tmp/stdin"
29293   case $ac_file in
29294   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29295   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29296   esac \
29297   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29298  ;;
29299   :H)
29300   #
29301   # CONFIG_HEADER
29302   #
29303   if test x"$ac_file" != x-; then
29304     {
29305       $as_echo "/* $configure_input  */" \
29306       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29307     } >"$ac_tmp/config.h" \
29308       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29309     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29310       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29311 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29312     else
29313       rm -f "$ac_file"
29314       mv "$ac_tmp/config.h" "$ac_file" \
29315         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29316     fi
29317   else
29318     $as_echo "/* $configure_input  */" \
29319       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29320       || as_fn_error $? "could not create -" "$LINENO" 5
29321   fi
29322 # Compute "$ac_file"'s index in $config_headers.
29323 _am_arg="$ac_file"
29324 _am_stamp_count=1
29325 for _am_header in $config_headers :; do
29326   case $_am_header in
29327     $_am_arg | $_am_arg:* )
29328       break ;;
29329     * )
29330       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29331   esac
29332 done
29333 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29334 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29335          X"$_am_arg" : 'X\(//\)[^/]' \| \
29336          X"$_am_arg" : 'X\(//\)$' \| \
29337          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29338 $as_echo X"$_am_arg" |
29339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29340             s//\1/
29341             q
29342           }
29343           /^X\(\/\/\)[^/].*/{
29344             s//\1/
29345             q
29346           }
29347           /^X\(\/\/\)$/{
29348             s//\1/
29349             q
29350           }
29351           /^X\(\/\).*/{
29352             s//\1/
29353             q
29354           }
29355           s/.*/./; q'`/stamp-h$_am_stamp_count
29356  ;;
29357
29358   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29359 $as_echo "$as_me: executing $ac_file commands" >&6;}
29360  ;;
29361   esac
29362
29363
29364   case $ac_file$ac_mode in
29365     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
29366 # Configurable variable values for building test suites.
29367 # Generated by $0.
29368 # Copyright (C) 2010 Free Software Foundation, Inc.
29369
29370 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
29371 at_testdir='tests'
29372 abs_builddir='$ac_abs_builddir'
29373 at_srcdir='$ac_srcdir'
29374 abs_srcdir='$ac_abs_srcdir'
29375 at_top_srcdir='$ac_top_srcdir'
29376 abs_top_srcdir='$ac_abs_top_srcdir'
29377 at_top_build_prefix='$ac_top_build_prefix'
29378 abs_top_builddir='$ac_abs_top_builddir'
29379
29380 # Backward compatibility with Autotest <= 2.59b:
29381 at_top_builddir=\$at_top_build_prefix
29382
29383 AUTOTEST_PATH='tests'
29384
29385 SHELL=\${CONFIG_SHELL-'$SHELL'}
29386 ATEOF
29387  ;;
29388     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29389   # Autoconf 2.62 quotes --file arguments for eval, but not when files
29390   # are listed without --file.  Let's play safe and only enable the eval
29391   # if we detect the quoting.
29392   case $CONFIG_FILES in
29393   *\'*) eval set x "$CONFIG_FILES" ;;
29394   *)   set x $CONFIG_FILES ;;
29395   esac
29396   shift
29397   for mf
29398   do
29399     # Strip MF so we end up with the name of the file.
29400     mf=`echo "$mf" | sed -e 's/:.*$//'`
29401     # Check whether this is an Automake generated Makefile or not.
29402     # We used to match only the files named `Makefile.in', but
29403     # some people rename them; so instead we look at the file content.
29404     # Grep'ing the first line is not enough: some people post-process
29405     # each Makefile.in and add a new line on top of each file to say so.
29406     # Grep'ing the whole file is not good either: AIX grep has a line
29407     # limit of 2048, but all sed's we know have understand at least 4000.
29408     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29409       dirpart=`$as_dirname -- "$mf" ||
29410 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29411          X"$mf" : 'X\(//\)[^/]' \| \
29412          X"$mf" : 'X\(//\)$' \| \
29413          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29414 $as_echo X"$mf" |
29415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29416             s//\1/
29417             q
29418           }
29419           /^X\(\/\/\)[^/].*/{
29420             s//\1/
29421             q
29422           }
29423           /^X\(\/\/\)$/{
29424             s//\1/
29425             q
29426           }
29427           /^X\(\/\).*/{
29428             s//\1/
29429             q
29430           }
29431           s/.*/./; q'`
29432     else
29433       continue
29434     fi
29435     # Extract the definition of DEPDIR, am__include, and am__quote
29436     # from the Makefile without running `make'.
29437     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29438     test -z "$DEPDIR" && continue
29439     am__include=`sed -n 's/^am__include = //p' < "$mf"`
29440     test -z "am__include" && continue
29441     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29442     # When using ansi2knr, U may be empty or an underscore; expand it
29443     U=`sed -n 's/^U = //p' < "$mf"`
29444     # Find all dependency output files, they are included files with
29445     # $(DEPDIR) in their names.  We invoke sed twice because it is the
29446     # simplest approach to changing $(DEPDIR) to its actual value in the
29447     # expansion.
29448     for file in `sed -n "
29449       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29450          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29451       # Make sure the directory exists.
29452       test -f "$dirpart/$file" && continue
29453       fdir=`$as_dirname -- "$file" ||
29454 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29455          X"$file" : 'X\(//\)[^/]' \| \
29456          X"$file" : 'X\(//\)$' \| \
29457          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29458 $as_echo X"$file" |
29459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29460             s//\1/
29461             q
29462           }
29463           /^X\(\/\/\)[^/].*/{
29464             s//\1/
29465             q
29466           }
29467           /^X\(\/\/\)$/{
29468             s//\1/
29469             q
29470           }
29471           /^X\(\/\).*/{
29472             s//\1/
29473             q
29474           }
29475           s/.*/./; q'`
29476       as_dir=$dirpart/$fdir; as_fn_mkdir_p
29477       # echo "creating $dirpart/$file"
29478       echo '# dummy' > "$dirpart/$file"
29479     done
29480   done
29481 }
29482  ;;
29483     "libtool":C)
29484
29485     # See if we are running on zsh, and set the options which allow our
29486     # commands through without removal of \ escapes.
29487     if test -n "${ZSH_VERSION+set}" ; then
29488       setopt NO_GLOB_SUBST
29489     fi
29490
29491     cfgfile="${ofile}T"
29492     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29493     $RM "$cfgfile"
29494
29495     cat <<_LT_EOF >> "$cfgfile"
29496 #! $SHELL
29497
29498 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29499 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29500 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29501 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29502 #
29503 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29504 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
29505 #                 Foundation, Inc.
29506 #   Written by Gordon Matzigkeit, 1996
29507 #
29508 #   This file is part of GNU Libtool.
29509 #
29510 # GNU Libtool is free software; you can redistribute it and/or
29511 # modify it under the terms of the GNU General Public License as
29512 # published by the Free Software Foundation; either version 2 of
29513 # the License, or (at your option) any later version.
29514 #
29515 # As a special exception to the GNU General Public License,
29516 # if you distribute this file as part of a program or library that
29517 # is built using GNU Libtool, you may include this file under the
29518 # same distribution terms that you use for the rest of that program.
29519 #
29520 # GNU Libtool is distributed in the hope that it will be useful,
29521 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29522 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29523 # GNU General Public License for more details.
29524 #
29525 # You should have received a copy of the GNU General Public License
29526 # along with GNU Libtool; see the file COPYING.  If not, a copy
29527 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29528 # obtained by writing to the Free Software Foundation, Inc.,
29529 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29530
29531
29532 # The names of the tagged configurations supported by this script.
29533 available_tags="CXX F77 FC GO GCJ RC "
29534
29535 # ### BEGIN LIBTOOL CONFIG
29536
29537 # Which release of libtool.m4 was used?
29538 macro_version=$macro_version
29539 macro_revision=$macro_revision
29540
29541 # Assembler program.
29542 AS=$lt_AS
29543
29544 # DLL creation program.
29545 DLLTOOL=$lt_DLLTOOL
29546
29547 # Object dumper program.
29548 OBJDUMP=$lt_OBJDUMP
29549
29550 # Whether or not to build shared libraries.
29551 build_libtool_libs=$enable_shared
29552
29553 # Whether or not to build static libraries.
29554 build_old_libs=$enable_static
29555
29556 # What type of objects to build.
29557 pic_mode=$pic_mode
29558
29559 # Whether or not to optimize for fast installation.
29560 fast_install=$enable_fast_install
29561
29562 # Shell to use when invoking shell scripts.
29563 SHELL=$lt_SHELL
29564
29565 # An echo program that protects backslashes.
29566 ECHO=$lt_ECHO
29567
29568 # The PATH separator for the build system.
29569 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29570
29571 # The host system.
29572 host_alias=$host_alias
29573 host=$host
29574 host_os=$host_os
29575
29576 # The build system.
29577 build_alias=$build_alias
29578 build=$build
29579 build_os=$build_os
29580
29581 # A sed program that does not truncate output.
29582 SED=$lt_SED
29583
29584 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29585 Xsed="\$SED -e 1s/^X//"
29586
29587 # A grep program that handles long lines.
29588 GREP=$lt_GREP
29589
29590 # An ERE matcher.
29591 EGREP=$lt_EGREP
29592
29593 # A literal string matcher.
29594 FGREP=$lt_FGREP
29595
29596 # A BSD- or MS-compatible name lister.
29597 NM=$lt_NM
29598
29599 # Whether we need soft or hard links.
29600 LN_S=$lt_LN_S
29601
29602 # What is the maximum length of a command?
29603 max_cmd_len=$max_cmd_len
29604
29605 # Object file suffix (normally "o").
29606 objext=$ac_objext
29607
29608 # Executable file suffix (normally "").
29609 exeext=$exeext
29610
29611 # whether the shell understands "unset".
29612 lt_unset=$lt_unset
29613
29614 # turn spaces into newlines.
29615 SP2NL=$lt_lt_SP2NL
29616
29617 # turn newlines into spaces.
29618 NL2SP=$lt_lt_NL2SP
29619
29620 # convert \$build file names to \$host format.
29621 to_host_file_cmd=$lt_cv_to_host_file_cmd
29622
29623 # convert \$build files to toolchain format.
29624 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29625
29626 # Method to check whether dependent libraries are shared objects.
29627 deplibs_check_method=$lt_deplibs_check_method
29628
29629 # Command to use when deplibs_check_method = "file_magic".
29630 file_magic_cmd=$lt_file_magic_cmd
29631
29632 # How to find potential files when deplibs_check_method = "file_magic".
29633 file_magic_glob=$lt_file_magic_glob
29634
29635 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29636 want_nocaseglob=$lt_want_nocaseglob
29637
29638 # Command to associate shared and link libraries.
29639 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29640
29641 # The archiver.
29642 AR=$lt_AR
29643
29644 # Flags to create an archive.
29645 AR_FLAGS=$lt_AR_FLAGS
29646
29647 # How to feed a file listing to the archiver.
29648 archiver_list_spec=$lt_archiver_list_spec
29649
29650 # A symbol stripping program.
29651 STRIP=$lt_STRIP
29652
29653 # Commands used to install an old-style archive.
29654 RANLIB=$lt_RANLIB
29655 old_postinstall_cmds=$lt_old_postinstall_cmds
29656 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29657
29658 # Whether to use a lock for old archive extraction.
29659 lock_old_archive_extraction=$lock_old_archive_extraction
29660
29661 # A C compiler.
29662 LTCC=$lt_CC
29663
29664 # LTCC compiler flags.
29665 LTCFLAGS=$lt_CFLAGS
29666
29667 # Take the output of nm and produce a listing of raw symbols and C names.
29668 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29669
29670 # Transform the output of nm in a proper C declaration.
29671 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29672
29673 # Transform the output of nm in a C name address pair.
29674 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29675
29676 # Transform the output of nm in a C name address pair when lib prefix is needed.
29677 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29678
29679 # Specify filename containing input files for \$NM.
29680 nm_file_list_spec=$lt_nm_file_list_spec
29681
29682 # The root where to search for dependent libraries,and in which our libraries should be installed.
29683 lt_sysroot=$lt_sysroot
29684
29685 # The name of the directory that contains temporary libtool files.
29686 objdir=$objdir
29687
29688 # Used to examine libraries when file_magic_cmd begins with "file".
29689 MAGIC_CMD=$MAGIC_CMD
29690
29691 # Must we lock files when doing compilation?
29692 need_locks=$lt_need_locks
29693
29694 # Manifest tool.
29695 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29696
29697 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29698 DSYMUTIL=$lt_DSYMUTIL
29699
29700 # Tool to change global to local symbols on Mac OS X.
29701 NMEDIT=$lt_NMEDIT
29702
29703 # Tool to manipulate fat objects and archives on Mac OS X.
29704 LIPO=$lt_LIPO
29705
29706 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29707 OTOOL=$lt_OTOOL
29708
29709 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29710 OTOOL64=$lt_OTOOL64
29711
29712 # Old archive suffix (normally "a").
29713 libext=$libext
29714
29715 # Shared library suffix (normally ".so").
29716 shrext_cmds=$lt_shrext_cmds
29717
29718 # The commands to extract the exported symbol list from a shared archive.
29719 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29720
29721 # Variables whose values should be saved in libtool wrapper scripts and
29722 # restored at link time.
29723 variables_saved_for_relink=$lt_variables_saved_for_relink
29724
29725 # Do we need the "lib" prefix for modules?
29726 need_lib_prefix=$need_lib_prefix
29727
29728 # Do we need a version for libraries?
29729 need_version=$need_version
29730
29731 # Library versioning type.
29732 version_type=$version_type
29733
29734 # Shared library runtime path variable.
29735 runpath_var=$runpath_var
29736
29737 # Shared library path variable.
29738 shlibpath_var=$shlibpath_var
29739
29740 # Is shlibpath searched before the hard-coded library search path?
29741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29742
29743 # Format of library name prefix.
29744 libname_spec=$lt_libname_spec
29745
29746 # List of archive names.  First name is the real one, the rest are links.
29747 # The last name is the one that the linker finds with -lNAME
29748 library_names_spec=$lt_library_names_spec
29749
29750 # The coded name of the library, if different from the real name.
29751 soname_spec=$lt_soname_spec
29752
29753 # Permission mode override for installation of shared libraries.
29754 install_override_mode=$lt_install_override_mode
29755
29756 # Command to use after installation of a shared archive.
29757 postinstall_cmds=$lt_postinstall_cmds
29758
29759 # Command to use after uninstallation of a shared archive.
29760 postuninstall_cmds=$lt_postuninstall_cmds
29761
29762 # Commands used to finish a libtool library installation in a directory.
29763 finish_cmds=$lt_finish_cmds
29764
29765 # As "finish_cmds", except a single script fragment to be evaled but
29766 # not shown.
29767 finish_eval=$lt_finish_eval
29768
29769 # Whether we should hardcode library paths into libraries.
29770 hardcode_into_libs=$hardcode_into_libs
29771
29772 # Compile-time system search path for libraries.
29773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29774
29775 # Run-time system search path for libraries.
29776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29777
29778 # Whether dlopen is supported.
29779 dlopen_support=$enable_dlopen
29780
29781 # Whether dlopen of programs is supported.
29782 dlopen_self=$enable_dlopen_self
29783
29784 # Whether dlopen of statically linked programs is supported.
29785 dlopen_self_static=$enable_dlopen_self_static
29786
29787 # Commands to strip libraries.
29788 old_striplib=$lt_old_striplib
29789 striplib=$lt_striplib
29790
29791
29792 # The linker used to build libraries.
29793 LD=$lt_LD
29794
29795 # How to create reloadable object files.
29796 reload_flag=$lt_reload_flag
29797 reload_cmds=$lt_reload_cmds
29798
29799 # Commands used to build an old-style archive.
29800 old_archive_cmds=$lt_old_archive_cmds
29801
29802 # A language specific compiler.
29803 CC=$lt_compiler
29804
29805 # Is the compiler the GNU compiler?
29806 with_gcc=$GCC
29807
29808 # Compiler flag to turn off builtin functions.
29809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29810
29811 # Additional compiler flags for building library objects.
29812 pic_flag=$lt_lt_prog_compiler_pic
29813
29814 # How to pass a linker flag through the compiler.
29815 wl=$lt_lt_prog_compiler_wl
29816
29817 # Compiler flag to prevent dynamic linking.
29818 link_static_flag=$lt_lt_prog_compiler_static
29819
29820 # Does compiler simultaneously support -c and -o options?
29821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29822
29823 # Whether or not to add -lc for building shared libraries.
29824 build_libtool_need_lc=$archive_cmds_need_lc
29825
29826 # Whether or not to disallow shared libs when runtime libs are static.
29827 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29828
29829 # Compiler flag to allow reflexive dlopens.
29830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29831
29832 # Compiler flag to generate shared objects directly from archives.
29833 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29834
29835 # Whether the compiler copes with passing no objects directly.
29836 compiler_needs_object=$lt_compiler_needs_object
29837
29838 # Create an old-style archive from a shared archive.
29839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29840
29841 # Create a temporary old-style archive to link instead of a shared archive.
29842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29843
29844 # Commands used to build a shared archive.
29845 archive_cmds=$lt_archive_cmds
29846 archive_expsym_cmds=$lt_archive_expsym_cmds
29847
29848 # Commands used to build a loadable module if different from building
29849 # a shared archive.
29850 module_cmds=$lt_module_cmds
29851 module_expsym_cmds=$lt_module_expsym_cmds
29852
29853 # Whether we are building with GNU ld or not.
29854 with_gnu_ld=$lt_with_gnu_ld
29855
29856 # Flag that allows shared libraries with undefined symbols to be built.
29857 allow_undefined_flag=$lt_allow_undefined_flag
29858
29859 # Flag that enforces no undefined symbols.
29860 no_undefined_flag=$lt_no_undefined_flag
29861
29862 # Flag to hardcode \$libdir into a binary during linking.
29863 # This must work even if \$libdir does not exist
29864 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29865
29866 # Whether we need a single "-rpath" flag with a separated argument.
29867 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29868
29869 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29870 # DIR into the resulting binary.
29871 hardcode_direct=$hardcode_direct
29872
29873 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29874 # DIR into the resulting binary and the resulting library dependency is
29875 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29876 # library is relocated.
29877 hardcode_direct_absolute=$hardcode_direct_absolute
29878
29879 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29880 # into the resulting binary.
29881 hardcode_minus_L=$hardcode_minus_L
29882
29883 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29884 # into the resulting binary.
29885 hardcode_shlibpath_var=$hardcode_shlibpath_var
29886
29887 # Set to "yes" if building a shared library automatically hardcodes DIR
29888 # into the library and all subsequent libraries and executables linked
29889 # against it.
29890 hardcode_automatic=$hardcode_automatic
29891
29892 # Set to yes if linker adds runtime paths of dependent libraries
29893 # to runtime path list.
29894 inherit_rpath=$inherit_rpath
29895
29896 # Whether libtool must link a program against all its dependency libraries.
29897 link_all_deplibs=$link_all_deplibs
29898
29899 # Set to "yes" if exported symbols are required.
29900 always_export_symbols=$always_export_symbols
29901
29902 # The commands to list exported symbols.
29903 export_symbols_cmds=$lt_export_symbols_cmds
29904
29905 # Symbols that should not be listed in the preloaded symbols.
29906 exclude_expsyms=$lt_exclude_expsyms
29907
29908 # Symbols that must always be exported.
29909 include_expsyms=$lt_include_expsyms
29910
29911 # Commands necessary for linking programs (against libraries) with templates.
29912 prelink_cmds=$lt_prelink_cmds
29913
29914 # Commands necessary for finishing linking programs.
29915 postlink_cmds=$lt_postlink_cmds
29916
29917 # Specify filename containing input files.
29918 file_list_spec=$lt_file_list_spec
29919
29920 # How to hardcode a shared library path into an executable.
29921 hardcode_action=$hardcode_action
29922
29923 # The directories searched by this compiler when creating a shared library.
29924 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29925
29926 # Dependencies to place before and after the objects being linked to
29927 # create a shared library.
29928 predep_objects=$lt_predep_objects
29929 postdep_objects=$lt_postdep_objects
29930 predeps=$lt_predeps
29931 postdeps=$lt_postdeps
29932
29933 # The library search path used internally by the compiler when linking
29934 # a shared library.
29935 compiler_lib_search_path=$lt_compiler_lib_search_path
29936
29937 # ### END LIBTOOL CONFIG
29938
29939 _LT_EOF
29940
29941   case $host_os in
29942   aix3*)
29943     cat <<\_LT_EOF >> "$cfgfile"
29944 # AIX sometimes has problems with the GCC collect2 program.  For some
29945 # reason, if we set the COLLECT_NAMES environment variable, the problems
29946 # vanish in a puff of smoke.
29947 if test "X${COLLECT_NAMES+set}" != Xset; then
29948   COLLECT_NAMES=
29949   export COLLECT_NAMES
29950 fi
29951 _LT_EOF
29952     ;;
29953   esac
29954
29955
29956 ltmain="$ac_aux_dir/ltmain.sh"
29957
29958
29959   # We use sed instead of cat because bash on DJGPP gets confused if
29960   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29961   # text mode, it properly converts lines to CR/LF.  This bash problem
29962   # is reportedly fixed, but why not run on old versions too?
29963   sed '$q' "$ltmain" >> "$cfgfile" \
29964      || (rm -f "$cfgfile"; exit 1)
29965
29966   if test x"$xsi_shell" = xyes; then
29967   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
29968 func_dirname ()\
29969 {\
29970 \    case ${1} in\
29971 \      */*) func_dirname_result="${1%/*}${2}" ;;\
29972 \      *  ) func_dirname_result="${3}" ;;\
29973 \    esac\
29974 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
29975   && mv -f "$cfgfile.tmp" "$cfgfile" \
29976     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29977 test 0 -eq $? || _lt_function_replace_fail=:
29978
29979
29980   sed -e '/^func_basename ()$/,/^} # func_basename /c\
29981 func_basename ()\
29982 {\
29983 \    func_basename_result="${1##*/}"\
29984 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
29985   && mv -f "$cfgfile.tmp" "$cfgfile" \
29986     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29987 test 0 -eq $? || _lt_function_replace_fail=:
29988
29989
29990   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
29991 func_dirname_and_basename ()\
29992 {\
29993 \    case ${1} in\
29994 \      */*) func_dirname_result="${1%/*}${2}" ;;\
29995 \      *  ) func_dirname_result="${3}" ;;\
29996 \    esac\
29997 \    func_basename_result="${1##*/}"\
29998 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
29999   && mv -f "$cfgfile.tmp" "$cfgfile" \
30000     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30001 test 0 -eq $? || _lt_function_replace_fail=:
30002
30003
30004   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30005 func_stripname ()\
30006 {\
30007 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30008 \    # positional parameters, so assign one to ordinary parameter first.\
30009 \    func_stripname_result=${3}\
30010 \    func_stripname_result=${func_stripname_result#"${1}"}\
30011 \    func_stripname_result=${func_stripname_result%"${2}"}\
30012 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30013   && mv -f "$cfgfile.tmp" "$cfgfile" \
30014     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30015 test 0 -eq $? || _lt_function_replace_fail=:
30016
30017
30018   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30019 func_split_long_opt ()\
30020 {\
30021 \    func_split_long_opt_name=${1%%=*}\
30022 \    func_split_long_opt_arg=${1#*=}\
30023 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30024   && mv -f "$cfgfile.tmp" "$cfgfile" \
30025     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30026 test 0 -eq $? || _lt_function_replace_fail=:
30027
30028
30029   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30030 func_split_short_opt ()\
30031 {\
30032 \    func_split_short_opt_arg=${1#??}\
30033 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30034 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30035   && mv -f "$cfgfile.tmp" "$cfgfile" \
30036     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30037 test 0 -eq $? || _lt_function_replace_fail=:
30038
30039
30040   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30041 func_lo2o ()\
30042 {\
30043 \    case ${1} in\
30044 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30045 \      *)    func_lo2o_result=${1} ;;\
30046 \    esac\
30047 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30048   && mv -f "$cfgfile.tmp" "$cfgfile" \
30049     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30050 test 0 -eq $? || _lt_function_replace_fail=:
30051
30052
30053   sed -e '/^func_xform ()$/,/^} # func_xform /c\
30054 func_xform ()\
30055 {\
30056     func_xform_result=${1%.*}.lo\
30057 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30058   && mv -f "$cfgfile.tmp" "$cfgfile" \
30059     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30060 test 0 -eq $? || _lt_function_replace_fail=:
30061
30062
30063   sed -e '/^func_arith ()$/,/^} # func_arith /c\
30064 func_arith ()\
30065 {\
30066     func_arith_result=$(( $* ))\
30067 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30068   && mv -f "$cfgfile.tmp" "$cfgfile" \
30069     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30070 test 0 -eq $? || _lt_function_replace_fail=:
30071
30072
30073   sed -e '/^func_len ()$/,/^} # func_len /c\
30074 func_len ()\
30075 {\
30076     func_len_result=${#1}\
30077 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30078   && mv -f "$cfgfile.tmp" "$cfgfile" \
30079     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30080 test 0 -eq $? || _lt_function_replace_fail=:
30081
30082 fi
30083
30084 if test x"$lt_shell_append" = xyes; then
30085   sed -e '/^func_append ()$/,/^} # func_append /c\
30086 func_append ()\
30087 {\
30088     eval "${1}+=\\${2}"\
30089 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30090   && mv -f "$cfgfile.tmp" "$cfgfile" \
30091     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30092 test 0 -eq $? || _lt_function_replace_fail=:
30093
30094
30095   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30096 func_append_quoted ()\
30097 {\
30098 \    func_quote_for_eval "${2}"\
30099 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30100 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30101   && mv -f "$cfgfile.tmp" "$cfgfile" \
30102     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30103 test 0 -eq $? || _lt_function_replace_fail=:
30104
30105
30106   # Save a `func_append' function call where possible by direct use of '+='
30107   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30108     && mv -f "$cfgfile.tmp" "$cfgfile" \
30109       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30110   test 0 -eq $? || _lt_function_replace_fail=:
30111 else
30112   # Save a `func_append' function call even when '+=' is not available
30113   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30114     && mv -f "$cfgfile.tmp" "$cfgfile" \
30115       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30116   test 0 -eq $? || _lt_function_replace_fail=:
30117 fi
30118
30119 if test x"$_lt_function_replace_fail" = x":"; then
30120   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30121 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30122 fi
30123
30124
30125    mv -f "$cfgfile" "$ofile" ||
30126     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30127   chmod +x "$ofile"
30128
30129
30130     cat <<_LT_EOF >> "$ofile"
30131
30132 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30133
30134 # The linker used to build libraries.
30135 LD=$lt_LD_CXX
30136
30137 # How to create reloadable object files.
30138 reload_flag=$lt_reload_flag_CXX
30139 reload_cmds=$lt_reload_cmds_CXX
30140
30141 # Commands used to build an old-style archive.
30142 old_archive_cmds=$lt_old_archive_cmds_CXX
30143
30144 # A language specific compiler.
30145 CC=$lt_compiler_CXX
30146
30147 # Is the compiler the GNU compiler?
30148 with_gcc=$GCC_CXX
30149
30150 # Compiler flag to turn off builtin functions.
30151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30152
30153 # Additional compiler flags for building library objects.
30154 pic_flag=$lt_lt_prog_compiler_pic_CXX
30155
30156 # How to pass a linker flag through the compiler.
30157 wl=$lt_lt_prog_compiler_wl_CXX
30158
30159 # Compiler flag to prevent dynamic linking.
30160 link_static_flag=$lt_lt_prog_compiler_static_CXX
30161
30162 # Does compiler simultaneously support -c and -o options?
30163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30164
30165 # Whether or not to add -lc for building shared libraries.
30166 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30167
30168 # Whether or not to disallow shared libs when runtime libs are static.
30169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30170
30171 # Compiler flag to allow reflexive dlopens.
30172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30173
30174 # Compiler flag to generate shared objects directly from archives.
30175 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30176
30177 # Whether the compiler copes with passing no objects directly.
30178 compiler_needs_object=$lt_compiler_needs_object_CXX
30179
30180 # Create an old-style archive from a shared archive.
30181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30182
30183 # Create a temporary old-style archive to link instead of a shared archive.
30184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30185
30186 # Commands used to build a shared archive.
30187 archive_cmds=$lt_archive_cmds_CXX
30188 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30189
30190 # Commands used to build a loadable module if different from building
30191 # a shared archive.
30192 module_cmds=$lt_module_cmds_CXX
30193 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30194
30195 # Whether we are building with GNU ld or not.
30196 with_gnu_ld=$lt_with_gnu_ld_CXX
30197
30198 # Flag that allows shared libraries with undefined symbols to be built.
30199 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30200
30201 # Flag that enforces no undefined symbols.
30202 no_undefined_flag=$lt_no_undefined_flag_CXX
30203
30204 # Flag to hardcode \$libdir into a binary during linking.
30205 # This must work even if \$libdir does not exist
30206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30207
30208 # Whether we need a single "-rpath" flag with a separated argument.
30209 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30210
30211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30212 # DIR into the resulting binary.
30213 hardcode_direct=$hardcode_direct_CXX
30214
30215 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30216 # DIR into the resulting binary and the resulting library dependency is
30217 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30218 # library is relocated.
30219 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30220
30221 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30222 # into the resulting binary.
30223 hardcode_minus_L=$hardcode_minus_L_CXX
30224
30225 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30226 # into the resulting binary.
30227 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30228
30229 # Set to "yes" if building a shared library automatically hardcodes DIR
30230 # into the library and all subsequent libraries and executables linked
30231 # against it.
30232 hardcode_automatic=$hardcode_automatic_CXX
30233
30234 # Set to yes if linker adds runtime paths of dependent libraries
30235 # to runtime path list.
30236 inherit_rpath=$inherit_rpath_CXX
30237
30238 # Whether libtool must link a program against all its dependency libraries.
30239 link_all_deplibs=$link_all_deplibs_CXX
30240
30241 # Set to "yes" if exported symbols are required.
30242 always_export_symbols=$always_export_symbols_CXX
30243
30244 # The commands to list exported symbols.
30245 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30246
30247 # Symbols that should not be listed in the preloaded symbols.
30248 exclude_expsyms=$lt_exclude_expsyms_CXX
30249
30250 # Symbols that must always be exported.
30251 include_expsyms=$lt_include_expsyms_CXX
30252
30253 # Commands necessary for linking programs (against libraries) with templates.
30254 prelink_cmds=$lt_prelink_cmds_CXX
30255
30256 # Commands necessary for finishing linking programs.
30257 postlink_cmds=$lt_postlink_cmds_CXX
30258
30259 # Specify filename containing input files.
30260 file_list_spec=$lt_file_list_spec_CXX
30261
30262 # How to hardcode a shared library path into an executable.
30263 hardcode_action=$hardcode_action_CXX
30264
30265 # The directories searched by this compiler when creating a shared library.
30266 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30267
30268 # Dependencies to place before and after the objects being linked to
30269 # create a shared library.
30270 predep_objects=$lt_predep_objects_CXX
30271 postdep_objects=$lt_postdep_objects_CXX
30272 predeps=$lt_predeps_CXX
30273 postdeps=$lt_postdeps_CXX
30274
30275 # The library search path used internally by the compiler when linking
30276 # a shared library.
30277 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30278
30279 # ### END LIBTOOL TAG CONFIG: CXX
30280 _LT_EOF
30281
30282
30283     cat <<_LT_EOF >> "$ofile"
30284
30285 # ### BEGIN LIBTOOL TAG CONFIG: F77
30286
30287 # The linker used to build libraries.
30288 LD=$lt_LD_F77
30289
30290 # How to create reloadable object files.
30291 reload_flag=$lt_reload_flag_F77
30292 reload_cmds=$lt_reload_cmds_F77
30293
30294 # Commands used to build an old-style archive.
30295 old_archive_cmds=$lt_old_archive_cmds_F77
30296
30297 # A language specific compiler.
30298 CC=$lt_compiler_F77
30299
30300 # Is the compiler the GNU compiler?
30301 with_gcc=$GCC_F77
30302
30303 # Compiler flag to turn off builtin functions.
30304 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
30305
30306 # Additional compiler flags for building library objects.
30307 pic_flag=$lt_lt_prog_compiler_pic_F77
30308
30309 # How to pass a linker flag through the compiler.
30310 wl=$lt_lt_prog_compiler_wl_F77
30311
30312 # Compiler flag to prevent dynamic linking.
30313 link_static_flag=$lt_lt_prog_compiler_static_F77
30314
30315 # Does compiler simultaneously support -c and -o options?
30316 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
30317
30318 # Whether or not to add -lc for building shared libraries.
30319 build_libtool_need_lc=$archive_cmds_need_lc_F77
30320
30321 # Whether or not to disallow shared libs when runtime libs are static.
30322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
30323
30324 # Compiler flag to allow reflexive dlopens.
30325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
30326
30327 # Compiler flag to generate shared objects directly from archives.
30328 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
30329
30330 # Whether the compiler copes with passing no objects directly.
30331 compiler_needs_object=$lt_compiler_needs_object_F77
30332
30333 # Create an old-style archive from a shared archive.
30334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
30335
30336 # Create a temporary old-style archive to link instead of a shared archive.
30337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
30338
30339 # Commands used to build a shared archive.
30340 archive_cmds=$lt_archive_cmds_F77
30341 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
30342
30343 # Commands used to build a loadable module if different from building
30344 # a shared archive.
30345 module_cmds=$lt_module_cmds_F77
30346 module_expsym_cmds=$lt_module_expsym_cmds_F77
30347
30348 # Whether we are building with GNU ld or not.
30349 with_gnu_ld=$lt_with_gnu_ld_F77
30350
30351 # Flag that allows shared libraries with undefined symbols to be built.
30352 allow_undefined_flag=$lt_allow_undefined_flag_F77
30353
30354 # Flag that enforces no undefined symbols.
30355 no_undefined_flag=$lt_no_undefined_flag_F77
30356
30357 # Flag to hardcode \$libdir into a binary during linking.
30358 # This must work even if \$libdir does not exist
30359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
30360
30361 # Whether we need a single "-rpath" flag with a separated argument.
30362 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
30363
30364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30365 # DIR into the resulting binary.
30366 hardcode_direct=$hardcode_direct_F77
30367
30368 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30369 # DIR into the resulting binary and the resulting library dependency is
30370 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30371 # library is relocated.
30372 hardcode_direct_absolute=$hardcode_direct_absolute_F77
30373
30374 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30375 # into the resulting binary.
30376 hardcode_minus_L=$hardcode_minus_L_F77
30377
30378 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30379 # into the resulting binary.
30380 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
30381
30382 # Set to "yes" if building a shared library automatically hardcodes DIR
30383 # into the library and all subsequent libraries and executables linked
30384 # against it.
30385 hardcode_automatic=$hardcode_automatic_F77
30386
30387 # Set to yes if linker adds runtime paths of dependent libraries
30388 # to runtime path list.
30389 inherit_rpath=$inherit_rpath_F77
30390
30391 # Whether libtool must link a program against all its dependency libraries.
30392 link_all_deplibs=$link_all_deplibs_F77
30393
30394 # Set to "yes" if exported symbols are required.
30395 always_export_symbols=$always_export_symbols_F77
30396
30397 # The commands to list exported symbols.
30398 export_symbols_cmds=$lt_export_symbols_cmds_F77
30399
30400 # Symbols that should not be listed in the preloaded symbols.
30401 exclude_expsyms=$lt_exclude_expsyms_F77
30402
30403 # Symbols that must always be exported.
30404 include_expsyms=$lt_include_expsyms_F77
30405
30406 # Commands necessary for linking programs (against libraries) with templates.
30407 prelink_cmds=$lt_prelink_cmds_F77
30408
30409 # Commands necessary for finishing linking programs.
30410 postlink_cmds=$lt_postlink_cmds_F77
30411
30412 # Specify filename containing input files.
30413 file_list_spec=$lt_file_list_spec_F77
30414
30415 # How to hardcode a shared library path into an executable.
30416 hardcode_action=$hardcode_action_F77
30417
30418 # The directories searched by this compiler when creating a shared library.
30419 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
30420
30421 # Dependencies to place before and after the objects being linked to
30422 # create a shared library.
30423 predep_objects=$lt_predep_objects_F77
30424 postdep_objects=$lt_postdep_objects_F77
30425 predeps=$lt_predeps_F77
30426 postdeps=$lt_postdeps_F77
30427
30428 # The library search path used internally by the compiler when linking
30429 # a shared library.
30430 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
30431
30432 # ### END LIBTOOL TAG CONFIG: F77
30433 _LT_EOF
30434
30435
30436     cat <<_LT_EOF >> "$ofile"
30437
30438 # ### BEGIN LIBTOOL TAG CONFIG: FC
30439
30440 # The linker used to build libraries.
30441 LD=$lt_LD_FC
30442
30443 # How to create reloadable object files.
30444 reload_flag=$lt_reload_flag_FC
30445 reload_cmds=$lt_reload_cmds_FC
30446
30447 # Commands used to build an old-style archive.
30448 old_archive_cmds=$lt_old_archive_cmds_FC
30449
30450 # A language specific compiler.
30451 CC=$lt_compiler_FC
30452
30453 # Is the compiler the GNU compiler?
30454 with_gcc=$GCC_FC
30455
30456 # Compiler flag to turn off builtin functions.
30457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
30458
30459 # Additional compiler flags for building library objects.
30460 pic_flag=$lt_lt_prog_compiler_pic_FC
30461
30462 # How to pass a linker flag through the compiler.
30463 wl=$lt_lt_prog_compiler_wl_FC
30464
30465 # Compiler flag to prevent dynamic linking.
30466 link_static_flag=$lt_lt_prog_compiler_static_FC
30467
30468 # Does compiler simultaneously support -c and -o options?
30469 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
30470
30471 # Whether or not to add -lc for building shared libraries.
30472 build_libtool_need_lc=$archive_cmds_need_lc_FC
30473
30474 # Whether or not to disallow shared libs when runtime libs are static.
30475 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
30476
30477 # Compiler flag to allow reflexive dlopens.
30478 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
30479
30480 # Compiler flag to generate shared objects directly from archives.
30481 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
30482
30483 # Whether the compiler copes with passing no objects directly.
30484 compiler_needs_object=$lt_compiler_needs_object_FC
30485
30486 # Create an old-style archive from a shared archive.
30487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
30488
30489 # Create a temporary old-style archive to link instead of a shared archive.
30490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
30491
30492 # Commands used to build a shared archive.
30493 archive_cmds=$lt_archive_cmds_FC
30494 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
30495
30496 # Commands used to build a loadable module if different from building
30497 # a shared archive.
30498 module_cmds=$lt_module_cmds_FC
30499 module_expsym_cmds=$lt_module_expsym_cmds_FC
30500
30501 # Whether we are building with GNU ld or not.
30502 with_gnu_ld=$lt_with_gnu_ld_FC
30503
30504 # Flag that allows shared libraries with undefined symbols to be built.
30505 allow_undefined_flag=$lt_allow_undefined_flag_FC
30506
30507 # Flag that enforces no undefined symbols.
30508 no_undefined_flag=$lt_no_undefined_flag_FC
30509
30510 # Flag to hardcode \$libdir into a binary during linking.
30511 # This must work even if \$libdir does not exist
30512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
30513
30514 # Whether we need a single "-rpath" flag with a separated argument.
30515 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
30516
30517 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30518 # DIR into the resulting binary.
30519 hardcode_direct=$hardcode_direct_FC
30520
30521 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30522 # DIR into the resulting binary and the resulting library dependency is
30523 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30524 # library is relocated.
30525 hardcode_direct_absolute=$hardcode_direct_absolute_FC
30526
30527 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30528 # into the resulting binary.
30529 hardcode_minus_L=$hardcode_minus_L_FC
30530
30531 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30532 # into the resulting binary.
30533 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
30534
30535 # Set to "yes" if building a shared library automatically hardcodes DIR
30536 # into the library and all subsequent libraries and executables linked
30537 # against it.
30538 hardcode_automatic=$hardcode_automatic_FC
30539
30540 # Set to yes if linker adds runtime paths of dependent libraries
30541 # to runtime path list.
30542 inherit_rpath=$inherit_rpath_FC
30543
30544 # Whether libtool must link a program against all its dependency libraries.
30545 link_all_deplibs=$link_all_deplibs_FC
30546
30547 # Set to "yes" if exported symbols are required.
30548 always_export_symbols=$always_export_symbols_FC
30549
30550 # The commands to list exported symbols.
30551 export_symbols_cmds=$lt_export_symbols_cmds_FC
30552
30553 # Symbols that should not be listed in the preloaded symbols.
30554 exclude_expsyms=$lt_exclude_expsyms_FC
30555
30556 # Symbols that must always be exported.
30557 include_expsyms=$lt_include_expsyms_FC
30558
30559 # Commands necessary for linking programs (against libraries) with templates.
30560 prelink_cmds=$lt_prelink_cmds_FC
30561
30562 # Commands necessary for finishing linking programs.
30563 postlink_cmds=$lt_postlink_cmds_FC
30564
30565 # Specify filename containing input files.
30566 file_list_spec=$lt_file_list_spec_FC
30567
30568 # How to hardcode a shared library path into an executable.
30569 hardcode_action=$hardcode_action_FC
30570
30571 # The directories searched by this compiler when creating a shared library.
30572 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
30573
30574 # Dependencies to place before and after the objects being linked to
30575 # create a shared library.
30576 predep_objects=$lt_predep_objects_FC
30577 postdep_objects=$lt_postdep_objects_FC
30578 predeps=$lt_predeps_FC
30579 postdeps=$lt_postdeps_FC
30580
30581 # The library search path used internally by the compiler when linking
30582 # a shared library.
30583 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
30584
30585 # ### END LIBTOOL TAG CONFIG: FC
30586 _LT_EOF
30587
30588
30589     cat <<_LT_EOF >> "$ofile"
30590
30591 # ### BEGIN LIBTOOL TAG CONFIG: GO
30592
30593 # The linker used to build libraries.
30594 LD=$lt_LD_GO
30595
30596 # How to create reloadable object files.
30597 reload_flag=$lt_reload_flag_GO
30598 reload_cmds=$lt_reload_cmds_GO
30599
30600 # Commands used to build an old-style archive.
30601 old_archive_cmds=$lt_old_archive_cmds_GO
30602
30603 # A language specific compiler.
30604 CC=$lt_compiler_GO
30605
30606 # Is the compiler the GNU compiler?
30607 with_gcc=$GCC_GO
30608
30609 # Compiler flag to turn off builtin functions.
30610 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
30611
30612 # Additional compiler flags for building library objects.
30613 pic_flag=$lt_lt_prog_compiler_pic_GO
30614
30615 # How to pass a linker flag through the compiler.
30616 wl=$lt_lt_prog_compiler_wl_GO
30617
30618 # Compiler flag to prevent dynamic linking.
30619 link_static_flag=$lt_lt_prog_compiler_static_GO
30620
30621 # Does compiler simultaneously support -c and -o options?
30622 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
30623
30624 # Whether or not to add -lc for building shared libraries.
30625 build_libtool_need_lc=$archive_cmds_need_lc_GO
30626
30627 # Whether or not to disallow shared libs when runtime libs are static.
30628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
30629
30630 # Compiler flag to allow reflexive dlopens.
30631 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
30632
30633 # Compiler flag to generate shared objects directly from archives.
30634 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
30635
30636 # Whether the compiler copes with passing no objects directly.
30637 compiler_needs_object=$lt_compiler_needs_object_GO
30638
30639 # Create an old-style archive from a shared archive.
30640 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
30641
30642 # Create a temporary old-style archive to link instead of a shared archive.
30643 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
30644
30645 # Commands used to build a shared archive.
30646 archive_cmds=$lt_archive_cmds_GO
30647 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
30648
30649 # Commands used to build a loadable module if different from building
30650 # a shared archive.
30651 module_cmds=$lt_module_cmds_GO
30652 module_expsym_cmds=$lt_module_expsym_cmds_GO
30653
30654 # Whether we are building with GNU ld or not.
30655 with_gnu_ld=$lt_with_gnu_ld_GO
30656
30657 # Flag that allows shared libraries with undefined symbols to be built.
30658 allow_undefined_flag=$lt_allow_undefined_flag_GO
30659
30660 # Flag that enforces no undefined symbols.
30661 no_undefined_flag=$lt_no_undefined_flag_GO
30662
30663 # Flag to hardcode \$libdir into a binary during linking.
30664 # This must work even if \$libdir does not exist
30665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
30666
30667 # Whether we need a single "-rpath" flag with a separated argument.
30668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
30669
30670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30671 # DIR into the resulting binary.
30672 hardcode_direct=$hardcode_direct_GO
30673
30674 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30675 # DIR into the resulting binary and the resulting library dependency is
30676 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30677 # library is relocated.
30678 hardcode_direct_absolute=$hardcode_direct_absolute_GO
30679
30680 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30681 # into the resulting binary.
30682 hardcode_minus_L=$hardcode_minus_L_GO
30683
30684 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30685 # into the resulting binary.
30686 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
30687
30688 # Set to "yes" if building a shared library automatically hardcodes DIR
30689 # into the library and all subsequent libraries and executables linked
30690 # against it.
30691 hardcode_automatic=$hardcode_automatic_GO
30692
30693 # Set to yes if linker adds runtime paths of dependent libraries
30694 # to runtime path list.
30695 inherit_rpath=$inherit_rpath_GO
30696
30697 # Whether libtool must link a program against all its dependency libraries.
30698 link_all_deplibs=$link_all_deplibs_GO
30699
30700 # Set to "yes" if exported symbols are required.
30701 always_export_symbols=$always_export_symbols_GO
30702
30703 # The commands to list exported symbols.
30704 export_symbols_cmds=$lt_export_symbols_cmds_GO
30705
30706 # Symbols that should not be listed in the preloaded symbols.
30707 exclude_expsyms=$lt_exclude_expsyms_GO
30708
30709 # Symbols that must always be exported.
30710 include_expsyms=$lt_include_expsyms_GO
30711
30712 # Commands necessary for linking programs (against libraries) with templates.
30713 prelink_cmds=$lt_prelink_cmds_GO
30714
30715 # Commands necessary for finishing linking programs.
30716 postlink_cmds=$lt_postlink_cmds_GO
30717
30718 # Specify filename containing input files.
30719 file_list_spec=$lt_file_list_spec_GO
30720
30721 # How to hardcode a shared library path into an executable.
30722 hardcode_action=$hardcode_action_GO
30723
30724 # The directories searched by this compiler when creating a shared library.
30725 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GO
30726
30727 # Dependencies to place before and after the objects being linked to
30728 # create a shared library.
30729 predep_objects=$lt_predep_objects_GO
30730 postdep_objects=$lt_postdep_objects_GO
30731 predeps=$lt_predeps_GO
30732 postdeps=$lt_postdeps_GO
30733
30734 # The library search path used internally by the compiler when linking
30735 # a shared library.
30736 compiler_lib_search_path=$lt_compiler_lib_search_path_GO
30737
30738 # ### END LIBTOOL TAG CONFIG: GO
30739 _LT_EOF
30740
30741
30742     cat <<_LT_EOF >> "$ofile"
30743
30744 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30745
30746 # The linker used to build libraries.
30747 LD=$lt_LD_GCJ
30748
30749 # How to create reloadable object files.
30750 reload_flag=$lt_reload_flag_GCJ
30751 reload_cmds=$lt_reload_cmds_GCJ
30752
30753 # Commands used to build an old-style archive.
30754 old_archive_cmds=$lt_old_archive_cmds_GCJ
30755
30756 # A language specific compiler.
30757 CC=$lt_compiler_GCJ
30758
30759 # Is the compiler the GNU compiler?
30760 with_gcc=$GCC_GCJ
30761
30762 # Compiler flag to turn off builtin functions.
30763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30764
30765 # Additional compiler flags for building library objects.
30766 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30767
30768 # How to pass a linker flag through the compiler.
30769 wl=$lt_lt_prog_compiler_wl_GCJ
30770
30771 # Compiler flag to prevent dynamic linking.
30772 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30773
30774 # Does compiler simultaneously support -c and -o options?
30775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30776
30777 # Whether or not to add -lc for building shared libraries.
30778 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30779
30780 # Whether or not to disallow shared libs when runtime libs are static.
30781 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30782
30783 # Compiler flag to allow reflexive dlopens.
30784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30785
30786 # Compiler flag to generate shared objects directly from archives.
30787 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30788
30789 # Whether the compiler copes with passing no objects directly.
30790 compiler_needs_object=$lt_compiler_needs_object_GCJ
30791
30792 # Create an old-style archive from a shared archive.
30793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30794
30795 # Create a temporary old-style archive to link instead of a shared archive.
30796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30797
30798 # Commands used to build a shared archive.
30799 archive_cmds=$lt_archive_cmds_GCJ
30800 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30801
30802 # Commands used to build a loadable module if different from building
30803 # a shared archive.
30804 module_cmds=$lt_module_cmds_GCJ
30805 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30806
30807 # Whether we are building with GNU ld or not.
30808 with_gnu_ld=$lt_with_gnu_ld_GCJ
30809
30810 # Flag that allows shared libraries with undefined symbols to be built.
30811 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
30812
30813 # Flag that enforces no undefined symbols.
30814 no_undefined_flag=$lt_no_undefined_flag_GCJ
30815
30816 # Flag to hardcode \$libdir into a binary during linking.
30817 # This must work even if \$libdir does not exist
30818 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
30819
30820 # Whether we need a single "-rpath" flag with a separated argument.
30821 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
30822
30823 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30824 # DIR into the resulting binary.
30825 hardcode_direct=$hardcode_direct_GCJ
30826
30827 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30828 # DIR into the resulting binary and the resulting library dependency is
30829 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30830 # library is relocated.
30831 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
30832
30833 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30834 # into the resulting binary.
30835 hardcode_minus_L=$hardcode_minus_L_GCJ
30836
30837 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30838 # into the resulting binary.
30839 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
30840
30841 # Set to "yes" if building a shared library automatically hardcodes DIR
30842 # into the library and all subsequent libraries and executables linked
30843 # against it.
30844 hardcode_automatic=$hardcode_automatic_GCJ
30845
30846 # Set to yes if linker adds runtime paths of dependent libraries
30847 # to runtime path list.
30848 inherit_rpath=$inherit_rpath_GCJ
30849
30850 # Whether libtool must link a program against all its dependency libraries.
30851 link_all_deplibs=$link_all_deplibs_GCJ
30852
30853 # Set to "yes" if exported symbols are required.
30854 always_export_symbols=$always_export_symbols_GCJ
30855
30856 # The commands to list exported symbols.
30857 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
30858
30859 # Symbols that should not be listed in the preloaded symbols.
30860 exclude_expsyms=$lt_exclude_expsyms_GCJ
30861
30862 # Symbols that must always be exported.
30863 include_expsyms=$lt_include_expsyms_GCJ
30864
30865 # Commands necessary for linking programs (against libraries) with templates.
30866 prelink_cmds=$lt_prelink_cmds_GCJ
30867
30868 # Commands necessary for finishing linking programs.
30869 postlink_cmds=$lt_postlink_cmds_GCJ
30870
30871 # Specify filename containing input files.
30872 file_list_spec=$lt_file_list_spec_GCJ
30873
30874 # How to hardcode a shared library path into an executable.
30875 hardcode_action=$hardcode_action_GCJ
30876
30877 # The directories searched by this compiler when creating a shared library.
30878 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
30879
30880 # Dependencies to place before and after the objects being linked to
30881 # create a shared library.
30882 predep_objects=$lt_predep_objects_GCJ
30883 postdep_objects=$lt_postdep_objects_GCJ
30884 predeps=$lt_predeps_GCJ
30885 postdeps=$lt_postdeps_GCJ
30886
30887 # The library search path used internally by the compiler when linking
30888 # a shared library.
30889 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
30890
30891 # ### END LIBTOOL TAG CONFIG: GCJ
30892 _LT_EOF
30893
30894
30895     cat <<_LT_EOF >> "$ofile"
30896
30897 # ### BEGIN LIBTOOL TAG CONFIG: RC
30898
30899 # The linker used to build libraries.
30900 LD=$lt_LD_RC
30901
30902 # How to create reloadable object files.
30903 reload_flag=$lt_reload_flag_RC
30904 reload_cmds=$lt_reload_cmds_RC
30905
30906 # Commands used to build an old-style archive.
30907 old_archive_cmds=$lt_old_archive_cmds_RC
30908
30909 # A language specific compiler.
30910 CC=$lt_compiler_RC
30911
30912 # Is the compiler the GNU compiler?
30913 with_gcc=$GCC_RC
30914
30915 # Compiler flag to turn off builtin functions.
30916 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
30917
30918 # Additional compiler flags for building library objects.
30919 pic_flag=$lt_lt_prog_compiler_pic_RC
30920
30921 # How to pass a linker flag through the compiler.
30922 wl=$lt_lt_prog_compiler_wl_RC
30923
30924 # Compiler flag to prevent dynamic linking.
30925 link_static_flag=$lt_lt_prog_compiler_static_RC
30926
30927 # Does compiler simultaneously support -c and -o options?
30928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
30929
30930 # Whether or not to add -lc for building shared libraries.
30931 build_libtool_need_lc=$archive_cmds_need_lc_RC
30932
30933 # Whether or not to disallow shared libs when runtime libs are static.
30934 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
30935
30936 # Compiler flag to allow reflexive dlopens.
30937 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
30938
30939 # Compiler flag to generate shared objects directly from archives.
30940 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
30941
30942 # Whether the compiler copes with passing no objects directly.
30943 compiler_needs_object=$lt_compiler_needs_object_RC
30944
30945 # Create an old-style archive from a shared archive.
30946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
30947
30948 # Create a temporary old-style archive to link instead of a shared archive.
30949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
30950
30951 # Commands used to build a shared archive.
30952 archive_cmds=$lt_archive_cmds_RC
30953 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
30954
30955 # Commands used to build a loadable module if different from building
30956 # a shared archive.
30957 module_cmds=$lt_module_cmds_RC
30958 module_expsym_cmds=$lt_module_expsym_cmds_RC
30959
30960 # Whether we are building with GNU ld or not.
30961 with_gnu_ld=$lt_with_gnu_ld_RC
30962
30963 # Flag that allows shared libraries with undefined symbols to be built.
30964 allow_undefined_flag=$lt_allow_undefined_flag_RC
30965
30966 # Flag that enforces no undefined symbols.
30967 no_undefined_flag=$lt_no_undefined_flag_RC
30968
30969 # Flag to hardcode \$libdir into a binary during linking.
30970 # This must work even if \$libdir does not exist
30971 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
30972
30973 # Whether we need a single "-rpath" flag with a separated argument.
30974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
30975
30976 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30977 # DIR into the resulting binary.
30978 hardcode_direct=$hardcode_direct_RC
30979
30980 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30981 # DIR into the resulting binary and the resulting library dependency is
30982 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30983 # library is relocated.
30984 hardcode_direct_absolute=$hardcode_direct_absolute_RC
30985
30986 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30987 # into the resulting binary.
30988 hardcode_minus_L=$hardcode_minus_L_RC
30989
30990 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30991 # into the resulting binary.
30992 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
30993
30994 # Set to "yes" if building a shared library automatically hardcodes DIR
30995 # into the library and all subsequent libraries and executables linked
30996 # against it.
30997 hardcode_automatic=$hardcode_automatic_RC
30998
30999 # Set to yes if linker adds runtime paths of dependent libraries
31000 # to runtime path list.
31001 inherit_rpath=$inherit_rpath_RC
31002
31003 # Whether libtool must link a program against all its dependency libraries.
31004 link_all_deplibs=$link_all_deplibs_RC
31005
31006 # Set to "yes" if exported symbols are required.
31007 always_export_symbols=$always_export_symbols_RC
31008
31009 # The commands to list exported symbols.
31010 export_symbols_cmds=$lt_export_symbols_cmds_RC
31011
31012 # Symbols that should not be listed in the preloaded symbols.
31013 exclude_expsyms=$lt_exclude_expsyms_RC
31014
31015 # Symbols that must always be exported.
31016 include_expsyms=$lt_include_expsyms_RC
31017
31018 # Commands necessary for linking programs (against libraries) with templates.
31019 prelink_cmds=$lt_prelink_cmds_RC
31020
31021 # Commands necessary for finishing linking programs.
31022 postlink_cmds=$lt_postlink_cmds_RC
31023
31024 # Specify filename containing input files.
31025 file_list_spec=$lt_file_list_spec_RC
31026
31027 # How to hardcode a shared library path into an executable.
31028 hardcode_action=$hardcode_action_RC
31029
31030 # The directories searched by this compiler when creating a shared library.
31031 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
31032
31033 # Dependencies to place before and after the objects being linked to
31034 # create a shared library.
31035 predep_objects=$lt_predep_objects_RC
31036 postdep_objects=$lt_postdep_objects_RC
31037 predeps=$lt_predeps_RC
31038 postdeps=$lt_postdeps_RC
31039
31040 # The library search path used internally by the compiler when linking
31041 # a shared library.
31042 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
31043
31044 # ### END LIBTOOL TAG CONFIG: RC
31045 _LT_EOF
31046
31047  ;;
31048
31049   esac
31050 done # for ac_tag
31051
31052
31053 as_fn_exit 0
31054 _ACEOF
31055 ac_clean_files=$ac_clean_files_save
31056
31057 test $ac_write_fail = 0 ||
31058   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31059
31060
31061 # configure is writing to config.log, and then calls config.status.
31062 # config.status does its own redirection, appending to config.log.
31063 # Unfortunately, on DOS this fails, as config.log is still kept open
31064 # by configure, so config.status won't be able to write to it; its
31065 # output is simply discarded.  So we exec the FD to /dev/null,
31066 # effectively closing config.log, so it can be properly (re)opened and
31067 # appended to by config.status.  When coming back to configure, we
31068 # need to make the FD available again.
31069 if test "$no_create" != yes; then
31070   ac_cs_success=:
31071   ac_config_status_args=
31072   test "$silent" = yes &&
31073     ac_config_status_args="$ac_config_status_args --quiet"
31074   exec 5>/dev/null
31075   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31076   exec 5>>config.log
31077   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31078   # would make configure fail if this is the last instruction.
31079   $ac_cs_success || as_fn_exit 1
31080 fi
31081 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31082   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31083 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31084 fi
31085